Skip to content

ci(workerd): Wrangler 4.151.1, compatibility date matrix, new scenarios - #150

Closed
okomarov wants to merge 3 commits into
mainfrom
cf-ci-refresh
Closed

okomarov wants to merge 3 commits into
mainfrom
cf-ci-refresh

Conversation

@okomarov

Copy link
Copy Markdown

Step 2 of the Cloudflare round (#15): bumps the workerd job to Wrangler 4.151.1, runs it at three compatibility dates, adds copy-out, ssl-prefer-declined, tls-untrusted-ca, subscribe and diagnostics-channel scenarios, and fixes the port race (#54). The first run shows which new scenarios fail on the current polyfill build; those become WORKERD_KNOWN_FAILURES until their fixes land.

…enarios

The workerd job ran Wrangler 4.123.0 (workerd 1.20260811.1) at
compatibility date 2025-01-01 only. It now runs Wrangler 4.151.1 (workerd
1.20261012.1) at 2025-01-01, 2025-09-15 (node:fs, node:os and process v2 on
by default) and 2026-10-12, the newest date that runtime accepts.

New scenarios, each one checked in real workerd:
- copy-out: a COPY TO stream read by a slow consumer, which pauses and
  resumes the socket.
- ssl-prefer-declined: ssl: 'prefer' against a server without SSL.
- tls-untrusted-ca: a certificate workerd does not trust must fail with the
  certificate error, not CONNECT_TIMEOUT.
- subscribe: one logical replication insert delivered. The CI clusters now
  run with wal_level = logical and a replication pg_hba entry.
- diagnostics-channel: node:diagnostics_channel publish and tracePromise,
  for the event layer in #73.

The worker imports the driver through a generated driver.js, so a later
change can point the same scenarios at another build.
WORKERD_KNOWN_FAILURES lists scenarios expected to fail; the run fails if
one passes.

The close-time rejection (#1) is tolerated under both messages:
"Stream was cancelled" and, from workerd 1.20261008.1, "This socket has
been closed".

The runner picks both ports while holding the first listener open, so they
cannot be equal, and retries a scenario once with fresh ports when Wrangler
reports "Address already in use" (#54).
On the cf/ build, in real workerd at every compatibility date:
- copy-out rejects with "socket.resume is not a function": the polyfill
  socket has no pause() or resume().
- subscribe never delivers, for the same reason.
- ssl-prefer-declined ends in CONNECT_TIMEOUT: after the server answers N
  to the SSLRequest, nothing reads the socket again.

tls-untrusted-ca fails at 2025-01-01 and 2025-09-15 only, and on both
builds: the certificate error reaches the driver within milliseconds as
"Network connection lost.", and workerd also reports the same error as an
unhandled rejection. At 2026-10-12 there is no unhandled rejection.
@okomarov

Copy link
Copy Markdown
Author

Superseded by #151, which now carries these commits folded together with the fixes.

@okomarov okomarov closed this Oct 19, 2026
@okomarov
okomarov deleted the cf-ci-refresh branch October 19, 2026 00:51
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