ReviewOS

home-lang/home

Bun parity: port Unix-socket fetch matrix

#371
Closed chris opened this 10 days ago ·
10 days ago

Tracks copied Bun corpus position 4153 (js/web/fetch/fetch.unix.test.ts).

Scope:

  • run the complete unchanged upstream Unix-socket fetch matrix
  • validate platform-specific socket filename limits and missing-parent errors synchronously with Bun-compatible codes/messages
  • support Linux abstract-namespace sockets and long-directory /proc/self/fd workaround semantics
  • route fetch request bodies over Unix listeners and preserve redirects from Unix to TCP origins
  • preserve Node http.request({ socketPath }) interoperability
  • attach structured operation, phase, path, limit, cause, and composed stack context to Unix socket failures
  • add a permanent focused regression and keep the ordered corpus frontier at zero failures/unsupported cases

Parent tracker: #66 Predecessor: #370

10 days ago

Completed in 77d6424 and pushed to main.\n\n- Kept js/web/fetch/fetch.unix.test.ts byte-for-byte identical to Bun upstream.\n- Added platform-specific Unix socket byte limits, missing-parent validation, Linux/macOS long-directory handling, and Linux abstract-namespace URL semantics.\n- Added structured UnixSocketError failures with code, errno, syscall, path, operation, phase, byte length, platform limit, cause, and a composed cause-aware stack.\n- Isolated fetch unix routing from proxy, TCP, TLS, frontend, and agent origin dispatch; cross-origin redirects correctly leave the Unix transport and continue over TCP.\n- Added node:http socketPath interoperability and structured missing-socket failures.\n- Made simulated socket nodes virtual-only and symmetric on stop, preventing test runs from leaving socket placeholders in the checkout.\n- Added permanent harness contract coverage.\n\nValidation:\n- exact upstream file: 6 passed / 0 failed / 0 todo / 0 unsupported on macOS\n- exact file repeated twice with zero socket artifacts left behind\n- 50-file fetch tail: 1,393 passed / 20 todo / 0 failed / 0 unsupported\n- full zig build passed\n- upstream mirror diff is clean\n\nParent: #66\nPredecessor: #370

Sign in to comment on this issue.