Repository navigation
test(mcpx): probe daemon.inlineStartTimeout and daemon.probeTimeout (#8473 chain 41) - #11879
Conversation
…8473 chain 41) daemon.inlineStartTimeout: with daemon.inline=always and a 1ns bound the inline rung fails with "the in-process daemon did not answer"; the default bound lists demo. daemon.probeTimeout: a second configuration with autostart off fails with the connection ladder. By default its sibling rung reports the first configuration's live daemon; with a 1ns bound no dial finishes and no sibling is reported. Drops two exemptions; the pin goes from 99 to 97. Refs #8473 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Caution Review failedThe pull request is closed.
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. |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 3704781586
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| if out := ladder(); !strings.Contains(out, "1 other daemon(s) here") { | ||
| t.Fatalf("oracle: with the default probe bound the live sibling should be reported, got:\n%s", out) |
There was a problem hiding this comment.
Keep the sibling probe's sockets in a short, isolated directory
With ordinary TMPDIR=/tmp, this test's long name makes both the state socket path and the private runtime fallback exceed the 100-byte limit in daemon/paths.go, so socketPath places the socket directly in /tmp. siblingSockets in cli/connect.go then counts every listening *.sock in that directory, without filtering by state directory. An unrelated socket or another concurrently running suite therefore makes this exact-one assertion fail despite correct timeout behavior. Set a short, isolated state directory, such as one created by testsupport.SocketDir(t), before starting the daemon.
Useful? React with 👍 / 👎.
Before: daemon.inlineStartTimeout and daemon.probeTimeout were exempt from the settings effect guard, with nothing checking that either changes behavior.
After: each has an e2e probe. A 1ns inline start bound makes an inline
lsfail with "the in-process daemon did not answer", and a 1ns probe bound hides a live sibling daemon from the connection ladder that a second configuration reports. The exemption pin goes from 99 to 97.How: two probes in effect_test.go, registered in EffectProbes on both sides, with their exemption lines removed.
Refs #8473
Generated by Claude Code
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.