[PR #2073] Reap semantic test children that race cancellation (SEMANTIC-RUNNER-REGISTER-CANCEL) #2079

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

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

  • 5013741 Reap 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

  • Windows 11, Python 3.14.9. Main e18b59a printed interrupted and returned 130, then the held child reported normal completion. The regression passed with the fix.
  • py -3.14 -I tests/test_run_semantic_tests.py ran 27 cases successfully with the POSIX signal case skipped.
  • Parallel semantic CLI smoke with test_library_compute_forms.py passed (12 tests).
  • git merge-tree confirmed this patch applies alongside #2071.
  • Verified git diff --check and the source-only check.

GPUs tested: n/a.

AI-assisted: yes.

  • Based on current main.
  • One topic.
  • Uses source and synthetic fixtures.

🔄 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/2073 **Author:** [@alexandersato0830](https://github.com/alexandersato0830) **Created:** 11/25/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `codex/semantic-runner-register-cancel` --- ### 📝 Commits (1) - [`5013741`](https://github.com/ubiquitarianism/leonida/commit/50137410157eb8428277f5f7b866d54519c85705) Reap semantic test children that race cancellation ### 📊 Changes **2 files changed** (+68 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `scripts/run_semantic_tests.py` (+16 -4) 📝 `tests/test_run_semantic_tests.py` (+52 -0) </details> ### 📄 Description Claimed in the coordination issue as: [SEMANTIC-RUNNER-REGISTER-CANCEL](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7172445639) ### 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 - Windows 11, Python 3.14.9. Main `e18b59a` printed `interrupted` and returned 130, then the held child reported normal completion. The regression passed with the fix. - `py -3.14 -I tests/test_run_semantic_tests.py` ran 27 cases successfully with the POSIX signal case skipped. - Parallel semantic CLI smoke with `test_library_compute_forms.py` passed (12 tests). - `git merge-tree` confirmed this patch applies alongside #2071. - Verified `git diff --check` and the source-only check. GPUs tested: n/a. AI-assisted: yes. - [x] Based on current `main`. - [x] One topic. - [x] Uses source and synthetic fixtures. --- <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#2079
No description provided.