mirror of
https://github.com/pnpm/pnpm.git
synced 2026-06-28 01:45:30 -04:00
The Rust CI test job's `cargo nextest` build holds a full set of `--all-targets` debug binaries for the whole workspace (~60 crates plus heavy C deps such as aws-lc-sys, ring, libsql-ffi, and tree-sitter) in target/. That had grown close to the hosted ubuntu runner's free-disk ceiling even after the fixed `Free up runner disk space` step, and a run crossed it: the linker died with "No space left on device" while building an unrelated crate's test binary (macOS and Windows were unaffected). Build the test artifacts with line-tables-only debug info via job-level CARGO_PROFILE_DEV_DEBUG / CARGO_PROFILE_TEST_DEBUG env. This drops most of the debuginfo bytes that fill target/ while keeping panic backtraces file:line-accurate. Setting it in the workflow rather than Cargo.toml leaves local `just test` builds with full debug info.