fix(xtask): recognize documented launcher switch reads #528

Manually merged
github merged 1 commit from github-bot/gh-528 into main 2026-12-05 17:30:37 +00:00 AGit
Owner

@⁠tommiehansen on GitHub · 2026-12-04 22:38 UTC · original
tommiehansen:fix/shell-switch-policy → main · +49 −9 · 1 files · 1 commits · merged 2026-12-05 17:26 UTC

What this does

Fixes the documented-switch test for the four existing launcher switches read by run.sh: VICTORY_GPU_GUARD, VICTORY_GPU_GUARD_PERCENT, VICTORY_RAM_GUARD_STALL, and VICTORY_STEAMDECK. They are genuine shell parameter expansions, not Rust string literals. All 18 tested upstream merge snapshots passed asset policy but failed this same check.

Checks

  • N/A: test-only change, no runtime behavior or defaults changed.
  • N/A: existing documentation is correct.
  • One subject: only xtask/src/switches.rs changed.
  • Added regression test covering existing expansion syntax, nested defaults, longer identifiers, assignment-only names and comment-only lines. This is a narrow textual check, not a general shell parser.
  • Existing Rust literal matching and full-name checks are retained; no switches are exempted or allowlisted.
  • Verified cargo test --locked -p xtask -- switches (4 passed) and cargo xtask policy on this head.

Verified

Before: all 18 generated merge snapshots failed the switch check with the same four names (audit). Source inspection confirms actual reads in run.sh. After: CI passed. The baseline failure was reproduced, all four switch tests and asset policy passed at the fix head, and all 18 upstream merge snapshots passed both checks with this fix cherry-picked. No gameplay or source PR branches were modified.

Cost

None at runtime; only the switch-policy test scans the existing launcher.

**@⁠tommiehansen** on GitHub · 2026-12-04 22:38 UTC · [original](https://github.com/lobomfz/VIctory-xmem/pull/528) `tommiehansen:fix/shell-switch-policy` → `main` · +49 −9 · 1 files · 1 commits · merged 2026-12-05 17:26 UTC ## What this does Fixes the documented-switch test for the four existing launcher switches read by `run.sh`: `VICTORY_GPU_GUARD`, `VICTORY_GPU_GUARD_PERCENT`, `VICTORY_RAM_GUARD_STALL`, and `VICTORY_STEAMDECK`. They are genuine shell parameter expansions, not Rust string literals. All 18 tested upstream merge snapshots passed asset policy but failed this same check. ## Checks - N/A: test-only change, no runtime behavior or defaults changed. - N/A: existing documentation is correct. - [x] One subject: only `xtask/src/switches.rs` changed. - [x] Added regression test covering existing expansion syntax, nested defaults, longer identifiers, assignment-only names and comment-only lines. This is a narrow textual check, not a general shell parser. - [x] Existing Rust literal matching and full-name checks are retained; no switches are exempted or allowlisted. - [x] Verified `cargo test --locked -p xtask -- switches` (4 passed) and `cargo xtask policy` on this head. ## Verified Before: all 18 generated merge snapshots failed the switch check with the same four names ([audit](https://github.com/tommiehansen/VIctory-xmem/actions/runs/47438917574)). Source inspection confirms actual reads in `run.sh`. After: [CI passed](https://github.com/tommiehansen/VIctory-xmem/actions/runs/47440075807). The baseline failure was reproduced, all four switch tests and asset policy passed at the fix head, and all 18 upstream merge snapshots passed both checks with this fix cherry-picked. No gameplay or source PR branches were modified. ## Cost None at runtime; only the switch-policy test scans the existing launcher.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-04 22:42:00 +00:00
github manually merged commit e90259d1b0 into main 2026-12-05 17:30:37 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.