fix: apply VIctory launch overrides last #294

Open
github-bot wants to merge 5 commits from github-bot/gh-294 into main AGit
Owner

@⁠mauroalvare on GitHub · 2026-11-26 01:42 UTC · original
mauroalvare:fix/launcher-env-and-flags → main · +62 −27 · 5 files · 5 commits · open

Change

Apply --override KEY=VALUE in anyxboxx run after the profile, dedicated switches, and XG settings. An empty value removes the variable from the VIctory child environment, including a value inherited from the caller. Warm and run use the same environment. The launcher validates the XG path and game executable before starting Cargo.

Release builds already honor VICTORY_SKIP_PIPELINES through #384. This PR verifies that --skip-pipelines by itself uses release. The combined warm and precompile input validation is in #296. The two branches were checked for a clean merge.

Refs #299.

Verification

Rebased on c41c224.

  • cargo build --locked --offline -j 5 --release -p anyxboxx passed.
  • python -m pytest -q -rs tests/test_lanceur_victory.py tests/test_anyxboxx_run.py passed all 31 tests with the release launcher.
  • python -m ruff check --select W605,F,E9 PrototypeScarlett tests tools passed.

The end-to-end tests use synthetic Cargo and VIctory executables and record the environment each child receives.

AI assistance from Antigravity on the original change and OpenAI Codex on the rebase and verification.

