mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-27 00:50:52 +01:00
[PR #2071] Cancel Windows semantic test subprocess trees (SEMANTIC-RUNNER-WINDOWS-CHILD-CANCEL) #2077
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#2077
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/2071
Author: @alexandersato0830
Created: 11/25/2026
Status: 🔄 Open
Base:
main← Head:codex/semantic-runner-windows-child-cancel📝 Commits (1)
c503337Cancel 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
e48ff03the 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.pyran 27 cases successfully with the POSIX signal case skipped.test_library_compute_forms.pypassed (12 tests).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.