Skip to content

test:workerd runs stale dist/ without noticing, and cannot exercise GET-with-body #868

Closed

Description

@jimhoyd

Observed while implementing per-method body rules (#845, #861 item 5):

  • Stale build goes unnoticed. npm run test:workerd (scripts/workerd-parity.ts) runs against the built dist/, not the source. With a stale dist/, every invalid body was answered 201 by both workerd and Node, and the script reported them as "SAME", which is a false pass. It should refuse when dist/ is older than the sources it covers, or build first.
  • GET with a body can't be tested. fetch refuses to send a GET with a body, so the parity run cannot exercise the GET/HEAD 413 path on workerd. Today only the Node-run Worker test covers it. A raw-socket client would close that gap.
  • Manual only. The run is manual, off CI, and needs the network (JSON Schema profile follow-ups: store/forms vocabularies, OpenAPI export, shared HTTP+MCP+form schema, formats, workerd CI #861 item 7).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions