Repository navigation
XGameRuntime: refresh blob sizes after replacement (#2421) - #2521
luckyteagirl wants to merge 1 commit into
Conversation
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
|
Full suite on NVIDIA: passes. The new test fails with Tested:
Not 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. |
|
Tested: current PR head merged onto current
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. |
|
Independent Windows check of head Tested
Not tested
AI use
|
… upstream xcl-dev#1237 + xcl-dev#494 + xcl-dev#1382 loopback) Port live heads e2a4b1d (xcl-dev#1237), bf21fd8 (xcl-dev#494), 2b765d2 (xcl-dev#1382), all still OPEN vs upstream/main. Windows hunks already verbatim reference-only; this is the Linux twin (win64 ABI). xcl-dev#1237: InitialNotification<T> + notify_initial via queue_from/submit_now on PORT_COMPLETION + udp/connectivity call fns; both Registers reject null callback (E_INVALIDARG) and queue the current value. xcl-dev#494: network_off() reads XCL_NETWORK directly (hle_linux has no netoff yet) + connectivity_level() 1/3; GetConnectivityHint uses it. xcl-dev#1382 portable: url_host_and_is_plain_loopback via IpAddr::is_loopback + subnet vectors; request_url/security_info/issuer stay Windows-only (WinHTTP/crypt32 handles, no Linux consumer — same precedent as xcl-dev#843). Already-landed on Linux, verified no change: xcl-dev#1247, xcl-dev#1753, xcl-dev#2021, xcl-dev#1588 + Watch xcl-dev#2521/xcl-dev#2524/xcl-dev#2623. Failing-first: new symbols 0 at HEAD; old Registers accepted cb==0 and queued nothing. Gates: both checks 0 errors, xtaskqueue_linux 16/16, lib 760/0/1 t=4, title 12 GPU-only, retail SIGSEGV +0x2237320 HOLDS.
|
Tested
Printing (Likely related to AI use: Antigravity with Gemini 4 Neon (Medium) and Gemini 4 Hydrogen (Medium) ran the diagnostic loop and drafted this report; reviewed by human. |
|
Independent desktop NVIDIA verification of PR #2521 at head Environment
Targeted release tests & build (
|
| Command | Result |
|---|---|
cargo test --release -p xcl --lib blob_entry_reports_replaced_file_size_from_path -- --nocapture (3 consecutive runs) |
1 passed; 0 failed; 0 ignored; 1324 filtered out × 3 (0.01s × 3, 0 skipped; live Windows 11 NTFS verification) |
cargo test --release -p xcl --lib hle::xgameruntime::gamesave:: -- --test-threads=1 (3 consecutive runs) |
12 passed; 0 failed; 0 ignored; 1313 filtered out × 3 (2.00s, 1.09s, 0.43s, 0 skipped) |
cargo build --release -p xcl |
Clean build (1m 08s, exit 0, 0 new warnings) |
Paired quiet 60 s retail smoke (title: 29640639)
Exact parent & merge-base (6d12f58a229bc73889878a448c64dc3af25eeba0, cached baseline on the same machine):
xcl-smoke v1
commit: 6d12f58a229bc73889878a448c64dc3af25eeba0
gpu: NVIDIA GeForce RTX 4060
title: 29640639
seconds: 60
exit: 0x0
frames shown: 1606 (PresentX 1606)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14004 MB
PR #2521 (c5f68eddf00db07ada4c5cddedabddf9c7eff300):
xcl-smoke v1
commit: c5f68eddf00db07ada4c5cddedabddf9c7eff300
gpu: NVIDIA GeForce RTX 4060
title: 29640639
seconds: 60
exit: 0x0
frames shown: 1575 (PresentX 1575)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14012 MB
Runtime log observations (xcl.log)
9222log lines,0[ERROR]/ device-removal / panic lines (XGameRuntime: QueryApiImpl ... -> XGameSave: XCLinitialized cleanly;dxil_cache:460hits,0misses,0failures).- Final draw/memory telemetry in log:
19549 draws with translated pipelines (0 skipped, 0 with PC pipelines), 1024 dispatches (0 skipped); last memory sample14011 MB committed by the process; video memory 6115 MB local, 4681 MB non-local.
Limits of coverage
- Path-based
std::fs::metadata(&path)blob-size lookup after atomic file replacement (avoiding stale Windows NTFSDirEntry::metadata()sizes) was verified directly on Windows 11 NTFS viahle::xgameruntime::gamesave::tests::blob_entry_reports_replaced_file_size_from_path(3/3) and the fullhle::xgameruntime::gamesave::suite (12/12× 3). - The 60 s retail smoke confirms startup and
XGameSaveAPI binding non-regression (single-run frame/commit delta vs. cached parent reflects normal startup variance, not this PR); it did not drive an interactive in-title save-blob replacement and re-enumeration cycle.
AI disclosure: test execution and report drafting assisted by Google Antigravity (Gemini 4 Neon).
|
merge-check claim |
|
merge-check |
|
merge-check |
|
No open or merged PR makes the same change. Main moved the enumeration into AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human. |
Part of #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.Independent main:
Independent PR head:
Not tested
~XCLTMP.entry appeared. XGameRuntime: ignore mixed-case game-save temp files #2373 addresses that filter. A second report identified transient writerMoveFileExWfailures and a reader-thread lifetime hazard on panic. This PR addresses stale size metadata only.AI use