XGameRuntime: ignore mixed-case game-save temp files #2373

Open
github-bot wants to merge 1 commit from github-bot/gh-2373 into main AGit
Owner

@⁠mokkamokacaffe on GitHub · 2026-11-25 17:05 UTC · original
mokkamokacaffe:xgameruntime/case-insensitive-temp-blobs → main · +6 −2 · 1 files · 1 commits · draft

blobs_of filtered 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.
  • Extend the existing atomic-write regression test with lowercase and uppercase crash leftovers while retaining valid encoded ~xcltmp.* blob coverage.

Tested

  • Linux compile-only: cargo check -p xcl --lib --tests --target x86_64-pc-windows-msvc passed; 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 original blob_enumeration_sees_one_submitted_update reproduction 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 --lib both 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 --lib reported 1219 passed, 1 failed. The deterministic failure was gpu::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

  • Pending paired xcl-smoke blocks from current main and this PR's exact head commit.

Not tested

  • A passing cargo test --workspace -- --test-threads=4 run.
  • Retail-title smoke comparison.
  • AMD or Intel GPUs, Linux/Wine runtime behavior, and release builds.

AI use

  • OpenAI Codex with GPT-5 implemented the fix and regression coverage, reviewed the diff, compiled the Windows target and drafted this description.
  • The RTX 3070 Laptop test report was run and drafted with Antigravity (Gemini 4 Neon), then reviewed by its contributor.
**@⁠mokkamokacaffe** on GitHub · 2026-11-25 17:05 UTC · [original](https://github.com/xcl-dev/xcl/pull/2373) `mokkamokacaffe:xgameruntime/case-insensitive-temp-blobs` → `main` · +6 −2 · 1 files · 1 commits · draft `blobs_of` filtered 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. - Extend the existing atomic-write regression test with lowercase and uppercase crash leftovers while retaining valid encoded `~xcltmp.*` blob coverage. **Tested** - Linux compile-only: `cargo check -p xcl --lib --tests --target x86_64-pc-windows-msvc` passed; 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 original `blob_enumeration_sees_one_submitted_update` reproduction 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 --lib` both 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 --lib` reported **1219 passed, 1 failed**. The deterministic failure was `gpu::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** - Pending paired `xcl-smoke` blocks from current `main` and this PR's exact head commit. **Not tested** - A passing `cargo test --workspace -- --test-threads=4` run. - Retail-title smoke comparison. - AMD or Intel GPUs, Linux/Wine runtime behavior, and release builds. **AI use** - OpenAI Codex with GPT-5 implemented the fix and regression coverage, reviewed the diff, compiled the Windows target and drafted this description. - The RTX 3070 Laptop test report was run and drafted with Antigravity (Gemini 4 Neon), then reviewed by its contributor.
Windows filesystems compare names case-insensitively, but blob enumeration filtered the atomic-write prefix case-sensitively. Reuse the existing ASCII-insensitive prefix helper and cover both lowercase and uppercase crash leftovers.\n\nFixes #2366\n\nAssisted-by: OpenAI Codex (GPT-5)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:29:22 +00:00
Author
Owner

@⁠ahmetbagci8 on GitHub · 2026-11-25 17:09 UTC · original

Verified on the Windows 11 machine where #2366 reproduced.

Tested

  • Commit: f6a2573d02dc10a50ca23d6084083955143cb1a6
  • Hardware / OS: Intel Core i7-11800H, NVIDIA GeForce RTX 3070 Laptop GPU, Windows 11 Pro (Build 26300)
  • cargo test -p xcl --lib gamesave: 11 passed; 0 failed; 0 ignored (1.09s) — blob_enumeration_sees_one_submitted_update now passes cleanly.

Not tested

  • Full workspace suite and scripts/smoke.ps1.

AI use

  • Antigravity harness (Gemini 4 Neon) ran cargo test -p xcl --lib gamesave on this commit and drafted this report; the author reviewed it before posting.
**@⁠ahmetbagci8** on GitHub · 2026-11-25 17:09 UTC · [original](https://github.com/xcl-dev/xcl/pull/2373#issuecomment-7169100642) Verified on the Windows 11 machine where #2366 reproduced. ### Tested - **Commit:** `f6a2573d02dc10a50ca23d6084083955143cb1a6` - **Hardware / OS:** Intel Core i7-11800H, NVIDIA GeForce RTX 3070 Laptop GPU, Windows 11 Pro (Build 26300) - `cargo test -p xcl --lib gamesave`: `11 passed; 0 failed; 0 ignored` (1.09s) — `blob_enumeration_sees_one_submitted_update` now passes cleanly. ### Not tested - Full workspace suite and `scripts/smoke.ps1`. ### AI use - Antigravity harness (Gemini 4 Neon) ran `cargo test -p xcl --lib gamesave` on this commit and drafted this report; the author reviewed it before posting.
Author
Owner

@⁠FIJI1299 on GitHub · 2026-11-25 17:17 UTC · original

Tested commit f6a2573 on Windows:

Environment

  • OS: Windows 11 (NTFS)
  • GPU: NVIDIA GeForce RTX 5070 (12 GB VRAM, driver 621.35, wave32)
  • DXC: 1.8.2502.11 (Windows SDK 10.0.26100.0)

Results

  • hle::xgameruntime::gamesave tests (cargo test -p xcl --lib gamesave): 11 passed, 0 failed (including atomic_writes_preserve_xcltmp_blobs_and_skip_leftover_temps and case_insensitive_blob_and_container_matching_on_ntfs).
  • Full library test suite (cargo test -p xcl --lib): 1215 passed, 5 failed, 26 ignored (both parallel and with --test-threads=1).
  • Unrelated failures (all in gpu::*):
    • gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_0..3: CreateComputePipelineState returned E_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: 1 group barriers).
  • GPU tests skipped on this adapter:
    • 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)
