Skip to content

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

Open
romeawayfromhome-rgb wants to merge 3 commits into
Marvisak:mainfrom
romeawayfromhome-rgb:fix/config-policy-flag
Open

romeawayfromhome-rgb wants to merge 3 commits into
Marvisak:mainfrom
romeawayfromhome-rgb:fix/config-policy-flag

Conversation

@romeawayfromhome-rgb

Copy link
Copy Markdown

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.

@Dathinel

Copy link
Copy Markdown
Contributor

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.

@DenRakEiw DenRakEiw left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 catminou4 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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).

@cloph-dsp

Copy link
Copy Markdown

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.

Copy link
Copy Markdown
Owner

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

github-actions Bot added a commit to KevinPratap/VIctory that referenced this pull request Nov 25, 2026
@fuzeofficlal

Copy link
Copy Markdown
Contributor

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.

github-actions Bot added a commit to KevinPratap/VIctory that referenced this pull request Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants