XGameRuntime: a save update applies all its steps or none #621
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!621
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/621/head"
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?
@milas6669 on GitHub · 2026-11-24 02:37 UTC · original
milas6669:xgameruntime-atomic-save-update→main· +188 −23 · 1 files · 1 commits · closed without mergingXGameSaveSubmitUpdate wrote each blob with its own temp-and-rename, so a write that failed halfway left the container with part of the update applied. Every blob is now staged under a
~xcltmp.name first and then renamed in order; if a step fails, the steps already applied are rolled back.write_atomichad no other caller and is removed.Fixes #324
What is in it
gamesave.rs:stage_file,Step, the staged/rollbackapply(); one existing test adapteda_failing_write_leaves_the_whole_update_undone(fails without the fix) andan_update_applies_its_steps_in_orderTested
cargo test --workspace -- --test-threads=4: 647 passed, 0 failed, 21 ignoredgpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware(no wave64)Regression run
scripts/smoke.ps1againstNot tested
scripts/smoke.ps1main vs PR headAI use
@milas6669 on GitHub · 2026-11-24 03:22 UTC · original
Closing: #491 (and #543) already cover this and were opened earlier. Please review those instead.
Pull request closed