Skip to content

Conversation

@droberts195
Copy link

With this change the test setup for ML config upgrade
tests only waits for v6.6+ ML index templates to be
installed if the old cluster is running version 6.6.0
or higher.

Previously it was always waiting, but timing out without
failing the test if the templates were not installed
within 10 seconds, effectively just adding a pointless
10 second sleep to BWC tests against versions earlier
than 6.6.0. This problem was exposed by #47112.

Fixes #47286

With this change the test setup for ML config upgrade
tests only waits for v6.6+ ML index templates to be
installed if the old cluster is running version 6.6.0
or higher.

Previously it was always waiting, but timing out without
failing the test if the templates were not installed
within 10 seconds, effectively just adding a pointless
10 second sleep to BWC tests against versions earlier
than 6.6.0. This problem was exposed by elastic#47112.

Fixes elastic#47286
@droberts195 droberts195 added >test Issues or PRs that are addressing/adding tests :ml Machine learning v7.5.0 v6.8.4 v7.4.1 labels Sep 30, 2019
@elasticmachine
Copy link
Collaborator

Pinging @elastic/ml-core

@droberts195 droberts195 merged commit 24b3703 into elastic:7.x Sep 30, 2019
@droberts195 droberts195 deleted the fix_wait_for_templates_pre_660 branch September 30, 2019 13:55
droberts195 pushed a commit that referenced this pull request Sep 30, 2019
#47289)

With this change the test setup for ML config upgrade
tests only waits for v6.6+ ML index templates to be
installed if the old cluster is running version 6.6.0
or higher.

Previously it was always waiting, but timing out without
failing the test if the templates were not installed
within 10 seconds, effectively just adding a pointless
10 second sleep to BWC tests against versions earlier
than 6.6.0. This problem was exposed by #47112.

Fixes #47286
@droberts195
Copy link
Author

droberts195 commented Sep 30, 2019

Backported to 7.4, because although this doesn't cause failures in 7.4 it does cause needless 10 second delays.

I removed the v6.8.4 label as it turns out this test doesn't exist in the 6.8 branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:ml Machine learning >test Issues or PRs that are addressing/adding tests v7.4.1 v7.5.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants