Use nextest profiles to configure CI (#17220)

This centralises the configuration and allows certain overrides to be CI
specific.
This commit is contained in:
Tomasz Kramkowski
2025-12-29 13:13:43 +00:00
committed by GitHub
parent 543f1f3f59
commit c19e22fb0b
2 changed files with 27 additions and 3 deletions

View File

@@ -3,6 +3,30 @@
# Terminate after 120s as a stop-gap measure to terminate on deadlock.
slow-timeout = { period = "10s", terminate-after = 12 }
[profile.ci-linux]
slow-timeout = { period = "10s", terminate-after = 12 }
test-threads = 20
status-level = "skip"
final-status-level = "slow"
failure-output = "immediate-final"
fail-fast = false
[profile.ci-macos]
slow-timeout = { period = "10s", terminate-after = 12 }
test-threads = 12
status-level = "skip"
final-status-level = "slow"
failure-output = "immediate-final"
fail-fast = false
[profile.ci-windows]
slow-timeout = { period = "10s", terminate-after = 12 }
test-threads = 20
status-level = "skip"
final-status-level = "slow"
failure-output = "immediate-final"
fail-fast = false
[test-groups]
serial = { max-threads = 1 }

View File

@@ -290,7 +290,7 @@ jobs:
--cargo-profile fast-build \
--features python-patch,native-auth,secret-service \
--workspace \
--status-level skip --failure-output immediate-final --no-fail-fast -j 20 --final-status-level slow
--profile ci-linux
cargo-test-macos:
timeout-minutes: 20
@@ -333,7 +333,7 @@ jobs:
--no-default-features \
--features python,python-managed,pypi,git,git-lfs,performance,crates-io,native-auth,apple-native \
--workspace \
--status-level skip --failure-output immediate-final --no-fail-fast -j 12 --final-status-level slow
--profile ci-macos
cargo-test-windows:
timeout-minutes: 15
@@ -389,7 +389,7 @@ jobs:
--no-default-features \
--features python,pypi,python-managed,native-auth,windows-native \
--workspace \
--status-level skip --failure-output immediate-final --no-fail-fast -j 20 --final-status-level slow
--profile ci-windows
# Separate jobs for the nightly crate
windows-trampoline-check: