mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:30:53 +01:00
[PR #2073] Reap semantic test children that race cancellation (SEMANTIC-RUNNER-REGISTER-CANCEL) #2079
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#2079
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/2073
Author: @alexandersato0830
Created: 11/25/2026
Status: 🔄 Open
Base:
main← Head:codex/semantic-runner-register-cancel📝 Commits (1)
5013741Reap semantic test children that race cancellation📊 Changes
2 files changed (+68 additions, -4 deletions)
View changed files
📝
scripts/run_semantic_tests.py(+16 -4)📝
tests/test_run_semantic_tests.py(+52 -0)📄 Description
Claimed in the coordination issue as: SEMANTIC-RUNNER-REGISTER-CANCEL
What and why
The parallel runner can report cancellation while a worker is between launching its subprocess and registering it. The cancellation snapshot then misses the child. Share a cancellation event with workers and check it before launch and under the registration lock. A late child is terminated and reaped by its worker. The regression holds a real subprocess launch at that boundary with thread events.
Tested
e18b59aprintedinterruptedand returned 130, then the held child reported normal completion. The regression passed with the fix.py -3.14 -I tests/test_run_semantic_tests.pyran 27 cases successfully with the POSIX signal case skipped.test_library_compute_forms.pypassed (12 tests).git merge-treeconfirmed this patch applies alongside #2071.git diff --checkand the source-only check.GPUs tested: n/a.
AI-assisted: yes.
main.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.