You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Testing: cap every Rust test at 8s, document the two exceptions
Nextest's default `slow-timeout` was `60s × terminate-after=2` (= 120 s) — the same cap that let a stuck `accent_color_linux::tests::read_accent_color_returns_valid_hex` burn 4 days of red main CI. Matches the Playwright E2E suite's 8 s convention.
Policy lives at the top of `.config/nextest.toml`:
- Default: `period = 8s, terminate-after = 1` (hard kill after 8 s of wall-clock).
- Exceptions need an `[[profile.default.overrides]]` block with a per-test filter and a comment explaining WHY the test legitimately needs more.
Two exceptions justified inline:
- `smb_integration_*` (Docker SMB integration tests): 30 s. Each test pays a real SMB session-setup + auth + network round-trip; pathological-case tests intentionally probe slow behavior.
- `error_reporter::tests::cap_bundle_keeps_newest_lines_and_manifest` + `cap_bundle_prefers_newer_files`: 30 s. They build a 5+ MB compressed zip from 200 000 synthetic log lines to pin the headline regression. Sub-2 s on a quiet machine, but contended runs (50 parallel checks) push past 8 s.
0 commit comments