-
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
Fix synonyms CI tests timeout #114641
Fix synonyms CI tests timeout #114641
Conversation
Pinging @elastic/es-search-relevance (Team:Search Relevance) |
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.
@carlosdelest Thanks for fixing. LGTM!
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! If there are still failures, maybe increasing the timeout might help. Or, ignoring the timeout altogether may be helpful:
- do:
cluster.health:
index: .synonyms-2
timeout: 1m
wait_for_status: green
ignore: 408
It will let requests go through then, but it's still annoying that the health might not be green (I'd expect ideally tests to use the synonyms with green health rather than yellow).
@@ -5,7 +5,7 @@ steps: | |||
steps: | |||
- label: "{{matrix.image}} / docker / packaging-tests-unix" | |||
key: "packaging-tests-unix-docker" | |||
command: ./.ci/scripts/packaging-test.sh destructiveDistroTest.docker | |||
command: ./.ci/scripts/packaging-test.sh destructiveDistroTest.docker-cloud-ess |
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.
bad merge?
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.
I screwed up - will get back to this
8aa2910
to
d4bd80a
Compare
Reopening to test this suggestion |
@elasticmachine update branch |
…ts-timeout' into carlosdelest/fix-synonyms-ci-tests-timeout # Conflicts: # rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/synonyms/10_synonyms_put.yml # rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/synonyms/110_synonyms_invalid.yml # rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/synonyms/20_synonyms_get.yml # rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/synonyms/30_synonyms_delete.yml # rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/synonyms/40_synonyms_sets_get.yml # rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/synonyms/50_synonym_rule_put.yml # rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/synonyms/60_synonym_rule_get.yml # rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/synonyms/70_synonym_rule_delete.yml # rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/synonyms/80_synonyms_from_index.yml # rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/synonyms/90_synonyms_reloading_for_synset.yml
5edd935
to
bc07059
Compare
@@ -58,6 +62,10 @@ setup: | |||
|
|||
- match: { result: "created" } | |||
|
|||
- do: | |||
cluster.health: | |||
wait_for_no_initializing_shards: true |
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.
😍
Does this work? Seems likely?
Using the changes commented by @kingherc makes this pass. Serverless checks also pass (see PR 3015 in serverless). |
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.
Awesome that it worked! Please note that due to #115019 we had to revert the fast refresh behavioral change, but I think it still makes sense to merge this so that the tests are ready for when we re-incorporate the change in the near future.
Feel free to get a search approval as well before merging.
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.
HUZZAH!
Closes #114444
Closes #114443
Closes #114432
(Hopefully) 🤞
Using an alias was making the test flaky. Changed that back to the original version in #114400, and also added this to the rest of the synonyms tests that could be affected by this issue.