fix(shader-info): report scan failures and safely save dumps #2785

Open
github-bot wants to merge 1 commit from github-bot/gh-2785 into main AGit
Owner

@⁠LgscobraPT on GitHub · 2026-11-29 17:18 UTC · original
LgscobraPT:fix/shader-info-scan-and-output → main · +158 −25 · 3 files · 1 commits · open

What it changes

  • Report traversal and file-read failures from shader-info, with the affected path. Missing input no longer looks like a successful scan with zero results.
  • Honor VICTORY_SHADER_SAVE without requiring VICTORY_SHADER_ONLY; when a filter is set, only matching, valid containers are saved.
  • Apply the existing asset policy to both the output directory and each output file. Stage each dump in a temporary file beside the destination and replace the final entry instead of opening it for writing. Tests use only synthetic data.

How it was tested

  • GPU/profile and wave size: not applicable. This changes the inspection command, not shader generation or runtime behavior.
  • Tested with a synthetic header and an isolated Linux harness including the production shader.rs module. Missing input, save without a filter, and a save destination inside a checkout all failed their regression tests on the base. All five regression tests and the existing shader hash test passed with the patch. The repeat-save test also checks that replacement leaves no temporary files behind. The harness's Clippy check and cargo xtask policy --staged passed.
  • Full CLI tests could not run. The Windows/MSVC cross-check for victory reported the same nine compile errors in unchanged victory-gpu files (copystat.rs and host.rs) on both the pristine upstream revision and this patch.

Checked for overlap

  • Searched open PRs for shader-info and VICTORY_SHADER_SAVE; no equivalent fix found.

AI-assisted: yes.

**@⁠LgscobraPT** on GitHub · 2026-11-29 17:18 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2785) `LgscobraPT:fix/shader-info-scan-and-output` → `main` · +158 −25 · 3 files · 1 commits · open ## What it changes - Report traversal and file-read failures from `shader-info`, with the affected path. Missing input no longer looks like a successful scan with zero results. - Honor `VICTORY_SHADER_SAVE` without requiring `VICTORY_SHADER_ONLY`; when a filter is set, only matching, valid containers are saved. - Apply the existing asset policy to both the output directory and each output file. Stage each dump in a temporary file beside the destination and replace the final entry instead of opening it for writing. Tests use only synthetic data. ## How it was tested - GPU/profile and wave size: not applicable. This changes the inspection command, not shader generation or runtime behavior. - Tested with a synthetic header and an isolated Linux harness including the production `shader.rs` module. Missing input, save without a filter, and a save destination inside a checkout all failed their regression tests on the base. All five regression tests and the existing shader hash test passed with the patch. The repeat-save test also checks that replacement leaves no temporary files behind. The harness's Clippy check and `cargo xtask policy --staged` passed. - Full CLI tests could not run. The Windows/MSVC cross-check for `victory` reported the same nine compile errors in unchanged `victory-gpu` files (`copystat.rs` and `host.rs`) on both the pristine upstream revision and this patch. ## Checked for overlap - [x] Searched open PRs for `shader-info` and `VICTORY_SHADER_SAVE`; no equivalent fix found. AI-assisted: yes.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-29 17:22:21 +00:00
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/2785/head:github-bot/gh-2785'
git switch 'github-bot/gh-2785'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-2785'
git switch 'github-bot/gh-2785'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-2785'
git switch 'github-bot/gh-2785'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-2785'
git switch 'main'
git merge --squash 'github-bot/gh-2785'
git switch 'main'
git merge --ff-only 'github-bot/gh-2785'
git switch 'main'
git merge 'github-bot/gh-2785'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No reviewers
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.

Dependencies

No dependencies set

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