Skip to content

Commit

Permalink
Merge pull request #5300 from dpc/24-05-15-ccov-tests-timeout
Browse files Browse the repository at this point in the history
chore(ci): increase test run limits only for ccov runs
  • Loading branch information
dpc committed May 15, 2024
2 parents 3a2ff1d + f04fbf2 commit a80bd56
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
11 changes: 8 additions & 3 deletions .config/nextest.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
[profile.default]
fail-fast = true
failure-output = "immediate"
# no matter the profile, we want to kill tests that hanged on something
slow-timeout = { period = "30s", terminate-after = 4 }

Expand All @@ -7,6 +9,9 @@ slow-timeout = { period = "30s", terminate-after = 4 }
[profile.dev]

[profile.ci]
fail-fast = true
failure-output = "immediate"
slow-timeout = { period = "30s", terminate-after = 6 }
slow-timeout = { period = "30s", terminate-after = 2 }

# ccov seems MUCH slower, especially in Nix sandbox
# possibly due to writing to a shared tracing file(?)
[profile.nix-ccov]
slow-timeout = { period = "30s", terminate-after = 4 }
2 changes: 1 addition & 1 deletion nix/flakebox.nix
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ rec {
lib.concatStringsSep "\n"
(
lib.replicate times ''
env RUST_BACKTRACE=1 RUST_LOG=info,timing=debug cargo nextest run --locked --workspace --all-targets --cargo-profile $CARGO_PROFILE --profile $CARGO_PROFILE --test-threads=$(($(nproc) * 2))
env RUST_BACKTRACE=1 RUST_LOG=info,timing=debug cargo nextest run --locked --workspace --all-targets --cargo-profile $CARGO_PROFILE --profile nix-ccov --test-threads=$(($(nproc) * 2))
''
) + ''
mkdir -p $out
Expand Down

0 comments on commit a80bd56

Please sign in to comment.