-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
disable flaky unit tests [NET-5042] #18365
Conversation
a87365f
to
ae7ae8b
Compare
Hm, I'm not sure this retry approach will work. Whereas |
In In Given these issues, I'm going back to draft |
I made an attempt to convert flaky tests to using |
2f26b83
to
bb693d2
Compare
Back to disable only approach. |
This pull request has been automatically flagged for inactivity because it has not been acted upon in the last 60 days. It will be closed if no new activity occurs in the next 30 days. Please feel free to re-open to resurrect the change if you feel this has happened by mistake. Thank you for your contributions. |
Closing due to inactivity. If you feel this was a mistake or you wish to re-open at any time in the future, please leave a comment and it will be re-surfaced for the maintainers to review. |
Description
Postulate: flaky tests are net-negative value. Can we even really trust that their positive results are valid?
We should ideally fix flaky tests, obviously. But IME tests are flaky due to hard-to-reproduce timing bugs that only happen in CI.
What should the cutoff be to consider a test "flaky"? I arbitrarily decided 10%.
Dashboard
Abandoned Approaches
In #18424, I actually tried to fix these flaky tests by throwing some retries at them without really understanding the problem. Many are still flaky.
In https://github.com/hashicorp/consul/compare/retry-flaky (branched from a former commit of this branch), I tried to just wrap the test function body in a retry. That doesn't quite work for a few reasons, and would actually require more extensive edits.
PR Checklist