From 297a591fd2a3adc162e7030614e54e3fff7fe1d9 Mon Sep 17 00:00:00 2001 From: Bryan Helmkamp Date: Fri, 17 Apr 2026 08:09:54 -0400 Subject: [PATCH] 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) --- .config/nextest.toml | 7 +++++++ .github/workflows/rust.yml | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.config/nextest.toml b/.config/nextest.toml index b3a7f9573..0978c7c48 100644 --- a/.config/nextest.toml +++ b/.config/nextest.toml @@ -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" \ No newline at end of file diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index be41cd12a..e12efe38a 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -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