Repository navigation
ci(pacquet): shrink test build debuginfo to avoid ENOSPC on the ubuntu runner - #12665
Conversation
…u runner 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.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe Rust CI workflow’s ChangesCI workflow debug profile settings
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Suggested labels
Suggested reviewers
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
PR Summary by QodoShrink Rust CI test debuginfo to prevent ENOSPC on Ubuntu runners Description
Diagram
High-Level Assessment
Files changed (1)
|
Code Review by Qodo
1. Stale target cache restored
|
|
Code review by qodo was updated up to the latest commit 682423d |
Summary
Follow-up to the
pacquet audit signaturesPR, where the merge-queueRust CI / Test / ubuntujob failed with:The failure is disk exhaustion, not a code error — macOS and Windows passed, and it died linking an unrelated crate's test binary. The
cargo nextestbuild holds a full set of--all-targetsdebug binaries for the whole workspace (~60 crates plus heavy C deps likeaws-lc-sys,ring,libsql-ffi,tree-sitter) intarget/, which has grown close to the hosted ubuntu runner's free-disk ceiling. The existingFree up runner disk spacestep frees a fixed ~25 GB, buttarget/had crept up to where a run can still cross ENOSPC mid-link.This builds the test artifacts with
line-tables-onlydebug info (via job-levelCARGO_PROFILE_DEV_DEBUG/CARGO_PROFILE_TEST_DEBUG), which drops most of the debuginfo bytes that filltarget/while keeping panic backtraces file:line-accurate. It's set in the workflow rather thanCargo.toml, so localjust testkeeps full debug info.Attacking the consumer (
target/size) rather than freeing more host space addresses the growth directly; if headroom gets tight again later, freeing more host space is the next lever.Squash Commit Body
Checklist
Written by an agent (Claude Code, claude-opus-4-8).
Summary by CodeRabbit