CI: no workflow builds the release profile, so every PR is validated only in the configuration nobody runs #2264
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl#2264
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@itsonewi on GitHub · 2026-11-25 11:48 UTC · original
Summary
All three workflows on
1a0bbe3build 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
--releaseanywhere in the three files or inscripts/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 (#631), and the PE-header test is the only thing that sees them.What that leaves unseen:
#[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;ldpath in particular, which is where #631's directive had to be added twice - runs only on contributor machines;--lockedenforcement, once it lands inscripts/test.ps1, still would not cover the release build.Suggested fix
One step in
ci.ymlafterBuild and test, building the binaries only (not the tests), so the cost stays a few minutes:The existing
actions/cache@v4step already carriestarget, 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
--lockedin CI andscripts/test.ps1; it says nothing about the profile.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
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
scripts/test.ps1,scripts/smoke.ps1and the rootCargo.tomlon1a0bbe3, and wrote this report; the human account checked the files before opening it.@Creaa on GitHub · 2026-11-25 11:58 UTC · original
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 on GitHub · 2026-11-25 12:00 UTC · original
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 #631 had to add for the GNU toolchain. Worth one line under Not tested rather than adding a second toolchain to the job.