Files
Pulse/scripts
pulse-triage[bot] 2726cc332e Drain killed backend task process groups during cleanup
After sending SIGKILL to each owned task process group, stop_tasks()
only waited on direct subshell leaders (wait "${pids[@]}"). When a
leader had already exited on SIGTERM (or as the failing task) while a
TERM-ignoring or orphaned descendant only just received SIGKILL, the
runner could return before the kernel finished tearing down that
descendant, leaving a live process in state R and failing
test_release_backend_queue.py in Build and Test (run 46185958683,
job 141105938366).

Add wait_for_task_groups() to wait with a bounded 5-second deadline
(re-sending SIGKILL while live non-zombie processes remain in any owned
process group, and ignoring dead/zombie states Z/X/x so unreaped
orphans awaiting init cannot stall cleanup), invoked only when
kill -0 -- "-$pid" reports remaining processes in an owned group.
Add regression tests covering TERM-ignoring descendants after leader
exit, live group draining, and zombie-only groups.

Contract-Neutral: Internal process-group teardown wait and regression tests in scripts/run-release-backend-tests.sh only; no release gate CLI, coverage, CPU lease, timeout, or public contract delta.
Change-source: pulse-maintainer
2026-11-28 20:46:05 +00:00
..
…
…
…
2026-11-28 00:28:19 +00:00