Repository navigation
Run Miniflare's tests on the Node.js version workers-sdk tests with - #8189
Conversation
The release workflow's Miniflare job installed `lts/*`, which now resolves to Node.js 26. Under Node.js 26 the browser rendering tests hang in their `beforeAll` until the 10 minute hook timeout, failing the job on every push to main since Nov 2. Miniflare installs Chrome with @puppeteer/browsers 2.x, which unzips it with extract-zip and yauzl 2.10, whose fd-slicer read stream sets `destroyed = true` at EOF while it may still have data buffered. Node.js 26 makes resume() a no-op on destroyed streams (nodejs/node@958373413c), so once zlib applies backpressure the entry never finishes and the extraction never resolves. workers-sdk itself tests on Node.js 22 and does not run on Node.js 26 yet, so use its install-dependencies action, which keeps this job on the version workers-sdk tests with.
There was a problem hiding this comment.
Superseded by the review of
e57b9657.
This review, of ed0abbac
✅ Approved — A small CI-only change that hands Node.js and dependency setup to workers-sdk's own setup action. No issues found.
The decision is advisory: this review is a comment and never approves, blocks or requests changes on the pull request.
✅ All checks passed
📋 Code Quality: ✅ LGTM
The miniflare-test job now uses workers-sdk's install-dependencies composite action, which resolves correctly because workers-sdk is checked out at the workspace root. The build and test steps after it are unchanged and still have pnpm and Node.js available.
📝 Documentation: ✅ LGTM
The new workflow comment says what the job does now and follows the repository's comment guidelines.
Reviewed commit: ed0abbac
There was a problem hiding this comment.
✅ Approved — A small CI-only change that hands Node.js and dependency setup to workers-sdk's own setup action. No issues found.
The decision is advisory: this review is a comment and never approves, blocks or requests changes on the pull request.
✅ All checks passed
📋 Code Quality: ✅ LGTM
The miniflare-test job now uses workers-sdk's install-dependencies composite action, which resolves correctly because workers-sdk is checked out at the workspace root. The build and test steps after it are unchanged and still have pnpm and Node.js available.
📝 Documentation: ✅ LGTM
The new workflow comment says what the job does now and follows the repository's comment guidelines.
Reviewed commit: e57b9657 — same changes as ed0abbac, so this is that commit's review (no new review was run; line numbers are as of ed0abbac)
Summary
The
Run Miniflare testsjob in the Build & Release workflow has failed on every push tomainsince Nov 2 ~04:00 UTC. The browser rendering suite (
test/plugins/browser/index.spec.ts) timesout in
beforeAll(warmChromeInstall)after 10 minutes.The job installed Node.js
lts/*, which started resolving to Node.js 26.13.0 between the lastpassing run (Node 24.22.1) and the first failing one. Both runs used the same workers-sdk commit
(
ca55031d).This PR makes the job use workers-sdk's own
install-dependenciesaction, so Miniflare runs on theNode.js version workers-sdk tests with (currently 22.23.4).
This problems has been reported in Miniflare in issue cloudflare/workers-sdk#16522 (Oct 27), open and unassigned. PR cloudflare/workers-sdk#16648 (Nov 2, awaiting review) moves Miniflare to @puppeteer/browsers@^3.2.6, which would render this fix not needed.
Root cause
Miniflare installs Chrome with
@puppeteer/browsers@2.10.6, which unzips it withextract-zip@2.0.1→yauzl@2.10.0→fd-slicer@1.1.0.ReadStream._readsetsthis.destroyed = trueand then callspush(null),possibly with data still buffered.
pipe()pauses the source. When zlib drains,pipe()callsresume().pause()/resume()no-ops on destroyed streams(nodejs/node@958373413c, "stream: noop pause/resume on destroyed streams"). The buffered data is
never delivered, the entry's
pipeline()never settles andextract()never resolves.Reproduced locally:
@puppeteer/browsers@2.10.6install of Chrome 126extract-zipon a 300 KB deflated entryyauzloverridden to 3.4.0workers-sdk's CI runs on Node.js 22 and has no Node.js 26 job, which is why it passes there. The
Node.js 26 incompatibility is a workers-sdk issue to fix separately.
Notes
install-dependenciesrunspnpm install --frozen-lockfilewhere this job used to runpnpm install.pnpm install, the test suite), so using itscomposite action adds no new trust.
mainand onworkflow_dispatch, which also publishes.