Description
Summary
pnpm check:local-ci --current-node-only can make the Doctor socket fixtures exceed Linux's AF_UNIX sun_path cap even though scripts/local-ci.mjs deliberately places each leg under the system temp root.
On current origin/main (fb25f47aa), the current-node leg temp root is:
/tmp/abci-63e6dc7a-verify-current-v22.23.2
Rstest then appends agent-bundle-rstest-w1, and temporaryDoctor() appends its fixture/endpoints path. The observed live socket pathname was 118 bytes:
/tmp/abci-63e6dc7a-verify-current-v22.23.2/agent-bundle-rstest-w1/agent-bundle-doctor-dgjJqa/endpoints/event-live.sock
Including the terminating NUL, that requires 119 bytes, exceeding Linux's 108-byte sockaddr_un.sun_path capacity. The identity endpoint pathname is 122 bytes before the NUL.
Reproduction
mkdir /tmp/abci-63e6dc7a-verify-current-v22.23.2
TMPDIR=/tmp/abci-63e6dc7a-verify-current-v22.23.2 \
pnpm exec rstest --config rstest.unit.config.ts \
packages/agent-bundle/tests/doctor.test.tsResult: 32/36 passed; 4 failed. The failures are the socket-bearing cases:
reports old live runtime sockets as unsupported without warningsreports runtime identity from a live status endpointbounds a silent runtime status probereports stale sockets and stale locks as warnings
The live socket entries disappear from Doctor's findings while their .lock files remain observable.
Likely cause
The local-CI short-root calculation accounts for its own leg directory, but not Rstest's per-worker TMPDIR nesting (rstest.worker-isolation.ts) plus Doctor's fixture and endpoint names. The verify-current-<full-version> leg name pushes the resulting socket address over the kernel cap.
Found while verifying #333; this is distinct from the examples-contract and hooks regressions fixed by #328.
Activity
fix(test): hash Rstest worker temp roots (#335)
ScriptedAlchemy commentedon Sep 3, 2026
Fixed by #341 and merged as
5d3d264d5595b8d0d5fc4bdbab198d05730ea0e7.Evidence on the rebased head:
rstest.worker-isolation.ts; POSIX worker roots now hash the host temp root, worker ID, and invocation identity into/tmp/ab-rstest-<hash16>sun_path's 108-byte cap)