**@⁠mauroalvare** on GitHub · 2026-11-26 01:42 UTC · [original](https://github.com/LooperSalty/AnyXboxX/pull/294) `mauroalvare:fix/launcher-env-and-flags` → `main` · +62 −27 · 5 files · 5 commits · open ## Change Apply `--override KEY=VALUE` in `anyxboxx run` after the profile, dedicated switches, and XG settings. An empty value removes the variable from the VIctory child environment, including a value inherited from the caller. Warm and run use the same environment. The launcher validates the XG path and game executable before starting Cargo. Release builds already honor `VICTORY_SKIP_PIPELINES` through #384. This PR verifies that `--skip-pipelines` by itself uses release. The combined warm and precompile input validation is in #296. The two branches were checked for a clean merge. Refs #299. ## Verification Rebased on `c41c224`. - `cargo build --locked --offline -j 5 --release -p anyxboxx` passed. - `python -m pytest -q -rs tests/test_lanceur_victory.py tests/test_anyxboxx_run.py` passed all 31 tests with the release launcher. - `python -m ruff check --select W605,F,E9 PrototypeScarlett tests tools` passed. The end-to-end tests use synthetic Cargo and VIctory executables and record the environment each child receives. AI assistance from Antigravity on the original change and OpenAI Codex on the rebase and verification.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:42:14 +00:00
Author
Owner

@⁠IxMxAMAR on GitHub · 2026-11-26 01:57 UTC · original

Avec ce changement, -SkipPipelines construit la build diagnostics, qui exporte D3D12SDKVersion (620) et cherche .\D3D12\ à côté de l'exe. Sans ce dossier, sur mon PC (Windows 11 25H2, RX 9070 XT), cette build n'a pas de périphérique hôte (0x887E0003, point 2 de #299) : la liste de saut n'y marche qu'avec une build diagnostics sans ces deux exports.

**@⁠IxMxAMAR** on GitHub · 2026-11-26 01:57 UTC · [original](https://github.com/LooperSalty/AnyXboxX/pull/294#issuecomment-7180319235) Avec ce changement, `-SkipPipelines` construit la build `diagnostics`, qui exporte `D3D12SDKVersion` (620) et cherche `.\D3D12\` à côté de l'exe. Sans ce dossier, sur mon PC (Windows 11 25H2, RX 9070 XT), cette build n'a pas de périphérique hôte (0x887E0003, point 2 de #299) : la liste de saut n'y marche qu'avec une build `diagnostics` sans ces deux exports.
Author
Owner

@⁠mauroalvare on GitHub · 2026-11-26 02:09 UTC · original

Good catch, thanks @⁠IxMxAMAR!

Updated in 4b8a5d0:

  • Reverted -SkipPipelines implying -Diag in tools/lancer_victory.ps1, so -SkipPipelines stays on the default --release build (avoiding the diagnostics build's D3D12SDKVersion=620 / .\D3D12\ 0x887E0003 issue from #299 and keeping release performance).
  • Enabled VICTORY_SKIP_PIPELINES in non-diagnostics (release) builds in victory-gpu (pipeline.rs and draw.rs), and also added the check to pipeline/make.rs::left_out so listed shaders are never handed to the host driver compiler at all (early, warm, ready, or now). When VICTORY_SKIP_PIPELINES is unset, hashes.is_empty() short-circuits immediately.

Verified locally on Windows x64 / RTX 5070 Ti:

  • cargo test --locked -p victory-gpu pipeline (without --features diagnostics): 18 passed, 0 failed
  • cargo check --locked -p victory & --features diagnostics: OK
  • cargo xtask policy: asset policy: 200 files ok
  • pytest tests/test_lanceur_victory.py tests/test_readme_sync.py -v: 38 passed, 1 skipped
  • ruff check --select W605,F,E9 PrototypeScarlett tests tools: All checks passed!
**@⁠mauroalvare** on GitHub · 2026-11-26 02:09 UTC · [original](https://github.com/LooperSalty/AnyXboxX/pull/294#issuecomment-7180513311) Good catch, thanks @⁠IxMxAMAR! Updated in `4b8a5d0`: - Reverted `-SkipPipelines` implying `-Diag` in `tools/lancer_victory.ps1`, so `-SkipPipelines` stays on the default `--release` build (avoiding the `diagnostics` build's `D3D12SDKVersion=620` / `.\D3D12\` `0x887E0003` issue from #299 and keeping release performance). - Enabled `VICTORY_SKIP_PIPELINES` in non-`diagnostics` (release) builds in `victory-gpu` (`pipeline.rs` and `draw.rs`), and also added the check to `pipeline/make.rs::left_out` so listed shaders are never handed to the host driver compiler at all (`early`, `warm`, `ready`, or `now`). When `VICTORY_SKIP_PIPELINES` is unset, `hashes.is_empty()` short-circuits immediately. Verified locally on Windows x64 / RTX 5070 Ti: - `cargo test --locked -p victory-gpu pipeline` (without `--features diagnostics`): 18 passed, 0 failed - `cargo check --locked -p victory` & `--features diagnostics`: OK - `cargo xtask policy`: `asset policy: 200 files ok` - `pytest tests/test_lanceur_victory.py tests/test_readme_sync.py -v`: 38 passed, 1 skipped - `ruff check --select W605,F,E9 PrototypeScarlett tests tools`: `All checks passed!`
Author
Owner

@⁠LooperSalty on GitHub · 2026-11-26 10:37 UTC · original

Review notes (diff read, nothing run):

  1. Scope: this PR bundles four unrelated fixes (env restore, -Override ordering/unset, VICTORY_SKIP_PIPELINES in release builds, fail-fast validation) and re-indents the whole launcher body. The checklist item "covers a single reviewable behaviour" is not met. Please split it, at least the victory-gpu change (VICTORY_SKIP_PIPELINES no longer gated behind diagnostics, new skipped_shaders check in pipeline/make.rs) from the tools/lancer_victory.ps1 changes.
  2. Conflict: it conflicts with #296 in tools/lancer_victory.ps1 (both rewrite the -Warm / -Precompile block; git merge-tree reports a content conflict). Rebase on whichever merges first and keep the single deduplicated warm call of #296; the existing test expecting two victory warm calls in the -Warm -Precompile case must change accordingly.
  3. Nit: the large re-indent hides the real diff; moving the try/finally into a function or keeping the block unindented would make review easier.

The tests for the env restore and for -Override look right (they fail on base as described). CI has not run yet (no checks reported).

🤖 Generated with Claude Code

**@⁠LooperSalty** on GitHub · 2026-11-26 10:37 UTC · [original](https://github.com/LooperSalty/AnyXboxX/pull/294#issuecomment-7189617980) Review notes (diff read, nothing run): 1. Scope: this PR bundles four unrelated fixes (env restore, -Override ordering/unset, VICTORY_SKIP_PIPELINES in release builds, fail-fast validation) and re-indents the whole launcher body. The checklist item "covers a single reviewable behaviour" is not met. Please split it, at least the `victory-gpu` change (`VICTORY_SKIP_PIPELINES` no longer gated behind `diagnostics`, new `skipped_shaders` check in `pipeline/make.rs`) from the `tools/lancer_victory.ps1` changes. 2. Conflict: it conflicts with #296 in `tools/lancer_victory.ps1` (both rewrite the `-Warm` / `-Precompile` block; `git merge-tree` reports a content conflict). Rebase on whichever merges first and keep the single deduplicated `warm` call of #296; the existing test expecting two `victory warm` calls in the `-Warm -Precompile` case must change accordingly. 3. Nit: the large re-indent hides the real diff; moving the try/finally into a function or keeping the block unindented would make review easier. The tests for the env restore and for -Override look right (they fail on base as described). CI has not run yet (no checks reported). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Author
Owner

@⁠LooperSalty on GitHub · 2026-11-26 14:01 UTC · original

This PR now conflicts with main in tests/test_lanceur_victory.py (other launcher PRs changed the same test module). Please rebase on main, keep the tests of both sides, run python -m pytest tests/test_lanceur_victory.py and force-push your branch.

🤖 Generated with Claude Code

**@⁠LooperSalty** on GitHub · 2026-11-26 14:01 UTC · [original](https://github.com/LooperSalty/AnyXboxX/pull/294#issuecomment-7194171161) This PR now conflicts with main in `tests/test_lanceur_victory.py` (other launcher PRs changed the same test module). Please rebase on main, keep the tests of both sides, run `python -m pytest tests/test_lanceur_victory.py` and force-push your branch. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
github-bot changed title from fix(launcher,victory-gpu): isolate VICTORY_* env, apply -Override last, enable VICTORY_SKIP_PIPELINES in release, and fail fast to fix: apply VIctory launch overrides last 2026-11-26 18:10:34 +00:00
github-bot force-pushed github-bot/gh-294 from 4b8a5d0651 to 7383fa616c 2026-11-26 18:10:34 +00:00 Compare
Author
Owner

@⁠mauroalvare on GitHub · 2026-11-26 18:25 UTC · original

I rebased the remaining launcher changes onto anyxboxx run. Explicit overrides now apply after the dedicated switches, empty values remove variables from the child environment, and an invalid XG path stops the launch before Cargo starts.

Release pipeline skipping is covered by #384, and the revised launcher test verifies that --skip-pipelines alone selects release. #296 carries the single deduplicated warm call and its up-front input checks. I verified that the branches merge cleanly and that all 31 launcher tests pass.

The latest CI run passed.

**@⁠mauroalvare** on GitHub · 2026-11-26 18:25 UTC · [original](https://github.com/LooperSalty/AnyXboxX/pull/294#issuecomment-7200439839) I rebased the remaining launcher changes onto `anyxboxx run`. Explicit overrides now apply after the dedicated switches, empty values remove variables from the child environment, and an invalid XG path stops the launch before Cargo starts. Release pipeline skipping is covered by #384, and the revised launcher test verifies that `--skip-pipelines` alone selects release. #296 carries the single deduplicated warm call and its up-front input checks. I verified that the branches merge cleanly and that all 31 launcher tests pass. [The latest CI run passed](https://github.com/LooperSalty/AnyXboxX/actions/runs/45872831451).
github-bot force-pushed github-bot/gh-294 from 7383fa616c to 3a37312f84 2026-11-26 19:35:16 +00:00 Compare
github-bot force-pushed github-bot/gh-294 from 3a37312f84 to f228a5dbfb 2026-11-27 00:37:38 +00:00 Compare
Author
Owner

@⁠mauroalvare on GitHub · 2026-11-27 00:49 UTC · original

Updated this branch after #464. Both warm paths still run Vice-Tay's argument-free victory warm. Explicit overrides apply after the profile and launch switches, including removal of inherited values. The Rust launch tests and all 27 CLI integration tests passed locally.

**@⁠mauroalvare** on GitHub · 2026-11-27 00:49 UTC · [original](https://github.com/LooperSalty/AnyXboxX/pull/294#issuecomment-7206781308) Updated this branch after #464. Both warm paths still run Vice-Tay's argument-free `victory warm`. Explicit overrides apply after the profile and launch switches, including removal of inherited values. The Rust launch tests and all 27 CLI integration tests passed locally.
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/294/head:github-bot/gh-294'
git switch 'github-bot/gh-294'

Merge

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