Build: pin Rust toolchain to 1.96.0 and enforce Cargo.lock (FIx #2214) #2285
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2295"
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?
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
enforce Cargo.lock in CI and
scripts/test.ps1 —
Cargo.toml,Cargo.lock,rust-toolchain.tomlTested
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, 0failed, 26 ignored, 24 skipped
SKIPPEDGPU tests on your adapter:24 (no wave64, etc.)
ran on both branches with 60 seconds
each
Regression run
pin-rust-toolchain):Not tested
wave32-only GPUs
AI use
helped write the PR description, ran
tests and reviewed the diff.
[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)Imported from ivall/xcl. Originally posted by fromthemoonx on 2026-11-25T14:10:57Z.
Rerun on the new head
a925bd1(main1bd9ceemerged in): the merge droppedrust-version = "1.96.0"from the rootCargo.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 keepinglicense = "GPL-3.0-or-later"and losing therust-versionline. The three members still sayrust-version.workspace = true, so:This happens with
cargo +stabletoo, and it is probably whyBuild and testis red on this head.a925bd1as pushed,cargo build --workspace --locked(1.96.0 fromrust-toolchain.toml) andcargo +stable metadatarust-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))cargo test --workspace --locked --no-fail-fast -- --test-threads=4, Rust 1.96.0SKIPPEDlines (main1bd9ceeon 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 haverust-version.workspace = true;cargo +stable metadata --no-depsgivesrust_version: 1.96.0forxcl,xcl-testtitleandtestgame-mw.cargo +stable test --workspace --locked --no-fail-fast -- --test-threads=4,8bd87eamerged ontomain08db802(clean), Rust 1.100.0 MSVC--lockedaccepted the lockfile), 1429 passed, 0 failed, 47 ignored; 25SKIPPEDlinesRTX 3060 12 GB (driver 610.88), Windows 11 Pro 26300, debug. Not tested: a build with the pinned 1.96.0 itself (
+stablewas passed on purpose), the CI workflow change. The head mergesmaininto the branch; CONTRIBUTING asks for a rebase instead.On
f5d6d40: Two points onf5d6d40, from reading the diff and checking with Cargo:rust-versionhas no effect yet. It is set in[workspace.package], but none of the three members inherits it:crates/xcl/Cargo.toml,tests/testtitle/Cargo.tomlandtests/testgamedll/Cargo.tomlhaveversion.workspace/edition.workspace/license.workspaceand norust-version.workspace = true.cargo +stable metadata --no-deps --format-version 1on this head givesrust_version: nullforxcl,xcl-testtitleandtestgame-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.1a0bbe3with #2296 on top (which adds 2 tests),cargo test --workspace --no-fail-fast -- --test-threads=4here gives 1252 passed, 0 failed, 46 ignored (RTX 3060, also 32-lane, 24SKIPPEDlines). The description's 1098 passed / 26 ignored is about 150 tests short of that, and its smoke block names500578c, not the head. A rerun ofscripts/test.ps1at 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 metadatacheck.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 to921e05bin 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
921e05be9032cc00214a4393825b761a3b14f3b4with a fixturecargo.cmdrecording each argument list. Runningscripts/test.ps1 --skip omittedin Windows PowerShell 5.1.26100.9711 and PowerShell 7.6.9 issuedbuild --locked --workspaceandtest --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 itsscripts/test-totals.tests.ps1. The existing assertion failed in both shells because it expected--workspaceimmediately aftertest. 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
06f90c1986f4Merging this head with main produced one conflict in the workspace
Cargo.toml. The tested merge candidate keeps main’sGPL-3.0-or-laterlicense and this PR’srust-version = "1.96.0". I parsed the workspace and all three member manifests, checked their inherited Rust version againstrust-toolchain.toml, and verified that the dependency declarations andCargo.lockmatch main.On Windows PowerShell 5.1 and PowerShell 7 I ran the merged
scripts/test.ps1with 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--lockedon 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.
Imported from ivall/xcl. Originally posted by WASDeKeys on 2026-11-25T14:15:27Z.
Looking into this @fromthemoonx
Imported from ivall/xcl. Originally posted by nnonno91 on 2026-11-25T14:44:16Z.
@WASDeKeys I retested the updated head
8bd87ea4f126ab3ec13635aef78351da2496df7fafter the merge frommain. The toolchain, manifests, and build scripts are unchanged from the revision below. I reran the checks on the same Windows/Radeon setup.RUSTUP_TOOLCHAINoverride,cargo -Vandrustc -Vboth reported 1.96.0.rustup show active-toolchainidentified the checkout'srust-toolchain.toml, andcargo metadata --locked --no-deps --format-version 1again reported 1.96.0 for all three members.cargo build --locked --workspacesucceeded.cargo test --locked -p xcl --test e2e test_title_draws_with_a_root_signature_under_the_debug_layer -- --exact --nocapture --test-threads=1withXCL_ADAPTER=AMD RadeonandXCL_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
RUSTUP_TOOLCHAINoverride,cargo -Vselected Cargo 1.96.0 and auto-installed the pinned toolchain in the isolated Rustup directory.rustc -Vreported 1.96.0.rustup show active-toolchainidentified this checkout'srust-toolchain.tomlas the source.cargo metadata --locked --no-deps --format-version 1reportedrust_version = 1.96.0for all three members:xcl,xcl-testtitleandtestgame-mw.cargo build --locked --workspacesucceeded.cargo test --locked -p xcl --test e2e test_title_draws_with_a_root_signature_under_the_debug_layer -- --exact --nocapture --test-threads=1withXCL_ADAPTER=AMD RadeonandXCL_NETWORK=0gave 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.
Imported from ivall/xcl. Originally posted by WASDeKeys on 2026-11-25T15:12:46Z.
@RavenCurseBurg @fromthemoonx @nnonno91
I am making some changes.
[workspace.package] in Cargo.toml
members (crates/xcl, tests/testtitle,
tests/testgamedll)
checkout's toolchain is the source (no
RUSTUP_TOOLCHAIN override needed)
all three members (was null)
0 failures
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!
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.
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.
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.
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 base12f25f1).Tested
cargo build --workspace, thenXCL_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.#[test]functions in the diff.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).--skipleaves out tests that fail on mainc2ee10e4too, not because of this PR. On NVIDIA:heap_window_out_of_memory_falls_back_to_the_switch_form(#1651), the fourgpu::recomp::lower_dxil::tests::*_programs_on_the_gputests,const_and_null_mask_operands_agree_with_hlsl_on_the_gpuandmask_ff0_and_flbit_agree_with_hlsl_on_the_gpu(follow-up on #1651) fail becauserunner::skip_testturns their skips into failures underXCL_REQUIRE_GPU=mesh, andgpu::dxil::fuzz_testsseeds 70, 545, 1019 and 1507 failCreateComputePipelineStatewithE_OUTOFMEMORYon this card (drivers 616.64 and 621.40). On AMD:fuzz_validate_and_gpu_1fails on seed 540 (res[833]0x7 vs CPU 0x6). The AMD run does not setXCL_REQUIRE_GPU.Not tested
AI use
Imported from ivall/xcl. Originally posted by fromthemoonx on 2026-11-29T21:17:23Z.
@WASDeKeys heads-up: the merge in
a925bd1droppedrust-version = "1.96.0"from the rootCargo.toml, so the workspace no longer loads (details and the 1.96.0 run with it put back in my report above).Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T07:46:26Z.
Triage (#1607) – head
a925bd1The workspace does not load at this head.
crates/xcl/Cargo.toml,tests/testtitle/Cargo.tomlandtests/testgamedll/Cargo.tomladdrust-version.workspace = true, but the rootCargo.tomlhas norust-versionunder[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
--lockedchange toscripts/test.ps1is the same two lines as #2370, which also checks the command lines inscripts/test-native-stderr.tests.ps1.Recommendation: close (bad: the manifests do not parse; the
--lockedpart is in #2370).AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.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.