Return the runner exit code from play-rig #5050

Open
andrewpozdnakov7-jpg wants to merge 1 commit from upstream-pr/5050 into main
andrewpozdnakov7-jpg commented 2026-12-01 18:21:06 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by andrewpozdnakov7-jpg on 2026-12-01T18:21:06Z.


What it changes

play-rig.ps1 saves the exit code of the victory.exe process it launched. When the script runs through powershell -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

  • A Windows PowerShell 5.1 fixture ran the exact launch and reporting tail under powershell.exe -File, with a native stand-in and stubbed log discovery and reporting.
  • Before (5fabb46e): the shell returned 0 for native exit 17 with a log and native exit 18 without a log.
  • After (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.
  • The full script parsed as ASCII in Windows PowerShell. cargo xtask policy --staged on the changed script and git diff --check passed. The fixture uses no GPU or game data.

Checked for overlap

  • Searched issues and PRs for rig launcher exit status. Related: #1448 and #2207 update the launcher in other places. Both merge cleanly with this change at their current heads.

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.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5591807762 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/5050). Originally posted by [andrewpozdnakov7-jpg](https://github.com/andrewpozdnakov7-jpg) on 2026-12-01T18:21:06Z. --- ## What it changes `play-rig.ps1` saves the exit code of the `victory.exe` process it launched. When the script runs through `powershell -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 - A Windows PowerShell 5.1 fixture ran the exact launch and reporting tail under `powershell.exe -File`, with a native stand-in and stubbed log discovery and reporting. - Before (`5fabb46e`): the shell returned 0 for native exit 17 with a log and native exit 18 without a log. - After (`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. - The full script parsed as ASCII in Windows PowerShell. `cargo xtask policy --staged` on the changed script and `git diff --check` passed. The fixture uses no GPU or game data. ## Checked for overlap - [x] Searched issues and PRs for rig launcher exit status. Related: #1448 and #2207 update the launcher in other places. Both merge cleanly with this change at their current heads. 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.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/5050:upstream-pr/5050'
git switch 'upstream-pr/5050'

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.

git switch 'main'
git merge --no-ff 'upstream-pr/5050'
git switch 'upstream-pr/5050'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/5050'
git switch 'upstream-pr/5050'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/5050'
git switch 'main'
git merge --squash 'upstream-pr/5050'
git switch 'main'
git merge --ff-only 'upstream-pr/5050'
git switch 'main'
git merge 'upstream-pr/5050'
git push origin 'main'
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
trustno1-coder/VIctory-NVIDIA!5050
No description provided.