mirror of
https://github.com/fabro-sh/fabro.git
synced 2026-08-28 05:27:41 +00:00
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:
parent
ad8db228db
commit
297a591fd2
2 changed files with 9 additions and 2 deletions
|
|
@ -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"
|
||||
4
.github/workflows/rust.yml
vendored
4
.github/workflows/rust.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue