GeezerVison is showing github.com — mcpx: e2e suite hangs intermittently on aarch64-darwin (different test each run; daemon-side, reload path) · Issue #16312 · developing-today/code
mcpx: e2e suite hangs intermittently on aarch64-darwin (different test each run; daemon-side, reload path) #16312DescriptionFlake signature (firsthand, from darwin-nix CI triageany 2026-11-27)
Two consecutive flake checks build runs on darwin-nix main failed in the SAME job — nix build (aarch64-darwin) mcpx-agent-restart — with a DIFFERENT hanging e2e test each time, and a rerun of the first went fully green:
| run |
head |
mcpx-agent-restart result |
hanging test |
| 46031279889 attempt 1 |
main@f477991 |
FAIL |
TestSecretSetAndUnsetOverTheSocket (30m timeout panic) |
| 46031279889 attempt 2 (rerun) |
main@f477991 |
SUCCESS (whole run green, completed 20:12Z) |
— |
| 46042252772 |
main@50cd581 |
FAIL |
TestAddingAServerIsLiveWithoutARestart (30m timeout panic) |
| 46036407320 (branch ci/45974574594-darwin-ps) |
branch |
SUCCESS |
— |
Different-test-each-run + green rerun = timing-sensitive flake, not a deterministic breakage. Both hanging tests exercise a daemon config-reload path (secret set/unset; servers add).
Where it actually blocks (job 140652903296 log, run 46042252772)
The test binary is NOT stuck in pool drain. The hanging goroutine is the test itself waiting on its CLI child:
github.com/developing-today/code/pkgs/mcpx/internal/e2e_test.binaryRunner.run(...)
pkgs/mcpx/internal/e2e/runner_test.go:70 # CombinedOutput
os/exec.(*Cmd).Wait / .Run / .CombinedOutput
github.com/.../e2e_test.(*env).run(...)
pkgs/mcpx/internal/e2e/e2e_test.go:233
github.com/.../e2e_test.TestAddingAServerIsLiveWithoutARestart(...)
pkgs/mcpx/internal/e2e/settings_test.go:113 # e.run("servers", "add", "second", ...)
So: servers add CLI never exits because the daemon never answers on the reload path. The daemon-side stacks are NOT in this log (daemon is the child process) — root-causing the daemon hang needs a repro with daemon stacks or added diagnostics around the add/reload path.
Suggested next (per #1973 flake policy)
Repro pointers
gh run view 46042252772 --repo dezren39/darwin-nix, failed job id 140652903296; panic dump at 30m mark shows only TestAddingAServerIsLiveWithoutARestart in flight.
- Local:
go test ./internal/e2e -run 'TestAddingAServerIsLiveWithoutARestart|TestSecretSetAndUnsetOverTheSocket' -count=1 -v from pkgs/mcpx (may need load/stress to trigger; mac runner load seems to be the trigger).
{
"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-27T20:46:34Z",
"session_id": "ses_e5de1b1490dffeR19zq4nP52Xo",
"lane": null,
"host": "amd",
"worktree": "/home/user/git/code",
"model": null,
"lane_start_issues": [],
"workspace_ref": {
"kind": "worktree",
"id": "/home/user/git/code",
"repo": "developing-today/code",
"branch": "main",
"sha": "6fd30c93b62a4b6fba19e6444c7d69f343fb93a1"
},
"auth_subject": "oc-code-04",
"stamped_by": "fleet 0.1.0 (native)"
}
}
Acceptance criteria
Activityadded kind/bugSomething isn't working (prefixed form of the classic bug label) app/mcpxPackage/app: mcpx (pkgs/ or apps/ in this repo) meta/enrichedIntake review done: acceptance criteria, links, and normalized labels added effort/mMedium: expected under 1 day of work on Nov 27, 2026developing-today-fleet commented on Nov 27, 2026 ContributorAuthor More actions Intake review
- Liveness (verified this pass): still live — the body documents two consecutive darwin-nix main runs failing on different hanging tests with a green rerun between them (classic timing flake), and main-broken: dezren39/darwin-nix flake checks build @ca11035 — nix build (aarch64-darwin) mcpx-agent-restart dezren39/darwin-nix#2234 remains open on this signature. No merged PR resolves it.
- Related: main-broken: dezren39/darwin-nix flake checks build @ca11035 — nix build (aarch64-darwin) mcpx-agent-restart dezren39/darwin-nix#2234 (downstream tracker); main CI failure: mcpx test (run 46066625369) #16321 (mcpx test main-CI tracker — the e2e legs there may share this hang, but its build legs are separate); flake policy mcpx testing: flake policy -- race, shuffle, repeat runs, quarantine with expiry, a second OS #1973.
- Notes: the panic dump localizes the wait to the test harness waiting on the
servers add CLI child while the daemon never answers on the reload path; daemon-side stacks are absent from CI logs, so root-causing needs a repro with daemon diagnostics, exactly as the body says.
- Risks: 30-minute timeouts burn CI and keep darwin-nix main red; an unexpiring quarantine would hide a real daemon reload race.
- Suggested approach: add daemon-side diagnostics around the add/reload path first (or quarantine both named tests with an expiry), reproduce under load on aarch64-darwin, then fix with a failing-first test and
-race -shuffle=on -count=5 evidence.
- Acceptance criteria appended to the body; labels normalized (priority/high, effort/m, status/needs-triage, source/agent, meta/enriched added; kind/bug, app/mcpx already present).
🤖 Agent note · state: filed
developing-today-fleet commented on Nov 27, 2026 ContributorAuthor More actions 🤖 Agent note · state: claimed
- Agent: muse-archer, lane 1552-E (bravo SUSTAIN author lane, 2026-11-27 15:52 CST)
- Task: premise + ownership check done (issue + sole comment read firsthand; no live claim, no held/user labels). Taking the acceptance-named quarantine slice: quarantine
TestSecretSetAndUnsetOverTheSocket and TestAddingAServerIsLiveWithoutARestart via testsupport.Quarantine with a link to this issue and an expiry, per mcpx testing: flake policy -- race, shuffle, repeat runs, quarantine with expiry, a second OS #1973 flake policy. Root-cause of the daemon reload-path hang remains open on this issue after the quarantine lands.
- Route: Git-API contents route only, verified in repo CI on the pushed branch, merged under standing merge authority when verified.
developing-today-fleet commented on Nov 27, 2026 ContributorAuthor More actions 🤖 Agent note · state: quarantine slice landed
- Agent: muse-archer, lane 1552-E (bravo SUSTAIN author lane)
- Landed: PR test(mcpx): quarantine reload-path e2e hangs on aarch64-darwin (#16312) #16340 MERGED (merge commit 3dad478) —
TestSecretSetAndUnsetOverTheSocket and TestAddingAServerIsLiveWithoutARestart are quarantined via testsupport.Quarantine with a link to this issue and expiry 2026-12-31, per the mcpx testing: flake policy -- race, shuffle, repeat runs, quarantine with expiry, a second OS #1973 flake policy and this issue's acceptance criteria.
- Verification: mcpx workflow run 46074149290 on the PR head — lint success, Darwin compile gate success, and the job log records both tests as
quarantined until 2026-12-31 skips. The same run's basic: test red is the pre-existing main breakage tracked at main CI failure: mcpx test (run 46066625369) #16321 (identical cluster incl. TestPluginOpsAreGenerated on main, no involvement of the two touched files).
- Remains open on this issue: the daemon reload-path root-cause (daemon-side stacks/diagnostics), and darwin-nix#2234 closes only when main runs stay green on this signature. The quarantine fails the suite after 2026-12-31, so it cannot silently persist.
developing-today-fleet commented on Nov 28, 2026 ContributorAuthor More actions 🤖 Agent note · state: diagnostics slice open
- Agent: lane oc-code-04 (scheduled Fleet lane, 2026-11-28T00:30Z)
- Slice: measurement harness for the reload-path hang — PR mcpx: emit reload timing diagnostics for #16312 reload-path hang #16374 adds start/finish timing diagnostics plus per-orphan drain progress to
Registry.Reload via the registry log function, with failing-first test TestReloadEmitsStartFinishAndDrainDiagnostics (-race -shuffle=on -count=5 green on laptop; existing TestReload* green).
- Acceptance state: criterion 1 quarantine half already checked (test(mcpx): quarantine reload-path e2e hangs on aarch64-darwin (#16312) #16340 merged, in origin/main). Root-cause still open; the next hang on this signature should now leave greppable daemon-side lines (
reload start: with no reload done:, or an orphaned pool that never reports drained).
- Next slice: reproduce under load on aarch64-darwin with the new diagnostics, then fix with a failing-first regression test and
-race -shuffle=on -count=5 evidence.
developing-today-fleet commented on Nov 28, 2026 ContributorAuthor More actions 🤖 Agent note · shortlist re-verify — lane oc-code-04, 2026-11-28 ~03:20Z (no slice taken, no PR).
Fresh verification, not trusted from prior notes:
Per feature-slice: no unowned, verifiable code slice exists this pass (quarantine + diagnostics both landed by other/earlier work; remainder is observe-and-root-cause). Standing down without a PR. Re-pick on a fresh hang signature or when darwin-nix#2234 shows recurrence.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|