Build: pin Rust toolchain to 1.96.0 and enforce Cargo.lock (FIx #2214) #2295
No reviewers
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!2295
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@WASDeKeys on GitHub · 2026-11-25 12:49 UTC · original
WASDeKeys:pin-rust-toolchain→main· +16 −6 · 7 files · 27 commits · openFixes #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.
Under `--test-threads=4`, the full test suite exhausted VRAM (0x8007000E) on a 6 GB GPU when `d32s8_targets_take_their_own_size_of_video_memory` placed 14 4K D32S8 targets (~935 MB) concurrently with other GPU tests. The mutex poison from that failure then cascaded into title_textures tests. All tests pass at `--test-threads=1` and `--test-threads=2`. Check the adapter's dedicated video memory and call `skip_test("< 8 GB VRAM")` when under 8 GiB so the suite completes cleanly on 6 GB and smaller adapters. Fixes #42 Assisted by : Antigravity IDE (Claude Sonnet 4.6)@WASDeKeys on GitHub · 2026-11-25 14:15 UTC · original
Looking into this @fromthemoonx
@WASDeKeys on GitHub · 2026-11-25 15:12 UTC · original
@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
@nnonno91 on GitHub · 2026-11-25 14:44 UTC · original · edited 2026-11-25 15:24 UTC
@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.
@RavenCurseBurg on GitHub · 2026-11-25 15:06 UTC · original · edited 2026-11-25 15:46 UTC
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.
@DavidM1911 on GitHub · 2026-11-25 17:29 UTC · original
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 on GitHub · 2026-11-25 17:58 UTC · original
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.
@WASDeKeys on GitHub · 2026-11-25 23:09 UTC · original · edited 2026-11-25 23:17 UTC
@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.
@fromthemoonx on GitHub · 2026-11-25 14:10 UTC · original · edited 2026-11-26 00:11 UTC
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.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.