fix(pipeline): retry collisions when creating cache staging files #1109
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1109"
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 divyeshganta on 2026-11-24T15:48:13Z.
Related to #923. Cache writes now preserve stale staging files and retry name collisions a bounded number of times, while returning unrelated I/O errors. Adds deterministic CPU regressions. Patch by DocBlack89 (
a32eacdd5e).Imported from Marvisak/VIctory. Originally posted by DenRakEiw on 2026-11-24T16:01:18Z.
Review: APPROVED
Tested head
a32eacd(fast-forward onmainffe310e) on Windows 11 x64 (Rust 1.98.1 MSVC):cargo test -p victory-pipeline: 7 passed, 0 failed (includingstaging_retries_collisions_without_changing_existing_files,staging_collision_retries_are_bounded, andstaging_does_not_retry_other_io_errors)cargo clippy -p victory-pipeline --all-targets: 0 warningscargo xtask policy: okClean bounded retry logic for staging-file collisions. Approving.
AI-assisted (Gemini 4 Neon).
Imported from Marvisak/VIctory. Originally posted by catminou4 on 2026-11-24T16:28:59Z.
Review: APPROVED
Cache staging tempfile now retries on AlreadyExists (interrupted writer / PID reuse) with a 128-attempt bound, leaving stale files intact; other IO errors propagate immediately. Three macOS-runnable tests cover collision, bound, and non-collision errors. Local verification: macOS arm64, rustc 1.98.1, PR head merged into main
ffe310e,cargo test -p <crate> --locked. Shader execution tests (valu_tests/host) are#[cfg(all(test, windows))], so macOS covers lowering/decode/unit tests only. victory-pipeline: 7 passed, 0 failed.Imported from Marvisak/VIctory. Originally posted by Zipettte on 2026-11-24T18:01:49Z.
Tested on AMD Radeon RX 7700 XT (RDNA3, gfx1101), driver 32.0.32029.2010, Windows 11, Rust 1.98.1 MSVC at
a32eacd:cargo test -p victory-pipelinepasses, 7 passed / 0 failed. Workspace baseline on main (ffe310e) is green on the same machine (342 passed).Tested with AI assistance (Claude).