You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
mcpx: TestScriptViewCommandTimeoutKillsSpawnedWorkers fails in Fleet executor containers #13713
pkgs/mcpx/internal/daemon test TestScriptViewCommandTimeoutKillsSpawnedWorkers fails deterministically inside the Fleet executor container, while it passes on local runs and on GitHub-hosted runners.
The test checks syscall.Kill(pid, 0) for the spawned sleep. In a container whose PID 1 does not reap orphans, a killed orphan can remain a zombie, and kill(pid, 0) still succeeds on a zombie. Confirm by checking for zombie state (/proc/<pid>/stat) inside the executor, then either make the test treat zombies as gone, or run the container with an init.
Acceptance
TestScriptViewCommandTimeoutKillsSpawnedWorkers passes in the Fleet executor container.
Process-group termination behaviour in scriptview.go is unchanged.
Refs #13660 — the PR that completes #13577 is awaiting merge; this issue tracks the separate pre-existing Fleet-container failure found while verifying it.
Slice: the test treated a zombie as alive. TestScriptViewCommandTimeoutKillsSpawnedWorkers polled syscall.Kill(pid, 0); in a container whose PID 1 does not reap orphans the killed worker stays a zombie and signal 0 keeps succeeding. The test now polls a processExited helper (/proc/<pid>/stat state Z on linux, P_stat == SZOMB on darwin), mirroring internal/e2e's exited. The helper has its own oracle test (alive / killed-unreaped / reaped). scriptview.go is untouched — the process-group termination behaviour is unchanged, satisfying the second acceptance criterion by diff.
Evidence (remote dispatch, fleet-command.yml fallback — fleet queue dispatch is blocked by TLS defect #13185):
Caveat: the pass was observed on the GitHub-hosted dispatch runner (which reproduced the failure), not in a Fleet executor container itself — the executor-container pass is inferred from the zombie mechanism the oracle test pins. If the executor run still fails, the next slice is to look at the executor's PID 1 / init rather than the test.
Next slice after this PR: none for this issue if the executor run goes green — both acceptance criteria are then met and the issue can close with the executor run as evidence.
Activity
developing-today commentedon Nov 23, 2026
CODE-5028
dezren39 commentedon Nov 23, 2026
Refs #13660 — the PR that completes #13577 is awaiting merge; this issue tracks the separate pre-existing Fleet-container failure found while verifying it.
test(mcpx): treat zombies as gone when a script timeout kills its gro…
dezren39 commentedon Nov 23, 2026
Progress — xaltha, 2026-11-23 ~17:20 CST. PR #13842 opened (branch
xaltha/13713-mcpx-scriptview-timeout, commit4350044df).Slice: the test treated a zombie as alive.
TestScriptViewCommandTimeoutKillsSpawnedWorkerspolledsyscall.Kill(pid, 0); in a container whose PID 1 does not reap orphans the killed worker stays a zombie and signal 0 keeps succeeding. The test now polls aprocessExitedhelper (/proc/<pid>/statstateZon linux,P_stat == SZOMBon darwin), mirroringinternal/e2e'sexited. The helper has its own oracle test (alive / killed-unreaped / reaped).scriptview.gois untouched — the process-group termination behaviour is unchanged, satisfying the second acceptance criterion by diff.Evidence (remote dispatch,
fleet-command.ymlfallback —fleet queue dispatchis blocked by TLS defect #13185):worker 8706 survived the call's timeout, reproduced on the dispatch runner.-race -count=1 -v, plusscripts/darwin-compile-check.sh, https://github.com/developing-today/fleet/actions/runs/45284483508.Caveat: the pass was observed on the GitHub-hosted dispatch runner (which reproduced the failure), not in a Fleet executor container itself — the executor-container pass is inferred from the zombie mechanism the oracle test pins. If the executor run still fails, the next slice is to look at the executor's PID 1 / init rather than the test.
Next slice after this PR: none for this issue if the executor run goes green — both acceptance criteria are then met and the issue can close with the executor run as evidence.