Return the Vulkan runtime exit status from play.ps1 #3282
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-12-03T02:42:18Z.
Claimed 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.Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-12-03T02:43:53Z.
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.
Imported from ubiquitarianism/leonida. Originally posted by lixonik on 2026-12-03T06:29:10Z.
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).
Imported from ubiquitarianism/leonida. Originally posted by TurboTheTurtle on 2026-12-03T07:09:38Z.
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.