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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use cargo nextest when running tests in CI #4229

Merged
merged 7 commits into from
Dec 8, 2023
Merged

Use cargo nextest when running tests in CI #4229

merged 7 commits into from
Dec 8, 2023

Conversation

Michael-F-Bryan
Copy link
Contributor

@Michael-F-Bryan Michael-F-Bryan commented Sep 27, 2023

It's a well-known problem that Wasmer contains many flaky tests, and it's not uncommon to need to restart a CI run 2 or 3 times before tests will pass. For example, this CI run from #4224 took 5 restarts before all the create-exe tests would pass.

This PR switches from cargo test to cargo nextest and enables automatic retries for some known flaky tests. I've deliberately not added a blanket retries = 3 because this lets us track roughly which tests are flaky. The intention is that if you are working on a PR and notice a flaky test, you'll explicitly add it to the set of overrides in .config/nextest.toml.

This won't fix issues like note: /usr/bin/ld: final link failed: No space left on device when our cache grows so big it fills up the disk, but hopefully it'll help mask the flakiness a bit better.

@Michael-F-Bryan Michael-F-Bryan marked this pull request as ready for review September 27, 2023 04:58
@Michael-F-Bryan
Copy link
Contributor Author

@syrusakbary this PR is ready to merge. We just need to remove the requirement for "Build and Test (wasmer-web)" to pass because that CI job has been removed.

@Michael-F-Bryan Michael-F-Bryan merged commit d4a2121 into master Dec 8, 2023
52 checks passed
@Michael-F-Bryan Michael-F-Bryan deleted the nextest branch December 8, 2023 15:31
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.

4 participants