GPU: the pipeline cache folder's stale staging files are swept at start #2514
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!2514
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/2514/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?
@oni-swr on GitHub · 2026-11-25 15:08 UTC · original
oni-swr:t3/victory-2496-sweep-tmp→main· +143 −0 · 1 files · 1 commits · closed without mergingPart of #2496 (the stale staging-file sweep half only). The
save()lock half is covered by #2328; this diff does not touchsave(), so it stays disjoint from #2328, #2326 and #2327.use_pipeline_cache()now removes the staging files a cutwrite_atomically()left behind:host-pipelines.bin.tmp-<digits>-<digits>orearly-pipelines.txt.tmp-<digits>-<digits>(ASCII digits, non-empty). Checked withsymlink_metadata(), so symlinks and directories are never followed or removed.use_pipeline_cache().Tests (CPU only,
VICTORY_D3D12_WARP=1):.tmp-foo-1, empty parts,+, extra parts and non-ASCII digits.Checked:
cargo test -p victory-gpu --locked --lib pipeline::library,cargo clippy -p victory-gpu --all-targets --lockedandcargo xtask policyall pass. No game files, dumps, shader names or retail hashes were used.AI-assisted: Claude Code (Claude Sonnet 5.5).
🤖 Generated with Claude Code
@Marvisak on GitHub · 2026-11-25 15:55 UTC · original
Automated triage for the maintainers. Proposed close as a duplicate of the earlier open #2510. #2510 adds the same sweep to
use_pipeline_cache()incrates/victory-gpu/src/pipeline/library.rs, with the same name parsing and the same 10-minute rule for other processes' files, and it also adds thesave()lock from #2496. This PR'sstaging_pidonly matcheshost-pipelines.binandearly-pipelines.txt. On main,save()also writesprebuilt-pipelines.txt(PREBUILT_FILE) throughwrite_atomically, so cut writes of that file would never be swept. #2510 covers that file too. CI (check) passes. This PR will be closed in 48 hours unless the author pushes a change or a maintainer removes the label.Generated by Claude Code
@oni-swr on GitHub · 2026-11-25 16:21 UTC · original
Closing in favor of earlier #2510, which covers the same staging-file sweep (including prebuilt-pipelines.txt) and has been scoped to the sweep.
Pull request closed