XGameRuntime: refresh blob sizes after replacement (#2421) #2521
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!2521
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2521"
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?
@luckyteagirl on GitHub · 2026-11-25 21:26 UTC · original
luckyteagirl:codex/xgameruntime-blobs-metadata→main· +38 −1 · 1 files · 1 commits · openFixes #2421. Read blob sizes from the file path after atomic replacement so Windows directory-entry metadata cannot report a stale size.
What is in it
crates/xcl/src/hle/xgameruntime/gamesave.rs: refresh blob sizes withstd::fs::metadataand add a Windows-only saved-DirEntryregression test.Tested
6d12f58a229bc73889878a448c64dc3af25eeba0) and this commit (c5f68eddf00db07ada4c5cddedabddf9c7eff300):cargo build --locked --release -p xcl -j 2, exit 0, memory/time guard not triggered. Logs:work-2421/logs/release-main.log,work-2421/logs/release-head.log.CARGO_BUILD_JOBS=2; isolated test target:work-2421/target.cargo test -p xcl --lib hle::xgameruntime::gamesave::tests::blob_entry_reports_replaced_file_size_from_path -- --exact: 1 passed, 0 failed, 0 ignored (1,324 filtered).cargo test -p xcl --lib hle::xgameruntime::gamesave::tests::blob_enumeration_sees_one_submitted_update -- --exact: 1 passed, 0 failed, 0 ignored (1,324 filtered).DirEntry::metadata(); the new test failed as expected (0 passed, 1 failed), reporting 3 bytes instead of 11. Restored the fix and reran both tests successfully.cargo build --workspacepassed;cargo test --workspace --no-fail-fast -- --test-threads=4completed with 1,424 passed, 0 failed, 46 ignored, and 25 explicit GPU skips (21 native-wave64, three refused per-lane, one heap-window). The saved-entry regression also passed. These are the independent reporter's results, not runs on our RX 6800M.git diff --check: passed.Regression run
2ef5fd64), adapter and duration. Both exited 0 with no device removals or crashes, but showed 0 frames; these runs covered startup only and did not reach blob enumeration. Two 7-second head attempts stopped at the unchanged 1 GiB memory guard (free commit 964 MB and 834 MB), so they produced no smoke block.Not tested
AI use
@DavidM1911 on GitHub · 2026-11-25 21:42 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!
@fromthemoonx on GitHub · 2026-11-25 22:35 UTC · original
Full suite on NVIDIA: passes. The new test fails with
DirEntry::metadata()put back (3 of 3,left: 3, right: 11), so it catches the stale size. But #2421's own test,blob_enumeration_sees_one_submitted_update, did not fail onmainhere (40 of 40 pass). So this machine shows the stale-size effect only through the new test.Tested:
c5f68edmerged ontomaine1d84b7(clean; the only difference from the PR's base6d12f58is a README change). RTX 3060 12 GB (driver 610.88), Ryzen 7 5700X, Windows 11 Pro 26300, NTFS, Rust 1.100.0 MSVC, debug.cargo test --workspace --no-fail-fast -- --test-threads=4SKIPPEDlines (no wave64, refused per-lane forms)blob_entry_reports_replaced_file_size_from_pathalone, 40 runsblob_enumeration_sees_one_submitted_updatealone, 40 runs: onmain/ with this PRhle::xgameruntime::gamesave::(12 tests),--test-threads=8, 30 runsblob_infowithe.metadata()instead ofstd::fs::metadata(&path)(scratch)gamesave.rs:1175,left: 3, right: 11Not tested: a title's save path, a release build, AMD.
AI use: Claude Code (Claude Opus 5.5) ran the tests and the scratch change, and wrote this report.
@SlopTart on GitHub · 2026-11-25 22:49 UTC · original
Tested: current PR head merged onto current
origin/main(clean), Linux (Arch, kernel 7.2.15), Mesa 26.2.5 RADV, Radeon RX 7900 XT (NAVI31), cargo targetx86_64-pc-windows-gnurun under wine-11.0 (Proton), rustc 1.94.0, vkd3d-proton 3.1 with the XCL patch, official MS DXC (binaries 2026-09-29).gpu_suite (cold cache): 164 passed / 3 failed, no crashes. The three are the known baseline on this lane (seed-1003 fuzz, mad/mac contraction, promoted-UAV-clear driver gap, PR #2490); none caused by this PR.Targeted run of
blob_entry_reports_replaced_file_size_from_path: passed. This is XGameRuntime, CPU-side; it runs fine under the Wine lane.Not tested: retail titles (no title data on this lane, counts only).
AI use: Hermes agent (local Qwen-class) ran both machines and drafted this; I checked it before posting.
@thehollowedone on GitHub · 2026-11-25 23:30 UTC · original
Independent Windows check of head
c5f68ed. The saved-directory-entry regression and full workspace suite passed on this machine.Tested
cargo test -p xcl --lib hle::xgameruntime::gamesave::tests::blob_entry_reports_replaced_file_size_from_path -- --exact: 1 passed, 0 failed, 0 ignored.cargo build --workspace: passed.cargo test --workspace --no-fail-fast -- --test-threads=4: 1,424 passed, 0 failed, 46 ignored. The 25 explicitSKIPPEDnotices were 21 native-wave64 cases (unavailable on this GPU), three refused per-lane cases, and one unavailable heap-window case. The suite included both the new saved-entry test andblob_enumeration_sees_one_submitted_update.main08db802in a localgit merge-treecheck; no merge commit was made.Not tested
AI use
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.