From c19e22fb0bb0fd539c0274e58468f025f8c4f392 Mon Sep 17 00:00:00 2001 From: Tomasz Kramkowski Date: Mon, 29 Dec 2025 13:13:43 +0000 Subject: [PATCH] Use nextest profiles to configure CI (#17220) This centralises the configuration and allows certain overrides to be CI specific. --- .config/nextest.toml | 24 ++++++++++++++++++++++++ .github/workflows/ci.yml | 6 +++--- 2 files changed, 27 insertions(+), 3 deletions(-) diff --git a/.config/nextest.toml b/.config/nextest.toml index f60a0101b..f90bc77a3 100644 --- a/.config/nextest.toml +++ b/.config/nextest.toml @@ -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 } diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c4784d203..9466c83ef 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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: