Return the runner exit code from play-rig #5050
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/5050"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by andrewpozdnakov7-jpg on 2026-12-01T18:21:06Z.
What it changes
play-rig.ps1saves the exit code of thevictory.exeprocess it launched. When the script runs throughpowershell -File, the shell can still return 0 after a native failure. A launcher calling the script can then report a successful run.Return the recorded code after the watcher stops and the script writes its run report. This reports the initial runner's result, which is the process the script waits on directly.
How it was tested
powershell.exe -File, with a native stand-in and stubbed log discovery and reporting.5fabb46e): the shell returned 0 for native exit 17 with a log and native exit 18 without a log.737d443f): the shell returned 17 and 18 respectively. The log summary and no-log message were still reached. Native exit 0 returned 0 and still wrote its summary.cargo xtask policy --stagedon the changed script andgit diff --checkpassed. The fixture uses no GPU or game data.Checked for overlap
Please retain the Git author on cherry-pick or rebase, or add
Co-authored-by: andrewpozdnakov7-jpg <[email protected]>if folding this change into another commit.AI-assisted with OpenAI Codex.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.