Skip to content

Commit

Permalink
Retry tests in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
9999years committed Oct 9, 2023
1 parent 25684ce commit 70dbca5
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .config/nextest.toml
Original file line number Diff line number Diff line change
@@ -1,16 +1,23 @@
[test-groups]
# https://nexte.st/book/configuration.html

[test-groups.serial-integration]
# Run integration tests serially.
# We only apply this setting in the `ci` profile; the CI builders are small
# enough that running multiple integration tests at the same time actually
# makes the entire test suite complete slower.
serial-integration = { max-threads = 1 }
max-threads = 1

[profile.ci]
# Print out output for failing tests as soon as they fail, and also at the end
# of the run (for easy scrollability).
failure-output = "immediate-final"
# Do not cancel the test run on the first failure.
fail-fast = false
# The Garnix CI builders run in some weird virtual filesystem that messes with
# `notify`. Even with sleeps before writing and poll-based notifications,
# sometimes `notify` misses events (this is rare, maybe 1 in 50 test runs).
# Retry tests if they fail in CI to mitigate this.
retries = 3

[[profile.ci.overrides]]
# `kind(test)` means integration tests in the `../tests/` directory.
Expand Down

0 comments on commit 70dbca5

Please sign in to comment.