Report diagnostic settings discarded by play.ps1 #137

Manually merged
github merged 1 commit from github-bot/gh-137 into main 2026-11-26 08:21:47 +00:00 AGit
Owner

@⁠feanorsun on GitHub · 2026-11-26 06:47 UTC · original
feanorsun:fix/report-discarded-launcher-settings → main · +8 −1 · 1 files · 1 commits · merged 2026-11-26 08:17 UTC

Refs #25 (item 2)

When play.ps1 clears a diagnostic switch set in PowerShell, the user can now see which inherited value was dropped and how to pass it explicitly with -More. The launcher compares the settings it cleared with the final process environment, skips explicit -More entries, and prints one sorted list of names. Values are kept out of the message.

Verified on Windows using temporary copies of the upstream and updated scripts. Each case ran in a fresh powershell.exe -NoProfile process with two zero-byte executable placeholders. The wrapper captured the environment and threw a marker at the final Push-Location, before the launcher could execute the binary.

Inherited settings Observed result at the launch point
VICTORY_GPU_TIMING and VICTORY_DESC_WHY Both were cleared on both revisions. Upstream was silent. The updated script printed one line listing VICTORY_DESC_WHY followed by VICTORY_GPU_TIMING, each once, with the -More hint and no test values.
VICTORY_CACHE_DIR and VICTORY_GPU_TIMING, with a different timing value supplied via -More Both revisions retained the cache path, passed the explicit timing value, and printed nothing.
Clean environment Both revisions reached the launch point silently.

Additional cases covered all four preserved paths, matching and differing preset values (including a difference in letter case alone), and mixed-case variable names. All nine cases reached the checkpoint exactly once on each revision.

**@⁠feanorsun** on GitHub · 2026-11-26 06:47 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/pull/137) `feanorsun:fix/report-discarded-launcher-settings` → `main` · +8 −1 · 1 files · 1 commits · merged 2026-11-26 08:17 UTC Refs #25 (item 2) When `play.ps1` clears a diagnostic switch set in PowerShell, the user can now see which inherited value was dropped and how to pass it explicitly with `-More`. The launcher compares the settings it cleared with the final process environment, skips explicit `-More` entries, and prints one sorted list of names. Values are kept out of the message. Verified on Windows using temporary copies of the upstream and updated scripts. Each case ran in a fresh `powershell.exe -NoProfile` process with two zero-byte executable placeholders. The wrapper captured the environment and threw a marker at the final `Push-Location`, before the launcher could execute the binary. | Inherited settings | Observed result at the launch point | | --- | --- | | `VICTORY_GPU_TIMING` and `VICTORY_DESC_WHY` | Both were cleared on both revisions. Upstream was silent. The updated script printed one line listing `VICTORY_DESC_WHY` followed by `VICTORY_GPU_TIMING`, each once, with the `-More` hint and no test values. | | `VICTORY_CACHE_DIR` and `VICTORY_GPU_TIMING`, with a different timing value supplied via `-More` | Both revisions retained the cache path, passed the explicit timing value, and printed nothing. | | Clean environment | Both revisions reached the launch point silently. | Additional cases covered all four preserved paths, matching and differing preset values (including a difference in letter case alone), and mixed-case variable names. All nine cases reached the checkpoint exactly once on each revision.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 06:52:02 +00:00
Author
Owner

@⁠avatarmanz on GitHub · 2026-11-26 07:54 UTC · original

Merged into main in the next push (tests pass); thanks.

**@⁠avatarmanz** on GitHub · 2026-11-26 07:54 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/pull/137#issuecomment-7185970955) Merged into main in the next push (tests pass); thanks.
github manually merged commit f31e8fa1c8 into main 2026-11-26 08:21:47 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.