Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

No flaky tests - make all tests run in a reliable way; V2 #2135

Merged
merged 4 commits into from Mar 16, 2023

Conversation

ahlinc
Copy link
Contributor

@ahlinc ahlinc commented Mar 16, 2023

There is a set of tests that depend on a timeout or a random seed that controls edits in corpus tests. All such tests are flaky and from time to time fail CI in unexpected places on random PR branches or on the master branch or even during a release process 馃く.

There was an attempt to fix tests reliability:

This PR completely solves the issue by introducing several proc macros that run all flaky tests with 10 retries.


Changes:
ddb0af9 test: use random SEED numbers
This is needed to omit occurrences of the same seed in a sequence of
following seeds due to the reason of that two initial seeds are very
close if based on unix epoch seconds.

3aeef44 test: run all corpus tests with 10 retries
588549c test: run test_parsing_with_a_timeout with 10 retries
62f8c43 test: add retry and test_with_seed proc macros

This is needed to omit occurrences of the same seed in a sequence of
following seeds due to the reason of that two initial seed are very
close if based on unix epoch seconds.
@ahlinc ahlinc merged commit 2636f00 into master Mar 16, 2023
3 checks passed
@ahlinc ahlinc deleted the no-flaky-tests branch March 16, 2023 13:48
@ahlinc ahlinc mentioned this pull request Apr 4, 2023
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant