warm: stop when known-shaders.bin cannot be opened #29

Manually merged
github merged 1 commit from github-bot/gh-29 into main 2026-12-05 18:19:55 +00:00 AGit
Owner

@⁠Kal0s-design on GitHub · 2026-12-05 14:57 UTC · original
Kal0s-design:fix/warm-zero-pipelines → main · +61 −0 · 3 files · 1 commits · merged 2026-12-05 18:18 UTC

This is for #12, where warm reports 0 made with nothing failed and nothing missing.

The reporter's cache had only known-pipelines.bin copied in. Warm also reads known-shaders.bin from the same folder, and when that file cannot be opened WarmWorker::open returns None. The persistent worker then exits 0 without printing anything. The parent sees no result, takes the first pipeline as the suspect and retries it alone, and the one-shot worker fails to open the file the same way and also exits 0, so the retry is treated as made alone. Neither counter is touched and the pipeline leaves the queue. Every pipeline goes this way, two process starts each, which gives "0 made (0 have no host pipeline, 0 ended their process)" and a warm-done.txt that is never written. The same code is in upstream, so this is not from the RDNA3 tuning.

Warm now checks that known-shaders.bin can be opened before it starts any worker, and stops with an error that names the file and says both files come from runs with VICTORY_PIPELINE_BOOK=1. It only checks that the file opens. An empty file still takes the existing path, which warm_bad relies on.

The new test warm_missing_shaders builds a cache with three pipelines and no known-shaders.bin. On main it printed the same two lines as the issue and exited 0. With this change warm fails and names the file. warm_bad still passes. I ran both on one NVIDIA desktop card, and nothing on this path depends on the vendor. Clippy on the workspace stops in victory-dxil on a manual_range_patterns lint that is already on main, which is also why CI on main is red, so I could not get a clean clippy run past that crate.

Unrelated to the fix, but it may help the reporter. On AMD warm fills the driver's own cache and does not write host-pipelines.bin unless VICTORY_WARM_LIBRARY=1 is set. That file is written by the game run, so not having it after a warm is expected.

A possible follow-up, not in this change, is to stop counting a retry that exits 0 as made unless that pipeline actually reported made. That would close this kind of silent drop for any other cause.

AI-assisted: yes

🤖 Generated with Claude Code

**@⁠Kal0s-design** on GitHub · 2026-12-05 14:57 UTC · [original](https://github.com/VGLALALA/ReVictory-RDNA3/pull/29) `Kal0s-design:fix/warm-zero-pipelines` → `main` · +61 −0 · 3 files · 1 commits · merged 2026-12-05 18:18 UTC This is for #12, where warm reports 0 made with nothing failed and nothing missing. The reporter's cache had only known-pipelines.bin copied in. Warm also reads known-shaders.bin from the same folder, and when that file cannot be opened WarmWorker::open returns None. The persistent worker then exits 0 without printing anything. The parent sees no result, takes the first pipeline as the suspect and retries it alone, and the one-shot worker fails to open the file the same way and also exits 0, so the retry is treated as made alone. Neither counter is touched and the pipeline leaves the queue. Every pipeline goes this way, two process starts each, which gives "0 made (0 have no host pipeline, 0 ended their process)" and a warm-done.txt that is never written. The same code is in upstream, so this is not from the RDNA3 tuning. Warm now checks that known-shaders.bin can be opened before it starts any worker, and stops with an error that names the file and says both files come from runs with VICTORY_PIPELINE_BOOK=1. It only checks that the file opens. An empty file still takes the existing path, which warm_bad relies on. The new test warm_missing_shaders builds a cache with three pipelines and no known-shaders.bin. On main it printed the same two lines as the issue and exited 0. With this change warm fails and names the file. warm_bad still passes. I ran both on one NVIDIA desktop card, and nothing on this path depends on the vendor. Clippy on the workspace stops in victory-dxil on a manual_range_patterns lint that is already on main, which is also why CI on main is red, so I could not get a clean clippy run past that crate. Unrelated to the fix, but it may help the reporter. On AMD warm fills the driver's own cache and does not write host-pipelines.bin unless VICTORY_WARM_LIBRARY=1 is set. That file is written by the game run, so not having it after a warm is expected. A possible follow-up, not in this change, is to stop counting a retry that exits 0 as made unless that pipeline actually reported made. That would close this kind of silent drop for any other cause. AI-assisted: yes 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Without known-shaders.bin, WarmWorker::open gives up, the persistent
worker exits 0 with no output, and the one-shot retry of each suspect
exits 0 too, so it counts as "made alone": every pipeline was dropped
uncounted, two process starts each ("0 made ... 0 have no host pipeline,
0 ended their process"), and warm-done.txt was never written (#12).
The warm now says which file is missing before starting workers.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-05 14:58:12 +00:00
github manually merged commit d8f7d633ea into main 2026-12-05 18:19:55 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.