chore(ci): shrink check.yml disk footprint to avoid runner ENOSPC #96
No reviewers
Labels
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
psa-systems/bunyip!96
Loading…
Reference in a new issue
No description provided.
Delete branch "chore/check-ci-disk-footprint"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Three consecutive bunyip-upgrade PRs hit
No space left on deviceon the runner with the same signature: ENOSPC on/workspace/psa-systems/bunyip/target/...and/tmp/cc*.s, then a cascade of LLVM SIGSEGV / BFD assertion failures downstream of the disk filling. The bunyip-oidc silent-SSO PR, the mokosh-apps onboarding PR, and the bunyip-upgrade-05-toast / -08-high-contrast PRs all failed identically. The host has 100GB+ free at root; the runner allocation fills up because each PR job'starget/is 10-15GB of-C debuginfo=2artefacts plus a separate incremental cache.Two env vars on the check job:
CARGO_PROFILE_DEV_DEBUG=line-tables-onlykeeps the bits CI actually uses (readable test-panic frames, rustc backtraces) while dropping the full DWARF die-info that bloats.rmeta/.rlib. Cutstarget/size ~50% with zero impact on fmt + clippy +cargo build --locked+cargo test --lib.CARGO_INCREMENTAL=0removes the per-job incremental dep tree. Incremental wins nothing on CI (every run starts from the rust-cache restore, not from a hot incremental cache) and costs significant disk. Disabling it drops another chunk.Combined effect: the per-job disk footprint roughly halves, which is enough headroom to keep consecutive PR jobs from racing each other to ENOSPC. If the problem returns, the next escalation is
--profile ciwithdebug = false, but the env-var pair is the smallest change that addresses the immediate failure.Not blocking on any single PR; lands as its own chore so the next PR through CI inherits the smaller footprint regardless of which bunyip-upgrade branch is being reviewed.