[pr-fix] fix(launcher): preserve Auto-Tune summary metacharacters #43

Open
github-bot wants to merge 1 commit from github-bot/gh-43 into main AGit
Owner

@⁠LANgmas on GitHub · 2026-12-04 06:36 UTC · original
LANgmas:fix/autotune-summary-pipes → main · +83 −1 · 2 files · 1 commits · open

Fixes #40

What it changes

VICTORY_AUTOTUNE_SUMMARY intentionally contains pipe characters such as | 16T CPU |. The launcher echoed it through %VICTORY_AUTOTUNE_SUMMARY%; cmd performs percent expansion before recognizing pipes, so the summary text was reparsed as commands and startup could fail with '16T' is not recognized.

This uses delayed expansion only around the Auto-Tune banner line and restores the previous expansion state immediately afterward. It adds a Windows integration regression test that runs the real copied launcher with a harmless whoami.exe runner. The test covers pipes, a literal exclamation mark in the summary, continuation through the banner, and verifies that a later %VICTORY_STREAMLINE_DIR% value containing !EXPAND_ME! remains literal rather than expanding to SHOULD_NOT_APPEAR.

How it was tested

  • GPU and profile (Series X or S, resolution, DLSS, frame generation, ray tracing): Not applicable; this is a launcher-only regression test. No game, GPU, proprietary file, or external SDK is required or launched.
  • Before: cargo test -p victory --test launcher_batch --locked failed as designed against the original implementation. Cargo exited 101, the child cmd process exited 255, stderr contained '16T' is not recognized as an internal or external command, and the complete summary was absent.
  • After: cargo test -p victory --test launcher_batch --locked exited 0 with 1/1 test passing. cargo test -p victory --locked exited 0 with 85/85 tests passing: 81 unit tests, 1 cache_paths test, 2 census tests, and 1 launcher_batch test. git diff --check exited 0, and git diff --cached --check also exited 0 before commit.
  • For shader changes, the wave sizes tested (32 and/or 64 lanes): Not applicable; no shader code changed.
  • cargo test passed for the crates it touches: yes — cargo test -p victory --locked exited 0.
  • Workspace-wide clippy and asset-policy validation are not claimed here; both already fail on unchanged base main for unrelated pre-existing loader/shader lint and asset-policy violations.

Checked for overlap

  • I searched the open pull requests for the same issue and for the files this touches. Related: #17 is closed/unmerged and addressed configuration selection in launcher scripts, not Auto-Tune metacharacter parsing. No open PR was found for issue #40 or this Auto-Tune parsing defect.
**@⁠LANgmas** on GitHub · 2026-12-04 06:36 UTC · [original](https://github.com/ToLIManl/VIctory-Hydra/pull/43) `LANgmas:fix/autotune-summary-pipes` → `main` · +83 −1 · 2 files · 1 commits · open Fixes #40 ## What it changes `VICTORY_AUTOTUNE_SUMMARY` intentionally contains pipe characters such as `| 16T CPU |`. The launcher echoed it through `%VICTORY_AUTOTUNE_SUMMARY%`; cmd performs percent expansion before recognizing pipes, so the summary text was reparsed as commands and startup could fail with `'16T' is not recognized`. This uses delayed expansion only around the Auto-Tune banner line and restores the previous expansion state immediately afterward. It adds a Windows integration regression test that runs the real copied launcher with a harmless `whoami.exe` runner. The test covers pipes, a literal exclamation mark in the summary, continuation through the banner, and verifies that a later `%VICTORY_STREAMLINE_DIR%` value containing `!EXPAND_ME!` remains literal rather than expanding to `SHOULD_NOT_APPEAR`. ## How it was tested - GPU and profile (Series X or S, resolution, DLSS, frame generation, ray tracing): Not applicable; this is a launcher-only regression test. No game, GPU, proprietary file, or external SDK is required or launched. - Before: `cargo test -p victory --test launcher_batch --locked` failed as designed against the original implementation. Cargo exited 101, the child cmd process exited 255, stderr contained `'16T' is not recognized as an internal or external command`, and the complete summary was absent. - After: `cargo test -p victory --test launcher_batch --locked` exited 0 with 1/1 test passing. `cargo test -p victory --locked` exited 0 with 85/85 tests passing: 81 unit tests, 1 cache_paths test, 2 census tests, and 1 launcher_batch test. `git diff --check` exited 0, and `git diff --cached --check` also exited 0 before commit. - For shader changes, the wave sizes tested (32 and/or 64 lanes): Not applicable; no shader code changed. - `cargo test` passed for the crates it touches: yes — `cargo test -p victory --locked` exited 0. - Workspace-wide clippy and asset-policy validation are not claimed here; both already fail on unchanged base `main` for unrelated pre-existing loader/shader lint and asset-policy violations. ## Checked for overlap - [x] I searched the open pull requests for the same issue and for the files this touches. Related: #17 is closed/unmerged and addressed configuration selection in launcher scripts, not Auto-Tune metacharacter parsing. No open PR was found for issue #40 or this Auto-Tune parsing defect.
The Auto-Tune summary intentionally contains pipe characters. Echoing it
through percent expansion let cmd parse those pipes as command separators,
so systems with summaries such as "| 16T CPU |" failed before startup.

Use localized delayed expansion for the banner line and add a Windows
integration test covering pipes, literal exclamation marks, and restoration
of the prior expansion state.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-04 06:41:20 +00:00
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/43/head:github-bot/gh-43'
git switch 'github-bot/gh-43'

Merge

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