Repository navigation
Build the workspace crates with line tables only in dev builds - #498
Merged
Merged
Conversation
Full debug info is most of what a debug build of the workspace crates writes and links; line tables keep a panic's backtrace readable. Only the workspace members change, so CI's cached dependency builds stay valid.
This was referenced Oct 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Every CI job that runs end-to-end tests or Rust tests compiles the workspace's own crates on each run: rust-cache holds the dependencies, and cargo rebuilds the workspace members after a fresh checkout.
Those builds write full debug info, which is most of what a debug build of them writes and links.
This sets
debug = "line-tables-only"for each workspace member inCargo.toml([profile.dev.package.<crate>], which thetestprofile inherits): a panic's backtrace keeps its files and lines; dependencies keep the default.docs/BUILD.mdrecords it besideincremental = false.Review
incremental = falsefor worktrees that are built a few times and discarded.memberswithout its own entry builds with full debug info (slower only); the alternative,[profile.dev] debug = "line-tables-only"for everything, would change every dependency's build and miss every CI cache once.Evidence
Fresh), and rebuilding the workspace crates underhidedtook 22 s against 25-26 s with full debug info (two rounds each, 14-core Mac).desktop e2eCLI build 84 s,web e2e windowshided build 134 s,web e2e macoshided build 88 s,build hided linux60 s;windows check9.5 min after Build the Windows test binaries once in windows check #496.windows check: hided, kit, hooks, real_herdr and ports steps (compile included)windows check: jobweb e2e windows: build hidedweb e2e macos: build hideddesktop e2e: CLI build / mailbox stepbuild hided linux: buildrust workspace: test the planned crates (full plan)No dependency compiled in that run (every
Compilingline in thewindows check,desktop e2e,web e2e windowsandweb e2e macoslogs names a workspace crate), so the restored caches stayed valid.cargo checksteps do not emit debug info and stay the same (windows checkworkspace check 80 s median, 78 s here).