Skip to content

test(mcpx): load-tolerant socket wait in the supervisor grace test (#3016) - #17129

Merged
dezren39 merged 1 commit into
mainfrom
felix/3016-grace-test-robustness
Nov 30, 2026
Merged

dezren39 merged 1 commit into
mainfrom
felix/3016-grace-test-robustness

Conversation

@developing-today-fleet

@developing-today-fleet developing-today-fleet Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

What

Test-only change to TestSupervisorServesExitedReportForTheWholeGrace (pkgs/mcpx/internal/mcpclient): the socket-appearance wait goes from a 5s wall-clock deadline to 30s, and an early RunSupervisor return now fails the test immediately with the supervisor's own error instead of timing out behind "supervisor socket never appeared".

Why (#3016 blocker (c) adjudication, Felix lane 0640-MQ)

The wake run 46347206165's macOS stress leg failed this test 3/3 at ~5.0s (KO 7268851122). Reproductions at current main (fab7a96), all fleet-command macOS, logs read firsthand:

  • isolated, -race -count=3: PASS 3/3 (run 46377170459)
  • full package, -race -shuffle=on -count=3: PASS, 116.764s (run 46378297288)

So the failure needs the full multi-package stress leg's machine load: the supervisor goroutine's startup starves past the 5s deadline. The old loop also left RunSupervisor's return unread in the done channel until the end of the test, so a genuine listen/spawn error would surface as the same opaque message — the diagnosis cost of this blocker came from that design. This mirrors blocker (b)'s adjudication (ML 7272164058: load-sensitive test bound, not a product defect). The scout's real-regression classification (7268738525) is not sustained by the reproductions: no product code is implicated, and the grace oracle itself (report served for the whole first-attach grace; supervisor exits after it) is unchanged.

Gate on this branch follows in a comment (macOS single-test -race -count=3 + package compile). Part of #3016 — criterion 3 still needs its fully green follow-up run; this PR does not close the issue.


Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

…t and surface supervisor errors (#3016)

The #3016 blocker (c) failure — TestSupervisorServesExitedReportForTheWholeGrace failing 3/3 at ~5s with 'supervisor socket never appeared' in the macOS full-suite stress leg — does not reproduce in isolation or full-package on macOS (lane 0640-MQ fleet-command runs 46377170459: 3/3 pass -race -count=3; 46378297288: full package ok, 116.764s, -race -shuffle=on -count=3). The fragile part is the appearance wait itself: a 5s wall-clock deadline on a loaded runner, with RunSupervisor's return value left unread until the end of the test, so a startup delay — or a real listen/spawn error — surfaces as the same opaque timeout.

The wait now allows 30s (it guards supervisor startup, not the report grace that is the test's subject) and fails immediately with the supervisor's own error if it returns early. No product code changes; the grace oracle is unchanged.
@coderabbitai

coderabbitai Bot commented Nov 30, 2026

Copy link
Copy Markdown

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: 5336d6d1-5ddf-42f5-b0b9-81ab7b38c762

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:

  • Trigger review
  • 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

@developing-today-fleet

Copy link
Copy Markdown
Contributor Author

Gate (Felix lane 0640-MQ): fleet-command run 46379414636, macOS, this branch's head — go vet ./internal/mcpclient clean; go test -run TestSupervisorServesExitedReportForTheWholeGrace -race -count=3 -v PASS (10.06s per run). Adjudication evidence and reasoning are on #3016 (verdict 7272667610). Merge-ready for Felix.

@dezren39
dezren39 merged commit 193cf02 into main Nov 30, 2026
2 checks passed
@dezren39
dezren39 deleted the felix/3016-grace-test-robustness branch November 30, 2026 08:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant