Check the active physical-page directory in victory config #4178

Closed
github-bot wants to merge 1 commit from github-bot/gh-4177 into main AGit
Owner

@⁠RanoGames on GitHub · 2026-11-30 17:05 UTC · original
RanoGames:fix/config-page-pool-check → main · +32 −1 · 2 files · 1 commits · closed without merging

What it changes

victory config could exit successfully when physical_pages_dir pointed inside a VIctory source tree. A later run would reject that same directory when preparing the physical-page pool.

The command now prints the resolved physical_pages_dir and checks it with the same asset-policy check used for the cache and data directories.

How it was tested

  • Added a CLI regression test with a temporary source tree and a page directory inside it. Before the fix, victory config exited with code 0. After the fix, it prints the path and the policy violation, exits with an error, and leaves the directory uncreated.
  • The same configuration passes with VICTORY_FILE_BACKED_PAGES=0.
  • cargo test --locked -p victory passed on Windows (94 tests).

Checked for overlap

  • Searched existing PRs. #1226 introduced the file-backed page pool. #1552 made victory config fail on policy violations, but its list of checked paths omitted physical_pages_dir.
**@⁠RanoGames** on GitHub · 2026-11-30 17:05 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4177) `RanoGames:fix/config-page-pool-check` → `main` · +32 −1 · 2 files · 1 commits · closed without merging ## What it changes `victory config` could exit successfully when `physical_pages_dir` pointed inside a VIctory source tree. A later run would reject that same directory when preparing the physical-page pool. The command now prints the resolved `physical_pages_dir` and checks it with the same asset-policy check used for the cache and data directories. ## How it was tested - Added a CLI regression test with a temporary source tree and a page directory inside it. Before the fix, `victory config` exited with code 0. After the fix, it prints the path and the policy violation, exits with an error, and leaves the directory uncreated. - The same configuration passes with `VICTORY_FILE_BACKED_PAGES=0`. - `cargo test --locked -p victory` passed on Windows (94 tests). ## Checked for overlap - [x] Searched existing PRs. #1226 introduced the file-backed page pool. #1552 made `victory config` fail on policy violations, but its list of checked paths omitted `physical_pages_dir`.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-30 17:09:56 +00:00
github-bot force-pushed github-bot/gh-4177 from 4088fab67f to 10ecb657ff 2026-12-01 16:23:42 +00:00 Compare
github-bot closed this pull request 2026-12-01 18:50:37 +00:00
Author
Owner

@⁠trustno1-coder on GitHub · 2026-12-01 18:46 UTC · original

Closing this as part of moving main to the texture and video-memory rework (v2026.12.01.01-test). A lot of the code changed, and this pull request no longer applies cleanly to it; it would need to be rewritten against the new main rather than rebased. Thank you for the work. If the change is still needed, please open a new pull request based on the current main.

**@⁠trustno1-coder** on GitHub · 2026-12-01 18:46 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4177#issuecomment-7321510592) Closing this as part of moving main to the texture and video-memory rework (v2026.12.01.01-test). A lot of the code changed, and this pull request no longer applies cleanly to it; it would need to be rewritten against the new main rather than rebased. Thank you for the work. If the change is still needed, please open a new pull request based on the current main.

Pull request closed

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!4178
No description provided.