Report an unreadable shader book during preload #4785

Open
andrewpozdnakov7-jpg wants to merge 2 commits from upstream-pr/4785 into main
andrewpozdnakov7-jpg commented 2026-12-01 08:14:22 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by andrewpozdnakov7-jpg on 2026-12-01T08:14:22Z.


Refs #4703.

CI inherits five Clippy errors in font.rs, menu.rs and panel.rs from main 5fabb46. #4707 addresses them.

What it changes

A pipeline warm-up with a recorded recipe could exit successfully when the worker could not open the shader book. The launcher could record a completed preload even though the worker made no pipelines.

Check that the shader book can be opened when either warm-up stage has pipelines to process. If the open fails, report the file path and return an error before starting workers. Empty caches and runs with no scheduled pipelines still succeed.

How it was tested

  • Windows, synthetic cache records and an empty input directory. No game assets or rendering run.

  • On main 5fabb46, cargo test --locked -p victory --test cache_paths reproduced 0 made with exit 0. A library-only synthetic preload also returned 0 with 0 of 1 saved.

  • With 65269e7, the same test target passed 2/2. The library-only preload returned 1 and named known-shaders.bin. The reporter later confirmed the shader book was absent after they moved it while keeping the pipeline book. The same release resumed shader translation after they restored it. Reporter confirmation.

  • cargo xtask policy --staged passed for both changed files.

  • cargo clippy --locked -p victory --all-targets -- -D warnings stopped on the five inherited diagnostics.

  • Both strict workspace Clippy gates (default and all features) passed locally with 65269e7 and the exact #4707 change f4396b7, in combined commit 569af16.

  • Follow-up a0f1a34 relocates the shader-book helper and its existing regression around #3588. On main 5fabb46, Git produced the same combined tree fdc3a14 in either merge order with the rebased #3588 change.

Checked for overlap

  • Searched open and closed PRs for the symptom and open PRs for the files involved. #1921 and #1923 cover per-pipeline responses, #1931 covers worker crash attribution, #3588 covers pipeline journal I/O and #4485 covers when books get preloaded.
<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5581727695 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4785). Originally posted by [andrewpozdnakov7-jpg](https://github.com/andrewpozdnakov7-jpg) on 2026-12-01T08:14:22Z. --- Refs #4703. CI inherits five Clippy errors in `font.rs`, `menu.rs` and `panel.rs` from main `5fabb46`. #4707 addresses them. ## What it changes A pipeline warm-up with a recorded recipe could exit successfully when the worker could not open the shader book. The launcher could record a completed preload even though the worker made no pipelines. Check that the shader book can be opened when either warm-up stage has pipelines to process. If the open fails, report the file path and return an error before starting workers. Empty caches and runs with no scheduled pipelines still succeed. ## How it was tested - Windows, synthetic cache records and an empty input directory. No game assets or rendering run. - On main `5fabb46`, `cargo test --locked -p victory --test cache_paths` reproduced `0 made` with exit 0. A library-only synthetic preload also returned 0 with `0 of 1` saved. - With `65269e7`, the same test target passed 2/2. The library-only preload returned 1 and named `known-shaders.bin`. The reporter later confirmed the shader book was absent after they moved it while keeping the pipeline book. The same release resumed shader translation after they restored it. [Reporter confirmation](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4703#issuecomment-7307725749). - `cargo xtask policy --staged` passed for both changed files. - `cargo clippy --locked -p victory --all-targets -- -D warnings` stopped on the five inherited diagnostics. - Both strict workspace Clippy gates (default and all features) passed locally with 65269e7 and the exact #4707 change f4396b7, in combined commit 569af16. - Follow-up a0f1a34 relocates the shader-book helper and its existing regression around #3588. On main 5fabb46, Git produced the same combined tree fdc3a14 in either merge order with the rebased #3588 change. ## Checked for overlap - [x] Searched open and closed PRs for the symptom and open PRs for the files involved. #1921 and #1923 cover per-pipeline responses, #1931 covers worker crash attribution, #3588 covers pipeline journal I/O and #4485 covers when books get preloaded.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/4785:upstream-pr/4785'
git switch 'upstream-pr/4785'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/4785'
git switch 'upstream-pr/4785'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/4785'
git switch 'upstream-pr/4785'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/4785'
git switch 'main'
git merge --squash 'upstream-pr/4785'
git switch 'main'
git merge --ff-only 'upstream-pr/4785'
git switch 'main'
git merge 'upstream-pr/4785'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
trustno1-coder/VIctory-NVIDIA!4785
No description provided.