Reject derived outputs inside the source tree #523

Open
github-bot wants to merge 1 commit from github-bot/gh-523 into a-publier AGit
Owner

@⁠nufu88pa on GitHub · 2026-11-27 08:28 UTC · original
nufu88pa:fix/derived-output-policy → a-publier · +95 −3 · 4 files · 1 commits · open

Fixes #510.

Changes

Apply the existing ensure_outside_repo check before frame recording, replay image export, replay shader retranslation, and untranslated-shader list output. Retranslation also checks the capture’s sibling containers directory before creating either output directory.

Verification

All three regression tests passed on Windows with Rust 1.98.1. The tests use temporary directories and require no game files or GPU.

  • cargo test --locked -p victory --features diagnostics --test derived_output_policy
  • cargo test --locked -p victory-gpu --features diagnostics --lib recorder_rejects_a_destination_inside_the_source_tree
  • git diff --check

Prepared with assistance from Codex.

**@⁠nufu88pa** on GitHub · 2026-11-27 08:28 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/pull/523) `nufu88pa:fix/derived-output-policy` → `a-publier` · +95 −3 · 4 files · 1 commits · open Fixes #510. ## Changes Apply the existing `ensure_outside_repo` check before frame recording, replay image export, replay shader retranslation, and untranslated-shader list output. Retranslation also checks the capture’s sibling `containers` directory before creating either output directory. ## Verification All three regression tests passed on Windows with Rust 1.98.1. The tests use temporary directories and require no game files or GPU. - `cargo test --locked -p victory --features diagnostics --test derived_output_policy` - `cargo test --locked -p victory-gpu --features diagnostics --lib recorder_rejects_a_destination_inside_the_source_tree` - `git diff --check` Prepared with assistance from Codex.
Apply the existing output policy to frame recording, replay images and shader retranslation, and the untranslated-shader list. Cover rejected destinations with tests that need no game files or GPU.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 08:33:09 +00:00
Author
Owner

@⁠MamaLeVrai on GitHub · 2026-11-27 11:40 UTC · original

Tested on an RX 6950 XT (RDNA 2), driver 32.0.21045.29003, Windows 11 build 26300, Rust 1.98.1, release. At 3dca74f: victory-gpu 396 passed, 0 failed, 34 ignored; victory bins 25 passed.

AI-assisted (Claude Code); no game data.

**@⁠MamaLeVrai** on GitHub · 2026-11-27 11:40 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/pull/523#issuecomment-7217342952) Tested on an RX 6950 XT (RDNA 2), driver 32.0.21045.29003, Windows 11 build 26300, Rust 1.98.1, release. At `3dca74f`: `victory-gpu` 396 passed, 0 failed, 34 ignored; `victory` bins 25 passed. AI-assisted (Claude Code); no game data.
This pull request can be merged automatically.
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/523/head:github-bot/gh-523'
git switch 'github-bot/gh-523'

Merge

Merge the changes and update on Forgejo.
git switch 'a-publier'
git merge --no-ff 'github-bot/gh-523'
git switch 'github-bot/gh-523'
git rebase 'a-publier'
git switch 'a-publier'
git merge --ff-only 'github-bot/gh-523'
git switch 'github-bot/gh-523'
git rebase 'a-publier'
git switch 'a-publier'
git merge --no-ff 'github-bot/gh-523'
git switch 'a-publier'
git merge --squash 'github-bot/gh-523'
git switch 'a-publier'
git merge --ff-only 'github-bot/gh-523'
git switch 'a-publier'
git merge 'github-bot/gh-523'
git push origin 'a-publier'
This discussion has been locked. Commenting is limited to contributors.
No description provided.