Honor explicit --all when the used-pipeline list is unreadable #4823

Open
andrewpozdnakov7-jpg wants to merge 1 commit from upstream-pr/4823 into main
andrewpozdnakov7-jpg commented 2026-12-01 10:17:08 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by andrewpozdnakov7-jpg on 2026-12-01T10:17:08Z.


What it changes

victory preload --all explicitly selects every known pipeline. It still reads early-pipelines.txt to 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 --all and print the explicit all-pipeline mode. Automatic selection still reports a read error instead of silently warming every pipeline.

How it was tested

  • Windows/MSVC, Rust 1.98.1, with the exact Rust mode-selection block and used-list reader in a standalone fixture. No GPU or game files were involved.
  • Before: the selection block from main 5fabb46e and release v2026.11.30.03 both returned PermissionDenied for --all when early-pipelines.txt was a directory.
  • After: 36e3a1ea4279f56f05e4ef2a66b342ec9e0d6150 selected every known pipeline and printed every 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 --staged accepted the one changed file.
  • Main's CI check has five existing Clippy errors tracked in #4707.

Checked for overlap

  • I searched issues and PRs for the symptom and the affected mode-selection code. #1253 introduced this selection. #4785 diagnoses a different required file, the shader book. #4485 covers automatic preload on the next game start.

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.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5583622080 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4823). Originally posted by [andrewpozdnakov7-jpg](https://github.com/andrewpozdnakov7-jpg) on 2026-12-01T10:17:08Z. --- ## What it changes `victory preload --all` explicitly selects every known pipeline. It still reads `early-pipelines.txt` to 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 `--all` and print the explicit all-pipeline mode. Automatic selection still reports a read error instead of silently warming every pipeline. ## How it was tested - Windows/MSVC, Rust 1.98.1, with the exact Rust mode-selection block and used-list reader in a standalone fixture. No GPU or game files were involved. - Before: the selection block from `main` `5fabb46e` and release `v2026.11.30.03` both returned `PermissionDenied` for `--all` when `early-pipelines.txt` was a directory. - After: `36e3a1ea4279f56f05e4ef2a66b342ec9e0d6150` selected every known pipeline and printed `every 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 --staged` accepted the one changed file. - Main's [CI check](https://github.com/trustno1-coder/VIctory-NVIDIA/actions/runs/46563306780/job/142355972539) has five existing Clippy errors tracked in #4707. ## Checked for overlap - [x] I searched issues and PRs for the symptom and the affected mode-selection code. #1253 introduced this selection. #4785 diagnoses a different required file, the shader book. #4485 covers automatic preload on the next game start. 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.
gut0to commented 2026-12-01 15:21:35 +00:00 (Migrated from github.com)

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 719

@@ -716,13 +716,13 @@ fn main() -> Result<()> {
             }
             play::explain_preload();
             translate::precompile(paths, jobs)?;
-            let recorded = warm::used_pipelines_recorded()?;
+            let recorded = !all && warm::used_pipelines_recorded()?;

Could --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.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:review-comment:4756400330 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4823#discussion_r4756400330). Originally posted by [gut0to](https://github.com/gut0to) on 2026-12-01T15:21:35Z. **Code review location:** `apps/victory/src/main.rs`; line 719 ~~~~diff @@ -716,13 +716,13 @@ fn main() -> Result<()> { } play::explain_preload(); translate::precompile(paths, jobs)?; - let recorded = warm::used_pipelines_recorded()?; + let recorded = !all && warm::used_pipelines_recorded()?; ~~~~ --- Could --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.
gut0to commented 2026-12-01 15:21:35 +00:00 (Migrated from github.com)

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.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:review:6134265851 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4823#pullrequestreview-6134265851). Originally posted by [gut0to](https://github.com/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.
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/4823:upstream-pr/4823'
git switch 'upstream-pr/4823'

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