Skip to content

Build the workspace crates with line tables only in dev builds - #498

Merged
yansfil merged 1 commit into
mainfrom
ci/workspace-line-tables
Oct 5, 2026
Merged

yansfil merged 1 commit into
mainfrom
ci/workspace-line-tables

Conversation

@yansfil

@yansfil yansfil commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

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 in Cargo.toml ([profile.dev.package.<crate>], which the test profile inherits): a panic's backtrace keeps its files and lines; dependencies keep the default.
docs/BUILD.md records it beside incremental = false.

Review

  • 판단해 주세요: this also applies to local debug builds, so a debugger sees line tables but no variables in the workspace crates; it is the same trade as incremental = false for worktrees that are built a few times and discarded.
  • 판단해 주세요: a crate added to members without 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

  • 확인한 것: locally, with dependencies held fresh, a per-member override rebuilt only the workspace crate (22 dependencies Fresh), and rebuilding the workspace crates under hided took 22 s against 25-26 s with full debug info (two rounds each, 14-core Mac).
  • 확인한 것 (before): medians of the last 22 successful verify runs: desktop e2e CLI build 84 s, web e2e windows hided build 134 s, web e2e macos hided build 88 s, build hided linux 60 s; windows check 9.5 min after Build the Windows test binaries once in windows check #496.
  • 확인한 것 (after): this pull request's verify run 37290484535, one sample against the medians of 21-23 runs:
job: step before (median) after
windows check: hided, kit, hooks, real_herdr and ports steps (compile included) 356 s 301 s
windows check: job 11.3 min 9.4 min
web e2e windows: build hided 134 s 118 s
web e2e macos: build hided 88 s 59 s
desktop e2e: CLI build / mailbox step 84 s / 126 s 78 s / 115 s
build hided linux: build 60 s 51 s
rust workspace: test the planned crates (full plan) 156 s 156 s

No dependency compiled in that run (every Compiling line in the windows check, desktop e2e, web e2e windows and web e2e macos logs names a workspace crate), so the restored caches stayed valid.
cargo check steps do not emit debug info and stay the same (windows check workspace check 80 s median, 78 s here).

  • 확인하지 못한 것: one sample; step times on these runners vary by about 10 s between runs, so the 6-11 s differences (desktop CLI build, Linux build) are within noise and the 29-55 s ones are not.

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.
@yansfil
yansfil merged commit 4f3b05b into main Oct 5, 2026
28 checks passed
@yansfil
yansfil deleted the ci/workspace-line-tables branch October 5, 2026 10:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant