Skip to content

CI: no workflow builds the release profile, so every PR is validated only in the configuration nobody runs #2264

Backlog

Description

@itsonewi

Summary

All three workflows on 1a0bbe3 build only the debug profile:

  • .github/workflows/ci.yml runs ./scripts/test.ps1 --skip test_title_runs_and_game_folder_is_untouched, and scripts/test.ps1 runs cargo build --workspace and cargo test --workspace -- --test-threads=4, both debug.
  • .github/workflows/pr-check.yml reads a description and a file list; it compiles nothing.
  • .github/workflows/stale.yml is 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.ps1 defaults to target\release\xcl.exe and tells the contributor to cargo build --release -p xcl, so every xcl-smoke block in a PR description - the numbers the merge gate compares - comes from a build CI has never made;
  • [profile.release] debug = 2 in the root Cargo.toml exists so release-only crashes can be resolved, which says release is the build people diagnose;
  • crates/xcl/build.rs adds the /HIGHENTROPYVA:NO and --disable-high-entropy-va link 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:

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 --bins

The 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

Not tested

  • Nothing run: 1a0bbe3 was read through the API. The "no --release" claim is a read of the three workflow files and scripts/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.ps1 and the root Cargo.toml on 1a0bbe3, and wrote this report; the human account checked the files before opening it.

Activity

  1. Creaa commented on Nov 25, 2026

    @Creaa
    Contributor

    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.

  2. itsonewi commented on Nov 25, 2026

    @itsonewi
    Author

    Thanks @Creaa. Two notes from reading the workflow while writing this, in case they save a round trip:

    • cargo build --release -p xcl --bins is enough - the tests are not needed for this and it keeps the step near a couple of minutes; the existing actions/cache@v4 step already caches target, so the debug and release artefacts share a key and a cache hit survives across PRs.
    • CI is MSVC (windows-2025, rustup default stable MSVC), so the step covers /HIGHENTROPYVA:NO but not the -Wl,--disable-high-entropy-va branch of build.rs that 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions