Skip to content

test: pin upstream shapes for #299, #290 and #295 - #317

Merged
ryuzdev merged 2 commits into
mainfrom
test/pin-upstream-shapes-299-290-295
Nov 29, 2026
Merged

ryuzdev merged 2 commits into
mainfrom
test/pin-upstream-shapes-299-290-295

Conversation

@ryuzdev

@ryuzdev ryuzdev commented Nov 29, 2026 •

Copy link
Copy Markdown
Member

Pins two upstream regression shapes found while verifying 0.3.2. No Closes lines: the issues are already closed.

(a) #299 — finished-fetch 101/WebSocket read loop (new test)

woken_ws_read_loop_facet_settles (crates/cello/tests/woken_outbound_conformance.rs) drives a raw-TCP WebSocket handshake against the fixture's new /ws route (crates/cello/tests/fixtures/woken-outbound/worker.js) and asserts pong:go for the handler control and the loop leg (capnweb newWorkersWebSocketRpcResponse shape, upstream denoland#287). The existing suite only covered the woken facet call via /start+/notify.

Fail-before on v0.3.1 (throwaway port, since removed): mode=handler replies, mode=loop: no reply within 10s. Pass-after on this branch: 4/4 woken tests green.

(c) #295 — raw non-ASCII request header bytes (pin, no fix needed)

New header-non-ascii-bytes case + header-bytes corpus fixture echo the Worker's view as code-point lists. The runner sends { bytes: [...] } header values as raw wire bytes (byte-identical heads for all existing cases, verified). Workerd and Cello agree on all three classes (valid UTF-8 caf+C3+A9 visible, lone E9 and FF/truncated-C3 decode to U+FFFD), so this is a pin only — no behavior change.

The #290 idle plain-stream case now lives in the companion fix PR (it diverged and needed a runtime fix).

Gate total on this branch: 300 cases (299 + 1 new), all green on workerd 1.20261121.1 and this branch.

Verification

  • cargo test -p cello --test woken_outbound_conformance --profile ci --locked → 4 passed
  • cargo clippy -p cello --all-targets -- -D warnings → clean; cargo fmt --all applied
  • node runner.mjs (full gate) → all 301 cases agree on the pre-split branch (300 here + the moved case)

Changelog (one line)

Pin the 101/WebSocket read-loop facet leg and raw non-ASCII header bytes against workerd.

@coderabbitai

coderabbitai Bot commented Nov 29, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 21 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 562b85eb-6293-469d-b1ad-e864030b9c23
Commits

Reviewing files that changed from the base of the PR and between 9124ae0 and f4c8fc8.

Files selected for processing: 6

  • crates/cello/tests/fixtures/woken-outbound/worker.js
  • crates/cello/tests/woken_outbound_conformance.rs
  • scripts/workerd-diff/cases.mjs
  • scripts/workerd-diff/corpus/header-bytes/index.js
  • scripts/workerd-diff/corpus/header-bytes/wrangler.json
  • scripts/workerd-diff/runner.mjs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@ryuzdev
ryuzdev force-pushed the test/pin-upstream-shapes-299-290-295 branch from 06646bc to 39663d7 Compare November 29, 2026 21:33
The woken_outbound_conformance suite covered the woken same-cell facet
call via /start+/notify but not the upstream denoland#287 shape: a
DO fetch returning 101 with a WebSocket, where a read loop started by
that fetch makes a facet call per incoming message. The fixture gains a
/ws route (handler control + loop legs) and the suite a raw-TCP round
trip asserting pong:go for both.
Request headers carrying raw non-ASCII bytes (valid UTF-8 caf+U+00E9,
a lone Latin-1 byte, invalid sequences) echoed back as code-point
lists; workerd and Cello agree, so the gate pins it. The runner sends
{ bytes: [...] } header values as raw wire bytes, bypassing string
encoding.
@ryuzdev
ryuzdev force-pushed the test/pin-upstream-shapes-299-290-295 branch from 39663d7 to f4c8fc8 Compare November 29, 2026 21:51
@ryuzdev
ryuzdev merged commit abe4b81 into main Nov 29, 2026
7 checks passed
@ryuzdev
ryuzdev deleted the test/pin-upstream-shapes-299-290-295 branch November 29, 2026 22:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant