[PR #2201] semantic tests: stop POSIX worker helpers when a test times out #2204

Open
opened 2026-11-26 21:20:24 +01:00 by 4ld0 · 0 comments
Owner

📋 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)

  • db8d971 tests: 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.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/2201 **Author:** [@EdenBendheim](https://github.com/EdenBendheim) **Created:** 11/26/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `ubiq/semantic-posix-child-timeout` --- ### 📝 Commits (1) - [`db8d971`](https://github.com/ubiquitarianism/leonida/commit/db8d971c9e6714c10c4b42d36e9e80e027d5a2b8) tests: bound POSIX semantic helper lifetime on timeout (SEMANTIC-RUNNER-POSIX-CHILD-TIMEOUT) ### 📊 Changes **2 files changed** (+54 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `scripts/run_semantic_tests.py` (+22 -3) 📝 `tests/test_run_semantic_tests.py` (+32 -0) </details> ### 📄 Description Claimed in the coordination issue as: SEMANTIC-RUNNER-POSIX-CHILD-TIMEOUT ([claim](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7183431216)) 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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
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
starred/leonida#2204
No description provided.