mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 21:45:54 +01:00
[PR #2201] semantic tests: stop POSIX worker helpers when a test times out #2204
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#2204
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/2201
Author: @EdenBendheim
Created: 11/26/2026
Status: 🔄 Open
Base:
main← Head:ubiq/semantic-posix-child-timeout📝 Commits (1)
db8d971tests: bound POSIX semantic helper lifetime on timeout (SEMANTIC-RUNNER-POSIX-CHILD-TIMEOUT)📊 Changes
2 files changed (+54 additions, -3 deletions)
View changed files
📝
scripts/run_semantic_tests.py(+22 -3)📝
tests/test_run_semantic_tests.py(+32 -0)📄 Description
Claimed in the coordination issue as: SEMANTIC-RUNNER-POSIX-CHILD-TIMEOUT (claim)
On POSIX, a timed-out test could leave a helper holding its output pipes open. The parallel runner killed the worker and then waited for the helper to close the pipe. A 0.3-second timeout in a synthetic fixture returned after 3.13 seconds.
Timed workers now get their own process group. The timeout handler stops that group so pipe collection can finish. Untimed workers keep the caller's process group. Helpers that explicitly detach from the timed group are outside the cleanup boundary.
Depends on: #2073, #2114 (textual conflicts at the worker launch sites). All three changes can be implemented independently. The second PR to land will need to reconcile the launch arguments. Simulated merges with #2071 and #2135 were clean.
Three synthetic timeout cases reproduced the failure on main
a73a57e13, including a worker that had already exited. With the fix, the parallel 0.3-second probe completed in about 0.35 seconds. All 28 runner tests passed on macOS, including checks for untimed serial and parallel worker process groups. Compile, diff and changed-file game-data checks passed.GPUs tested: n/a. All tests used synthetic inputs.
AI-assisted: yes. Created with gpt-6.2-astra in Codex.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.