GPU: retry pipeline cache saves after write failures #72
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/72"
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?
Imported from Marvisak/VIctory. Originally posted by FIocker on 2026-11-24T00:13:02Z.
Keep new pipeline entries eligible for persistence until both the library blob and the early-start list have been written. A temporary write or replacement failure now retries at the next save. Serialize save attempts and use a unique temporary file for each publication.
The new filesystem tests cover concurrent complete writes and temporary-file cleanup when replacement fails. They use synthetic bytes and do not create a GPU device.
Validation on x64 Windows:
cargo check -p victory-gpu,cargo clippy -p victory-gpu --tests -- -D warnings,cargo test -p victory-gpu atomic_writes,cargo test -p victory-pipeline, and the asset policy check passed.Imported from Marvisak/VIctory. Originally posted by DaviTostes on 2026-11-24T00:56:10Z.
Tested
521ceccunder Wine 11.22 + vkd3d-proton 3.1 on Arch Linux x86_64 (AMD RX 9060 XT, RADV 26.3.1), Windows build withcargo xwin ... --target x86_64-pc-windows-msvc:victory_gpu: 37 passed, 4 failed. Three are the usual environment-only ones; the fourth is this PR's new testpipeline::library::tests::concurrent_atomic_writes_publish_one_complete_file: i.e. concurrentMoveFileEx-style replace on the same destination returnsACCESS_DENIEDunder Wine. The other new test (failed_atomic_writes_remove_their_temporary_file) passes.ACCESS_DENIEDthere — if they can, the retry should treat it as retryable, which this test asserts by.unwrap()-ing the write instead of letting the production path retry.No game data used. AI-assisted (DeepSeek V4.1 Flash coding agent).
Imported from Marvisak/VIctory. Originally posted by Exorion1er on 2026-11-24T09:33:24Z.
#640 changes the same function in
pipeline/library.rsfor the same failure: it keeps the lock across both writes and re-marks after a failed save. This PR does that and also:saturating_subwhere #640 doesadded -= addedBoth merge cleanly but edit the same lines, so only one can land. This one looks like the fuller fix.
Checked by reading both diffs. AI-assisted (Claude Code).
upstream-sync referenced this pull request2026-11-24 19:03:41 +00:00
Imported from Marvisak/VIctory. Originally posted by acetonahard-code on 2026-11-24T21:13:08Z.
As already noted in the comments here, this overlaps #640. They conflict in
library.rs.Tested on Windows 11, RTX 4070 SUPER (driver 621.14), with the repo toolchain, merged into current
main(ffe310e):cargo test -p victory-gpumainmain+ this PRmain,--all-featuresmain+ this PR,--all-featurescargo clippy --all-targets -- -D warnings, with and without--all-features: clean.cargo fmt --checkwould rewrap 2 blocks this PR adds (library.rs).mainisn't rustfmt-clean either, so take it or leave it.I didn't test with game data.
Tested locally with an AI-assisted script (Claude Code); I checked the results before posting.
Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T00:15:08Z.
Automated triage for the maintainers.
Needs rebase. This PR does not merge cleanly into current
main(ac2525d). Conflicting files:crates/victory-gpu/src/pipeline/library.rs.The content has not been reviewed yet; it will be once the branch is rebased onto
main.Generated by Claude Code
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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.