Repository navigation
fix(mcpx): spawn-attach timeout error carries the supervisor log tail - #16910
Merged
Merged
Conversation
added 3 commits
November 29, 2026 15:30
|
Important Review skippedBot user detected. To trigger a single review, invoke the
|
This was referenced Nov 29, 2026
This was referenced Nov 29, 2026
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.
Refs #16797, Refs #16832.
What
When the spawn-attach wait in
newSupervisedexhausts, the error now appends the tail of the supervisor log (<socket>.log, wherespawnSupervisorProcesssends the supervisor stdout/stderr):A supervisor that dies before it listens (listen error, unspawnable child) leaves its only account of itself in that log; until now the caller got a bare missing-socket dial error and the log was discarded with the build tree. This is the diagnostic gap that made the #16797/#16832 cluster (supervisor socket never appears; three lanes, two platforms) undiagnosable from CI output.
Verification (all remote, fleet-command venue)
--- FAIL: TestNewSupervisedAttachTimeoutCarriesTheSupervisorLog (0.60s)— "the failure should carry the supervisor log tail, got: ... did not attach within 600ms: dial unix ... no such file or directory".TestNewSupervisedAttachesToASlowStartingSupervisorPASS (6.06s),TestNewSupervisedStillFailsWhenNoSupervisorComesUpPASS (3.01s),TestNewSupervisedAttachTimeoutCarriesTheSupervisorLogPASS (0.60s).What this does NOT close
Neither #16797 nor #16832: their acceptance is the e2e tests green in the nix build. Follow-up evidence gathered by lane 0640-B (full record on both issues): the failure reproduces in a plain container with a single test (run 46275192722, 114s), and with this fix applied the attach error still carries NO log tail (run 46282979536) — the supervisor log is empty: the spawned supervisor writes nothing and never listens, so it is stuck or dead before
RunSupervisorreaches its listen step, before it can log anything. The manualmcpx superviseisolation probe is dispatched as run 46288289876 (queued at filing time).{ "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-29T17:34:32Z", "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": "010b47d1c4cecdcd1b7d6ea260b7c9b0a61fb89e" }, "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.