[PR #2071] Cancel Windows semantic test subprocess trees (SEMANTIC-RUNNER-WINDOWS-CHILD-CANCEL) #2077

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

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/2071
Author: @alexandersato0830
Created: 11/25/2026
Status: 🔄 Open

Base: main ← Head: codex/semantic-runner-windows-child-cancel


📝 Commits (1)

  • c503337 Cancel Windows semantic test trees before their roots exit

📊 Changes

2 files changed (+30 additions, -6 deletions)

View changed files

📝 scripts/run_semantic_tests.py (+8 -6)
📝 tests/test_run_semantic_tests.py (+22 -0)

📄 Description

Claimed in the coordination issue as: SEMANTIC-RUNNER-WINDOWS-CHILD-CANCEL

What and why

After #1936, interrupt cleanup terminates the parent before running Windows taskkill /T. With the parent gone, the child can continue running and keep the runner's output pipe open. Ask Windows to end the process tree while the parent is live, then fall back to killing the parent through its process handle. The Windows regression starts a synthetic descendant that inherits stdout and checks whether it survives cancellation.

Tested

  • Windows 11, Python 3.14.9. On main e48ff03 the descendant lived long enough to write its completion marker to the pipe. With the fix the regression passed.
  • 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).
  • 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/2071 **Author:** [@alexandersato0830](https://github.com/alexandersato0830) **Created:** 11/25/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `codex/semantic-runner-windows-child-cancel` --- ### 📝 Commits (1) - [`c503337`](https://github.com/ubiquitarianism/leonida/commit/c503337301f91f97e4188054ae332d11bb09ed1b) Cancel Windows semantic test trees before their roots exit ### 📊 Changes **2 files changed** (+30 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `scripts/run_semantic_tests.py` (+8 -6) 📝 `tests/test_run_semantic_tests.py` (+22 -0) </details> ### 📄 Description Claimed in the coordination issue as: [SEMANTIC-RUNNER-WINDOWS-CHILD-CANCEL](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7172350113) ### What and why After #1936, interrupt cleanup terminates the parent before running Windows `taskkill /T`. With the parent gone, the child can continue running and keep the runner's output pipe open. Ask Windows to end the process tree while the parent is live, then fall back to killing the parent through its process handle. The Windows regression starts a synthetic descendant that inherits stdout and checks whether it survives cancellation. ### Tested - Windows 11, Python 3.14.9. On main `e48ff03` the descendant lived long enough to write its completion marker to the pipe. With the fix the regression passed. - `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). - 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#2077
No description provided.