-
Notifications
You must be signed in to change notification settings - Fork 558
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
test: increase await assertion timeout in OpensearchExporterIT IndexSettingsTest to overcome flaky test runs #17282
Conversation
policy change is an asynchronous background process in opensearch that's why we use awaits before asserts to reduce flaky results
f1b9979
to
3197e92
Compare
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.
👍
While policy change is indeed asynchronous, and this change is trying to increase the timeout to avoid flakiness in test runs. this specific failure here, and the one that triggered that PR should never have happened. It's failing at this line, in the beginning of the test. I've been trying to reproduce this locally to see what might have been the problem, but unfortunately, I can't. it never fails locally! CC: @megglos |
hmm could it be that there are template leftovers from a previous test? meaning maybe we need to extend the cleanup to not just cleanup indices but also potentially existing templates Edit: however that should be overridden by the previous export |
…when deleting indices before each test run
deb3e6d
to
16cfe26
Compare
I made one try at expanding wildcards to all (open and closed) indices when deleting indices before each test. I'm not sure this is the problem though. it's just a guess. This is also one other API where opensearch diverges from elasticsearch. |
should this be backported to 8.4, 8.5 too? |
/backport stable/8.4 |
Successfully created backport PR for |
…earchExporterIT IndexSettingsTest to overcome flaky test runs (#17309) # Description Backport of #17282 to `stable/8.4`. relates to #17279 original author: @mustafadagher
Backport failed for Please cherry-pick the changes locally and resolve any conflicts. git fetch origin stable/8.4
git worktree add -d .worktree/backport-17282-to-stable/8.4 origin/stable/8.4
cd .worktree/backport-17282-to-stable/8.4
git switch --create backport-17282-to-stable/8.4
git cherry-pick -x 3197e92ced339fce6266acb3ae790383969d2a0b 16cfe26acc27fcee899525d5ddd569b6a0d9d64c |
Successfully created backport PR for |
…earchExporterIT IndexSettingsTest to overcome flaky test runs (#17312) # Description Backport of #17282 to `stable/8.5`. relates to #17279 original author: @mustafadagher
Description
Increase await assertion timeout to overcome flaky test runs
Policy change is an asynchronous background process in opensearch, that's why we use awaits before asserts to reduce flaky results
Related issues
closes #17279
Definition of Done
Not all items need to be done depending on the issue and the pull request.
Code changes:
backport stable/1.3
) to the PR, in case that fails you need to create backports manually.Testing:
Documentation:
Other teams:
If the change impacts another team an issue has been created for this team, explaining what they need to do to support this change.
Please refer to our review guidelines.