Commit Graph

8 Commits

Author SHA1 Message Date
pulse-triage[bot]
e22b1f3f09 Verify /proc matches current PID namespace during cleanup wait
wait_for_task_groups() checked only os.path.isdir('/proc'), which stays true inside PID-namespaced sandboxes whose /proc mount still reflects the host namespace (observed in preflight proof sandbox where /proc/603/stat raised FileNotFoundError). Verify os.readlink('/proc/self') == str(os.getpid()) and /proc/<self>/stat before scanning /proc so wait_for_task_groups falls back to os.kill(-pgid, 0) instead of silently skipping SIGKILL, assert SIGKILL termination in the live-group test, and skip only the /proc-dependent zombie-only subtest when /proc does not match the current PID namespace.

Contract-Neutral: Internal /proc PID-namespace check in wait_for_task_groups() and matching sandbox guard in test_release_backend_queue.py only; no release gate CLI, coverage, CPU lease, timeout, or public contract delta.
Change-source: pulse-maintainer
2026-11-28 20:56:32 +00:00
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
rcourtman
1360e4ee26 Vouch for the Pro build and run api fuzz seeds at release
The Pro build reran Pulse's whole test suite against the release commit,
39 of the 41 minutes of its test job, although this workflow's own
race-enabled backend_tests already tests that commit. Pass this run's id as
public_release_run_id. The Pro build then tests only the Enterprise suite,
and its signing job waits until this run's backend_tests passes on the same
commit.

The release gate listed only Test names in internal/api, so the seed
corpora of FuzzNormalizeRouteCompatibility and FuzzDecodeSecurityRequestBody
ran only in the Pro build's copy of the suite. List Fuzz and Example names as
pull-request CI already does, and let the shard planner accept them. On the
current tree that adds exactly those two, and both pass.

pulse-enterprise PR 237 declares the input and must merge first: an unknown
dispatch input fails the dispatch.
2026-11-07 11:00:38 +00:00
pulse-triage[bot]
aa054f1cd7 Preserve shared queue weights and causal cleanup proof
Candidate preflight found the refreshed CI-only observations had removed two whole-package estimates still consumed by the shared backend queue. Restore those unmeasured historical hints, while preserving the refreshed ordinary CI assignments. Make the TERM-resistant cleanup witness ready before its peer fails, and exercise shipped and reversed fixture orders instead of depending on weight order.

Contract-Neutral: Scheduling hints and causal test-fixture repair only; no product runtime, release rules, required check, coverage, worker envelope, timeout or cleanup assertion is weakened.
Change-source: pulse-maintainer
2026-11-02 02:26:05 +00:00
pulse-triage[bot]
471c891ad1 Keep failed backend task groups owned through cleanup
Retain the failed leader in the cleanup set so its surviving descendants receive the same bounded TERM/KILL signals. Controlled children independently record process-group identity; a failing leader leaves a TERM-resistant descendant for the actual runner to clean. Liveness checks distinguish live execution from a disappearing PID or a dead zombie awaiting init reaping.

Change-source: pulse-maintainer
2026-10-28 20:12:59 +00:00
pulse-triage[bot]
0d2059097a Preserve completed backend child statuses when draining the queue
A controlled Bash probe confirms wait -n returns no-job for an already completed child even though wait PID retains its status. Drain completed task PIDs explicitly and reconcile a completion racing the live-job snapshot. Add actual-helper controls for successful and failing saved statuses, including127; no task is rerun and no missing result becomes a pass.

Change-source: pulse-maintainer
2026-10-28 20:08:15 +00:00
pulse-triage[bot]
01f017f3b3 Make backend queue controls causal and close child cleanup races
The offline VM exposed a timing race before the real backend suite started. Prove released-capacity admission through an explicit child-start barrier. Failure controls also exposed a descendant missed by recursive process enumeration: give tasks separate process groups and apply bounded TERM/KILL cleanup, including a child deliberately ignoring TERM. Coverage, CPU widths and test deadlines are unchanged.

Change-source: pulse-maintainer
2026-10-28 19:53:10 +00:00
pulse-triage[bot]
32b338c344 Release completed API capacity to the backend package queue
Beta.3 backend job 123003682684 completed its three API shards in 17 minutes but kept the non-API graph on one slot until the 70-minute hosted cancellation. Reuse each finished shard width for source-listed whole packages, start expensive packages first, isolate their data, and retain CPU lease coverage. Preserve the total CPU budget, all race/vet coverage and existing deadlines. Add actual-runner discovery, capacity, failure and cleanup controls.

Change-source: pulse-maintainer
2026-10-28 19:48:05 +00:00