mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-27 00:50:52 +01:00
[PR #1002] test_build_batch_launch: read the batch's exit code after it has exited (TEST-BATCH-LAUNCH-EXITCODE) #1039
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#1039
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/1002
Author: @Snooozs
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:batch-launch-exitcode📝 Commits (1)
e61fdabTEST-BATCH-LAUNCH-EXITCODE: read the batch exit code after the child exits📊 Changes
1 file changed (+5 additions, -3 deletions)
View changed files
📝
tests/test_build_batch_launch.py(+5 -3)📄 Description
Claimed in the coordination issue as: TEST-BATCH-LAUNCH-EXITCODE (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7137887651)
What and why
tests/test_build_batch_launch.pyfails on this Windows 10 PC: the helper startscmd.exewith-PassThru, takes$p.Handleand reads$p.ExitCodeafterWaitForExit(). The stub batch has already exited by then, so ExitCode is usually null (28 of 30 runs) andexit $p.ExitCodeturns it into 0.The helper now uses
-Wait -PassThru. A null code is reported as 999, which no case expects. The parsed production-ArgumentListexpression, the folder cases and the negative control (a launch line that drops the quotes) are unchanged.Production scripts are untouched: with their pattern and a child that lives about 2 s, ExitCode was correct in 20 of 20 runs.
Trade-off: the file takes about 56 s here instead of 20 s, because
-Waitadds time to each start.Tested
Windows 10 Pro 22H2 (19045), Windows PowerShell 5.1, CPython 3.12.10:
Ran 2 tests ... FAILED (failures=3)compileall,test_text_write_line_endings,check_no_game_data.py: cleanGPUs tested: n/a
AI-assisted: yes. Claude Code (a Haiku 5.5 subagent found the cause and wrote the change, Claude Opus 5.5 reviewed it and reran the tests).
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed. (n/a: no translator rule)🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.