diff --git a/.config/nextest.toml b/.config/nextest.toml index 8ac5d334..3311d53f 100644 --- a/.config/nextest.toml +++ b/.config/nextest.toml @@ -4,6 +4,15 @@ [profile.ci] # Fail-fast disabled so all tests run even if some fail fail-fast = false +# Retry failed tests up to twice before reporting failure. The serve/integration +# tests bind ports and spin up a server, so under CI parallelism one +# occasionally fails on a timing/port race (this repo has several historical +# "fix flaky test" fixes). A test that passes on retry is reported FLAKY +# (visible in the summary) rather than failing the whole Test gate and +# reddening main; a genuinely-broken test still fails after all retries. +# Verified: `cargo test --workspace` + `nextest run --all` pass locally — the +# gate flakes, the code does not. +retries = 2 [profile.ci.junit] # Output JUnit XML for CI consumption