Repository navigation
Conversation
…iflare test:workerd booted Miniflare and drove dispatchFetch, which held it on node (gotcha 38, bun#39247). It now writes a capnp config for the binary the pinned wrangler resolves and runs `workerd test`: the harness exports one test entrypoint per file and prints each file's report as a tagged stdout line. A cache service stands in for the caches.default Miniflare configured; without it 3 photo tests fail on "No Cache was configured". The lane runs under bun. oxc-minify joins HOST_ONLY: a contract test reaches it, and esbuild could not resolve its browser build, so the lane failed to bundle on 55de16d before this change. Differential on 55de16d, same tree: the Miniflare lane and this one report the same status for all 1,033 tests and print the same tally (962 agree, 53 host, 16 known, 2 new, 12 stale). The 2 new and 12 stale were already there under Miniflare.
Wire-size diff vs merge base
Brotli q11, the quality the edge serves. Every number here is deterministic: Client assetsNo change. 42 files, 203.00 KiB Brotli total. PagesNo change. 74 files, 902.00 KiB Brotli total. Worker bundleNo change. 318.71 KiB gzip. Dictionary transportFamily dictionary acquisition: no change, 16.24 KiB q11.
Head tags vs merge baseNo change. 74 documents, every title, description, canonical, robots, |
First paint, layout shift and first byte vs merge baseNo page serves a different document, so no changed page was read. Pages that serve the same document3 sampled page(s) with identical bytes on both sides read flat, alone and pooled.
How a change is called moved, and the controls (238 s)Each change is the median of HEAD minus base over the 9 pairs. It is moved when a sign test puts the split under p 0.05 and the median is at least 16 ms of FCP, 0.005 of CLS or 5 ms of TTFB (tools/lib/paint-diff.ts). TTFB is how long the Worker takes to send a document's headers, timed from Node before each load, since Chrome's emulated latency hides anything under it. Advisory: nothing here fails the PR. The same-document pages are a slice of the unchanged ones, turned by the HEAD commit so each push reads different ones. Identical bytes make them a placebo: a move there is the runner or the serving path, never the document. Controls on
|
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
aadhar-sh | 287adaa | Commit Preview URL Branch Preview URL |
Dec 04 2026, 09:12 PM |
test:workerdruns the contract tests of shipped code a second time inside workerd. It booted Miniflare to do that and calleddispatchFetch, which needs node's undici, so it was one of the 5 commands gotcha 38 held on node (bun#39247).It now writes a capnp config for the workerd binary the pinned wrangler resolves and runs
workerd test. The harness exports one test entrypoint per file, reads which files to run from a Data module, and prints each file's report as a tagged stdout line. A cache service stands in for thecaches.defaultMiniflare configured by itself; without it 3 photo tests fail on "No Cache was configured". The lane runs under bun, sotest:workerdleaves the node list in the quarantine test and in gotcha 38.One more line was needed before anything ran: on 55de16d the lane failed to bundle, because a contract test reaches
oxc-minifyand esbuild can't resolve its browser build. It joinsHOST_ONLY. Nothing in CI runs this lane, which is how that went unnoticed.Differential on 55de16d, same staged tree: the Miniflare lane and this one report the same status for all 1,033 tests and print the same tally. The lane still exits 1 there on 2 new differences and 12 stale gaps, which this PR leaves alone; they were the same under Miniflare.
Not covered: the recovery path for a file that crashes workerd or hangs past 120 s never fired, since no file did. The stale count moved between 2 Miniflare runs (6, then 12) from bun's baseline side, so
config/workerd-gaps.jsonneeds a look before anyone trusts its stale list. Only ran on macOS arm64.Measurements
Miniflare lane vs workerd test lane: 1,033 of 1,033 statuses equal
Before the cache service, the same diff named exactly 3 tests, all
contract-photo-jxl-originals.test.ts, eachError: No Cache was configured.One run each: 21.3 s on Miniflare, 20.7 s on workerd test
Single runs on the same machine, so no speed claim.
check:fast: lint, format, typecheck clean; 2,052 tests pass