Skip to content

Commit 9438cdb

Browse files
authored
ci: terminate a hung test after 12 min so it retries instead of hanging 6h (#1031)
1 parent b37ae1e commit 9438cdb

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎.config/nextest.toml‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,9 @@ failure-output = "immediate-final"
1919
success-output = "never"
2020
# Don't stop on first failure - run all tests
2121
fail-fast = false
22+
# Kill a test that has been slow for 12 minutes and let `retries` re-run it.
23+
# Without this, a heavy e2e test that stalls (e.g. a synchronous DB write
24+
# blocking the single-thread runtime under CI I/O contention) runs until the
25+
# 6h GitHub job cap instead of failing and retrying. Legitimate e2e tests
26+
# finish well under 12 minutes, so this only fires on a genuine hang.
27+
slow-timeout = { period = "60s", terminate-after = 12 }

0 commit comments

Comments
 (0)