Skip to content

relay conformance: the Worker track answers 503 once a few identities exist under wrangler dev --local #3003

Backlog

Description

@AbirAbbas

What happened

On dev@edee42c153, the Worker track of scripts/relay-conformance.sh fails almost entirely when it runs against the Worker under wrangler dev --local. Once a few test identities exist, the relay answers 503 to every case.

Base table on 2026-11-27:

worker store      10 pass / 40 fail
worker directory   0 / 41
worker lease       0 / 17
worker fabric      0 / 8

wrangler dev's own log shows no error and no failed span. The Go relay tracks, both in-process and live, are green on the same commit, apart from the stale C7 expectation fixed separately.

Replication

Deterministic (no model). From a clean checkout of dev, run scripts/relay-conformance.sh, with Node 22 and NODE_OPTIONS=--max-old-space-size=2048. The early Worker cases pass. Once several identities have been created, every later request returns 503. Running a small batch of fabric cases against a fresh local Worker each time passes, which points at per-isolate state rather than at the cases.

Field. Not tried against a deployed Worker.

Where

There is one local isolate, and each new identity's Raft member lives in it. The suspected limit is the member's memory budget: search relay/hosted/src/raft for the 64 MB member budget. The script's Worker track (conf_live worker in scripts/relay-conformance.sh) points every case at one wrangler dev process.

The fix

Make the conformance script's Worker track usable locally. Either give each suite, or each batch of identities, its own wrangler dev process, or raise or release the per-identity state the local isolate holds, so the full table can be green on a developer machine. If a deployed Worker would also hit the limit, that is a separate, real bug, and it should be checked.

Acceptance

  • e2e: scripts/relay-conformance.sh on a clean dev checkout prints a Worker table with zero fail rows (skips allowed and named).
  • e2e: the Go relay tracks stay as they are.
  • Unit: none; this is the harness or the isolate budget.

Activity

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