ReviewOS

home-lang/home

Port Bun h1spec raw HTTP compliance matrix

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

Track the exact upstream test/js/bun/http/hspec.test.ts corpus and its byte-identical http-spec.ts helper in Home.

Scope:

  • activate the exact upstream test instead of a whole-file TODO
  • exercise all 41 raw HTTP request cases over the virtual node:net / Bun.serve boundary
  • model incomplete-request timeout behavior and valid/invalid request-line/header framing status classes
  • add durable exact-corpus regression coverage
  • pass the exact corpus test and full home_test gate

Parent: #66

10 days ago

Completed and pushed in 1c71cca580b7bc780d496fe0f780594347ca2e7a.

Validation:

  • hspec.test.ts SHA-256: bd44567cac03ab55046f25767c656a934374af66febd3e9ee4bbcd4f1cdf0bd8 (byte-identical to ~/Code/bun)
  • http-spec.ts SHA-256: 404face9f5039a968f38449783a99cb86be25604d139c8f55cb62b49258e7c3b (byte-identical to ~/Code/bun)
  • exact corpus run: 1 wrapper test passed, 0 failed, 0 unsupported, 0 TODO; the virtual helper executes all 40 concrete upstream request vectors
  • full gate: ./pantry/.bin/zig build test -Dfilter=home_test --summary failures exited 0

Implemented fragmented-request timeout handling, request-line/version/target validation, Host enforcement, header token/control-byte validation, Content-Length validation, and Transfer-Encoding/Content-Length conflict rejection over the virtual node:net / Bun.serve boundary.

Sign in to comment on this issue.