This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

test(spawn-bundle-fallback): shorter session names to stay under socket path limit

The PR's new tests generated session names like `bundle-fb1-ov5o` (15 chars).
Combined with macOS's tempdir under /var/folders/.../T/ (~52 chars) plus the
test root prefix and per-test "d-XXXXXX/", the resulting socket path tipped
over the 104-byte Unix-socket kernel limit by 1 byte.

Shorten the name format to ~6 chars (b<counter><rand3>); leaves enough margin
on /var/folders/... tempdirs.

Nathan Herald (May 7, 2026, 11:02 AM +0200) adcec22a cebe2d14

+5 -1
+5 -1
tests/spawn-bundle-fallback.test.ts
··· 29 29 30 30 let nameCounter = 0; 31 31 function uniqueName(): string { 32 - return `bundle-fb${++nameCounter}-${Math.random().toString(36).slice(2, 6)}`; 32 + // Short to fit in the 104-byte Unix-socket path limit on macOS, 33 + // where os.tmpdir() lives under /var/folders/.../T/ (~52 chars) plus 34 + // the test root prefix (~29) plus a per-test "d-XXXXXX/" (~10) burns 35 + // the budget fast. Keep this under ~7 chars. 36 + return `b${++nameCounter}${Math.random().toString(36).slice(2, 5)}`; 33 37 } 34 38 35 39 function makeSessionDir(): string {