Repository navigation
test(e2e): wait for the warm client in the tool-parity control (#13481) - #16699
Merged
Merged
Conversation
…enario (#13481 diagnostic)
… before dumping the client
TestEveryToolInToolsListIsReachableFromAScript failed deterministically at its control: the generated client fetched immediately after daemon start spells demo as a lazy proxy naming no tools, because since #1868 the daemon reads server schemas in the background. The parity claim is about the generated client with the schemas in, so poll the client until the control tool demo.echo is named (60s deadline) before comparing adapter reachability. Diagnosis and poll evidence are on #13481 (fleet-command runs 46245304201, 46247077499, 46247659380, 46248331309).
|
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. |
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.
Refs #13481 (one slice of the full-suite acceptance; does not close it).
The failure
TestEveryToolInToolsListIsReachableFromAScriptfailed deterministically at its control check (toolparity_test.go): "the reachability check cannot find demo.echo, which is in the generated client; the check is wrong and this test proves nothing". Reproduced solo before the fix: fleet-command run 46244446907, FAILURE at the control.Diagnosis (probe runs on this branch, probes since removed)
__call("demo", "echo", args)) — run 46245304201.__lazyNamespace({}, "demo", null), naming no tools — run 46247077499.mcpx servetools/list never lists demo_echo in this scenario (meta-tools + adapter tools only, by design); the test only ever used that list for the adapter names, so no change was needed there.The fix
The test now polls the generated client until the control tool
demo.echois named (60s deadline) before comparing adapter reachability, with a comment explaining the cold-client behaviour. No product code changes; the parity assertions themselves are unchanged.Verification (remote dispatch, exact head d8f6485)
go test ./internal/e2e -run TestEveryToolInToolsListIsReachableFromAScript -count=1 -v— run 46248980602, PASS (64.96s).-race -shuffle=on -count=5— run 46249323375, SUCCESS.Not in this PR
#13481's acceptance (full
go test ./...green) still has four failing tests, measured at main 4a8555a in run 46242522537: execsvc TestFailureKindPreflightTimeout (verification image has no Node), e2e TestEnvCleanupStopsTheDaemonItStarted, e2e TestDaemonWarmReadsTheServersAtStartupFromTheEnvironment, e2e TestRestartReportsAServerThatDoesNotComeBack (supervisor-socket family). They are recorded on #13481 for follow-on slices.{ "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-29T09:56:03Z", "session_id": null, "lane": null, "host": "htch-runtime", "worktree": "/home/hatch", "model": null, "lane_start_issues": [], "workspace_ref": { "kind": "worktree", "id": "/home/hatch", "repo": "developing-today/code", "branch": "main", "sha": "aa5a503c40005914ca3676c21a1da732e7aeb3d7" }, "auth_subject": "xaltha", "stamped_by": "fleet 0.1.0 (native)" } }Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.