GPU: retry pipeline cache saves after write failures #72
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!72
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@FIocker on GitHub · 2026-11-24 00:13 UTC · original
FIocker:gpu/retry-pipeline-cache-save→main· +91 −27 · 1 files · 1 commits · openKeep 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.@DaviTostes on GitHub · 2026-11-24 00:56 UTC · original
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).
@Exorion1er on GitHub · 2026-11-24 09:33 UTC · original
#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).
@acetonahard-code on GitHub · 2026-11-24 21:13 UTC · original
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.
@Marvisak on GitHub · 2026-11-25 00:15 UTC · original
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
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.