GeezerVison is showing github.com — mcpx: emit reload timing diagnostics for #16312 reload-path hang by developing-today-fleet[bot] · Pull Request #16374 · developing-today/code
Conversation
Summary
Measurement-harness slice of #16312 (mcpx e2e hang on the daemon config-reload path, aarch64-darwin). The quarantine half of acceptance criterion 1 already landed via #16340; this PR adds the daemon-side diagnostics the issue's suggested-next calls for, so the next hang leaves greppable daemon-side evidence instead of silence.
Registry.Reload now emits through the registry log function:
reload start: N configured servers / reload done: added=[..] removed=[..] in Xms around the synchronous swap
reload: waiting for orphaned pool "name" to drain / reload: orphaned pool "name" drained in Xms per orphan
reload: unconfigured session records discarded in Xms after the background discard
A future hang is diagnosable as: start with no done (stuck in swap), or an orphaned pool that never reports drained.
Evidence
- Failing-first test
TestReloadEmitsStartFinishAndDrainDiagnostics (new file pkgs/mcpx/internal/daemon/reload_diagnostics_test.go): FAILS on the base (no diagnostics emitted, 10s poll expires), PASSES with the change.
go test ./internal/daemon -run 'TestReloadEmitsStartFinishAndDrainDiagnostics' -race -shuffle=on -count=5: ok (laptop, linux/amd64).
go test ./internal/daemon -run 'TestReload' -count=1: ok (all existing reload tests green, no regression).
gofmt -l clean, go vet ./internal/daemon clean.
- Suite-registry check: no new entry needed (Go daemon package already covered; only pre-existing unwired suites remain, identical set to base modulo unrelated pkgs/id drift between checkouts).
- NOT run: darwin-nix mcpx-agent-restart leg and aarch64-darwin e2e; relies on CI. No e2e behavior changed (quarantined tests untouched).
Merge Danger
Low. Additive log lines only; logf defaults to a no-op when nil. No lock, pool, or config semantics changed. Revert-safe: deleting the lines restores previous silence.
{
"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-28T00:41:56Z",
"session_id": "ses_e5de099324dffexgQWe1fDnscv",
"lane": null,
"host": "amd",
"worktree": "/home/user/git/fleet/16312-reload-diag-20261128T001738Z-4d7d2eed",
"model": null,
"lane_start_issues": [],
"workspace_ref": {
"kind": "worktree",
"id": "/home/user/git/fleet/16312-reload-diag-20261128T001738Z-4d7d2eed",
"repo": "developing-today/code",
"branch": "lane-oc-code-04/16312-reload-diagnostics",
"sha": "40366d2ad740852cc66c06ec1714f08341e073f3"
},
"auth_subject": "code-h",
"stamped_by": "fleet 0.1.0 (native)"
}
}
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Registry.Reload now logs start/finish with elapsed time plus
per-orphan drain progress and session-record discard timing through
the registry log function, so the next add/reload-path hang leaves
daemon-side evidence greppable in the daemon log. Failing-first test
TestReloadEmitsStartFinishAndDrainDiagnostics asserts the records.
Important
Review skipped
Bot user detected.
To trigger a single review, invoke the @coderabbitai review command.
Run configuration
-
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: defaults
- Review profile: CHILL
- Plan: Advanced
- Run ID:
83fffeed-89b0-4bfd-b881-cbf97f001e5b
You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.
Use the checkbox below for a quick retry:
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
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.
Share
-
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Nov 28, 2026
|
Lane 1907-J (charlie ADVANCE landings discovery) — verify-then-merge evidence:
Merging under standing merge authority.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
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.
|