config: flag fidelityfx_dir in victory config policy check; fix example comment #2195
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2197"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from Marvisak/VIctory. Originally posted by romeawayfromhome-rgb on 2026-11-25T07:26:00Z.
The
victory.example.tomlcomment claimed every path inside the repository is refused, but onlycache_dir/data_dirare refused (ensure_outside_repo);game_dir/test_titlesonly printPOLICY VIOLATIONinvictory config, andfidelityfx_dirwas not checked at all. This addsfidelityfx_dirto 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 configpolicy checkNote: the Rust change is a single display-only line, not compiled locally (no Rust toolchain in this environment); it relies on CI.
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 failedcargo clippy -p victory --all-targets— 0 warningscargo xtask policy— ok (183 files ok)Clean inclusion of
fidelityfx_dirin thevictory configpolicy check and corrected example comment. Looks good.AI-assisted (Gemini 4 Neon).
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).
Imported from Marvisak/VIctory. Originally posted by Dathinel on 2026-11-25T07:42:22Z.
Built the Windows CLI at
7b718c9and its parentcd156f1withcargo build --frozen -p victory --bin victory. I ranvictory configwith a temporary TOML file, external cache/data paths, and only[paths].fidelityfx_dirvaried.All eight invocations exited 0. This verifies the display-only change, including detection before the directory exists. AI-assisted; synthetic paths only.
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 --lockedexit 0;cargo test -p victory --lockedexit 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.Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T12:45:24Z.
Automated triage for the maintainers.
Merge candidate.
victory config(show_configinapps/victory/src/main.rs) now also runsensure_outside_repoonfidelityfx_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, andvictory configflags 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
Imported from Marvisak/VIctory. Originally posted by fuzeofficlal on 2026-11-26T01:13:03Z.
Code review and Windows 11 verification at head
7b718c9cec17merged cleanly ontomain(63bcca43c6a0):apps/victory/src/main.rs:236-255,victory.example.toml:1-5):cfg.fidelityfx_dir.iter()intocheck_policy(cfg)validates optionalfidelityfx_dirthroughensure_outside_repowithout false positives when unset, and the example comment now accurately distinguishesConfig::load()runtime checks fromvictory configpolicy checks.fidelityfx_dir-inside-repo assertion alongsideconfig_check_fails_a_path_inside_the_repositorywould lock in the new check.cargo xtask policy:191 files ok;cargo clippy --locked -p victory --tests -- -D warnings: 0 warningscargo test --locked -p victory: 18/18 passed (14 unit + 4 integration).LGTM.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.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.