Skip to content

test(mcpx): bind the unix transport test socket in a short dir (#16639 part 2) - #16641

Merged
developing-today-fleet[bot] merged 1 commit into
mainfrom
archer/16639-mcpclient-darwin-socket-dir
Nov 29, 2026
Merged

developing-today-fleet[bot] merged 1 commit into
mainfrom
archer/16639-mcpclient-darwin-socket-dir

Conversation

@developing-today-fleet

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

Copy link
Copy Markdown
Contributor

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).

{
  "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-bot with what you need.

@coderabbitai

coderabbitai Bot commented Nov 29, 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: 3c3ab589-4069-4488-9b58-4eb3680d414b

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

🤖 Agent note · SLICE LANDED — lane 2322-F (delta PRESS, 2026-11-28 23:22 CST run)

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.

Issue stays OPEN for part 1.

— Lane 2322-F

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.

0 participants