Retry failed pipeline cache saves #640
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!640
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/640/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?
@Fluxxer763664 on GitHub · 2026-11-24 06:04 UTC · original
Fluxxer763664:fix/retry-pipeline-cache-save→main· +31 −22 · 1 files · 1 commits · closed without mergingThis fix lets VIctory retry saving its pipeline cache after a failed write. The Windows GPU suite passed 46 tests, and the fix passed three simulated write-failure scenarios. No game files were used. AI-assisted.
@geiyiliyabumo on GitHub · 2026-11-24 11:41 UTC · original
Independent verification & code review on Windows 11 Pro (build 26100) + AMD Radeon RX 9060 XT (RDNA4, driver
32.0.32029.2010, Rust1.98.1), cleanly merged ontomain(ffe310e):cargo xtask policy: PASS (154 files ok)cargo clippy -p victory-gpu --all-targets --locked -- -D warnings: PASScargo clippy -p victory-gpu --all-targets --features diagnostics --locked -- -D warnings: PASScargo test -p victory-gpu --locked: 50 passed, 0 failed, 1 ignoredDiff review (
crates/victory-gpu/src/pipeline/library.rs): clean and deadlock-free:LASTacross bothwrite_atomicallycalls prevents concurrentsave()calls from racing on the shared.tmpfilenames while keeping the lock order strictlyLAST -> library/LAST -> USED(never acquiringLASTfrom inside either).addedonly onOk(())preserves both failed-save retry state and any pipelines stored concurrently during disk I/O, and restoringUSED_CHANGEDon serialize/write failure avoids silently dropping early-pipeline updates.library.rs, so maintainers may want to pick one of #640 or #72.AI-assisted; synthetic tests only, no game files.
@Marvisak on GitHub · 2026-11-25 00:26 UTC · original
Automated triage for the maintainers. Closing because another open pull request covers the same change.
See #72. Same retry-after-failed-save change as #72 without its unique temp files or tests.
If this is mistaken, reply here with what was missed (or push a change and say so) and it will be looked at again. Thank you for the contribution.
Pull request closed