GPU: the pipeline cache folder's stale staging files are swept at start #2512
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2514"
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 oni-swr on 2026-11-25T15:08:37Z.
Part 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
Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T15:55:20Z.
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
Imported from Marvisak/VIctory. Originally posted by oni-swr on 2026-11-25T16:21:36Z.
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