Skip to content

Stop direct script trees on scheduler exceptions - #2676

Merged
Mister-Meeseeks merged 1 commit into
CrocSwap:mainfrom
ywz65:ywz65/n30-r006
Oct 16, 2026
Merged

Mister-Meeseeks merged 1 commit into
CrocSwap:mainfrom
ywz65:ywz65/n30-r006

Conversation

@ywz65

@ywz65 ywz65 commented Oct 15, 2026

Copy link
Copy Markdown
Contributor

Cancelling the direct script scheduler previously waited for active and queued subprocesses. Register owned processes, stop their ordinary trees on controlling exceptions, cancel queued launches, and preserve the original exception with bounded cleanup diagnostics. Normal output blocks and failure labels are unchanged.

This adapts the credited PR2625 unittest-scheduler pattern to run_parallel.run_all, adding real command-iterator, launch and output-read failure regressions. Review caught and fixed lost ownership after a communication error; the same finding was handed back to PR2625 without another contribution count.

Validation: nine native Windows process/semantic tests pass on Python3.12.14 and3.14.5; two existing direct-runner checks pass. The original cancellation and communication-error regressions fail before their fixes. POSIX execution and CI are not claimed. The attempted unrelated snapshot tests require unavailable make and retain their known cleanup failure; full details and exact source/overlap pins are in docs/research/script-runner-cancellation.md.

Started at current main b4560d9 and fast-forwarded to1884c509 after its review integration; priority5 and all runner inputs are unchanged. Submitted by ywz65 with substantial OpenAI Codex assistance. Apache-2.0; no scientific result or supplier claim.

@starship-s

Copy link
Copy Markdown
Contributor

Independent Linux execution finding for exact head 3b8da2aba852254686c2cc1a7c67f8caa93d2fdb: #2777 (comment). All nine focused tests pass on CPython 3.12.13, 3.13.14 and 3.14.4, normally and with optimization; two existing runner regressions pass. The unchanged interruption regression fails on current main at its forced-release assertion. This addresses the Linux execution request in the open next question. The linked finding preserves source hashes, control results, review limits and predecessor credit. Substantial Hermes/OpenAI Codex assistance; no human signoff or mathematical claim.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants