config: flag fidelityfx_dir in victory config policy check; fix example comment #2197

Open
github-bot wants to merge 3 commits from github-bot/gh-2197 into main AGit
Owner

@⁠romeawayfromhome-rgb on GitHub · 2026-11-25 07:26 UTC · original
romeawayfromhome-rgb:fix/config-policy-flag → main · +4 −1 · 2 files · 3 commits · open

The victory.example.toml comment claimed every path inside the repository is refused, but only cache_dir/data_dir are refused (ensure_outside_repo); game_dir/test_titles only print POLICY VIOLATION in victory config, and fidelityfx_dir was not checked at all. This adds fidelityfx_dir to that policy check and corrects the example comment.

claiming: Fix victory.example.toml comment — only derived data paths are refused inside the repo, and flag fidelityfx_dir in victory config policy check

Note: the Rust change is a single display-only line, not compiled locally (no Rust toolchain in this environment); it relies on CI.

**@⁠romeawayfromhome-rgb** on GitHub · 2026-11-25 07:26 UTC · [original](https://github.com/Marvisak/VIctory/pull/2197) `romeawayfromhome-rgb:fix/config-policy-flag` → `main` · +4 −1 · 2 files · 3 commits · open The `victory.example.toml` comment claimed every path inside the repository is refused, but only `cache_dir`/`data_dir` are refused (`ensure_outside_repo`); `game_dir`/`test_titles` only print `POLICY VIOLATION` in `victory config`, and `fidelityfx_dir` was not checked at all. This adds `fidelityfx_dir` to that policy check and corrects the example comment. claiming: Fix victory.example.toml comment — only derived data paths are refused inside the repo, and flag fidelityfx_dir in `victory config` policy check Note: the Rust change is a single display-only line, not compiled locally (no Rust toolchain in this environment); it relies on CI.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:58:07 +00:00
Author
Owner

@⁠Dathinel on GitHub · 2026-11-25 07:42 UTC · original

Built the Windows CLI at 7b718c9 and its parent cd156f1 with cargo build --frozen -p victory --bin victory. I ran victory config with a temporary TOML file, external cache/data paths, and only [paths].fidelityfx_dir varied.

FidelityFX path Warnings on parent Warnings on PR
Unset or an external directory 0 0
Existing directory inside the checkout 0 1
Missing directory inside the checkout 0 1

All eight invocations exited 0. This verifies the display-only change, including detection before the directory exists. AI-assisted; synthetic paths only.

**@⁠Dathinel** on GitHub · 2026-11-25 07:42 UTC · [original](https://github.com/Marvisak/VIctory/pull/2197#issuecomment-7156159820) Built the Windows CLI at 7b718c9 and its parent cd156f1 with `cargo build --frozen -p victory --bin victory`. I ran `victory config` with a temporary TOML file, external cache/data paths, and only `[paths].fidelityfx_dir` varied. | FidelityFX path | Warnings on parent | Warnings on PR | |---|---:|---:| | Unset or an external directory | 0 | 0 | | Existing directory inside the checkout | 0 | 1 | | Missing directory inside the checkout | 0 | 1 | All eight invocations exited 0. This verifies the display-only change, including detection before the directory exists. AI-assisted; synthetic paths only.
Author
Owner

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

Independent local verification (Windows, Rust 1.100.0/MSVC, head 7b718c9, no game data): cargo build -p victory --locked exit 0; cargo test -p victory --locked exit 0, 2 tests passed. I did not exercise the VICTORY_CONFIG fidelityfx_dir policy warning with a temporary config. AI-assisted (Hy4 flash). GPU/driver: N/A (CPU-only build/tests). No game data, assets or extracted content used.

**@⁠cloph-dsp** on GitHub · 2026-11-25 10:29 UTC · [original](https://github.com/Marvisak/VIctory/pull/2197#issuecomment-7159763873) Independent local verification (Windows, Rust 1.100.0/MSVC, head 7b718c9, no game data): `cargo build -p victory --locked` exit 0; `cargo test -p victory --locked` exit 0, 2 tests passed. I did not exercise the VICTORY_CONFIG fidelityfx_dir policy warning with a temporary config. AI-assisted (Hy4 flash). GPU/driver: N/A (CPU-only build/tests). No game data, assets or extracted content used.
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 12:45 UTC · original

Automated triage for the maintainers.

Merge candidate. victory config (show_config in apps/victory/src/main.rs) now also runs ensure_outside_repo on fidelityfx_dir, like the other configured paths. A FidelityFX folder pointed inside the checkout is flagged the same way. The example config's header now says what is actually enforced: derived data is refused inside the repository, and victory config flags any path that points inside it. Dathinel's run above checks the warning for unset, external, existing-inside and missing-inside paths.

CI: no check runs on this head. The branch merges cleanly.


Generated by Claude Code

**@⁠Marvisak** on GitHub · 2026-11-25 12:45 UTC · [original](https://github.com/Marvisak/VIctory/pull/2197#issuecomment-7162811223) <!-- victory-triage v1 head=7b718c9cec17a6ae1ba382aaf93a08f1a29a6648 verdict=merge-candidate at=2026-11-25T12:47:00Z --> Automated triage for the maintainers. **Merge candidate.** `victory config` (`show_config` in `apps/victory/src/main.rs`) now also runs `ensure_outside_repo` on `fidelityfx_dir`, like the other configured paths. A FidelityFX folder pointed inside the checkout is flagged the same way. The example config's header now says what is actually enforced: derived data is refused inside the repository, and `victory config` flags any path that points inside it. Dathinel's run above checks the warning for unset, external, existing-inside and missing-inside paths. CI: no check runs on this head. The branch merges cleanly. --- _Generated by [Claude Code](https://claude.ai/code)_
Author
Owner

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

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

  • Code review (apps/victory/src/main.rs:236-255, victory.example.toml:1-5):
    • Chaining cfg.fidelityfx_dir.iter() into check_policy(cfg) validates optional fidelityfx_dir through ensure_outside_repo without false positives when unset, and the example comment now accurately distinguishes Config::load() runtime checks from victory config policy checks.
    • Minor non-blocking note: adding an explicit fidelityfx_dir-inside-repo assertion alongside config_check_fails_a_path_inside_the_repository would lock in the new check.
  • Verified (Windows 11, Rust 1.98.1):
    • cargo xtask policy: 191 files ok; cargo clippy --locked -p victory --tests -- -D warnings: 0 warnings
    • cargo test --locked -p victory: 18/18 passed (14 unit + 4 integration).

LGTM.

**@⁠fuzeofficlal** on GitHub · 2026-11-26 01:13 UTC · [original](https://github.com/Marvisak/VIctory/pull/2197#issuecomment-7179550555) Code review and Windows 11 verification at head `7b718c9cec17` merged cleanly onto `main` (`63bcca43c6a0`): - **Code review (`apps/victory/src/main.rs:236-255`, `victory.example.toml:1-5`)**: - Chaining `cfg.fidelityfx_dir.iter()` into `check_policy(cfg)` validates optional `fidelityfx_dir` through `ensure_outside_repo` without false positives when unset, and the example comment now accurately distinguishes `Config::load()` runtime checks from `victory config` policy checks. - Minor non-blocking note: adding an explicit `fidelityfx_dir`-inside-repo assertion alongside `config_check_fails_a_path_inside_the_repository` would lock in the new check. - **Verified (Windows 11, Rust 1.98.1)**: - `cargo xtask policy`: `191 files ok`; `cargo clippy --locked -p victory --tests -- -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/2197/head:github-bot/gh-2197'
git switch 'github-bot/gh-2197'

Merge

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