Honor the explicit shader cache at startup #4889

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

@⁠andrewpozdnakov7-jpg on GitHub · 2026-12-01 12:52 UTC · original
andrewpozdnakov7-jpg:codex2/fix/explicit-cache-startup → main · +11 −7 · 2 files · 1 commits · open

What it changes

victory play --set VICTORY_CACHE_DIR=... and a cache directory saved in victory-settings.txt take effect after the launcher checks for a named cache. That can run the automatic stale-shader cleanup on the named directory and queue a first-version preload even when its pipelines are present.

The first-start check now includes the resolved launch settings, and automatic cleanup checks the effective environment after settings are applied. An empty cache override follows the default-cache path. The launcher can still preload a named cache when its pipelines are missing.

How it was tested

  • One Windows Rust fixture ran the launcher's exact cache decisions and switch-application code. It recorded whether the cleanup routine was called and whether a first-start preload was selected. The fixture used a stub cleanup routine and synthetic paths.
  • Main 5fabb46e and release e1251c31 have identical launcher sources. They requested cleanup and first-start preload for named caches from a CLI switch, a lowercase CLI switch, and saved settings. They skipped the default path when an empty CLI value overrode an inherited cache.
  • All six cases matched the expected choices on 98bad65be76d6b3db4655063dd135a17d78129ca, including inherited and default cache controls. cargo xtask policy --staged accepted both files.
  • Main's CI check has five existing Clippy errors tracked in #4708.

Checked for overlap

  • Searched the open and closed PRs and issues for named caches and automatic shader cleanup. #4388 preserves VICTORY_KEEP_OLD_SHADERS during environment reset. #4486 handles preload completion tracking after an empty-cache 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 12:52 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4888) `andrewpozdnakov7-jpg:codex2/fix/explicit-cache-startup` → `main` · +11 −7 · 2 files · 1 commits · open ## What it changes `victory play --set VICTORY_CACHE_DIR=...` and a cache directory saved in `victory-settings.txt` take effect after the launcher checks for a named cache. That can run the automatic stale-shader cleanup on the named directory and queue a first-version preload even when its pipelines are present. The first-start check now includes the resolved launch settings, and automatic cleanup checks the effective environment after settings are applied. An empty cache override follows the default-cache path. The launcher can still preload a named cache when its pipelines are missing. ## How it was tested - One Windows Rust fixture ran the launcher's exact cache decisions and switch-application code. It recorded whether the cleanup routine was called and whether a first-start preload was selected. The fixture used a stub cleanup routine and synthetic paths. - Main `5fabb46e` and release `e1251c31` have identical launcher sources. They requested cleanup and first-start preload for named caches from a CLI switch, a lowercase CLI switch, and saved settings. They skipped the default path when an empty CLI value overrode an inherited cache. - All six cases matched the expected choices on `98bad65be76d6b3db4655063dd135a17d78129ca`, including inherited and default cache controls. `cargo xtask policy --staged` accepted both files. - 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] Searched the open and closed PRs and issues for named caches and automatic shader cleanup. #4388 preserves `VICTORY_KEEP_OLD_SHADERS` during environment reset. #4486 handles preload completion tracking after an empty-cache 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 12:54:09 +00:00
This pull request has changes conflicting with the target branch.
  • apps/victory/src/play.rs
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

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

Merge

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