Report diagnostic settings discarded by play.ps1 #137

Merged
feanorsun merged 1 commit from upstream-pr/137 into main 2026-11-26 08:17:49 +00:00
feanorsun commented 2026-11-26 06:47:51 +00:00 (Migrated from github.com)

Imported from avatarmanz/VIctory-7900XTX. Originally posted by feanorsun on 2026-11-26T06:47:51Z.


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.

<!-- greyfinch-sync:avatarmanz/VIctory-7900XTX:issue:6621170895 --> Imported from [avatarmanz/VIctory-7900XTX](https://github.com/avatarmanz/VIctory-7900XTX/pull/137). Originally posted by [feanorsun](https://github.com/feanorsun) on 2026-11-26T06:47:51Z. --- 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.
avatarmanz commented 2026-11-26 07:54:44 +00:00 (Migrated from github.com)

Imported from avatarmanz/VIctory-7900XTX. Originally posted by avatarmanz on 2026-11-26T07:54:44Z.


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

<!-- greyfinch-sync:avatarmanz/VIctory-7900XTX:comment:7185970955 --> Imported from [avatarmanz/VIctory-7900XTX](https://github.com/avatarmanz/VIctory-7900XTX/pull/137#issuecomment-7185970955). Originally posted by [avatarmanz](https://github.com/avatarmanz) on 2026-11-26T07:54:44Z. --- Merged into main in the next push (tests pass); thanks.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
avatarmanz/VIctory-7900XTX!137
No description provided.