CLI: fail shader warm-up on missing input roots #3542
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3542"
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-27T15:52:51Z.
Problem
On main
63bcca4, shader warm-up returns success for a missing input and creates an empty cache. With--pipelinesit also reports there is nothing to prebuild. This makes a mistyped path look like completed launch preparation to callers such as #3532.Change
Check the selected roots before opening the shader cache. The error identifies the input that could not be accessed. The same check covers explicit paths and configured defaults. #517 handles the ordinary scan commands.
Verification
On Windows 10 22H2 (19045.6456), with synthetic inputs:
--pipelines--pipelinesThe CLI regression includes a readable file followed by a missing path. All 19 app tests, strict app Clippy in both feature configurations and the asset policy passed. The local combination with #3532
8d37394and #517d8cd94apassed all 26 app tests. Its actualpreload --attempts 1returned 1 for the missing input and 0 for the empty directory.Coordination claim. AI-assisted with Codex.
Imported from Marvisak/VIctory. Originally posted by andrewpozdnakov7-jpg on 2026-11-27T15:56:12Z.
The Windows CI job passed on exact head
6b3747c. The synthetic command-line checks cover explicit missing paths, configured missing paths, and existing empty directories. A missing root now names the input and exits 1 before cache setup. The local combination with #3532 and #517 also verified thatpreloadpropagates that failure and still succeeds for the empty-directory control.Ready for maintainer review. If you reuse the patch, please retain the Git author on cherry-pick or rebase, or use
Co-authored-by: andrewpozdnakov7-jpg <[email protected]>if folding it into another commit.AI-assisted with Codex.
Imported from Marvisak/VIctory. Originally posted by andrewpozdnakov7-jpg on 2026-11-27T16:15:24Z.
I checked #3542 with the #3521 database-hash selection and #2787 warm-key shortcut. Combined branch
4a78b17retains all three PR histories and merges cleanly with63bcca4.I passed a synthetic A/B shader pack and its database with a nonexistent root between them. With
--cache --pipelines --jobs 8and key diagnostics enabled,0fc3158returned 0 and created both the cache and key report. The combined branch returned 1, named the missing root, and created neither. With valid roots on app-local WARP 1.0.22, seeding A and then adding B saved both expected keys. The next run recognized all three records as warm, including the fallback record that uses A.All 20 CLI tests and 16
victory-gametests passed. Strict Clippy for the three affected crates and asset policy passed.Imported from Marvisak/VIctory. Originally posted by cloph-dsp on 2026-11-27T17:36:17Z.
Independent CPU-only verification on Windows / Rust 1.100.0 / MSVC.
6b3747c7006c8a463b0e9d51a573d213f0aa3cbb, merge base63bcca43c6a00a758510398fa43096ce7e4f7df0.cargo test --locked -p victory --test translate -- warm_up_rejects_missing_input_before_creating_cache --exact --test-threads=1 --quiettest result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 1 filtered out, exit 0.git grep -F -c warm_up_rejects_missing_input_before_creating_cache 63bcca43 -- .→ exit 1 / 0 hits (test genuinely new); present on PR head.git diff --check 63bcca43 HEAD→ exit 0.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.