Skip to content

Commit

Permalink
test(ci): Exponential backoff when retrying flaky tests.
Browse files Browse the repository at this point in the history
This patch changes the backoff strategy from `fixed` to `exponential`
when a flaky test is retried. The `count` value is also updated to
3. Finally, we try to avoid the thundering herd problems with `jitter
= true`.
  • Loading branch information
Hywan committed Sep 7, 2023
1 parent 9174f12 commit f08524b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .config/nextest.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@

[profile.default]
retries = 2
retries = { backoff = "exponential", count = 3, delay = "1s", jitter = true }
# kill the slow tests if they still aren't up after 180s
slow-timeout = { period = "60s", terminate-after = 3 }

0 comments on commit f08524b

Please sign in to comment.