Repository navigation
Backlog
Description
Summary
All three workflows on 1a0bbe3 build only the debug profile:
.github/workflows/ci.ymlruns./scripts/test.ps1 --skip test_title_runs_and_game_folder_is_untouched, andscripts/test.ps1runscargo build --workspaceandcargo test --workspace -- --test-threads=4, both debug..github/workflows/pr-check.ymlreads a description and a file list; it compiles nothing..github/workflows/stale.ymlis the stale bot.
No --release anywhere in the three files or in scripts/test.ps1. Meanwhile the release build is the one everything else is measured in:
scripts/smoke.ps1defaults totarget\release\xcl.exeand tells the contributor tocargo build --release -p xcl, so everyxcl-smokeblock in a PR description - the numbers the merge gate compares - comes from a build CI has never made;[profile.release] debug = 2in the rootCargo.tomlexists so release-only crashes can be resolved, which says release is the build people diagnose;crates/xcl/build.rsadds the/HIGHENTROPYVA:NOand--disable-high-entropy-valink arguments for the binary (Memory: link xcl.exe without high-entropy ASLR so title memory stays under 2^40 #631), and the PE-header test is the only thing that sees them.
What that leaves unseen:
- code under
#[cfg(not(debug_assertions))], anddebug_assert!-guarded invariants, is never compiled by CI; a type error there is caught by the first contributor who runscargo build --releasefor a smoke block, not by the PR; - overflow behaviour and optimisation-level-only failures are debug-tested only, while the cache identity, the translated output and every regression number come from release;
- the release link step itself - the GNU
ldpath in particular, which is where Memory: link xcl.exe without high-entropy ASLR so title memory stays under 2^40 #631's directive had to be added twice - runs only on contributor machines; - and Build: pin the Rust toolchain and enforce Cargo.lock in CI and scripts/test.ps1 #2214's
--lockedenforcement, once it lands inscripts/test.ps1, still would not cover the release build.
Suggested fix
One step in ci.yml after Build and test, building the binaries only (not the tests), so the cost stays a few minutes:
- name: Build the release binary
run: cargo build --release -p xcl --binsThe existing actions/cache@v4 step already carries target, so the release artifacts are cached with the debug ones. If the 45-minute job timeout is a concern, this can be its own job so it does not extend the test job.
Not #2214 or #2232
- Build: pin the Rust toolchain and enforce Cargo.lock in CI and scripts/test.ps1 #2214 is the toolchain pin and
--lockedin CI andscripts/test.ps1; it says nothing about the profile. - PR checks: the smoke comparison accepts two runs from different GPUs, drivers or build profiles #2232 is
pr_check.pynot noticing that a PR's smoke block came from a different build profile than main's - a check-side hole. This is the CI side: the profile is never built at all.
Not tested
- Nothing run:
1a0bbe3was read through the API. The "no--release" claim is a read of the three workflow files andscripts/test.ps1; the release-only paths listed are the usual Rust ones, not a failure I reproduced.
AI use
- Claude (Opus 5.5) read the three workflows,
scripts/test.ps1,scripts/smoke.ps1and the rootCargo.tomlon1a0bbe3, and wrote this report; the human account checked the files before opening it.
Metadata
Metadata
Assignees
Labels
No labels
Activity
Creaa commentedon Nov 25, 2026
I'm taking this. I'll add a release build of the xcl binary to the existing Windows CI job and verify the command locally on MSVC.
itsonewi commentedon Nov 25, 2026
Thanks @Creaa. Two notes from reading the workflow while writing this, in case they save a round trip:
cargo build --release -p xcl --binsis enough - the tests are not needed for this and it keeps the step near a couple of minutes; the existingactions/cache@v4step already cachestarget, so the debug and release artefacts share a key and a cache hit survives across PRs.windows-2025,rustup default stableMSVC), so the step covers/HIGHENTROPYVA:NObut not the-Wl,--disable-high-entropy-vabranch ofbuild.rsthat Memory: link xcl.exe without high-entropy ASLR so title memory stays under 2^40 #631 had to add for the GNU toolchain. Worth one line under Not tested rather than adding a second toolchain to the job.