ci: run nextest with --profile ci for looser timeouts on CI runners

Adds a ci nextest profile (30s slow-timeout, terminate-after 4, 2s leak-
timeout) and wires rust.yml's test and test-macos jobs to use it. Local
invocations keep using the tight default profile.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Bryan Helmkamp 2026-04-17 08:09:54 -04:00
parent ad8db228db
commit 297a591fd2
No known key found for this signature in database
2 changed files with 9 additions and 2 deletions

View file

@ -27,3 +27,10 @@ leak-timeout = "500ms"
# E2E (ignored) tests: flag SLOW after 10s, hard-kill after 30s
slow-timeout = { period = "10s", terminate-after = 3 }
leak-timeout = "500ms"
[profile.ci]
# CI runners are slower and more variable than dev machines; give tests room
# before flagging them as hung. Does not inherit default's per-package
# overrides — CI uses one uniform timeout for every test.
slow-timeout = { period = "30s", terminate-after = 4 }
leak-timeout = "2s"

View file

@ -77,7 +77,7 @@ jobs:
with:
cache-on-failure: true
- uses: taiki-e/install-action@773334c0e05d7e699e4d78234494308223f3a2cf # nextest
- run: cargo nextest run --workspace --status-level slow
- run: cargo nextest run --workspace --status-level slow --profile ci
test-macos:
name: Test (macOS)
@ -92,4 +92,4 @@ jobs:
with:
cache-on-failure: true
- uses: taiki-e/install-action@773334c0e05d7e699e4d78234494308223f3a2cf # nextest
- run: cargo nextest run --workspace --status-level slow
- run: cargo nextest run --workspace --status-level slow --profile ci