Repository navigation
Stop isolated Windows test descendants after module exit - #4683
Merged
Mister-Meeseeks merged 1 commit intoOct 22, 2026
Merged
Conversation
Reuse the registered replay runner gated Job Object, preserve module results and deadlines, and add native lifetime controls. Prepared with substantial OpenAI Codex assistance.
This was referenced Oct 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Change and mathematical scope
A completed isolated unittest module can leave child/grandchild solvers alive on Windows. If those descendants retain capture pipes, the runner can also hang after the module exits. This repair gives each Windows module a private supervisor that reuses the existing gated Job Object implementation in
research_package.py, preserving captured output, exit codes, completion receipts and cancellation/deadline behavior.The production change is 31 lines; the remaining changes add native process-handle controls, adapt sandbox dependencies/fault injection, and document evidence. Supervisor/gate startup remains inside the module budget; healthy Windows deadline fixtures allow three seconds instead of one. No native ownership implementation is duplicated. This is verifier tooling, with no new κ or selected-frontier change.
Task and overlap
Base and submission refresh: canonical main
b58ad9ef4d4e861b0eaa5dba41742bdc072dca51, priority revision 7. Contribution head:02d43658b948db1922a23369b1fa2ba9bc4f8f58. Selected conditional κ remains 0.00302015.portable-replay, scope refined to one Windows process-lifetime failure (chooser nonce8fd33b1202dd34fd71d3e95ffb8161f5, scope key831cc1a3c8f9ff01b197). This takes the explicit Windows follow-up to #2906, coordinated in Discussion #1472. It applies #2469's registered-runner ownership to the distinct isolated-runner caller, retaining #2625's cancellation and #2579's completion guarantees.The final overlap refresh covered 450 open PR bodies, 3,612 Discussion records and all 5,860 in-scope local notes, with complete reported pagination and no coverage warnings. It found the predecessor handoff and this claim, with no overlapping open implementation located. This is not an exhaustive diff or closed-PR search. Exact base-source hashes, commands and limitations are in the evidence note.
Validation
-O.git diff --checkpasses. Reused native code and frozen inputs are unchanged.python -B -m unittest discover -s tests -p 'test_isolated_test_*.py' -v python -O -B -m unittest discover -s tests -p test_isolated_test_windows_exit.py -vThe broader 57-test Windows attempt retains five failing historical-wrapper methods (16 failed assertions/subtests), all stopping at the existing
Unrecognized live source update: scripts/partial_swap/shared.pycheck. A separate exact 16-file export of unchanged main reproduces all 16 failure headers and reasons. Their acceptance pins are not relaxed. No green full-suite, selected cold replay, hosted CI or mathematical-proof result is claimed.Hosted verification update after publication: run 39808873242 completed with two successful package replays (
isolated-descendant-bytecodeandisolated-test-bytecode) and one failure (isolated-runner-successor). The failed job stops atworking source drift: certificates/selected-result.json, before running its verification commands. Its unchanged source manifest pins blobb1fea0c94436b236cc2b7d41a7be032811b94c81; both canonical mainb58ad9efand this PR contain blobc35482cd9035843b15a634cc8276a7e1e40e8395. The manifest, selected record and package runner have no diff from main. This establishes that the reported pin mismatch predates the PR; it does not claim the remainder of that package passes. Its frozen source inventory also pins the pre-change isolated runner, so any successor admission needs its own source review. No acceptance pin or frontier file is changed, and no green overall hosted run is claimed.Credit
Credit Nick Petalas/#2906, ywz65/#2469/#2625/#2579, Paul Romeo, Aaron Wang/navinor, woklerx, Douglas Colkitt, Tekalign and the retained bytecode/timeout contributors. Prepared for Mihir Srivastava (@mihir-s-05) with substantial OpenAI Codex assistance, one agent. Apache-2.0; no independent human review claimed.
Open next questions
Run the six native controls on Windows Python 3.14. Separately audit abrupt supervisor death before job assignment; test work cannot pass the gate before ownership, but an interrupted unassigned gate waiter has its own 30-second timeout. External process-launch mechanisms, hostile containment and denied native APIs are outside this contribution. Test modules must still join proof-relevant children and propagate their failures; cleanup does not verify unfinished work. The historical source-pin mismatch requires its own source review.