-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Deflake statesampler_test #7492
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
Conversation
dc0f0d4 to
0912d52
Compare
…last 1 second, retry once on failure to reduce flakiness
0912d52 to
7d15def
Compare
|
|
||
| # Due to somewhat non-deterministic nature of state sampling and sleep, | ||
| # this test is flaky when state duraiton is low. | ||
| # Since increasing state duration significantly would als slow down |
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.
nit: als -> also
| # this test is flaky when state duraiton is low. | ||
| # Since increasing state duration significantly would als slow down | ||
| # the test suite, we are retrying once on failure as a mitigation. | ||
| @retry(reraise=True, stop=stop_after_attempt(2)) |
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 try a total of 2 or 3 times? I recommend 3 if that is not the case already.
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.
This gives the test two attempts total to pass. Originally, I intentionally set a low amount of retries, in case there is some issue we may want to catch, related to original purpose of this test. Increasing to 3.
aaltay
left a comment
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 can merge after tests pass. Thank you!
Follow this checklist to help us incorporate your contribution quickly and easily:
[BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replaceBEAM-XXXwith the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.It will help us expedite review of your Pull Request if you tag someone (e.g.
@username) to look at it.Post-Commit Tests Status (on master branch)