CLI: list pipeline keys without initializing caches #1808

Open
EatCodeSleep2 wants to merge 1 commit from upstream-pr/1809 into main
EatCodeSleep2 commented 2026-11-24 22:55:49 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by EatCodeSleep2 on 2026-11-24T22:55:49Z.


VICTORY_PREBUILD_KEYS is a listing mode, but it currently requires working shader and pipeline cache paths and reaches the pipeline library save path when it finishes. Resolve the listing mode before opening the shader cache and pass its output path to prebuild. Initialize and save the pipeline cache only for actual warmup.

On Windows, main refused to list a synthetic pack when VICTORY_CACHE_DIR pointed to a regular file. The fixed CLI listed all 80 records with that path and kept the file intact. With a fresh path the listing created no cache directories, and normal warmup still created both. CLI unit tests and strict all-feature CLI Clippy passed.

AI use: Codex wrote and tested the change.

<!-- greyfinch-sync:Marvisak/VIctory:issue:6593066520 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1809). Originally posted by [EatCodeSleep2](https://github.com/EatCodeSleep2) on 2026-11-24T22:55:49Z. --- VICTORY_PREBUILD_KEYS is a listing mode, but it currently requires working shader and pipeline cache paths and reaches the pipeline library save path when it finishes. Resolve the listing mode before opening the shader cache and pass its output path to prebuild. Initialize and save the pipeline cache only for actual warmup. On Windows, main refused to list a synthetic pack when VICTORY_CACHE_DIR pointed to a regular file. The fixed CLI listed all 80 records with that path and kept the file intact. With a fresh path the listing created no cache directories, and normal warmup still created both. CLI unit tests and strict all-feature CLI Clippy passed. AI use: Codex wrote and tested the change.
catminou4 commented 2026-11-24 23:05:36 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by catminou4 on 2026-11-24T23:03:39Z.

Review: COMMENTED


Static review only: apps/Windows-only (CLI/run paths) — nothing compiles on macOS; source review of the diff.

List pipeline keys without initializing caches: 3.4K CLI — avoids cache side effects for a read-only listing. Good hygiene.

<!-- greyfinch-sync:Marvisak/VIctory:review:6048803805 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1809#pullrequestreview-6048803805). Originally posted by [catminou4](https://github.com/catminou4) on 2026-11-24T23:03:39Z. **Review:** COMMENTED --- Static review only: apps/Windows-only (CLI/run paths) — nothing compiles on macOS; source review of the diff. List pipeline keys without initializing caches: 3.4K CLI — avoids cache side effects for a read-only listing. Good hygiene.
DesertGamer commented 2026-11-24 23:06:05 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by DesertGamer on 2026-11-24T22:56:09Z.


VIctory V2: community PRs, merged and tested

Open PRs sitting in the queue? V2 pulls them into one build, screens each one (binaries, build scripts, hooks, new deps) and runs tests after every batch.

Where it stands today: launches, runs the menu at 30 fps, plays the intro video, reaches the start screen and loads the world (~50 s). Entering the world is the current blocker: rendering fails with a GPU "device removed" error (tracked in issue #1).

⚠️ Entering the world on a real GPU can hang it and make Windows reset the driver. Try it at your own risk.

Not playable yet, but every batch of merged fixes moves it closer. If you have a PR that's stuck, or a GPU to test on, I'd love your help:
https://DesertGamer/VIctory-V2

Unofficial community fork of Marvisak/VIctory, GPL-3.0.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7146817785 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1809#issuecomment-7146817785). Originally posted by [DesertGamer](https://github.com/DesertGamer) on 2026-11-24T22:56:09Z. --- ### VIctory V2: community PRs, merged and tested Open PRs sitting in the queue? V2 pulls them into one build, screens each one (binaries, build scripts, hooks, new deps) and runs tests after every batch. **Where it stands today:** launches, runs the menu at 30 fps, plays the intro video, reaches the start screen and loads the world (~50 s). Entering the world is the current blocker: rendering fails with a GPU "device removed" error (tracked in issue #1). :warning: Entering the world on a real GPU can hang it and make Windows reset the driver. Try it at your own risk. Not playable yet, but every batch of merged fixes moves it closer. If you have a PR that's stuck, or a GPU to test on, I'd love your help: https://DesertGamer/VIctory-V2 *Unofficial community fork of Marvisak/VIctory, GPL-3.0.*
Melow-code commented 2026-11-25 00:06:12 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Melow-code on 2026-11-24T23:08:27Z.

Review: APPROVED


Clean. Skipping cache init when only listing keys is the right thing.

<!-- greyfinch-sync:Marvisak/VIctory:review:6048852977 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1809#pullrequestreview-6048852977). Originally posted by [Melow-code](https://github.com/Melow-code) on 2026-11-24T23:08:27Z. **Review:** APPROVED --- Clean. Skipping cache init when only listing keys is the right thing.
Marvisak commented 2026-11-25 07:03:17 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T06:28:39Z.


Automated triage for the maintainers.

Merge candidate. Listing pipeline keys (VICTORY_PREBUILD_KEYS) used to set up the shader cache in translate::warm, and the pipeline cache in prebuild::run, and save the latter at the end, even though the listing translates and makes nothing. Now warm returns into prebuild::run(.., Some(file)) before touching the shader cache, and run skips use_pipeline_cache/save_pipeline_cache when listing. The env lookup moves from prebuild into warm, and the normal path passes None. I checked that prepare and key in the listing path need neither cache. Listing then no longer writes to the user's cache directory.

Same function as #1805 and #1806; small rebase for whichever lands later.

CI: check failing, in victory-shader tests this PR does not touch (synthetic_tests gathers and permutes) on its older base. A re-run on current main would confirm.


Generated by Claude Code

<!-- greyfinch-sync:Marvisak/VIctory:comment:7154829855 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1809#issuecomment-7154829855). Originally posted by [Marvisak](https://github.com/Marvisak) on 2026-11-25T06:28:39Z. --- <!-- victory-triage v1 head=15d77558ebf4d54cc0c3e26646516f51cd8d8287 verdict=merge-candidate at=2026-11-25T06:31:00Z --> Automated triage for the maintainers. **Merge candidate.** Listing pipeline keys (`VICTORY_PREBUILD_KEYS`) used to set up the shader cache in `translate::warm`, and the pipeline cache in `prebuild::run`, and save the latter at the end, even though the listing translates and makes nothing. Now `warm` returns into `prebuild::run(.., Some(file))` before touching the shader cache, and `run` skips `use_pipeline_cache`/`save_pipeline_cache` when listing. The env lookup moves from `prebuild` into `warm`, and the normal path passes `None`. I checked that `prepare` and `key` in the listing path need neither cache. Listing then no longer writes to the user's cache directory. Same function as #1805 and #1806; small rebase for whichever lands later. CI: `check` failing, in `victory-shader` tests this PR does not touch (`synthetic_tests` gathers and permutes) on its older base. A re-run on current `main` would confirm. --- _Generated by [Claude Code](https://claude.ai/code)_
cloph-dsp commented 2026-11-25 12:03:38 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by cloph-dsp on 2026-11-25T11:09:18Z.


Independent local validation (Windows, Rust 1.100.0/MSVC, head 15d7755, no game data): cargo test --locked -p victory -> 1 test passed (run::tests::loader_lock_is_reentrant_and_exclusive), exit 0. Limits: no clippy component in this toolchain; CI red is unrelated; I did not exercise the listing with VICTORY_CACHE_DIR pointing at a regular file, nor use a synthetic pack. Overlap with #1805/#1806 still needs a rebase decision. AI-assisted (Hy4 flash). GPU/driver: N/A (CPU-only test). No game data used.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7160665330 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1809#issuecomment-7160665330). Originally posted by [cloph-dsp](https://github.com/cloph-dsp) on 2026-11-25T11:09:18Z. --- Independent local validation (Windows, Rust 1.100.0/MSVC, head 15d7755, no game data): `cargo test --locked -p victory` -> 1 test passed (`run::tests::loader_lock_is_reentrant_and_exclusive`), exit 0. Limits: no clippy component in this toolchain; CI red is unrelated; I did not exercise the listing with `VICTORY_CACHE_DIR` pointing at a regular file, nor use a synthetic pack. Overlap with #1805/#1806 still needs a rebase decision. AI-assisted (Hy4 flash). GPU/driver: N/A (CPU-only test). No game data used.
fuzeofficlal commented 2026-11-26 02:06:56 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by fuzeofficlal on 2026-11-26T01:14:26Z.


Code review and Windows 11 verification at head 15d77558ebf4 merged cleanly onto main (63bcca43c6a0):

  • Code review (apps/victory/src/translate.rs:325-336, 427-429, prebuild.rs:39-44, 248-250):
    • When pipelines is set alongside VICTORY_PREBUILD_KEYS, translate::warm dispatches straight to prebuild::run(&paths, threads, Some(file.into())), skipping shader-cache config/initialization as well as use_pipeline_cache/save_pipeline_cache inside prebuild::run, while leaving normal --cache --pipelines and non---cache paths untouched.
    • Verified zero conflict and clean composition with #1805.
  • Verified (Windows 11, Rust 1.98.1):
    • cargo xtask policy: 191 files ok; cargo clippy -p victory --all-targets -- -D warnings: 0 warnings
    • cargo test --locked -p victory: 18/18 passed (14 unit + 4 integration).

LGTM.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7179573833 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1809#issuecomment-7179573833). Originally posted by [fuzeofficlal](https://github.com/fuzeofficlal) on 2026-11-26T01:14:26Z. --- Code review and Windows 11 verification at head `15d77558ebf4` merged cleanly onto `main` (`63bcca43c6a0`): - **Code review (`apps/victory/src/translate.rs:325-336, 427-429`, `prebuild.rs:39-44, 248-250`)**: - When `pipelines` is set alongside `VICTORY_PREBUILD_KEYS`, `translate::warm` dispatches straight to `prebuild::run(&paths, threads, Some(file.into()))`, skipping shader-cache config/initialization as well as `use_pipeline_cache`/`save_pipeline_cache` inside `prebuild::run`, while leaving normal `--cache --pipelines` and non-`--cache` paths untouched. - Verified zero conflict and clean composition with `#1805`. - **Verified (Windows 11, Rust 1.98.1)**: - `cargo xtask policy`: `191 files ok`; `cargo clippy -p victory --all-targets -- -D warnings`: 0 warnings - `cargo test --locked -p victory`: **18/18 passed** (14 unit + 4 integration). LGTM.
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/1809:upstream-pr/1809'
git switch 'upstream-pr/1809'

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