Build: pin Rust toolchain to 1.96.0 and enforce Cargo.lock (FIx #2214) #2285

Open
WASDeKeys wants to merge 28 commits from upstream-pr/2295 into main
WASDeKeys commented 2026-11-25 12:49:11 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by WASDeKeys on 2026-11-25T12:49:11Z.


Fixes #2214 — https://github.com/xcl-de
v/xcl/issues/2214

What is in it

  • Pin Rust toolchain to 1.96.0 and
    enforce Cargo.lock in CI and
    scripts/test.ps1 — Cargo.toml,
    Cargo.lock, rust-toolchain.toml

Tested

  • hardware (GPU + driver, CPU), Windows
    11 Home Single Language 10.0.26200,
    NVIDIA GeForce RTX 3050 6GB Laptop GPU,
    Rust 1.96.0, release
  • cargo test --workspace -- --test-threads=4: 1098 passed, 0
    failed, 26 ignored, 24 skipped
  • SKIPPED GPU tests on your adapter:
    24 (no wave64, etc.)
  • game checked: 21222967 — smoke tests
    ran on both branches with 60 seconds
    each

Regression run

  • main:
xcl-smoke v1
commit: 082944135cd2b96288470a595861fa608eee08dc
gpu: NVIDIA GeForce RTX 3050 6GB Laptop GPU
title: 2b8d9c34
seconds: 60
exit: 0x0
frames shown: 3500 (PresentX 3500)
presents per 2 s (last 3): 120 118 119
device removals: 0
crashes: 0
peak commit: 2573 MB
  • PR head (pin-rust-toolchain):
xcl-smoke v1
commit: 8bd87ea4f126ab3ec13635aef78351da2496df7f
gpu: NVIDIA GeForce RTX 3050 6GB Laptop GPU
title: 2b8d9c34
seconds: 60
exit: 0x0
frames shown: 3507 (PresentX 3507)
presents per 2 s (last 3): 120 120 120
device removals: 0
crashes: 0
peak commit: 2572 MB

Not tested

  • AMD GPUs, NVIDIA desktop GPUs,
    wave32-only GPUs

AI use

  • Claude Code with Claude Sonnet 5.5,
    helped write the PR description, ran
    tests and reviewed the diff.
<!-- greyfinch-sync:ivall/xcl:issue:5491642502 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2295). Originally posted by [WASDeKeys](https://github.com/WASDeKeys) on 2026-11-25T12:49:11Z. --- Fixes #2214 — https://github.com/xcl-de v/xcl/issues/2214 **What is in it** - Pin Rust toolchain to 1.96.0 and enforce Cargo.lock in CI and scripts/test.ps1 — `Cargo.toml`, `Cargo.lock`, `rust-toolchain.toml` **Tested** - hardware (GPU + driver, CPU), Windows 11 Home Single Language 10.0.26200, NVIDIA GeForce RTX 3050 6GB Laptop GPU, Rust 1.96.0, release - `cargo test --workspace -- --test-threads=4`: 1098 passed, 0 failed, 26 ignored, 24 skipped - `SKIPPED` GPU tests on your adapter: 24 (no wave64, etc.) - game checked: 21222967 — smoke tests ran on both branches with 60 seconds each **Regression run** - main: ``` xcl-smoke v1 commit: 082944135cd2b96288470a595861fa608eee08dc gpu: NVIDIA GeForce RTX 3050 6GB Laptop GPU title: 2b8d9c34 seconds: 60 exit: 0x0 frames shown: 3500 (PresentX 3500) presents per 2 s (last 3): 120 118 119 device removals: 0 crashes: 0 peak commit: 2573 MB ``` - PR head (`pin-rust-toolchain`): ``` xcl-smoke v1 commit: 8bd87ea4f126ab3ec13635aef78351da2496df7f gpu: NVIDIA GeForce RTX 3050 6GB Laptop GPU title: 2b8d9c34 seconds: 60 exit: 0x0 frames shown: 3507 (PresentX 3507) presents per 2 s (last 3): 120 120 120 device removals: 0 crashes: 0 peak commit: 2572 MB ``` **Not tested** - AMD GPUs, NVIDIA desktop GPUs, wave32-only GPUs **AI use** - Claude Code with Claude Sonnet 5.5, helped write the PR description, ran tests and reviewed the diff.
upstream-sync changed title from [PR #2295] Build: pin Rust toolchain to 1.96.0 and enforce Cargo.lock (#2214) to [PR #2295] Build: pin Rust toolchain to 1.96.0 and enforce Cargo.lock (FIx #2214) 2026-11-25 14:09:39 +00:00
fromthemoonx commented 2026-11-25 14:10:57 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by fromthemoonx on 2026-11-25T14:10:57Z.


Rerun on the new head a925bd1 (main 1bd9cee merged in): the merge dropped rust-version = "1.96.0" from the root Cargo.toml, so this head does not load on any toolchain. With that line put back, the whole workspace builds and passes on the pinned 1.96.0.

The merge resolved the [workspace.package] conflict with #3002's licence change by keeping license = "GPL-3.0-or-later" and losing the rust-version line. The three members still say rust-version.workspace = true, so:

error: failed to load manifest for workspace member `…\crates\xcl`
Caused by:
  error inheriting `rust-version` from workspace root manifest's `workspace.package.rust-version`
Caused by:
  `workspace.package.rust-version` was not defined

This happens with cargo +stable too, and it is probably why Build and test is red on this head.

result
a925bd1 as pushed, cargo build --workspace --locked (1.96.0 from rust-toolchain.toml) and cargo +stable metadata manifest error above
scratch: rust-version = "1.96.0" added back under [workspace.package], cargo build --workspace --locked, Rust 1.96.0 (rustc 1.96.0 (ac68faa20 2026-05-25)) builds
same, cargo test --workspace --locked --no-fail-fast -- --test-threads=4, Rust 1.96.0 2748 passed, 0 failed, 49 ignored; 29 SKIPPED lines (main 1bd9cee on stable 1.100.0 here: 2748 passed, 0 failed, 49 ignored)

So the pin still fits current main: nothing in it needs a newer compiler. Same RTX 3060 (driver 610.88), Windows 11 Pro 26300, debug.


Rerun on the head 8bd87ea: point 1 below is fixed, and the workspace builds and passes with --locked. All three members now have rust-version.workspace = true; cargo +stable metadata --no-deps gives rust_version: 1.96.0 for xcl, xcl-testtitle and testgame-mw.

result
cargo +stable test --workspace --locked --no-fail-fast -- --test-threads=4, 8bd87ea merged onto main 08db802 (clean), Rust 1.100.0 MSVC builds (--locked accepted the lockfile), 1429 passed, 0 failed, 47 ignored; 25 SKIPPED lines

RTX 3060 12 GB (driver 610.88), Windows 11 Pro 26300, debug. Not tested: a build with the pinned 1.96.0 itself (+stable was passed on purpose), the CI workflow change. The head merges main into the branch; CONTRIBUTING asks for a rebase instead.


On f5d6d40: Two points on f5d6d40, from reading the diff and checking with Cargo:

  1. rust-version has no effect yet. It is set in [workspace.package], but none of the three members inherits it: crates/xcl/Cargo.toml, tests/testtitle/Cargo.toml and tests/testgamedll/Cargo.toml have version.workspace / edition.workspace / license.workspace and no rust-version.workspace = true. cargo +stable metadata --no-deps --format-version 1 on this head gives rust_version: null for xcl, xcl-testtitle and testgame-mw, so an older compiler still fails with a compiler error instead of Cargo's "requires rustc 1.96.0". The plan in #2214 had the inheritance lines.
  2. The counts under Tested do not look like this tree. On this PR's base 1a0bbe3 with #2296 on top (which adds 2 tests), cargo test --workspace --no-fail-fast -- --test-threads=4 here gives 1252 passed, 0 failed, 46 ignored (RTX 3060, also 32-lane, 24 SKIPPED lines). The description's 1098 passed / 26 ignored is about 150 tests short of that, and its smoke block names 500578c, not the head. A rerun of scripts/test.ps1 at the head (it now passes --locked) would also show that the pinned 1.96.0 builds the whole workspace.

I did not build with 1.96.0 here (it isn't installed on this machine).

AI use: Claude Code (Claude Opus 5.5) checked the diff and ran the cargo metadata check.

<!-- greyfinch-sync:ivall/xcl:comment:7164882243 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2295#issuecomment-7164882243). Originally posted by [fromthemoonx](https://github.com/fromthemoonx) on 2026-11-25T14:10:57Z. --- **Rerun on the new head `a925bd1` (`main` `1bd9cee` merged in): the merge dropped `rust-version = "1.96.0"` from the root `Cargo.toml`, so this head does not load on any toolchain. With that line put back, the whole workspace builds and passes on the pinned 1.96.0.** The merge resolved the `[workspace.package]` conflict with #3002's licence change by keeping `license = "GPL-3.0-or-later"` and losing the `rust-version` line. The three members still say `rust-version.workspace = true`, so: ``` error: failed to load manifest for workspace member `…\crates\xcl` Caused by: error inheriting `rust-version` from workspace root manifest's `workspace.package.rust-version` Caused by: `workspace.package.rust-version` was not defined ``` This happens with `cargo +stable` too, and it is probably why `Build and test` is red on this head. | | result | |---|---| | `a925bd1` as pushed, `cargo build --workspace --locked` (1.96.0 from `rust-toolchain.toml`) and `cargo +stable metadata` | manifest error above | | scratch: `rust-version = "1.96.0"` added back under `[workspace.package]`, `cargo build --workspace --locked`, Rust 1.96.0 (`rustc 1.96.0 (ac68faa20 2026-05-25)`) | builds | | same, `cargo test --workspace --locked --no-fail-fast -- --test-threads=4`, Rust 1.96.0 | 2748 passed, 0 failed, 49 ignored; 29 `SKIPPED` lines (`main` `1bd9cee` on stable 1.100.0 here: 2748 passed, 0 failed, 49 ignored) | So the pin still fits current `main`: nothing in it needs a newer compiler. Same RTX 3060 (driver 610.88), Windows 11 Pro 26300, debug. --- **Rerun on the head `8bd87ea`: point 1 below is fixed, and the workspace builds and passes with `--locked`.** All three members now have `rust-version.workspace = true`; `cargo +stable metadata --no-deps` gives `rust_version: 1.96.0` for `xcl`, `xcl-testtitle` and `testgame-mw`. | | result | |---|---| | `cargo +stable test --workspace --locked --no-fail-fast -- --test-threads=4`, `8bd87ea` merged onto `main` `08db802` (clean), Rust 1.100.0 MSVC | builds (`--locked` accepted the lockfile), 1429 passed, 0 failed, 47 ignored; 25 `SKIPPED` lines | RTX 3060 12 GB (driver 610.88), Windows 11 Pro 26300, debug. Not tested: a build with the pinned 1.96.0 itself (`+stable` was passed on purpose), the CI workflow change. The head merges `main` into the branch; CONTRIBUTING asks for a rebase instead. --- *On `f5d6d40`:* Two points on `f5d6d40`, from reading the diff and checking with Cargo: 1. **`rust-version` has no effect yet.** It is set in `[workspace.package]`, but none of the three members inherits it: `crates/xcl/Cargo.toml`, `tests/testtitle/Cargo.toml` and `tests/testgamedll/Cargo.toml` have `version.workspace` / `edition.workspace` / `license.workspace` and no `rust-version.workspace = true`. `cargo +stable metadata --no-deps --format-version 1` on this head gives `rust_version: null` for `xcl`, `xcl-testtitle` and `testgame-mw`, so an older compiler still fails with a compiler error instead of Cargo's "requires rustc 1.96.0". The plan in #2214 had the inheritance lines. 2. **The counts under Tested do not look like this tree.** On this PR's base `1a0bbe3` with #2296 on top (which adds 2 tests), `cargo test --workspace --no-fail-fast -- --test-threads=4` here gives 1252 passed, 0 failed, 46 ignored (RTX 3060, also 32-lane, 24 `SKIPPED` lines). The description's 1098 passed / 26 ignored is about 150 tests short of that, and its smoke block names `500578c`, not the head. A rerun of `scripts/test.ps1` at the head (it now passes `--locked`) would also show that the pinned 1.96.0 builds the whole workspace. I did not build with 1.96.0 here (it isn't installed on this machine). AI use: Claude Code (Claude Opus 5.5) checked the diff and ran the `cargo metadata` check.
RavenCurseBurg commented 2026-11-25 15:06:36 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by RavenCurseBurg on 2026-11-25T15:06:36Z.


Retested after the main merge at 8bd87ea4f126ab3ec13635aef78351da2496df7f. The test runner, toolchain file, root manifest, and three member manifests were byte-identical to 921e05b in Git. The three fixture runs below passed again in both PowerShell versions. Parsing the TOML confirmed the toolchain and workspace specify 1.96.0 and all three members inherit the workspace setting. This retest used fixture Cargo and Python’s TOML reader. The separate contributor report covers real Cargo metadata.

Verified the PowerShell runner at 921e05be9032cc00214a4393825b761a3b14f3b4 with a fixture cargo.cmd recording each argument list. Running scripts/test.ps1 --skip omitted in Windows PowerShell 5.1.26100.9711 and PowerShell 7.6.9 issued build --locked --workspace and test --locked --workspace -- --test-threads=4 --skip omitted. A successful run exited 0, build exit 7 stopped before the test call, and test exit 101 propagated. All three cases matched in both shells.

There is a test-only interaction with #2304 (320d27f26045). I put the two locked Cargo command lines into a private copy of that runner and ran its scripts/test-totals.tests.ps1. The existing assertion failed in both shells because it expected --workspace immediately after test. The arguments following the -- separator were correct.

One-line fixture fix based on #2304. All six runner cases passed with both original and combined command lines in both shells (24 case executions). Removing forwarding of the test arguments in a private copy still caused the assertion to fail in both shells.

Windows 11 26100.9711, i7-13700, RTX 4060. Fixture Cargo only. Rustup, actual lockfile resolution, CI and the Rust/GPU suite were outside this check. OpenAI Codex (GPT-6) ran the argument and integration checks, prepared the test patch and wrote this report.

Conflict with main 06f90c1986f4

Merging this head with main produced one conflict in the workspace Cargo.toml. The tested merge candidate keeps main’s GPL-3.0-or-later license and this PR’s rust-version = "1.96.0". I parsed the workspace and all three member manifests, checked their inherited Rust version against rust-toolchain.toml, and verified that the dependency declarations and Cargo.lock match main.

On Windows PowerShell 5.1 and PowerShell 7 I ran the merged scripts/test.ps1 with a mock Cargo. Four scenarios passed per shell: success with and without forwarded arguments, a build failure with exit 7, and a test failure with exit 101. The mock confirmed --locked on every invocation and that a failed build stopped before the test step. The existing locked-runner/native-stderr fixture from the #2370 integration also passed in each shell.

OpenAI Codex (GPT-6) prepared the merge candidate and ran these CPU-only checks on Windows 11. Actual dependency resolution, a Rust build, GPU tests and retail execution were outside this run.

<!-- greyfinch-sync:ivall/xcl:comment:7166316308 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2295#issuecomment-7166316308). Originally posted by [RavenCurseBurg](https://github.com/RavenCurseBurg) on 2026-11-25T15:06:36Z. --- **Retested after the main merge at `8bd87ea4f126ab3ec13635aef78351da2496df7f`.** The test runner, toolchain file, root manifest, and three member manifests were byte-identical to `921e05b` in Git. The three fixture runs below passed again in both PowerShell versions. Parsing the TOML confirmed the toolchain and workspace specify 1.96.0 and all three members inherit the workspace setting. This retest used fixture Cargo and Python’s TOML reader. The separate contributor report covers real Cargo metadata. Verified the PowerShell runner at `921e05be9032cc00214a4393825b761a3b14f3b4` with a fixture `cargo.cmd` recording each argument list. Running `scripts/test.ps1 --skip omitted` in Windows PowerShell 5.1.26100.9711 and PowerShell 7.6.9 issued `build --locked --workspace` and `test --locked --workspace -- --test-threads=4 --skip omitted`. A successful run exited 0, build exit 7 stopped before the test call, and test exit 101 propagated. All three cases matched in both shells. There is a test-only interaction with #2304 (`320d27f26045`). I put the two locked Cargo command lines into a private copy of that runner and ran its `scripts/test-totals.tests.ps1`. The existing assertion failed in both shells because it expected `--workspace` immediately after `test`. The arguments following the `--` separator were correct. [One-line fixture fix based on #2304](https://github.com/RavenCurseBurg/xcl/commit/6f922ece4b485b3cdc34441965658b1feeb86de3). All six runner cases passed with both original and combined command lines in both shells (24 case executions). Removing forwarding of the test arguments in a private copy still caused the assertion to fail in both shells. Windows 11 26100.9711, i7-13700, RTX 4060. Fixture Cargo only. Rustup, actual lockfile resolution, CI and the Rust/GPU suite were outside this check. OpenAI Codex (GPT-6) ran the argument and integration checks, prepared the test patch and wrote this report. **Conflict with main `06f90c1986f4`** Merging this head with main produced one conflict in the workspace `Cargo.toml`. The [tested merge candidate](https://github.com/RavenCurseBurg/xcl/commit/06a1dca2993b5d5ef2e5832c7ed61dcdfb6eec54) keeps main’s `GPL-3.0-or-later` license and this PR’s `rust-version = "1.96.0"`. I parsed the workspace and all three member manifests, checked their inherited Rust version against `rust-toolchain.toml`, and verified that the dependency declarations and `Cargo.lock` match main. On Windows PowerShell 5.1 and PowerShell 7 I ran the merged `scripts/test.ps1` with a mock Cargo. Four scenarios passed per shell: success with and without forwarded arguments, a build failure with exit 7, and a test failure with exit 101. The mock confirmed `--locked` on every invocation and that a failed build stopped before the test step. The existing locked-runner/native-stderr fixture from the #2370 integration also passed in each shell. OpenAI Codex (GPT-6) prepared the merge candidate and ran these CPU-only checks on Windows 11. Actual dependency resolution, a Rust build, GPU tests and retail execution were outside this run.
WASDeKeys commented 2026-11-25 15:07:43 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by WASDeKeys on 2026-11-25T14:15:27Z.


Two points on f5d6d40, from reading the diff and checking with Cargo:

  1. rust-version has no effect yet. It is set in [workspace.package], but none of the three members inherits it: crates/xcl/Cargo.toml, tests/testtitle/Cargo.toml and tests/testgamedll/Cargo.toml have version.workspace / edition.workspace / license.workspace and no rust-version.workspace = true. cargo +stable metadata --no-deps --format-version 1 on this head gives rust_version: null for xcl, xcl-testtitle and testgame-mw, so an older compiler still fails with a compiler error instead of Cargo's "requires rustc 1.96.0". The plan in Build: pin the Rust toolchain and enforce Cargo.lock in CI and scripts/test.ps1 #2214 had the inheritance lines.
  2. The counts under Tested do not look like this tree. On this PR's base 1a0bbe3 with D3D12.X: clamp PcCalls across frame boundaries and drop orphaned PSO jobs immediately #2296 on top (which adds 2 tests), cargo test --workspace --no-fail-fast -- --test-threads=4 here gives 1252 passed, 0 failed, 46 ignored (RTX 3060, also 32-lane, 24 SKIPPED lines). The description's 1098 passed / 26 ignored is about 150 tests short of that, and its smoke block names 500578c, not the head. A rerun of scripts/test.ps1 at the head (it now passes --locked) would also show that the pinned 1.96.0 builds the whole workspace.

I did not build with 1.96.0 here (it isn't installed on this machine).

AI use: Claude Code (Claude Opus 5.5) checked the diff and ran the cargo metadata check.

Looking into this @fromthemoonx

<!-- greyfinch-sync:ivall/xcl:comment:7164998213 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2295#issuecomment-7164998213). Originally posted by [WASDeKeys](https://github.com/WASDeKeys) on 2026-11-25T14:15:27Z. --- > Two points on `f5d6d40`, from reading the diff and checking with Cargo: > > 1. **`rust-version` has no effect yet.** It is set in `[workspace.package]`, but none of the three members inherits it: `crates/xcl/Cargo.toml`, `tests/testtitle/Cargo.toml` and `tests/testgamedll/Cargo.toml` have `version.workspace` / `edition.workspace` / `license.workspace` and no `rust-version.workspace = true`. `cargo +stable metadata --no-deps --format-version 1` on this head gives `rust_version: null` for `xcl`, `xcl-testtitle` and `testgame-mw`, so an older compiler still fails with a compiler error instead of Cargo's "requires rustc 1.96.0". The plan in [Build: pin the Rust toolchain and enforce Cargo.lock in CI and scripts/test.ps1 #2214](https://github.com/xcl-dev/xcl/issues/2214) had the inheritance lines. > 2. **The counts under Tested do not look like this tree.** On this PR's base `1a0bbe3` with [D3D12.X: clamp PcCalls across frame boundaries and drop orphaned PSO jobs immediately #2296](https://github.com/xcl-dev/xcl/pull/2296) on top (which adds 2 tests), `cargo test --workspace --no-fail-fast -- --test-threads=4` here gives 1252 passed, 0 failed, 46 ignored (RTX 3060, also 32-lane, 24 `SKIPPED` lines). The description's 1098 passed / 26 ignored is about 150 tests short of that, and its smoke block names `500578c`, not the head. A rerun of `scripts/test.ps1` at the head (it now passes `--locked`) would also show that the pinned 1.96.0 builds the whole workspace. > > I did not build with 1.96.0 here (it isn't installed on this machine). > > AI use: Claude Code (Claude Opus 5.5) checked the diff and ran the `cargo metadata` check. Looking into this @fromthemoonx
nnonno91 commented 2026-11-25 15:07:57 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by nnonno91 on 2026-11-25T14:44:16Z.


@WASDeKeys I retested the updated head 8bd87ea4f126ab3ec13635aef78351da2496df7f after the merge from main. The toolchain, manifests, and build scripts are unchanged from the revision below. I reran the checks on the same Windows/Radeon setup.

  • Without a RUSTUP_TOOLCHAIN override, cargo -V and rustc -V both reported 1.96.0. rustup show active-toolchain identified the checkout's rust-toolchain.toml, and cargo metadata --locked --no-deps --format-version 1 again reported 1.96.0 for all three members.
  • cargo build --locked --workspace succeeded.
  • cargo test --locked -p xcl --test e2e test_title_draws_with_a_root_signature_under_the_debug_layer -- --exact --nocapture --test-threads=1 with XCL_ADAPTER=AMD Radeon and XCL_NETWORK=0: 1 passed, 0 failed, 0 ignored, no logged skips. This was the bundled project test title.

The CI, retail-title and full-suite limits below also apply to this retest.


Independent Windows MSVC check of the updated head 921e05be9032cc00214a4393825b761a3b14f3b4.

Tested

  • Windows 11 25H2 build 26200.9974, Ryzen 7 9800X3D, AMD Radeon(TM) Graphics driver 32.0.21042.62, SDK DXC/DXIL 1.8.2502.11, unoptimized profile.
  • From the clean detached checkout, without a RUSTUP_TOOLCHAIN override, cargo -V selected Cargo 1.96.0 and auto-installed the pinned toolchain in the isolated Rustup directory. rustc -V reported 1.96.0. rustup show active-toolchain identified this checkout's rust-toolchain.toml as the source.
  • cargo metadata --locked --no-deps --format-version 1 reported rust_version = 1.96.0 for all three members: xcl, xcl-testtitle and testgame-mw. cargo build --locked --workspace succeeded.
  • cargo test --locked -p xcl --test e2e test_title_draws_with_a_root_signature_under_the_debug_layer -- --exact --nocapture --test-threads=1 with XCL_ADAPTER=AMD Radeon and XCL_NETWORK=0 gave 1 passed, 0 failed, 0 ignored and no skips. The bundled title completed under the debug layer.

Not tested

CI jobs, non-MSVC targets, a retail title or the full workspace suite.

AI use

OpenAI Codex (GPT-6.2 Sol) ran the checks and wrote this report.

<!-- greyfinch-sync:ivall/xcl:comment:7165735870 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2295#issuecomment-7165735870). Originally posted by [nnonno91](https://github.com/nnonno91) on 2026-11-25T14:44:16Z. --- @WASDeKeys I retested the updated head `8bd87ea4f126ab3ec13635aef78351da2496df7f` after the merge from `main`. The toolchain, manifests, and build scripts are unchanged from the revision below. I reran the checks on the same Windows/Radeon setup. - Without a `RUSTUP_TOOLCHAIN` override, `cargo -V` and `rustc -V` both reported 1.96.0. `rustup show active-toolchain` identified the checkout's `rust-toolchain.toml`, and `cargo metadata --locked --no-deps --format-version 1` again reported 1.96.0 for all three members. - `cargo build --locked --workspace` succeeded. - `cargo test --locked -p xcl --test e2e test_title_draws_with_a_root_signature_under_the_debug_layer -- --exact --nocapture --test-threads=1` with `XCL_ADAPTER=AMD Radeon` and `XCL_NETWORK=0`: 1 passed, 0 failed, 0 ignored, no logged skips. This was the bundled project test title. The CI, retail-title and full-suite limits below also apply to this retest. --- Independent Windows MSVC check of the updated head `921e05be9032cc00214a4393825b761a3b14f3b4`. **Tested** - Windows 11 25H2 build 26200.9974, Ryzen 7 9800X3D, AMD Radeon(TM) Graphics driver 32.0.21042.62, SDK DXC/DXIL 1.8.2502.11, unoptimized profile. - From the clean detached checkout, without a `RUSTUP_TOOLCHAIN` override, `cargo -V` selected Cargo 1.96.0 and auto-installed the pinned toolchain in the isolated Rustup directory. `rustc -V` reported 1.96.0. `rustup show active-toolchain` identified this checkout's `rust-toolchain.toml` as the source. - `cargo metadata --locked --no-deps --format-version 1` reported `rust_version = 1.96.0` for all three members: `xcl`, `xcl-testtitle` and `testgame-mw`. `cargo build --locked --workspace` succeeded. - `cargo test --locked -p xcl --test e2e test_title_draws_with_a_root_signature_under_the_debug_layer -- --exact --nocapture --test-threads=1` with `XCL_ADAPTER=AMD Radeon` and `XCL_NETWORK=0` gave 1 passed, 0 failed, 0 ignored and no skips. The bundled title completed under the debug layer. **Not tested** CI jobs, non-MSVC targets, a retail title or the full workspace suite. **AI use** OpenAI Codex (GPT-6.2 Sol) ran the checks and wrote this report.
WASDeKeys commented 2026-11-25 16:12:01 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by WASDeKeys on 2026-11-25T15:12:46Z.


@RavenCurseBurg @fromthemoonx @nnonno91
I am making some changes.

  • rust-version = "1.96.0" added to the workspace
    [workspace.package] in Cargo.toml
  • rust-version.workspace = true added to all three
    members (crates/xcl, tests/testtitle,
    tests/testgamedll)
  • rust-toolchain.toml created pinning 1.96.0 so the
    checkout's toolchain is the source (no
    RUSTUP_TOOLCHAIN override needed)
  • cargo metadata now reports rust_version = 1.96.0 for
    all three members (was null)
  • cargo test --workspace -- --test-threads=4: all green,
    0 failures
<!-- greyfinch-sync:ivall/xcl:comment:7166480549 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2295#issuecomment-7166480549). Originally posted by [WASDeKeys](https://github.com/WASDeKeys) on 2026-11-25T15:12:46Z. --- @RavenCurseBurg @fromthemoonx @nnonno91 I am making some changes. - rust-version = "1.96.0" added to the workspace [workspace.package] in Cargo.toml - rust-version.workspace = true added to all three members (crates/xcl, tests/testtitle, tests/testgamedll) - rust-toolchain.toml created pinning 1.96.0 so the checkout's toolchain is the source (no RUSTUP_TOOLCHAIN override needed) - cargo metadata now reports rust_version = 1.96.0 for all three members (was null) - cargo test --workspace -- --test-threads=4: all green, 0 failures
DavidM1911 commented 2026-11-25 18:04:35 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T17:29:53Z.


Verification on RTX 3060 Ti (Windows 11), branch merged with current main:

  • cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)

Thanks!

<!-- greyfinch-sync:ivall/xcl:comment:7169588134 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2295#issuecomment-7169588134). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-25T17:29:53Z. --- Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.) Thanks!
throny commented 2026-11-25 18:04:44 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by throny on 2026-11-25T17:58:37Z.


Two contributors checked independently and found that #2370 solves the same problem (for #2214) in a different way: #1607, group D104. You may want to compare them with the other author and agree on one, or say in the PR why both are needed.

This is a hint from the community triage in #1607, not a maintainer decision.

AI use: Claude Code (Claude Opus 5.5), posted by a script from the #1607 table.

<!-- greyfinch-sync:ivall/xcl:comment:7170263827 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2295#issuecomment-7170263827). Originally posted by [throny](https://github.com/throny) on 2026-11-25T17:58:37Z. --- <!-- xcl-1607-hint:D104 --> Two contributors checked independently and found that #2370 solves the same problem (for #2214) in a different way: #1607, group D104. You may want to compare them with the other author and agree on one, or say in the PR why both are needed. This is a hint from the community triage in #1607, not a maintainer decision. AI use: Claude Code (Claude Opus 5.5), posted by a script from the #1607 table.
upstream-sync closed this pull request 2026-11-25 23:08:12 +00:00
CalvyPZ commented 2026-11-25 23:09:16 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by CalvyPZ on 2026-11-25T22:44:28Z.


This PR has been marked as a duplicate and closed after multiple agreeing checks in #1607. If you believe this is incorrect please re-open with why.

<!-- greyfinch-sync:ivall/xcl:comment:7176731921 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2295#issuecomment-7176731921). Originally posted by [CalvyPZ](https://github.com/CalvyPZ) on 2026-11-25T22:44:28Z. --- This PR has been marked as a duplicate and closed after multiple agreeing checks in #1607. If you believe this is incorrect please re-open with why.
upstream-sync reopened this pull request 2026-11-26 00:04:56 +00:00
WASDeKeys commented 2026-11-26 00:05:38 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by WASDeKeys on 2026-11-25T23:09:28Z.


@CalvyPZ @throny I don’t have permission to reopen this myself.

I’d like to keep #2295 open as the primary PR. It is a
superset of #2370: the scripts/test.ps1 runner matches
#2370 byte-for-byte, but #2295 also includes the Rust
toolchain pin to 1.96.0, the Cargo.toml updates, and the
checked-in Cargo.lock — plus CI enforcement. While #2370
covers the script wrapper, test fixture, and README
docs.

#2295 has been validated with a full cargo test
--workspace run (1098 passed, 0 failed) and GPU smoke
tests on both main and the PR head (0 device removals, 0
crashes). #2370 was validated against a synthetic
Cargo stand-in which has an important use case of
its own but no real Cargo build, lockfile resolution, or GPU run.

If the intent is to keep script-test infrastructure
separate, I’m happy to split #2370’s fixture/README
additions into a follow-up PR. But in case only one PR of the two
should be open, the substantive lockfile enforcement should be
in #2295 for its broader application in fixing issue #2214 .

Thank You.

<!-- greyfinch-sync:ivall/xcl:comment:7177211209 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2295#issuecomment-7177211209). Originally posted by [WASDeKeys](https://github.com/WASDeKeys) on 2026-11-25T23:09:28Z. --- @CalvyPZ @throny I don’t have permission to reopen this myself. I’d like to keep #2295 open as the primary PR. It is a superset of #2370: the scripts/test.ps1 runner matches #2370 byte-for-byte, but #2295 also includes the Rust toolchain pin to 1.96.0, the Cargo.toml updates, and the checked-in Cargo.lock — plus CI enforcement. While #2370 covers the script wrapper, test fixture, and README docs. #2295 has been validated with a full cargo test --workspace run (1098 passed, 0 failed) and GPU smoke tests on both main and the PR head (0 device removals, 0 crashes). #2370 was validated against a synthetic Cargo stand-in which has an important use case of its own but no real Cargo build, lockfile resolution, or GPU run. If the intent is to keep script-test infrastructure separate, I’m happy to split #2370’s fixture/README additions into a follow-up PR. But in case only one PR of the two should be open, the substantive lockfile enforcement should be in #2295 for its broader application in fixing issue #2214 . Thank You.
futurepro62 commented 2026-11-27 06:18:44 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by futurepro62 on 2026-11-27T06:18:44Z.


NVIDIA and AMD full-suite run, to go with the reports above by fromthemoonx, since none of them covers AMD. Tested exact head 8bd87ea4 (on its base 12f25f1).

Tested

  • NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell, 32-lane waves only, mesh shaders), driver 621.40, Ryzen 7 9800X3D, Windows 11 Home 26300, Rust 1.100.0 MSVC, DXC + dxil.dll 1.9.2602.17 (Windows SDK 10.0.26100), debug, D3D12 debug layer installed.
  • cargo build --workspace, then XCL_REQUIRE_GPU=mesh cargo test --workspace --no-fail-fast -- --test-threads=4 --skip heap_window_out_of_memory_falls_back_to_the_switch_form --skip gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::integer_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::f64_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::const_and_null_mask_operands_agree_with_hlsl_on_the_gpu --skip gpu::recomp::lower_dxil::tests::mask_ff0_and_flbit_agree_with_hlsl_on_the_gpu --skip gpu::dxil::fuzz_tests: 1255 passed, 0 failed, 44 ignored. SKIPPED (no wave64, no xgameruntime.dll): a_2d_or_3d_group_agrees_with_the_hlsl_path_on_the_gpu, a_per_lane_2d_or_3d_group_runs_on_the_gpu, coalesced_guarded_runs_agree_with_the_hlsl_path_on_the_gpu, cross_lane_reads_agree_with_the_hlsl_path_on_the_gpu, dispatch_chain_native_wave64_builds_whole, gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware, test_title_draws_with_a_root_signature_under_the_debug_layer, the_wave64_lowering_agrees_with_the_hlsl_path_on_the_gpu.
  • No new #[test] functions in the diff.
  • Same head on the AMD Radeon integrated GPU (iGPU) of the Ryzen 7 9800X3D (RDNA2, XCL_ADAPTER=radeon), cargo test --workspace --no-fail-fast -- --test-threads=4 --skip gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1: 1266 passed, 0 failed, 46 ignored. SKIPPED: f16_programs_on_the_gpu (f16 arithmetic, wave32, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's))), f16_programs_on_the_gpu (f16 arithmetic, wave64, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's))), f16_programs_on_the_gpu (f16 packed, wave32, per-lane form: refused (unsupported V_PK_MUL_F16: VOP3 modifiers (its #1426 semantics differ from the console's))), f16_programs_on_the_gpu (f16 packed, wave64, per-lane form: refused (unsupported V_PK_MUL_F16: VOP3 modifiers (its #1426 semantics differ from the console's))), f32_programs_on_the_gpu (f32 conversions, wave32, per-lane form: refused (unsupported V_CVT_F16_F32 (its #1426 semantics differ from the console's))), f32_programs_on_the_gpu (f32 conversions, wave64, per-lane form: refused (unsupported V_CVT_F16_F32 (its #1426 semantics differ from the console's))), heap_window_out_of_memory_falls_back_to_the_switch_form (no heap windows), test_title_draws_with_a_root_signature_under_the_debug_layer (no xgameruntime.dll).
  • --skip leaves out tests that fail on main c2ee10e4 too, not because of this PR. On NVIDIA: heap_window_out_of_memory_falls_back_to_the_switch_form (#1651), the four gpu::recomp::lower_dxil::tests::*_programs_on_the_gpu tests, const_and_null_mask_operands_agree_with_hlsl_on_the_gpu and mask_ff0_and_flbit_agree_with_hlsl_on_the_gpu (follow-up on #1651) fail because runner::skip_test turns their skips into failures under XCL_REQUIRE_GPU=mesh, and gpu::dxil::fuzz_tests seeds 70, 545, 1019 and 1507 fail CreateComputePipelineState with E_OUTOFMEMORY on this card (drivers 616.64 and 621.40). On AMD: fuzz_validate_and_gpu_1 fails on seed 540 (res[833] 0x7 vs CPU 0x6). The AMD run does not set XCL_REQUIRE_GPU.

Not tested

  • a release build, a game (test run only).

AI use

  • Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
<!-- greyfinch-sync:ivall/xcl:comment:7211412575 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2295#issuecomment-7211412575). Originally posted by [futurepro62](https://github.com/futurepro62) on 2026-11-27T06:18:44Z. --- NVIDIA and AMD full-suite run, to go with the reports above by fromthemoonx, since none of them covers AMD. Tested exact head `8bd87ea4` (on its base `12f25f1`). **Tested** - NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell, 32-lane waves only, mesh shaders), driver 621.40, Ryzen 7 9800X3D, Windows 11 Home 26300, Rust 1.100.0 MSVC, DXC + dxil.dll 1.9.2602.17 (Windows SDK 10.0.26100), debug, D3D12 debug layer installed. - `cargo build --workspace`, then `XCL_REQUIRE_GPU=mesh cargo test --workspace --no-fail-fast -- --test-threads=4 --skip heap_window_out_of_memory_falls_back_to_the_switch_form --skip gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::integer_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::f64_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::const_and_null_mask_operands_agree_with_hlsl_on_the_gpu --skip gpu::recomp::lower_dxil::tests::mask_ff0_and_flbit_agree_with_hlsl_on_the_gpu --skip gpu::dxil::fuzz_tests`: **1255 passed, 0 failed, 44 ignored**. SKIPPED (no wave64, no xgameruntime.dll): `a_2d_or_3d_group_agrees_with_the_hlsl_path_on_the_gpu`, `a_per_lane_2d_or_3d_group_runs_on_the_gpu`, `coalesced_guarded_runs_agree_with_the_hlsl_path_on_the_gpu`, `cross_lane_reads_agree_with_the_hlsl_path_on_the_gpu`, `dispatch_chain_native_wave64_builds_whole`, `gpu_geometry_wave32_prefix_count_over_a_mask`, `gpu_wave32_program_in_wave64_hardware`, `test_title_draws_with_a_root_signature_under_the_debug_layer`, `the_wave64_lowering_agrees_with_the_hlsl_path_on_the_gpu`. - No new `#[test]` functions in the diff. - Same head on the AMD Radeon integrated GPU (iGPU) of the Ryzen 7 9800X3D (RDNA2, `XCL_ADAPTER=radeon`), `cargo test --workspace --no-fail-fast -- --test-threads=4 --skip gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1`: **1266 passed, 0 failed, 46 ignored**. SKIPPED: `f16_programs_on_the_gpu` (f16 arithmetic, wave32, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's))), `f16_programs_on_the_gpu` (f16 arithmetic, wave64, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's))), `f16_programs_on_the_gpu` (f16 packed, wave32, per-lane form: refused (unsupported V_PK_MUL_F16: VOP3 modifiers (its #1426 semantics differ from the console's))), `f16_programs_on_the_gpu` (f16 packed, wave64, per-lane form: refused (unsupported V_PK_MUL_F16: VOP3 modifiers (its #1426 semantics differ from the console's))), `f32_programs_on_the_gpu` (f32 conversions, wave32, per-lane form: refused (unsupported V_CVT_F16_F32 (its #1426 semantics differ from the console's))), `f32_programs_on_the_gpu` (f32 conversions, wave64, per-lane form: refused (unsupported V_CVT_F16_F32 (its #1426 semantics differ from the console's))), `heap_window_out_of_memory_falls_back_to_the_switch_form` (no heap windows), `test_title_draws_with_a_root_signature_under_the_debug_layer` (no xgameruntime.dll). - `--skip` leaves out tests that fail on main `c2ee10e4` too, not because of this PR. On NVIDIA: `heap_window_out_of_memory_falls_back_to_the_switch_form` (#1651), the four `gpu::recomp::lower_dxil::tests::*_programs_on_the_gpu` tests, `const_and_null_mask_operands_agree_with_hlsl_on_the_gpu` and `mask_ff0_and_flbit_agree_with_hlsl_on_the_gpu` ([follow-up on #1651](https://github.com/xcl-dev/xcl/issues/1651#issuecomment-7146069648)) fail because `runner::skip_test` turns their skips into failures under `XCL_REQUIRE_GPU=mesh`, and `gpu::dxil::fuzz_tests` seeds 70, 545, 1019 and 1507 fail `CreateComputePipelineState` with `E_OUTOFMEMORY` on this card (drivers 616.64 and 621.40). On AMD: `fuzz_validate_and_gpu_1` fails on seed 540 (`res[833]` 0x7 vs CPU 0x6). The AMD run does not set `XCL_REQUIRE_GPU`. **Not tested** - a release build, a game (test run only). **AI use** - Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
fromthemoonx commented 2026-11-29 21:17:23 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by fromthemoonx on 2026-11-29T21:17:23Z.


@WASDeKeys heads-up: the merge in a925bd1 dropped rust-version = "1.96.0" from the root Cargo.toml, so the workspace no longer loads (details and the 1.96.0 run with it put back in my report above).

<!-- greyfinch-sync:ivall/xcl:comment:7262757042 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2295#issuecomment-7262757042). Originally posted by [fromthemoonx](https://github.com/fromthemoonx) on 2026-11-29T21:17:23Z. --- @WASDeKeys heads-up: the merge in `a925bd1` dropped `rust-version = "1.96.0"` from the root `Cargo.toml`, so the workspace no longer loads (details and the 1.96.0 run with it put back in [my report above](https://github.com/xcl-dev/xcl/pull/2295#issuecomment-7164882243)).
Foniass commented 2026-12-01 07:46:26 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T07:46:26Z.


Triage (#1607) – head a925bd1

The workspace does not load at this head. crates/xcl/Cargo.toml, tests/testtitle/Cargo.toml and tests/testgamedll/Cargo.toml add rust-version.workspace = true, but the root Cargo.toml has no rust-version under [workspace.package]. The CI run fails on exactly that: error inheriting rust-version ... workspace.package.rust-version was not defined.
The pin is also 1.96.0, while recent test reports on PRs use Rust 1.100.0, so this would downgrade every contributor's and CI's compiler.
The --locked change to scripts/test.ps1 is the same two lines as #2370, which also checks the command lines in scripts/test-native-stderr.tests.ps1.
Recommendation: close (bad: the manifests do not parse; the --locked part is in #2370).

AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.

<!-- greyfinch-sync:ivall/xcl:comment:7304462258 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2295#issuecomment-7304462258). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T07:46:26Z. --- **Triage (#1607)** – head a925bd1 The workspace does not load at this head. `crates/xcl/Cargo.toml`, `tests/testtitle/Cargo.toml` and `tests/testgamedll/Cargo.toml` add `rust-version.workspace = true`, but the root `Cargo.toml` has no `rust-version` under `[workspace.package]`. The CI run fails on exactly that: `error inheriting rust-version ... workspace.package.rust-version was not defined`. The pin is also `1.96.0`, while recent test reports on PRs use Rust 1.100.0, so this would downgrade every contributor's and CI's compiler. The `--locked` change to `scripts/test.ps1` is the same two lines as #2370, which also checks the command lines in `scripts/test-native-stderr.tests.ps1`. Recommendation: close (bad: the manifests do not parse; the `--locked` part is in #2370). AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/2295:upstream-pr/2295'
git switch 'upstream-pr/2295'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/2295'
git switch 'upstream-pr/2295'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/2295'
git switch 'upstream-pr/2295'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/2295'
git switch 'main'
git merge --squash 'upstream-pr/2295'
git switch 'main'
git merge --ff-only 'upstream-pr/2295'
git switch 'main'
git merge 'upstream-pr/2295'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
xcl-dev/xcl!2285
No description provided.