Honor explicit --all when the used-pipeline list is unreadable #4823
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/4823"
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:17:08Z.
What it changes
victory preload --allexplicitly selects every known pipeline. It still readsearly-pipelines.txtto decide whether to select only used pipelines. If the list exists and cannot be opened, this prevents the requested warm-up from starting.Skip that mode-detection read for
--alland print the explicit all-pipeline mode. Automatic selection still reports a read error instead of silently warming every pipeline.How it was tested
main5fabb46eand releasev2026.11.30.03both returnedPermissionDeniedfor--allwhenearly-pipelines.txtwas a directory.36e3a1ea4279f56f05e4ef2a66b342ec9e0d6150selected every known pipeline and printedevery known pipeline (--all). The same fixture confirmed that auto mode still reports the read failure and selects used pipelines with a readable list of 1,000 entries.cargo xtask policy --stagedaccepted the one changed file.Checked for overlap
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 trustno1-coder/VIctory-NVIDIA. Originally posted by gut0to on 2026-12-01T15:21:35Z.
Code review location:
apps/victory/src/main.rs; line 719Could --all with an unreadable first-use list get an integration regression test? This branch skips the early-pipelines.txt read when all is set, but existing tests only cover the preload_used boolean policy. A temp home with an invalid-UTF-8 list should still let preload --all select every pipeline, while --used should report the read error.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by gut0to on 2026-12-01T15:21:35Z.
Review: COMMENTED
AI-assisted review: I traced the explicit --all path and the early-pipeline list read. I used AI assistance and verified that the existing tests do not exercise this command-level branch.
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.