From 0dbbe8aa65512f290a74a7468d7da11f766307cb Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 6 Nov 2026 20:23:56 +0000 Subject: [PATCH] ci(mutation): build the mutants without debug info; print the disk The cargo-mutants job has been stopped by the runner ("received a shutdown signal") 14 to 20 minutes in, five master runs in a row, before any result. Measured on 2026-11-06 with the same flags (cargo mutants -j 2 --timeout 60 --copy-target=true, 4 CPUs, 15 GB of memory): memory never below 7 GB available, but target is 4.0 GB and the two build copies 9 GB, against the 14 GB disk of a standard runner (GitHub docs; the runner's own free space was not measured). In 16 minutes 150 of 224 mutants ran: 137 caught, 0 missed, 2 timeouts, 11 unviable. Without debug info, which mutation testing does not use, target is 1.7 GB (measured). CARGO_PROFILE_DEV_DEBUG also changes rust-cache's key (its default env-vars prefixes include CARGO), so no debug build is restored. The job now prints the disk before and after, so the next run shows whether the disk was the limit. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_013Rdii6QU3MVeyCefPEk5AL --- .github/workflows/mutation.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/mutation.yml b/.github/workflows/mutation.yml index 000f5b7..35fa852 100644 --- a/.github/workflows/mutation.yml +++ b/.github/workflows/mutation.yml @@ -23,6 +23,12 @@ jobs: cargo-mutants: runs-on: ubuntu-24.04 timeout-minutes: 90 + env: + # Test builds without debug info, which mutation testing does not use. The job used to be + # stopped by the runner after 14-20 minutes, five runs in a row: measured on 2026-11-06 with + # the same flags, target is 4.0 GB and cargo-mutants' two build copies 9 GB, against the + # 14 GB disk of a standard runner. Without debug info target is 1.7 GB. + CARGO_PROFILE_DEV_DEBUG: "0" steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 with: @@ -58,6 +64,10 @@ jobs: if: steps.results.outputs.cache-hit != 'true' run: mkdir -p dist + - name: Disk before mutating + if: steps.results.outputs.cache-hit != 'true' + run: df -h / && (du -sh src-tauri/target || true) + # --copy-target starts every scratch build from the restored dependency cache instead of # a cold build. Scope and analysed exclusions: src-tauri/.cargo/mutants.toml. The exit code # is stored with the results so a cached run is judged like a fresh one. @@ -69,6 +79,11 @@ jobs: cargo mutants -j 2 --timeout 60 --copy-target=true echo $? > mutants.out/exit-code + # Also after a failure: whether the disk was the limit is the question this answers. + - name: Disk after mutating + if: always() && steps.results.outputs.cache-hit != 'true' + run: df -h / + # Saved when the gate fails too: a measurement stays a measurement for this commit. # A run that did not finish (baseline failure, crash) is not saved. - name: Save this commit's mutation results