Skip to content

Commit 9f3df6b

Browse files
authored
ci(pacquet): shrink test build debuginfo to avoid ENOSPC on the ubuntu runner (#12665)
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.
1 parent c50c6aa commit 9f3df6b

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

‎.github/workflows/pacquet-ci.yml‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,20 @@ jobs:
7272
name: Rust CI / Test / ${{ matrix.os_label }}
7373
needs: changes
7474
if: ${{ !cancelled() && (github.event_name == 'workflow_dispatch' || needs.changes.outputs.rust == 'true') }}
75+
# Build the nextest artifacts with line-tables-only debug info. The full
76+
# `cargo nextest` build holds a complete set of `--all-targets` debug
77+
# binaries for the whole workspace (~60 crates plus heavy C deps like
78+
# aws-lc-sys, ring, libsql-ffi, and tree-sitter) in target/, which had
79+
# grown close to the hosted runner's free-disk ceiling even after the
80+
# cleanup step below — a run can cross ENOSPC mid-link (the linker dies
81+
# with "No space left on device"). Line tables keep panic backtraces
82+
# file:line-accurate while dropping most of the debuginfo bytes. Set here
83+
# in CI rather than in Cargo.toml so local `just test` keeps full debug
84+
# info. CARGO_PROFILE_DEV_DEBUG covers dependencies (built dev), _TEST_
85+
# covers the test targets.
86+
env:
87+
CARGO_PROFILE_DEV_DEBUG: line-tables-only
88+
CARGO_PROFILE_TEST_DEBUG: line-tables-only
7589
strategy:
7690
fail-fast: false
7791
matrix:

0 commit comments

Comments
 (0)