CLI: report incomplete shader-cache warm-up scans #3789

Open
andrewpozdnakov7-jpg wants to merge 1 commit from upstream-pr/3789 into main
andrewpozdnakov7-jpg commented 2026-11-28 20:26:39 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by andrewpozdnakov7-jpg on 2026-11-28T20:26:39Z.


When a root cannot be traversed, the shader-cache warm-up now reports that error and keeps processing the accessible inputs. It prints the cache summary and then returns a nonzero status for an incomplete scan. This covers translate --cache. The ordinary translation and shader-info scan handling is in #517.

I checked a generated DXBC container between two missing roots. The old warm-up printed the container summary and exited 0. With this change it reports both roots and exits 1, and a second clean invocation gets one cache hit and exits 0. All 19 CLI tests, both strict CLI Clippy configurations and the asset policy passed.

Please retain the Git author on cherry-pick or rebase, or add Co-authored-by: andrewpozdnakov7-jpg <[email protected]> if folding the change into another commit.

AI-assisted with OpenAI Codex.

<!-- greyfinch-sync:Marvisak/VIctory:issue:5544265306 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3789). Originally posted by [andrewpozdnakov7-jpg](https://github.com/andrewpozdnakov7-jpg) on 2026-11-28T20:26:39Z. --- When a root cannot be traversed, the shader-cache warm-up now reports that error and keeps processing the accessible inputs. It prints the cache summary and then returns a nonzero status for an incomplete scan. This covers `translate --cache`. The ordinary translation and shader-info scan handling is in #517. I checked a generated DXBC container between two missing roots. The old warm-up printed the container summary and exited 0. With this change it reports both roots and exits 1, and a second clean invocation gets one cache hit and exits 0. All 19 CLI tests, both strict CLI Clippy configurations and the asset policy passed. Please retain the Git author on cherry-pick or rebase, or add `Co-authored-by: andrewpozdnakov7-jpg <[email protected]>` if folding the change into another commit. AI-assisted with OpenAI Codex.
andrewpozdnakov7-jpg commented 2026-11-28 20:31:06 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by andrewpozdnakov7-jpg on 2026-11-28T20:31:06Z.


Windows CI passed on a27c727, including both Clippy configurations and the workspace tests. The warm-up regression reports both missing roots, caches the accessible synthetic container's result, and returns 1. The clean repeat returns 0 and finds one cached result.

The next step is maintainer review. Please retain the Git author on cherry-pick or rebase, or add Co-authored-by: andrewpozdnakov7-jpg <[email protected]> if folding the change into another commit.

AI-assisted with OpenAI Codex.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7245343805 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3789#issuecomment-7245343805). Originally posted by [andrewpozdnakov7-jpg](https://github.com/andrewpozdnakov7-jpg) on 2026-11-28T20:31:06Z. --- [Windows CI](https://github.com/Marvisak/VIctory/actions/runs/46186430815/job/141107266749) passed on a27c727, including both Clippy configurations and the workspace tests. The warm-up regression reports both missing roots, caches the accessible synthetic container's result, and returns 1. The clean repeat returns 0 and finds one cached result. The next step is maintainer review. Please retain the Git author on cherry-pick or rebase, or add `Co-authored-by: andrewpozdnakov7-jpg <[email protected]>` if folding the change into another commit. AI-assisted with OpenAI Codex.
cloph-dsp commented 2026-11-28 23:39:29 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by cloph-dsp on 2026-11-28T23:39:29Z.


Independent local verification (Windows, Rust 1.100.0/MSVC, no game data):

  • PR #3789 at head a27c727718acf6229526ebc872d18953a27b2bdf, base/parent 63bcca43c6a00a758510398fa43096ce7e4f7df0.
  • cargo test --locked -p victory --test translate -- cache_warmup_keeps_results_and_reports_missing_roots --exact --test-threads=1 --quiet → 1 passed, 0 failed, 1 filtered, exit 0.
  • git grep -F for the new test name on the parent returned no match (test is new on this PR); git diff --check HEAD^ HEAD clean (2 files, +67/-4).
  • Used a per-worktree CARGO_TARGET_DIR (target-3789-watch, never shared) with CARGO_BUILD_JOBS=2.
  • Only the named integration test was replayed locally; it builds a synthetic empty DXBC container in a temp directory and runs the built victory translate --cache binary. The full workspace suite and clippy were not run.
  • GPU/driver: N/A (CPU-only CLI test; no title files or GPU hardware). No game data, assets, extracted shaders, DRM or decrypt involved.

AI-assisted (Hy4 flash).

<!-- greyfinch-sync:Marvisak/VIctory:comment:7247576911 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3789#issuecomment-7247576911). Originally posted by [cloph-dsp](https://github.com/cloph-dsp) on 2026-11-28T23:39:29Z. --- Independent local verification (Windows, Rust 1.100.0/MSVC, no game data): - PR #3789 at head `a27c727718acf6229526ebc872d18953a27b2bdf`, base/parent `63bcca43c6a00a758510398fa43096ce7e4f7df0`. - `cargo test --locked -p victory --test translate -- cache_warmup_keeps_results_and_reports_missing_roots --exact --test-threads=1 --quiet` → 1 passed, 0 failed, 1 filtered, exit 0. - `git grep -F` for the new test name on the parent returned no match (test is new on this PR); `git diff --check HEAD^ HEAD` clean (2 files, +67/-4). - Used a per-worktree `CARGO_TARGET_DIR` (target-3789-watch, never shared) with `CARGO_BUILD_JOBS=2`. - Only the named integration test was replayed locally; it builds a synthetic empty DXBC container in a temp directory and runs the built `victory translate --cache` binary. The full workspace suite and clippy were not run. - GPU/driver: N/A (CPU-only CLI test; no title files or GPU hardware). No game data, assets, extracted shaders, DRM or decrypt involved. AI-assisted (Hy4 flash).
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/3789:upstream-pr/3789'
git switch 'upstream-pr/3789'

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/3789'
git switch 'upstream-pr/3789'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/3789'
git switch 'upstream-pr/3789'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/3789'
git switch 'main'
git merge --squash 'upstream-pr/3789'
git switch 'main'
git merge --ff-only 'upstream-pr/3789'
git switch 'main'
git merge 'upstream-pr/3789'
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
Marvisak/VIctory!3789
No description provided.