Repository navigation
fix: stop the XCL child when Windows taskkill fails - #7069
lucas-tafuri wants to merge 4 commits into
Conversation
|
Tested 5465c64 merged with main 8575d36 on Linux/Python 3.12.16: pass
Diff read: |
|
Tested 5465c64 merged onto main 6b40d22 on Windows 11 Pro, Intel i7-14700KF, CPython 3.11.0 (venv: pytest 9.2.0, numpy 2.4.6, Pillow 13.0.0; numpy is below the 2.5.5 pin because 2.5 needs Python 3.12), CPU only: pass.
Review notes:
AI-assisted (Claude Code). |
|
Tested 5465c64 on Windows 11 (NTFS), Python 3.12.10 (CPU only, no GPU, no game files): pass The two earlier reviews ran the mock test. This one checks the fix with real Windows child processes and a real What I ran:
Nits, none blocking:
AI-assisted (Claude Code). |
Handle OSError when attempting to kill process tree on Windows.
|
Thanks for the real Windows repro. I added the suggested launch-error fallback and a regression subcase in |
|
Tested 5465c64 on Windows 11, Python 3.15.2, NVIDIA RTX 4060 Ti (driver 621.24; CPU-only checks, no game files, no GPU/llvm-mc/MSVC used): pass. Ran the test files this PR adds or changes, from a clean checkout of the PR head: AI-assisted (Claude Code). |
Claim: #6910 (comment)
In a restricted Windows process,
taskkill /F /Treturned 1 and left a synthetic child alive. The watchdog then waited for that child instead of restarting promptly. Keep the Windows tree-termination attempt. If it fails and the direct child is still alive, stop the direct child through its Popen handle. The fallback covers only that child.Verification on Windows / Python 3.12, using upstream snapshot
8f208d09: the new mock-based regression failed with the originalkill_tree(). With the change,python -I tests/test_xcl_compare.pypassed all 13 tests, including the real synthetic restart cases. No game files or GPU used.AI-assisted (OpenAI Codex).