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

Open
github-bot wants to merge 1 commit from github-bot/gh-4823 into main AGit
Owner

@⁠andrewpozdnakov7-jpg on GitHub · 2026-12-01 10:17 UTC · original
andrewpozdnakov7-jpg:codex2/fix/preload-all-used-list → main · +2 −2 · 1 files · 1 commits · open

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 #4708.

Checked for overlap

  • I searched issues and PRs for the symptom and the affected mode-selection code. #1253 introduced this selection. #4786 diagnoses a different required file, the shader book. #4486 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.

**@⁠andrewpozdnakov7-jpg** on GitHub · 2026-12-01 10:17 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4823) `andrewpozdnakov7-jpg:codex2/fix/preload-all-used-list` → `main` · +2 −2 · 1 files · 1 commits · open ## 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 #4708. ## Checked for overlap - [x] I searched issues and PRs for the symptom and the affected mode-selection code. #1253 introduced this selection. #4786 diagnoses a different required file, the shader book. #4486 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 10:19:11 +00:00
Author
Owner

@⁠gut0to on GitHub · 2026-12-01 15:21 UTC · original · reviewed

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.

**@⁠gut0to** on GitHub · 2026-12-01 15:21 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4823#pullrequestreview-6134265851) · **reviewed** 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.
@ -717,3 +717,3 @@
play::explain_preload();
translate::precompile(paths, jobs)?;
let recorded = warm::used_pipelines_recorded()?;
let recorded = !all && warm::used_pipelines_recorded()?;
Author
Owner

@⁠gut0to on GitHub · 2026-12-01 15:21 UTC · original

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** on GitHub · 2026-12-01 15:21 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4823#discussion_r4756400330) 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.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/4824/head:github-bot/gh-4823'
git switch 'github-bot/gh-4823'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-4823'
git switch 'github-bot/gh-4823'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-4823'
git switch 'github-bot/gh-4823'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-4823'
git switch 'main'
git merge --squash 'github-bot/gh-4823'
git switch 'main'
git merge --ff-only 'github-bot/gh-4823'
git switch 'main'
git merge 'github-bot/gh-4823'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No reviewers
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.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA!4824
No description provided.