Repository navigation
fix(perf-kit): make Worker mode work on more app setups - #11414
Merged
IWANABETHATGUY merged 0 commit intoNov 4, 2026
Merged
Conversation
✅ Deploy Preview for rolldown-rs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
IWANABETHATGUY
force-pushed
the
fix/perf-kit-worker-ab-fixes
branch
from
November 1, 2026 04:50
92a3a4d to
06797ba
Compare
IWANABETHATGUY
force-pushed
the
fix/perf-kit-worker-ab-fixes
branch
from
November 3, 2026 17:10
06797ba to
964586f
Compare
IWANABETHATGUY
force-pushed
the
fix/perf-kit-worker-ab-fixes
branch
3 times, most recently
from
November 4, 2026 09:30
f59d609 to
6549437
Compare
IWANABETHATGUY
marked this pull request as ready for review
November 4, 2026 09:32
IWANABETHATGUY
requested review from
h-a-n-a,
hyfdev,
sapphi-red and
shulaoda
as code owners
November 4, 2026 09:32
shulaoda
approved these changes
Nov 4, 2026
shulaoda
pushed a commit
to raminjafary/rolldown
that referenced
this pull request
Nov 4, 2026
perf-kit's Worker mode (`worker-scan`, `worker-attrib`) failed or measured nothing on several common Cloudflare Worker setups. This PR fixes each case: - **Older `compatibility_date`:** the coverage run could not import `node:inspector`, because that module is off before its default-on date. The coverage run now also sets `enable_nodejs_inspector_module`. - **`assets.run_worker_first` set to a list of routes:** newer Miniflare answered perf-kit's own `/__lab/*` requests from the static assets, so the code to measure never ran. perf-kit now adds `/__lab/*` to that list. - **pnpm apps:** `worker-attrib` failed with "No such module", because it skipped dot directories and pnpm puts libraries under `node_modules/.pnpm/`. It now walks into them; only `.vite/` stays out. - **Fast rebuild (`ROLLDOWN_PERF_KIT_WORKER_ONLY=1`):** the Worker lost its `assets` config, because the Cloudflare plugin removes it when the client is not built in the same run. The rebuild now puts it back. - **TanStack Start and React Router apps:** `worker-attrib` could not find the attribution build, because that build is named after the environment (`ssr`) while the regular output is `dist/server`. It now picks the one directory that has a `wrangler.json`. - **WebSocket routes (agent chats, RPC):** there was no way to time code that runs only over a WebSocket. `--request 'ws:/path|<message>'` opens the socket, sends the message and times it to the last reply.
shulaoda
added a commit
that referenced
this pull request
Nov 5, 2026
## [0.1.0] - 2026-11-05 ### 🚀 Features - perf-kit: add the Worker leads and keep rules from the startup A/B runs (#11479) by @IWANABETHATGUY - perf-kit: show module-scope calls and compare with the pinned build in the same Worker scan (#11415) by @IWANABETHATGUY - perf-kit: measure the deployed site and replay it for local builds (#11215) by @IWANABETHATGUY - perf-kit: diagnose chunk loading before FCP and LCP (#11214) by @IWANABETHATGUY - perf-kit: Cloudflare Worker startup mode (#11188) by @IWANABETHATGUY ### 🐛 Bug Fixes - perf-kit: Worker mode with nested rolldown, external bindings, redirects (#11498) by @IWANABETHATGUY - perf-kit: make Worker mode work on more app setups (#11414) by @IWANABETHATGUY ### 📚 Documentation - add build report and perf-kit in-depth pages (#11480) by @IWANABETHATGUY ### ⚙️ Miscellaneous Tasks - perf-kit: keep run details out of code comments (#11481) by @IWANABETHATGUY Co-authored-by: shulaoda <[email protected]>
This branch had an error being deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
perf-kit's Worker mode (
worker-scan,worker-attrib) failed or measured nothing on several common Cloudflare Worker setups. This PR fixes each case:compatibility_date: the coverage run could not importnode:inspector, because that module is off before its default-on date. The coverage run now also setsenable_nodejs_inspector_module.assets.run_worker_firstset to a list of routes: newer Miniflare answered perf-kit's own/__lab/*requests from the static assets, so the code to measure never ran. perf-kit now adds/__lab/*to that list.worker-attribfailed with "No such module", because it skipped dot directories and pnpm puts libraries undernode_modules/.pnpm/. It now walks into them; only.vite/stays out.ROLLDOWN_PERF_KIT_WORKER_ONLY=1): the Worker lost itsassetsconfig, because the Cloudflare plugin removes it when the client is not built in the same run. The rebuild now puts it back.worker-attribcould not find the attribution build, because that build is named after the environment (ssr) while the regular output isdist/server. It now picks the one directory that has awrangler.json.--request 'ws:/path|<message>'opens the socket, sends the message and times it to the last reply.