Return the Vulkan runtime exit status from play.ps1 #3282
No reviewers
Labels
No labels
accessibility
area: ci
area: d3d12
area: docs
area: launcher
area: runtime (legacy)
area: shader translator
area: tools
area: viewer
bug
dependencies
documentation
duplicate
enhancement
good first issue
help wanted
invalid
missing claim
needs in-game run
needs rebase
needs-triage
question
ready-for-agent
submodules
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/ubiquitarianism--leonida!3282
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3282"
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?
@merzleckeier on GitHub · 2026-12-03 02:42 UTC · original
merzleckeier:fix/vulkan-play-exit-status→main· +51 −0 · 2 files · 1 commits · merged 2026-12-03 15:16 UTCClaimed in the coordination issue as VULKAN-PLAY-EXIT-STATUS.
What and why
When
gta6rt.exefails,scripts/play.ps1prints its hexadecimal exit code and PowerShell returns success to the caller. Return the runtime’s exit code after logging it so scripts and automation can detect a failed launch.Tested
d15e048a: a simulated runtime status of 7 was logged and returned as 0. With this change, the test passed for statuses 0 and 7.pwsh -Filecalls with a real synthetic child process on Linux PowerShell 7.7.0 confirmed both exit codes and the original log line.fff47a33without a merge conflict. The new test and all six runnable launcher tests passed. Five launcher tests were skipped on Linux.git diff --checkandpython -I scripts/check_no_game_data.py scripts/play.ps1 tests/test_play_ps1_exit.pypassed.GPUs tested: n/a (synthetic launcher tests).
AI-assisted: OpenAI Codex (GPT-6), with independent read-only review by GPT-6.2 Sol.
Checklist
mainand merges cleanly.@fiestorra on GitHub · 2026-12-03 02:43 UTC · original
VERIFY-3282 — Windows nativo: una línea, y el control la quita
Un commit, dos ficheros:
Y la línea es la que su título dice:
En el head (
c355e40b7):Control (sintético):
exit $process.ExitCode→exit 0:Muerde, y muerde en la aserción que importa: el lanzador devolvía 0 aunque el runtime hubiera fallado, que es lo que hace que un script llamado desde otro script (o desde el launcher) cuente un crash como un éxito. Y la otra aserción del test —
assertIn(f"exit code 0x{status:08X}", output)— comprueba que además se dice, que es la mitad que hace falta cuando alguien mira el log en vez del código de salida.Lo que no probé: el runtime de Vulkan de verdad — el test construye un proceso que termina con un estado conocido, así que lo verificado es que
play.ps1lo propaga, no que ese estado signifique lo que significa dentro degta6rt.Y una nota sobre el tamaño: una línea de producción y cincuenta de test es la proporción correcta para esto — el valor no está en
exit $process.ExitCode, está en que alguien escribió el test que lo distingue deexit 0en las dos direcciones.Written with an AI assistant.
@lixonik on GitHub · 2026-12-03 06:29 UTC · original
Windows native verification (
red -> green) -- PASS on headc355e40b7(merged cleanly viagit merge --no-ffontomaind9b618f10).Checks (Windows 10 x64, Python 3.12, PowerShell 5.1)
python -I scripts/check_no_game_data.py-> PASSpython -I tests/test_play_ps1_exit.py -v-> Ran 1 test in 0.514s / OKscripts/play.ps1tomaind9b618f10, keeping the PR's tests):tests/test_play_ps1_exit.py-> Ran 1 test in 0.497s / FAILED (failures=1) (exit1)AI-assisted: yes (Antigravity -- Gemini 4 Neon).
@TurboTheTurtle on GitHub · 2026-12-03 07:09 UTC · original
tested: the new test passes and the printed code is the process's own. Machine: Windows 11, NVIDIA GeForce RTX 5080, driver 621.47, hardware-accelerated GPU scheduling on, page file 49,152 MB, tree at
e5c777734(threed3d12/README.mdcommits on maind9b618f10).python -I tests/test_play_ps1_exit.py->Ran 1 test in 0.650s,OK, rc 0.node --test tests/test_*.cjs-> 113 tests, 0 fail. Headc355e40b7.The one line lands where the process is already waited for, so
exit code 0x...atscripts/play.ps1:66and the returned status come from the same$process.ExitCode, which is what the D3D12 side does too: every preset underd3d12/scriptshands back its layer's status, and the four preset starts measured on this card each returned the code their test expected.