You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
test(mcpx): bind the unix transport test socket in a short dir (#16639 part 2) - #16641
Refs #16639 — part 2 only (the internal/mcpclient socket-path failure). Part 1 (the e2e supervisor terminate EOF cluster) is a separate slice and is not touched here.
What
TestUnixHTTPTransportInitializeListAndCall bound its unix socket under t.TempDir(). In the darwin nix build, TMPDIR is the deeply nested build dir, so the socket path (…/TestUnixHTTPTransportInitializeListAndCall384081725/001/mcp.sock) exceeds Darwin's 104-byte sockaddr_un limit and bind fails with invalid argument — the exact failure lane 2222-J's fleet-command macOS run 46226123783 recorded for #16639.
The test now creates its socket directory directly under /tmp (mirroring testsupport.SocketDir, which this internal test package cannot import — testsupport imports mcpclient, so the import would cycle) and fails fast if the resulting mcp.sock path would exceed the 100-byte usable ceiling. Oracle: the socket path length itself, named in the test.
No product code changes; no skip added. The test still binds, serves, initializes, lists, and calls over the real unix transport on every platform.
Verification
Pending at open: fleet-command macOS run on this branch's exact head with a deliberately deep TMPDIR (the pre-fix trigger) running the single test, plus the full internal/mcpclient package on Linux. Results will be recorded here and on #16639 before merge.
— Lane 2322-F (delta PRESS, 2026-11-28 23:22 CST run), authored via the Git-API contents route (no clone).
PR #16641#16641 — part 2 of this issue only (internal/mcpclient socket path). Part 1 (e2e supervisor terminate EOF cluster) remains open and unclaimed by this lane.
Fix:TestUnixHTTPTransportInitializeListAndCall bound its socket under t.TempDir(); in the darwin nix build that path is …/TestUnixHTTPTransportInitializeListAndCall<random>/001/mcp.sock under the nested build TMPDIR — over Darwin's 104-byte limit, bind: invalid argument (run 46226123783). The test now creates its socket dir directly under /tmp and fails fast if mcp.sock would exceed the 100-byte usable ceiling. This mirrors testsupport.SocketDir, which the internal test package cannot import (testsupport imports mcpclient — the import would cycle). Diff: one file, +18/−1, no product code, no skip added.
Verification — fleet-command run 46229848674 (dezren39/fleet, Linux, exact PR head 80384b88066c092293736779ddb621c416d8ffff): completed / success.
With a deliberately deep TMPDIR (89-char prefix — the pre-fix trigger: the old path computes to >150 bytes, over even Linux's 108-byte limit), the single test passes; pre-fix it dies at net.Listen with EINVAL.
Full internal/mcpclient package (go test -count=1) passes in the same run.
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
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 #16639 — part 2 only (the
internal/mcpclientsocket-path failure). Part 1 (the e2e supervisor terminate EOF cluster) is a separate slice and is not touched here.What
TestUnixHTTPTransportInitializeListAndCallbound its unix socket undert.TempDir(). In the darwin nix build, TMPDIR is the deeply nested build dir, so the socket path (…/TestUnixHTTPTransportInitializeListAndCall384081725/001/mcp.sock) exceeds Darwin's 104-bytesockaddr_unlimit andbindfails withinvalid argument— the exact failure lane 2222-J's fleet-command macOS run 46226123783 recorded for #16639.The test now creates its socket directory directly under
/tmp(mirroringtestsupport.SocketDir, which this internal test package cannot import — testsupport imports mcpclient, so the import would cycle) and fails fast if the resultingmcp.sockpath would exceed the 100-byte usable ceiling. Oracle: the socket path length itself, named in the test.No product code changes; no skip added. The test still binds, serves, initializes, lists, and calls over the real unix transport on every platform.
Verification
Pending at open: fleet-command macOS run on this branch's exact head with a deliberately deep TMPDIR (the pre-fix trigger) running the single test, plus the full
internal/mcpclientpackage on Linux. Results will be recorded here and on #16639 before merge.— Lane 2322-F (delta PRESS, 2026-11-28 23:22 CST run), authored via the Git-API contents route (no clone).
{ "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-29T05:35:23Z", "session_id": null, "lane": null, "host": "htch-runtime", "worktree": null, "model": null, "lane_start_issues": [], "workspace_ref": null, "auth_subject": "archer", "stamped_by": "fleet 0.1.0 (native)" } }Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.