Repository navigation
test(mcpx): load-tolerant socket wait in the supervisor grace test (#3016) - #17129
Merged
Merged
Conversation
…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.
|
Important Review skippedBot user detected. To trigger a single review, invoke the
|
Contributor
Author
|
Gate (Felix lane 0640-MQ): fleet-command run 46379414636, macOS, this branch's head — |
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.
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 earlyRunSupervisorreturn 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:
-race -count=3: PASS 3/3 (run 46377170459)-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-botwith what you need.