CLI: list pipeline keys without initializing caches #1809

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

@⁠EatCodeSleep2 on GitHub · 2026-11-24 22:55 UTC · original
EatCodeSleep2:fix/prebuild-keys-without-cache → main · +15 −11 · 2 files · 1 commits · open

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.

**@⁠EatCodeSleep2** on GitHub · 2026-11-24 22:55 UTC · [original](https://github.com/Marvisak/VIctory/pull/1809) `EatCodeSleep2:fix/prebuild-keys-without-cache` → `main` · +15 −11 · 2 files · 1 commits · open 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:45:15 +00:00
Author
Owner

@⁠DesertGamer on GitHub · 2026-11-24 22:56 UTC · original

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.

**@⁠DesertGamer** on GitHub · 2026-11-24 22:56 UTC · [original](https://github.com/Marvisak/VIctory/pull/1809#issuecomment-7146817785) ### 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.*
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 06:28 UTC · original

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

**@⁠Marvisak** on GitHub · 2026-11-25 06:28 UTC · [original](https://github.com/Marvisak/VIctory/pull/1809#issuecomment-7154829855) <!-- 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)_
Author
Owner

@⁠cloph-dsp on GitHub · 2026-11-25 11:09 UTC · original

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.

**@⁠cloph-dsp** on GitHub · 2026-11-25 11:09 UTC · [original](https://github.com/Marvisak/VIctory/pull/1809#issuecomment-7160665330) 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.
Author
Owner

@⁠fuzeofficlal on GitHub · 2026-11-26 01:14 UTC · original

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.

**@⁠fuzeofficlal** on GitHub · 2026-11-26 01:14 UTC · [original](https://github.com/Marvisak/VIctory/pull/1809#issuecomment-7179573833) 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 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/1809/head:github-bot/gh-1809'
git switch 'github-bot/gh-1809'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-1809'
git switch 'github-bot/gh-1809'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-1809'
git switch 'github-bot/gh-1809'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-1809'
git switch 'main'
git merge --squash 'github-bot/gh-1809'
git switch 'main'
git merge --ff-only 'github-bot/gh-1809'
git switch 'main'
git merge 'github-bot/gh-1809'
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/Marvisak--VIctory!1809
No description provided.