Return the runner exit code from play-rig #5051

Open
github-bot wants to merge 1 commit from github-bot/gh-5050 into main AGit
Owner

@⁠andrewpozdnakov7-jpg on GitHub · 2026-12-01 18:21 UTC · original
andrewpozdnakov7-jpg:codex2/fix/rig-exit-status → main · +3 −0 · 1 files · 1 commits · open

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.

**@⁠andrewpozdnakov7-jpg** on GitHub · 2026-12-01 18:21 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/5050) `andrewpozdnakov7-jpg:codex2/fix/rig-exit-status` → `main` · +3 −0 · 1 files · 1 commits · open ## 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 18:24:32 +00:00
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/5051/head:github-bot/gh-5050'
git switch 'github-bot/gh-5050'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-5050'
git switch 'github-bot/gh-5050'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-5050'
git switch 'github-bot/gh-5050'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-5050'
git switch 'main'
git merge --squash 'github-bot/gh-5050'
git switch 'main'
git merge --ff-only 'github-bot/gh-5050'
git switch 'main'
git merge 'github-bot/gh-5050'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No reviewers
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.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA!5051
No description provided.