Repository navigation
XGameRuntime: snapshot blob enumeration across submitted updates - #2165
Merged
raylitebull merged 1 commit intoNov 25, 2026
Merged
raylitebull merged 1 commit into
raylitebull merged 1 commit into
Conversation
Enumerating blob sizes while apply replaces files can mix two submitted updates. Collect the blob list under SAVE_MUTATION, then release the lock before invoking title callbacks. Add a concurrent regression that fails on main and passes with the snapshot. Assisted-by: OpenAI Codex (GPT-6)
luckyteagirl
marked this pull request as ready for review
November 25, 2026 07:00
|
Full-suite run, since this PR has no test report yet. Tested exact head Tested
Not tested
AI use
|
Contributor
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
Member
|
Code review on
Remaining before merge: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
XGameSaveEnumerateBlobInfoand its by-name variant collect blob sizes whileXGameSaveSubmitUpdatereplaces files one at a time. The update holdsSAVE_MUTATION, but enumeration did not, so one callback sequence could contain sizes from different submitted updates. This is a narrow follow-up to the enumeration gap noted in #2132.What is in it
each_blobtakesSAVE_MUTATIONonly while collecting the blob metadata snapshot, then releases it before invoking title callbacks. Both blob enumeration entry points use this helper.main, 24,931 of 26,524 enumerations mixed update versions and the test failed. With the snapshot lock, the test passed and passed 5 more independent runs. Callbacks remain outside the lock so they can call GameSave APIs.Tested
30.0.13002.13003; Rust 1.99.0 MSVC; DXC/DXIL 1.9.2609.5. Debug tests, release smoke.cargo test --locked -p xcl --lib -j 2 gamesave -- --test-threads=1 --show-output: 11 passed, 0 failed, 0 ignored. The new race test passed 5 more runs: 5 passed, 0 failed.cargo build --locked --workspace -j 2andcargo build --locked --workspace --release -j 2: both passed.cargo test --locked --workspace --no-fail-fast -j 2 -- --test-threads=4 --show-output: 994 passed, 161 failed, 46 ignored across 21 test targets. The 161 failure names exactly match a cleanmainrun on the same RX 6800M driver (993 passed, 161 failed, 46 ignored); all are GPU tests and the run reports device suspension0x887A0005.mainadvanced from6020a33to this branch's base568e7dbonly in README and an image asset. NineSKIPPEDnotices on this head: no native 16-bit ops; two tests after GPU loss; two shader tests with no usable D3D12 device; no reserved cube with mips; two missing debug-layer cases; and no heap windows. Skips are included in the pass count but provide no coverage for those cases.Regression run
Paired guarded 7-second launches of the same owned 1.0.2.1 title, with isolated data and shader caches. The title reached its first frame but made no GameSave call in this window. The baseline is a
maincommit whose runtime source matches base568e7db.Not tested
main.AI use
OpenAI Codex (GPT-6) read the code, wrote the fix and concurrent test, ran the failed-first control and Windows checks, and drafted this description. All counts and smoke blocks above are from local runs; no game data is included.