XGameRuntime: ignore mixed-case game-save temp files #2363
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2373"
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 mokkamokacaffe on 2026-11-25T17:05:58Z.
blobs_offiltered atomic-write temporary files case-sensitively even though Windows filesystems compare their names case-insensitively. An uppercase~XCLTMP.*crash leftover could therefore appear as a title-visible save blob and affect enumeration and quota accounting.Fixes #2366.
What is in it
crates/xcl/src/hle/xgameruntime/gamesave.rs: use the existing ASCII-insensitive prefix helper when excluding atomic-write temporary files.~xcltmp.*blob coverage.Tested
Ritolino tested head
f6a2573dmerged onto8b957becon the Windows NTFS machine that reproduced #2421. All 11 game-save tests passed and blob enumeration passed 10/10 repetitions. The separate barrier failure reproduced on both the original head and parent, then passed on both sides after the upstream assertion correction. NTFS repetitions · Paired barrier controlsLinux compile-only:
cargo check -p xcl --lib --tests --target x86_64-pc-windows-msvcpassed; Windows test binaries were not executed in this run.Windows 11 Pro build 26300, Intel Core i7-11800H, NVIDIA GeForce RTX 3070 Laptop GPU, exact head
f6a2573d02dc10a50ca23d6084083955143cb1a6:cargo test -p xcl --lib gamesave— 11 passed, 0 failed, 0 ignored. The originalblob_enumeration_sees_one_submitted_updatereproduction passed.Windows 11 on NTFS, NVIDIA GeForce RTX 5070 12 GB (driver 621.35, wave32), DXC 1.8.2502.11 / Windows SDK 10.0.26100.0, exact head
f6a2573:cargo test -p xcl --lib gamesave— 11 passed, 0 failed, including the atomic-write and case-insensitive enumeration regressions.On that RTX 5070,
cargo test -p xcl --libboth in parallel and with--test-threads=1: 1215 passed, 5 failed, 26 ignored. The failures were the four DXIL fuzz tests (CreateComputePipelineState:E_OUTOFMEMORY) and the existing bridged-mask barrier assertion. Reported skips: 13 no-wave64, 3 unsupported per-lane VOP3-modifier cases, and 1 driver-cache test requiring Windows Developer Mode.Windows 11, NVIDIA GeForce RTX 3060 Ti, with this branch merged into then-current
main:cargo test -p xcl --libreported 1219 passed, 1 failed. The deterministic failure wasgpu::recomp::lower_dxil::tests::a_bridged_mask_write_where_one_half_is_elsewhere_meets_no_barrier, outside this PR's game-save code; the focused game-save suites above remained green.Regression run
Main ran first, followed by the exact PR #2373 head. Each run used its own release build and stock smoke script. Both worktrees were clean immediately before launch, and the starting caches had identical SHA-256 indexes across all 31,056 files. Both runs exited normally with zero crashes and zero device removals. The PR showed 925 frames against main’s 1,144 (80.9%).
Main
PR #2373
Not tested
cargo test --workspace -- --test-threads=4run on PR headf6a2573d.AI use
Imported from ivall/xcl. Originally posted by ahmetbagci8 on 2026-11-25T17:09:53Z.
Verified on the Windows 11 machine where #2366 reproduced.
Tested
f6a2573d02dc10a50ca23d6084083955143cb1a6cargo test -p xcl --lib gamesave:11 passed; 0 failed; 0 ignored(1.09s) —blob_enumeration_sees_one_submitted_updatenow passes cleanly.Not tested
scripts/smoke.ps1.AI use
cargo test -p xcl --lib gamesaveon this commit and drafted this report; the author reviewed it before posting.Imported from ivall/xcl. Originally posted by alexmircea1299 on 2026-11-25T17:17:33Z.
Tested commit
f6a2573on Windows:Environment
621.35,wave32)1.8.2502.11(Windows SDK10.0.26100.0)Results
hle::xgameruntime::gamesavetests (cargo test -p xcl --lib gamesave): 11 passed, 0 failed (includingatomic_writes_preserve_xcltmp_blobs_and_skip_leftover_tempsandcase_insensitive_blob_and_container_matching_on_ntfs).cargo test -p xcl --lib): 1215 passed, 5 failed, 26 ignored (both parallel and with--test-threads=1).gpu::*):gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_0..3:CreateComputePipelineStatereturnedE_OUTOFMEMORY(0x8007000E) on this driver.gpu::recomp::lower_dxil::tests::a_bridged_mask_write_where_one_half_is_elsewhere_meets_no_barrier: assertion failed (left: 3, right: 1group barriers).13(no wave64)3(wave32, per-lane form: refused (unsupported V_CVT_F16_F32 / V_MUL_F16 / V_PK_MUL_F16: VOP3 modifiers (its #1426 semantics differ from the console's)))1(cannot disable the driver cache (Windows Developer Mode is required): 0x887A002D)upstream-sync referenced this pull request2026-11-25 19:07:20 +00:00
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T19:12:00Z.
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: 1 real failure, deterministic (also fails--test-threads=1, 1219/1):The lowered program is missing an expected group barrier (or emits one where none is expected). Needs a fix before merge.
— Devin
Imported from ivall/xcl. Originally posted by Ritolino on 2026-11-26T18:05:44Z.
Independent Windows 11 x64 verification of
#2373headf6a2573dmerged cleanly onto currentmain(8b957bec) on the machine where#2421(blob_enumeration_sees_one_submitted_update) reproduces reliably (failing onmainand still failing3/5runs on#2521due to an uppercase~XCLTMP.<pid>.<id>.tmpfile bypassingstarts_with(~xcltmp.)):Tested
wave32),rustc 1.100.0(stable-x86_64-pc-windows-msvc), debugcargo test -p xcl --lib gamesave::tests:11 passed, 0 failed, 0 ignoredcargo test -p xcl --lib blob_enumeration_sees_one_submitted_update(10 consecutive runs):10/10 passed, 0/10 failedThis confirms
#2373resolves the#2421failure on Windows NTFS.AI use: Antigravity with Gemini 4 Hydrogen (Medium) ran the merge/test loop and drafted this report; reviewed by human.
Imported from ivall/xcl. Originally posted by mokkamokacaffe on 2026-11-27T12:26:28Z.
I reproduced the reported shader-barrier failure on both the original PR head and its unchanged parent. Both counted 3 barriers where the test expected 1. The paired results show that the failure predates this game-save change.
Tested
Windows 11, NVIDIA GeForce RTX 4080 SUPER, DXC/DXIL 1.9.2609.5, debug test profile. Each run used a separate detached worktree and one test thread.
68a284a5f6a2573dfa671a2f3ceabd59The newer pair includes an upstream correction that checks for zero barriers after the divergent entry branch. The corrected assertion passed with and without this PR. Upstream test correction
Both game-save runs passed
atomic_writes_preserve_xcltmp_blobs_and_skip_leftover_tempsandblob_enumeration_sees_one_submitted_update. The atomic-write test covers uppercase and lowercase temporary-file leftovers and checks that a legitimately named save blob remains visible.Commands used:
Not tested
Full workspace suite and retail smoke in this verification.
AI use
OpenAI Codex (GPT-6) ran the checks, compared the assertions across revisions, and drafted this comment.
Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T07:57:09Z.
Triage (#1607) – head
f6a2573No open or merged PR makes the same change: main's
blobs_ofincrates/xcl/src/hle/xgameruntime/gamesave.rsstill filtersTMP_PREFIXcase-sensitively, and #2521 / #543 do not touch that filter. The fix reuses the existingstarts_with_ignore_ascii_case, and the test adds an upper-case~XCLTMP.leftover that would be listed as a blob without the fix. No problems found in the diff.Recommendation: keep open.
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.