CLI: report incomplete shader-cache warm-up scans #3789
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3789"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.
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.
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):
a27c727718acf6229526ebc872d18953a27b2bdf, base/parent63bcca43c6a00a758510398fa43096ce7e4f7df0.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 -Ffor the new test name on the parent returned no match (test is new on this PR);git diff --check HEAD^ HEADclean (2 files, +67/-4).CARGO_TARGET_DIR(target-3789-watch, never shared) withCARGO_BUILD_JOBS=2.victory translate --cachebinary. The full workspace suite and clippy were not run.AI-assisted (Hy4 flash).
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.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.