Skip to content

test(docker): shorten Unix socket fixture paths - #119952

Merged
steipete merged 1 commit into
mainfrom
codex/autoqa-docker-socket-path-20260806
Aug 6, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/autoqa-docker-socket-path-20260806

Conversation

@steipete

@steipete steipete commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Closes #119944

AI-assisted: yes

What Problem This Solves

Fixes three deterministic macOS failures in the Docker setup E2E suite. The fixture created Unix-domain sockets below a suite root under os.tmpdir(); macOS canonicalized that root through /private/var/folders/..., producing a 107-character socket path that cannot fit Darwin's sockaddr_un.sun_path[104] field.

The failures occurred before Docker setup assertions ran, so normal macOS validation reported 38/41 even though the setup behavior itself was correct.

Why This Change Was Made

The Docker setup test support now uses the suite tracker's existing parentDir seam with resolvePreferredOpenClawTmpDir(). That shared owner provides a short, secure OpenClaw temp root on POSIX and the normal scoped fallback on other platforms.

The test still owns one stable suite root and isolated child directory; only the parent location changes. Production Docker setup, config, socket handling, and runtime temp policy are unchanged.

Production LOC: +0/-0. Test support: +5/-1.

Evidence

Before on macOS current main b0c368ae34d845ab2ef6a6c6adf160e1edf49442:

  • Default environment: 38/41; three socket-backed cases failed with listen EINVAL.
  • Example socket address length: 107 characters.
  • Installed macOS SDK usr/include/sys/un.h: sun_path[104].
  • Diagnostic control with TMPDIR=/tmp: 41/41.

After:

  • Default macOS environment: 41/41; no TMPDIR override.
  • macOS stress: 20/20 fresh processes passed, totaling 820 assertions.
  • Exact rebased head f63a584124cc8f on Linux Testbox tbx_01kzbjfj1ayecar3xq2wh07d40, run 31103789509: 41/41 plus complete pnpm check:changed, 0 warnings/errors.
  • AutoReview on exact rebased head: clean, no accepted/actionable findings, correctness 0.99.
  • Public model identifier gate: PASS; the exact diff contains no model identifiers.

User Impact

Maintainers can run the Docker setup E2E suite on macOS without a global TMPDIR workaround or false socket failures. No production behavior changes.

Docs and Changelog

Not applicable; this is test-support isolation only.

@openclaw-barnacle openclaw-barnacle Bot added size: XS maintainer Maintainer-authored PR labels Aug 6, 2026
@steipete

steipete commented Aug 6, 2026

Copy link
Copy Markdown
Contributor Author

Land-ready proof for exact head f63a584124cc8f2aab69528c897a063ff364eeee:

  • Root cause: the macOS fixture root canonicalized through /private/var/folders/..., producing a 107-character Unix-socket address; the installed Darwin SDK declares sockaddr_un.sun_path[104].
  • Owner-boundary fix: the Docker setup test-support owner now passes the shared secure short temp root through createSuiteTempRootTracker's existing parentDir seam. Production behavior is unchanged. Production LOC: +0/-0; test support: +5/-1.
  • macOS before/control/after: current main failed 3 socket-backed cases (38/41); TMPDIR=/tmp passed 41/41; the candidate passed 41/41 in the default environment.
  • macOS stress: 20/20 fresh processes passed, totaling 820 assertions.
  • Linux exact-head proof: Blacksmith Testbox tbx_01kzbjfj1ayecar3xq2wh07d40, run https://github.com/openclaw/openclaw/actions/runs/31103789509 — 41/41 plus complete pnpm check:changed, 0 warnings/errors.
  • Exact-head hosted CI: https://github.com/openclaw/openclaw/actions/runs/31104704823 completed successfully, including openclaw/ci-gate.
  • AutoReview: exact-head clean, no accepted/actionable findings, correctness 0.99.
  • Repo-native review artifacts: validated READY FOR /prepare-pr with zero findings.

Remaining gate: ClawSweeper is still a non-terminal placeholder with lease expiry 2026-08-06T13:43:12Z. This comment does not claim ClawSweeper approval; merge will wait through terminal review/lease expiry and apply any final Rank-up moves: before merge-run.

@steipete

steipete commented Aug 6, 2026

Copy link
Copy Markdown
Contributor Author

ClawSweeper publication gate after the exact-head lease expired:

There are therefore no ClawSweeper moves to apply or skip; the only gap is the stale public placeholder, recorded here explicitly before repo-native merge.

@steipete
steipete merged commit 08a3f5f into main Aug 6, 2026
120 checks passed
@steipete
steipete deleted the codex/autoqa-docker-socket-path-20260806 branch August 6, 2026 13:44
@steipete

steipete commented Aug 6, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Docker setup E2E Unix socket paths overflow on macOS

1 participant