**@⁠FIJI1299** on GitHub · 2026-11-25 17:17 UTC · [original](https://github.com/xcl-dev/xcl/pull/2373#issuecomment-7169288264) Tested commit `f6a2573` on Windows: ### Environment * **OS:** Windows 11 (NTFS) * **GPU:** NVIDIA GeForce RTX 5070 (12 GB VRAM, driver `621.35`, `wave32`) * **DXC:** `1.8.2502.11` (Windows SDK `10.0.26100.0`) ### Results * **`hle::xgameruntime::gamesave` tests (`cargo test -p xcl --lib gamesave`):** **11 passed, 0 failed** (including `atomic_writes_preserve_xcltmp_blobs_and_skip_leftover_temps` and `case_insensitive_blob_and_container_matching_on_ntfs`). * **Full library test suite (`cargo test -p xcl --lib`):** **1215 passed, 5 failed, 26 ignored** (both parallel and with `--test-threads=1`). * **Unrelated failures (all in `gpu::*`):** * `gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_0..3`: `CreateComputePipelineState` returned `E_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: 1` group barriers). * **GPU tests skipped on this adapter:** * `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`)
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-25 19:12 UTC · original

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):
gpu::recomp::lower_dxil::tests::a_bridged_mask_write_where_one_half_is_elsewhere_meets_no_barrier
  assertion failed: group barriers in the program (lower_dxil.rs:1155)

The lowered program is missing an expected group barrier (or emits one where none is expected). Needs a fix before merge.

— Devin

**@⁠DavidM1911** on GitHub · 2026-11-25 19:12 UTC · [original](https://github.com/xcl-dev/xcl/pull/2373#issuecomment-7171956372) 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): ``` gpu::recomp::lower_dxil::tests::a_bridged_mask_write_where_one_half_is_elsewhere_meets_no_barrier assertion failed: group barriers in the program (lower_dxil.rs:1155) ``` The lowered program is missing an expected group barrier (or emits one where none is expected). Needs a fix before merge. — Devin
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/2373/head:github-bot/gh-2373'
git switch 'github-bot/gh-2373'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-2373'
git switch 'github-bot/gh-2373'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-2373'
git switch 'github-bot/gh-2373'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-2373'
git switch 'main'
git merge --squash 'github-bot/gh-2373'
git switch 'main'
git merge --ff-only 'github-bot/gh-2373'
git switch 'main'
git merge 'github-bot/gh-2373'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.