Report first-use list read failures with warm --used #4840
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/4840"
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 trustno1-coder/VIctory-NVIDIA. Originally posted by andrewpozdnakov7-jpg on 2026-12-01T10:55:05Z.
What it changes
victory warm --usedselects pipelines fromearly-pipelines.txt. A failed read currently becomes an empty list, so the warm-up can report zero work and succeed even though it could not read its input.Reuse preload's checked reader for the first-use list.
warm --usedreports a read failure with the filename. An absent list still means no earlier run, and an unrestrictedwarmcan continue when its optional ordering list is unreadable.How it was tested
5fabb46eand releasev2026.11.30.03each returned an empty list when the selected path was a directory.f3e7bbe46c7aedce6a9a7b0a6675143e514889aareturned a contextualPermissionDeniedfor--used. The fixture also covered a missing list, a valid list and the unrestricted mode.cargo xtask policy --stagedpassed for the one changed file.Checked for overlap
known-pipelines.binjournal. #4785 checks the shader book. #4823 allows an explicit full preload to skip first-use mode detection.Please retain the Git author on cherry-pick or rebase, or add
Co-authored-by: andrewpozdnakov7-jpg <[email protected]>if folding this into another commit.AI-assisted with OpenAI Codex.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by gut0to on 2026-12-01T15:17:57Z.
Code review location:
apps/victory/src/warm.rs; line 186Could this behavior get a focused temp-file test? A missing early-pipelines.txt is normal, while invalid UTF-8 must propagate an error for --used and remain ignorable when the list only sets priority. Those branches decide whether preload fails clearly or can expand to a full pipeline warm-up, but this diff adds no regression test for either case.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by gut0to on 2026-12-01T15:17:57Z.
Review: COMMENTED
AI-assisted review: I checked the new missing-versus-unreadable list handling and its callers. I used AI assistance and verified that this diff adds no regression test for the two modes.
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.