Repository navigation
test(cli): keep Unix socket fixtures within path limits - #139565
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed September 5, 2026, 8:43 PM ET / September 6, 2026, 00:43 UTC. ClawSweeper reviewWhat this changesThe PR places the connect CLI’s Unix socket test fixture under /tmp so long runner temporary paths do not prevent the test from reaching its assertions. Merge readiness✅ Ready for maintainer review The fixture repair remains useful: fetched main and the latest release retain the problematic temporary-directory selection. No actionable defect was found, and the maintainer-sponsored test-audit campaign supports retaining this PR. Priority: P3 Review scores
Verification
How this fits togetherThe connect CLI reads setup targets before connecting a machine to a Gateway. This test checks that a socket supplied as a target file is rejected and preserved. flowchart LR
A[Test runner] --> B[Tracked directory under /tmp]
B --> C[Real Unix socket]
C --> D[Connect target-file reader]
D --> E[Reject non-regular file]
E --> F[Assert socket preserved]
F --> G[Close server and clean directory]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +1. Total +1 across 1 file. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Use the existing tracked short-root fixture while preserving the real socket refusal and cleanup checks. Do we have a high-confidence way to reproduce the issue? Yes: current source lets a long temporary root flow directly into the Unix socket pathname, and the PR reports a concrete 249-byte failing case. This review did not execute that case. Is this the best way to solve the issue? Yes: the existing helper already supports a short root, so the patch fixes fixture construction without weakening the behavior being tested. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against e284dad94f9c. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
* origin/main: (302 commits) test(gateway): preserve held-work close failures (#139593) refactor(exec): share package argument scanning (#139560) fix(audit): preserve sequence range validation before numeric decoding (#139587) fix(transcripts): retain capture ownership through failed cleanup (#139572) refactor(models): share selector reference traversal (#139571) perf(agents): classify allowlists without intermediate sets (#138392) chore(release): update appcast for 2026.9.2 (#139575) fix(ci): synchronize cloud retries and board widget input (#139506) fix(plugins): explain SDK incompatibilities after core updates (#139458) fix(voice-call): retain installed WebSocket behavior under Bun (#139567) test(text): consolidate literal sanitizer cases (#139579) test(gateway): observe native drain without a lint exception (#139576) test(memory): consolidate visibility fixtures without policy defaults (#139569) fix(ui): show shimmer skeletons while loading Control UI (#139525) test(qa): make cleanup child logging deterministic (#139566) test(cli): keep Unix socket fixtures within path limits (#139565) fix: avoid slow incognito key checks in large session stores (#139528) feat(macos): open Gateway windows from the Gateways menu (#139522) test(workshop): isolate marker casing fixture identities (#139554) fix(process): require cleanup evidence before releasing owned work (#139517) ... # Conflicts: # scripts/release-check.ts
Related: #139428
What Problem This Solves
The connect CLI socket-refusal test fails during socket creation under a long temporary directory, before exercising the CLI's refusal behavior. The Unix socket pathname exceeds the platform limit.
Why This Change Was Made
Use the existing tracked private temp-directory helper with the short /tmp root for this socket fixture. Retain the real server, CLI call, socket-preservation assertion, close-in-finally and directory cleanup.
User Impact
No production behavior changes. The test now reaches its intended assertions even under nested runner temp paths. Net one added test line.
Evidence
The original case reproduced EINVAL while binding a 249-byte pathname under a deterministic long TMPDIR. All 20 connect CLI cases pass after the repair under that same long parent. Full changed gate, formatting/diff check, deslop and independent P2 review pass. No runtime speedup claimed.