Repository navigation
GPU: retry publishing prebuilt pipeline lists after a write failure - #2232
andrewpozdnakov7-jpg wants to merge 2 commits into
Conversation
|
Integration note for #1429: the two heads conflict in pipeline/library.rs, and they preserve different retry behavior. On Windows with a native D3D12 library, the prebuilt-list regression on 84b873c passed. I then blocked early-pipelines.txt with a directory, saved one used key, removed the directory, and saved again without adding another key.
If the changes are integrated, keeping both regressions would cover the two files independently. The early-list case is outside this PR's stated prebuilt-list fix. AI-assisted, synthetic data only. Follow-up on combined commit 5138eff: I blocked the early-list destination on save 1, unblocked it, recorded a second synthetic key, and blocked the prebuilt-list destination on save 2. After unblocking both, save 3 recovered both keys in each list without any further updates. The prebuilt tag matched the serialized library on disk, and both dirty flags cleared. All 12 selected pipeline-library tests, including this case, passed on the default Windows D3D12 device and again on WARP. This exercises sequential retry and publication with synthetic keys and an empty native library. |
catminou4
left a comment
There was a problem hiding this comment.
Retry publishing prebuilt pipeline lists after a save failure (prebuilt_changed reset on write error). Static review only: victory-gpu/victory-hle are Windows-only (D3D12/windows-sys); not compiled or tested on this macOS arm64 host. rustc 1.98.1.
DenRakEiw
left a comment
There was a problem hiding this comment.
Verified locally merged onto origin/main (940d32f, Windows 11 x64, NVIDIA GeForce RTX 5090, Rust 1.98.1 MSVC):
cargo test -p victory-gpu --lib a_prebuilt_list_is_retried_after_a_failed_publication— passed on RTX 5090cargo clippy -p victory-gpu --all-targets— 0 warningscargo xtask policy— ok (183 files ok)
Clean retry handling when publishing a prebuilt pipeline list fails to write. Looks good.
AI-assisted (Gemini 4 Neon).
|
Thanks for confirming the repro and pointing out #1429. I tried the same Windows/WARP tests on its current head (
The The combined commit can be cherry-picked onto #1429 if that lands first. If you fold in the prebuilt retry, please retain |
|
Automated triage for the maintainers. On a failed write, Generated by Claude Code |
|
I resolved the conflict in 728d376. The merged code uses the upstream ordered early-list loader, fallible serialization allocation and separate pipeline-load handle. On merged main Please retain the Git author if moving the original change, or keep this trailer if it is folded into another commit. Co-authored-by: andrewpozdnakov7-jpg andrewpozdnakov7-jpg@users.noreply.github.com AI-assisted with Codex. |
|
Automated triage for the maintainers, second look (a review against current Closing in favour of #2327, which gives back every dirty mark on a failed serialise or write. This restores only If this is mistaken, reply here with what was missed and it will be looked at again. Thank you for the contribution. |
The save clears the prebuilt list's dirty flag when it serializes the library. If publication then fails, the next save can skip the list even after the destination is available. This can leave the prebuild without a matching list of pipelines already built.
Mark an unpublished prebuilt list dirty again on the write error so the next save retries. The regression blocks the list's path with a directory, saves a native D3D12 library, removes the obstruction, and saves again. Before the fix the list was missing after the retry. With the fix it contains the recorded key and its tag matches the library on disk.
Coordination claim in #1633.
AI-assisted using Codex. Synthetic data only.