Skip to content

ci: build without debug data on CI, where nothing reads it - #14347

Merged
cv merged 1 commit into
v1from
cv/ci-builds-without-debug-info
Nov 10, 2026
Merged

cv merged 1 commit into
v1from
cv/ci-builds-without-debug-info

Conversation

@cv

@cv cv commented Nov 10, 2026

Copy link
Copy Markdown
Collaborator

CI builds of the workspace and its tests no longer generate debug data, which roughly halves the test archives that each contract, integration, and live job downloads. Local cargo ci runs keep the developer's profile.

Problem

Workspace crates build with debug = 1, and debug sections are more than half of each test executable: in a hosted linux_arm64 contract archive, the largest test binary is 132 MiB, of which about 94 MiB is debug data. Nothing in CI reads it. No workflow or nextest profile sets RUST_BACKTRACE, and panic messages take their file and line from the panic location, not from debug data.

Change

  • On CI, where CI or GITHUB_ACTIONS is set, cargo ci passes CARGO_PROFILE_DEV_DEBUG=0 to the Cargo commands it runs, unless the caller sets that variable. CI backtraces then name functions without line numbers.
  • cargo ci sets the variable only for its own Cargo processes, not in a workflow's environment or in .cargo/config.toml, because the Rust cache key hashes both: setting it there would start fresh dependency caches, and setting it in one workflow would separate that workflow's cache key from the live jobs'. Third-party crates already build without debug data, so their cached artifacts stay valid.
  • The testing guide's CI caches section describes the setting.

Beyond CI

Locally on linux_arm64, cargo ci archive with CI=true wrote a 112 MiB contract archive, a 33 MiB integration archive, and an 85 MiB live archive, against 214, 73, and 152 MiB with debug data. Switching the variable rebuilt only workspace crates.

@cv

cv commented Nov 10, 2026

Copy link
Copy Markdown
Collaborator Author
Authoring session — opening
Field Status Value Evidence or limit
Harness recorded pi 1.5.0 (session format v3) Session metadata and harness install path
Skills recorded nemoclaw-contributor-create-pr (complete read) Tool reads to cutoff; no other skill file was read in full
Instruction files recorded AGENTS.md (injected); WRITING.md (complete read); .github/PULL_REQUEST_TEMPLATE.md (complete read); .github/SESSION_REPORT_TEMPLATE.md (complete read) Startup injection and tool reads to cutoff; internal-docs/contributing/testing.md was read only in part
Tool calls partial typescript: 155 Wrapper calls through cutoff, including failed calls; the wrapper hides nested git, gh, cargo, and file calls. The session also authored #14340 and #14345 and measured CI runs before this change.
Session window recorded 2026-11-09T19:32Z to 2026-11-10T05:38Z; 606 min First event to cutoff, including idle time; the session began with other work
Compactions recorded 0 Complete record to cutoff
Models recorded claude-opus-5-5 Model change record; no changes
Reasoning levels recorded high Thinking-level record; no changes

@cv
cv enabled auto-merge (squash) November 10, 2026 05:39
@github-actions

Copy link
Copy Markdown
Contributor

@cv
cv merged commit 37dfacd into v1 Nov 10, 2026
68 checks passed
@cv
cv deleted the cv/ci-builds-without-debug-info branch November 10, 2026 05:57
@wscurran wscurran added area: ci CI workflows, checks, release automation, or GitHub Actions chore Build, CI, dependency, or tooling maintenance v1 NemoClaw v1 branch labels Nov 12, 2026
@cv cv added this to the Roadmap: GTC DC 2026 milestone Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: ci CI workflows, checks, release automation, or GitHub Actions chore Build, CI, dependency, or tooling maintenance v1 NemoClaw v1 branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants