CLI: read warm-up input files once per pass #3610

Open
andrewpozdnakov7-jpg wants to merge 1 commit from upstream-pr/3610 into main
andrewpozdnakov7-jpg commented 2026-11-27 21:03:15 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by andrewpozdnakov7-jpg on 2026-11-27T21:03:15Z.


Passing a parent directory and one of its subdirectories, or listing a file already under a directory argument, sent the same path through the shader warm-up and the pipeline prebuild again. The shader cache deduplicated matching containers after the read.

Within each warm-up pass, a successful read now covers subsequent occurrences of the same path. The first occurrence determines input order. Failed reads can be retried when the path occurs again. A single root uses the existing direct read path.

I tested a synthetic pack and two shader containers through the normal CLI. A parent root, a nested root and an explicit file produced five reads per pass on main and three with the patch. The single-root control stayed at three. All 17 sorted pipeline keys matched. The cold WARP run made two distinct pipelines, and the warm run found all 17 records in the library. Both versions translated the same two shaders and found the same two shader-cache entries on the repeat run.

The local read counters and SDK fixture were temporary. The branch includes a unit test for successful, repeated and failed reads.

All 19 CLI tests passed with default and diagnostic features. Both strict Clippy configurations, formatting for the changed files and the asset policy check passed.

Developed and tested with Codex assistance.

<!-- greyfinch-sync:Marvisak/VIctory:issue:5533064691 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3610). Originally posted by [andrewpozdnakov7-jpg](https://github.com/andrewpozdnakov7-jpg) on 2026-11-27T21:03:15Z. --- Passing a parent directory and one of its subdirectories, or listing a file already under a directory argument, sent the same path through the shader warm-up and the pipeline prebuild again. The shader cache deduplicated matching containers after the read. Within each warm-up pass, a successful read now covers subsequent occurrences of the same path. The first occurrence determines input order. Failed reads can be retried when the path occurs again. A single root uses the existing direct read path. I tested a synthetic pack and two shader containers through the normal CLI. A parent root, a nested root and an explicit file produced five reads per pass on main and three with the patch. The single-root control stayed at three. All 17 sorted pipeline keys matched. The cold WARP run made two distinct pipelines, and the warm run found all 17 records in the library. Both versions translated the same two shaders and found the same two shader-cache entries on the repeat run. The local read counters and SDK fixture were temporary. The branch includes a unit test for successful, repeated and failed reads. All 19 CLI tests passed with default and diagnostic features. Both strict Clippy configurations, formatting for the changed files and the asset policy check passed. Developed and tested with Codex assistance.
andrewpozdnakov7-jpg commented 2026-11-27 21:07:05 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by andrewpozdnakov7-jpg on 2026-11-27T21:07:05Z.


Windows CI passed on the published commit f87d06f. The local CLI comparison used the same three synthetic inputs in all runs. Overlapping roots caused 10 input reads on main and 6 with this change across shader warm-up and prebuild. All 17 pipeline keys matched. Both cold WARP runs made two distinct pipelines and both warm runs found all 17 records. The single-root control stayed at three reads per pass. Windows CI

If reusing the change or the test, please retain the Git author when cherry-picking or rebasing. If folding it into another commit, please add the trailer below.

Co-authored-by: andrewpozdnakov7-jpg [email protected]

<!-- greyfinch-sync:Marvisak/VIctory:comment:7228150168 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3610#issuecomment-7228150168). Originally posted by [andrewpozdnakov7-jpg](https://github.com/andrewpozdnakov7-jpg) on 2026-11-27T21:07:05Z. --- Windows CI passed on the published commit f87d06f. The local CLI comparison used the same three synthetic inputs in all runs. Overlapping roots caused 10 input reads on main and 6 with this change across shader warm-up and prebuild. All 17 pipeline keys matched. Both cold WARP runs made two distinct pipelines and both warm runs found all 17 records. The single-root control stayed at three reads per pass. [Windows CI](https://github.com/Marvisak/VIctory/actions/runs/46067730316/job/140737013266) If reusing the change or the test, please retain the Git author when cherry-picking or rebasing. If folding it into another commit, please add the trailer below. Co-authored-by: andrewpozdnakov7-jpg <[email protected]>
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/3610:upstream-pr/3610'
git switch 'upstream-pr/3610'

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