Repository navigation
fix(mcpx): spawn-attach wait tolerates a slow-starting supervisor (#13481 item 5) - #16805
Conversation
…3481 item 5) TestRestartReportsAServerThatDoesNotComeBack failed in the full suite with 'supervisor did not attach within 5s': the default spawn timeout was 5s, shorter than the supervisor's own 10s first-attach grace, and one poll attempt could consume the whole window because a dialed-but-unanswered handshake carried the live attach's 5s read bound. Under load a healthy supervisor that was still coming up lost the race and the restart reported the attach failure instead of the child's own start failure. - Default SpawnTimeout 5s -> 20s, with the reasoning recorded. - The spawn poll now attempts with a 2s handshake bound, so polls keep cycling inside the window instead of one slow attempt eating it. - Regression tests: a supervisor delayed 6s still attaches under the default timeout; a supervisor that never comes up still fails inside an explicit timeout with the did-not-attach error.
|
Important Review skippedBot user detected. To trigger a single review, invoke the
|
|
Executor status for run 46268742364 (Felix fix lane, 2026-11-29): this verification dispatch has not executed yet — as of ~14:15Z its target-selection job had completed (14:14:44Z, a ~34-minute wait after the 13:40:56Z dispatch) and the Linux job was still queued for a runner. Per Drewry's correction, fleet-command runs are interactive sessions that stay open until timeout by design — a queued/in-progress run is not a zombie, and nothing has been cancelled. There is no verdict for PR #16805 from this run yet; the command (mcpx supervised tests) simply hasn't run. The wait itself is the executor incident being filed in developing-today/code: the designed placement path (fleet queue dispatch) is down (see that issue), so dispatches are arriving unplaced via direct workflow dispatch and queueing against raw GitHub-hosted concurrency. |
Slice of #13481 (item 5 from the acceptance measurement in comment 7254100390):
TestRestartReportsAServerThatDoesNotComeBackfailed in the full suite with 'supervisor did not attach within 5s'.Diagnosis
The restart path falls back to a spawn dial when no supervisor is live; the spawn wait then has to cover re-exec of the binary, supervisor start, and child spawn. Two defects made it lose that race under load:
Fix
Tests (oracle: the spawn-attach contract)
New internal tests in supervised_spawn_timeout_test.go:
Remote verification dispatched at this head via fleet-command (mcpclient package tests incl. -race -shuffle=on -count=5 on the new tests, plus the named e2e test); run ids and results recorded on #13481. Items 3 and 4 of #13481 are held by lanes 0647-L14R / 0647-L08; item 2 is a venue gap. This PR does not close #13481.
{ "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-29T13:40:38Z", "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": "ac3f377b7f752f50918f491d7443b79e95b5dc34" }, "auth_subject": "felix", "stamped_by": "fleet 0.1.0 (native)" } }Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.