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

Open
romeawayfromhome-rgb wants to merge 3 commits from upstream-pr/2197 into main
romeawayfromhome-rgb commented 2026-11-25 07:26:00 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by romeawayfromhome-rgb on 2026-11-25T07:26:00Z.


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.

<!-- greyfinch-sync:Marvisak/VIctory:issue:6599440806 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2197). Originally posted by [romeawayfromhome-rgb](https://github.com/romeawayfromhome-rgb) on 2026-11-25T07:26:00Z. --- 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.
DenRakEiw commented 2026-11-25 08:06:20 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by DenRakEiw on 2026-11-25T07:42:26Z.

Review: APPROVED


Verified locally merged onto origin/main (940d32f, Windows 11 x64, Rust 1.98.1 MSVC):

  • cargo test -p victory — 12 passed, 0 failed
  • cargo clippy -p victory --all-targets — 0 warnings
  • cargo xtask policy — ok (183 files ok)

Clean inclusion of fidelityfx_dir in the victory config policy check and corrected example comment. Looks good.

AI-assisted (Gemini 4 Neon).

<!-- greyfinch-sync:Marvisak/VIctory:review:6053616031 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2197#pullrequestreview-6053616031). Originally posted by [DenRakEiw](https://github.com/DenRakEiw) on 2026-11-25T07:42:26Z. **Review:** APPROVED --- Verified locally merged onto `origin/main` (`940d32f`, Windows 11 x64, Rust 1.98.1 MSVC): - `cargo test -p victory` — 12 passed, 0 failed - `cargo clippy -p victory --all-targets` — 0 warnings - `cargo xtask policy` — ok (`183 files ok`) Clean inclusion of `fidelityfx_dir` in the `victory config` policy check and corrected example comment. Looks good. AI-assisted (Gemini 4 Neon).
catminou4 commented 2026-11-25 08:06:20 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by catminou4 on 2026-11-25T08:03:05Z.

Review: COMMENTED


Static review only: apps/victory is Windows-only — nothing compiles or runs on macOS; source review of the diff.

config: fidelityfx_dir flagged in policy check — config validation for the FidelityFX path (#1793's frame-gen work related).

<!-- greyfinch-sync:Marvisak/VIctory:review:6053836488 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2197#pullrequestreview-6053836488). Originally posted by [catminou4](https://github.com/catminou4) on 2026-11-25T08:03:05Z. **Review:** COMMENTED --- Static review only: apps/victory is Windows-only — nothing compiles or runs on macOS; source review of the diff. config: fidelityfx_dir flagged in policy check — config validation for the FidelityFX path (#1793's frame-gen work related).
Dathinel commented 2026-11-25 08:06:41 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Dathinel on 2026-11-25T07:42:22Z.


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.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7156159820 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2197#issuecomment-7156159820). Originally posted by [Dathinel](https://github.com/Dathinel) on 2026-11-25T07:42:22Z. --- 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.
cloph-dsp commented 2026-11-25 11:05:23 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by cloph-dsp on 2026-11-25T10:29:22Z.


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.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7159763873 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2197#issuecomment-7159763873). Originally posted by [cloph-dsp](https://github.com/cloph-dsp) on 2026-11-25T10:29:22Z. --- 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.
Marvisak commented 2026-11-25 13:02:56 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T12:45:24Z.


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

<!-- greyfinch-sync:Marvisak/VIctory:comment:7162811223 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2197#issuecomment-7162811223). Originally posted by [Marvisak](https://github.com/Marvisak) on 2026-11-25T12:45:24Z. --- <!-- 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)_
fuzeofficlal commented 2026-11-26 02:06:55 +00:00 (Migrated from github.com)

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


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.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7179550555 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2197#issuecomment-7179550555). Originally posted by [fuzeofficlal](https://github.com/fuzeofficlal) on 2026-11-26T01:13:03Z. --- 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 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/2197:upstream-pr/2197'
git switch 'upstream-pr/2197'

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