-
Notifications
You must be signed in to change notification settings - Fork 24.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ML] Fix upgrade test assertion #95748
Conversation
Pinging @elastic/ml-core (Team:ML) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, but it would be good to include the explanation from the PR description about why the test is asserting what it's now asserting in a comment in the test itself. The code in the test no longer matches the name of the test method, so it would be good to explain why within the code itself rather than forcing a future reader to look up this PR to find out why.
@elasticmachine update branch |
💚 Backport successful
|
…95779) The failure was in an assertion that the trained model metadata has been renamed trained_model_allocation -> trained_model_assignment but this can only happen if there is a cluster change event after all nodes have been upgraded. Relaxes the assertion to account for this case.
The failure described in #95501 is reproducible when run in isolation and is likely to fail depending where the deployment is running after before the last node is upgraded.
The failure was in an assertion that the trained model metadata has been renamed
trained_model_allocation
->trained_model_assignment
but this can only happen if there is a cluster change event after all nodes have been upgraded. Other activity in test suite usually ensures that this happens but after #95360 was muted the test started to fail. The fix is to relax the assertion.Closes #95501