Repository navigation
Stop headless parallel build commands on Ctrl+C - #7248
jewmaster1337 wants to merge 1 commit into
Conversation
|
Tested e3e9969 merged onto main 8575d36 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, with notes.
Review notes (from reading the code; I could not run these POSIX paths here):
AI-assisted (Claude Code). |
|
Tested e3e9969 on Arch Linux, Python 3.14.10, CPU only: pass — |
|
Tested e3e9969 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). |
Claimed in coordination #7049.
Problem and fix
Interrupting the headless parallel builder called the process cleanup used by the TUI. Ordinary subprocesses and uncaptured shader shards were outside that registry. The stage threads could keep writing after the interrupt and Python waited for them during shutdown.
Track mutating commands for each headless parallel build. On interruption, close the registry to new launches, terminate the remaining commands, and cancel pending stages. This covers the generic build command runner, shader shards, FFmpeg workers, and submodule updates. Windows uses the existing process-tree cleanup. POSIX commands use separate sessions so an interrupt sent to the builder alone also reaches a command's children.
Verification
python -IB tests/test_make_game_progress.py -v— 7 passed on Windows and Ubuntu, including both new regressions. Both new cases failed on the Windows baseline.python -IB tests/test_make_game_translate_cleanup.py -v— 3 passed on both systems. Ubuntu'stest_leonida_tui.pypassed all 24 checks.8575d36ein the locked-index, drive-root, and resume suites.git diff --check, and the no-game-data scan passed.CPU-only synthetic subprocesses. AI-assisted (Codex).
Integration check
A local Windows trial merge with the shared folder leases in #3765 and the baseline repairs in #7018, #6957, and #7214 passed the full build-tool and TUI selection.
python -m pytest -q tests/test_make_game*.py tests/test_leonida_tui.py(PowerShell-expanded paths) reported 443 passed, 5 skipped and 105 subtests passed. Linux also passed both the folder-lock and cancellation regression files on the combined checkout.