Repository navigation
Conversation
…up (#13713) TestScriptViewCommandTimeoutKillsSpawnedWorkers polled syscall.Kill(pid, 0) to confirm the spawned worker died. In a container whose PID 1 does not reap orphans the killed worker stays a zombie, and kill(pid, 0) keeps succeeding on a zombie, so the test failed in Fleet executor containers while the group termination itself worked. Poll processExited instead: /proc/<pid>/stat state Z (linux) or P_stat == SZOMB (darwin) counts as gone, mirroring internal/e2e's exited helper. scriptview.go is unchanged. The helper has its own oracle test: a running child reads alive, a killed-but-unreaped child (zombie) reads exited, a reaped child reads exited.
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 59 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
This was referenced Nov 23, 2026
Closed
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #13713
Summary
TestScriptViewCommandTimeoutKillsSpawnedWorkerspolledsyscall.Kill(pid, 0)to confirm the spawned worker died. In a container whose PID 1 does not reap orphans the killed worker stays a zombie, andkill(pid, 0)keeps succeeding on a zombie, so the test failed in Fleet executor containers while the group termination itself worked.The test now polls
processExited:/proc/<pid>/statstateZ(linux) orP_stat == SZOMB(darwin) counts as gone, mirroringinternal/e2e'sexitedhelper.scriptview.gois unchanged. The helper has its own oracle test: a running child reads alive, a killed-but-unreaped child (zombie) reads exited, a reaped child reads exited.Evidence
Before (probe branch with the naive signal-0 implementation, same tests): both tests FAIL — https://github.com/developing-today/fleet/actions/runs/45283298540
processExited(8704) reports a killed, unreaped child as aliveworker 8706 survived the call's timeout: the process group was not terminated— the exact mcpx: TestScriptViewCommandTimeoutKillsSpawnedWorkers fails in Fleet executor containers #13713 symptom, reproduced on the dispatch runner.After (this branch): both tests PASS with
-race -count=1 -v, plusscripts/darwin-compile-check.sh— https://github.com/developing-today/fleet/actions/runs/45284483508--- PASS: TestProcessExitedTellsALiveProcessFromAGoneOne (0.05s)--- PASS: TestScriptViewCommandTimeoutKillsSpawnedWorkers (0.34s)Command:
cd pkgs/mcpx && go test ./internal/daemon -run "TestProcessExitedTellsALiveProcessFromAGoneOne|TestScriptViewCommandTimeoutKillsSpawnedWorkers" -race -count=1 -v && bash scripts/darwin-compile-check.shEvidence level: verified by remote dispatch on GitHub-hosted runners via the fleet-command.yml fallback (
fleet queue dispatchis blocked by TLS defect #13185); not run in a Fleet executor container itself, so the executor-container pass is inferred from the zombie mechanism the oracle test pins, not observed there. Not built or tested locally.Merge Danger
Test-only change (4 new
_test.gofiles + one poll-loop line inscriptview_test.go). No production code touched. Worst case: a platform where the helper misreads liveness — the linux/darwin paths mirror the proveninternal/e2ehelper, and theotherfallback keeps the old signal-0 behavior.{ "direct_parent": null, "links": [], "lineage": { "design": null, "roadmap_item": null, "priority": null }, "pm_meta": 1, "provenance": { "queue_id": null, "scheduled_start": null, "picked_up_at": null, "work_started_at": null, "created_at": "2026-11-23T23:13:37Z", "session_id": null, "lane": null, "host": "htch-runtime", "worktree": "/home/hatch", "model": null, "lane_start_issues": [], "workspace_ref": { "kind": "worktree", "id": "/home/hatch", "repo": "developing-today/code", "branch": "main", "sha": "bbfc8aa3a3b4f3e3d399b7e76beb6962c0daa5b9" }, "auth_subject": "xaltha", "stamped_by": "fleet 0.1.0 (native)" } }Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.