CI: release build with line tables; xcl.exe and xcl.pdb kept on main #600

Closed
github-bot wants to merge 1 commit from gh-pr/600/head into gh-pr/600/base
Owner

@⁠Kaairim on GitHub · 2026-11-24 02:19 UTC · original
Kaairim:release-profile → main · +52 −0 · 2 files · 1 commits · closed without merging

Regression runs use target\release\xcl.exe (scripts/smoke.ps1), but CI only builds debug, so a release-only build error first shows in the maintainer's batch. Crash lines also give addresses as module+0x… with no PDB to turn them into lines (#477, #498, #534).

What is in it

  • Cargo.toml: [profile.release] debug = "line-tables-only" – the linker writes xcl.pdb next to xcl.exe; line tables do not change the generated code
  • .github/workflows/ci.yml: a release job (Windows): cargo build --release -p xcl, fails if xcl.pdb is missing; on pushes to main it keeps xcl.exe and xcl.pdb as the run's artifact (14 days). PRs build but upload nothing: that would be a build of unreviewed code

Tested

  • Windows 11 (26300); not built locally (no Rust toolchain on this machine). The job's run on this PR is the build check

Not tested

  • The release build, the PDB's presence and the binary's size (larger file, debug info only) – first seen on CI
  • No change to crates/xcl/src, so no regression run; the generated code should be identical, but I did not compare binaries

AI use

  • Claude Code with Claude Opus 5.5: found the gap while analysing the repository, wrote the change and this description; a second Claude Opus 5.5 agent reviewed the diff. I read every line.

Improvements by William "kaairim" Deivid (wdcore).

🤖 Generated with Claude Code

**@⁠Kaairim** on GitHub · 2026-11-24 02:19 UTC · [original](https://github.com/xcl-dev/xcl/pull/600) `Kaairim:release-profile` → `main` · +52 −0 · 2 files · 1 commits · closed without merging Regression runs use `target\release\xcl.exe` (scripts/smoke.ps1), but CI only builds debug, so a release-only build error first shows in the maintainer's batch. Crash lines also give addresses as `module+0x…` with no PDB to turn them into lines (#477, #498, #534). **What is in it** - `Cargo.toml`: `[profile.release] debug = "line-tables-only"` – the linker writes `xcl.pdb` next to `xcl.exe`; line tables do not change the generated code - `.github/workflows/ci.yml`: a `release` job (Windows): `cargo build --release -p xcl`, fails if `xcl.pdb` is missing; on pushes to main it keeps `xcl.exe` and `xcl.pdb` as the run's artifact (14 days). PRs build but upload nothing: that would be a build of unreviewed code **Tested** - Windows 11 (26300); **not built** locally (no Rust toolchain on this machine). The job's run on this PR is the build check **Not tested** - The release build, the PDB's presence and the binary's size (larger file, debug info only) – first seen on CI - No change to `crates/xcl/src`, so no regression run; the generated code should be identical, but I did not compare binaries **AI use** - Claude Code with Claude Opus 5.5: found the gap while analysing the repository, wrote the change and this description; a second Claude Opus 5.5 agent reviewed the diff. I read every line. Improvements by William "kaairim" Deivid (wdcore). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Regression runs use target\release\xcl.exe, but CI only built debug, so
a release-only build error reached the maintainer's batch. The new job
builds release; on pushes to main it keeps xcl.exe and its PDB as the
run's artifact. [profile.release] debug = "line-tables-only" makes the
PDB, which turns the module+0x... addresses of crash lines into files and
lines; it does not change the generated code.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:26:45 +00:00
github-bot closed this pull request 2026-11-26 04:26:45 +00:00
Author
Owner

@⁠theaustinayers on GitHub · 2026-11-24 03:57 UTC · original

A local build of this on Windows, since the description says it was not built. Written with Claude Code (Claude Fable 5.2) from builds on my machine.

Tested

  • Windows 11 build 26300, rustc 1.100.0, cargo build --release -p xcl at this PR's merge base and at its head 52d5f5f (same target directory, built one after the other).
  • Both build. With debug = "line-tables-only" the profile line reads optimized + debuginfo and the build took 48 s here against 27 s.
  • xcl.exe: 6 664 192 bytes at the base, 6 662 144 bytes with this PR. The two files are not byte-identical (their hashes differ); I did not compare the code sections.
  • xcl.pdb: 3 878 912 bytes at the base (one is written there already, without line tables), 22 056 960 bytes with this PR.

Not tested

  • The new release job in ci.yml (it runs on GitHub, not here) and its artifact upload.
  • Whether a crash address resolves to a file and line with the new PDB: I built it, I did not symbolize with it.
  • A title run with the binary built this way.
**@⁠theaustinayers** on GitHub · 2026-11-24 03:57 UTC · [original](https://github.com/xcl-dev/xcl/pull/600#issuecomment-7121572748) A local build of this on Windows, since the description says it was not built. Written with Claude Code (Claude Fable 5.2) from builds on my machine. **Tested** - Windows 11 build 26300, rustc 1.100.0, `cargo build --release -p xcl` at this PR's merge base and at its head 52d5f5f (same target directory, built one after the other). - Both build. With `debug = "line-tables-only"` the profile line reads `optimized + debuginfo` and the build took 48 s here against 27 s. - `xcl.exe`: 6 664 192 bytes at the base, 6 662 144 bytes with this PR. The two files are not byte-identical (their hashes differ); I did not compare the code sections. - `xcl.pdb`: 3 878 912 bytes at the base (one is written there already, without line tables), 22 056 960 bytes with this PR. **Not tested** - The new `release` job in `ci.yml` (it runs on GitHub, not here) and its artifact upload. - Whether a crash address resolves to a file and line with the new PDB: I built it, I did not symbolize with it. - A title run with the binary built this way.
Author
Owner

@⁠raylitebull on GitHub · 2026-11-24 10:42 UTC · original

Closing as superseded by #713, which has already been merged into main.

**@⁠raylitebull** on GitHub · 2026-11-24 10:42 UTC · [original](https://github.com/xcl-dev/xcl/pull/600#issuecomment-7129148474) Closing as superseded by #713, which has already been merged into `main`.

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.