Repository navigation
perf(wrangler): remove execa - #12369
Conversation
🦋 Changeset detectedLatest commit: afa7296 The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
@cloudflare/autoconfig
@cloudflare/build-output-utils
@cloudflare/codemods
@cloudflare/config
@cloudflare/containers-shared
create-cloudflare
@cloudflare/deploy-helpers
@cloudflare/kv-asset-handler
miniflare
@cloudflare/pages-functions
@cloudflare/pages-shared
@cloudflare/unenv-preset
@cloudflare/vite-plugin
@cloudflare/vitest-plugin
@cloudflare/workers-auth
@cloudflare/workers-editor-shared
@cloudflare/workers-utils
wrangler
commit: |
3723c61 to
56b361e
Compare
|
The windows CI job appears to keep hanging but also this needs another rebase. |
|
Strange. When I'm next on a Windows machine I can try run them locally and see what happens if that helps |
56b361e to
9499795
Compare
40277f9 to
5f1a98a
Compare
|
Hi @43081j — we're doing some cleanup of stale draft PRs. This PR has been quiet since 2026-02-13. Could you let us know within 14 days whether you're still planning to continue?
Thanks! |
workers-devprod
left a comment
There was a problem hiding this comment.
Codeowners reviews satisfied
|
Codeowners approval required for this PR:
Show detailed file reviewers |
|
@jamesopstad other than that seemingly stuck windows task, it builds! looks like it is just stuck building for some reason |
50e7e94 to
8929563
Compare
|
Codeowners approval required for this PR:
Show detailed file reviewers |
8929563 to
fe2f069
Compare
|
Rebased this onto latest Conflict resolution
Behavioural gaps between execa and tinyexec
Other
Not addressed — worth a follow-up execa v6 defaulted to Verification: One thing worth adding to the changeset if you like: |
fe2f069 to
590c8f5
Compare
this is a bug and was fixed in tinylibs/tinyexec#146 which should be in the next tinyexec release.
This may be solved by tinylibs/tinyexec#151
i do wonder if there is a simpler way, knowing exactly what we've spawned and the cases in which it can be left dangling. worth some thought instead of trying to port a "lazy" solution like that i think edit: 1.3.0 is out which should fix those two 👀 |
590c8f5 to
c47d183
Compare
|
Codeowners approval required for this PR:
Show detailed file reviewers |
|
We recently landed #14994, a large change to Miniflare's configuration internals that touched ~177 files across the repo. Leaving this PR on its old base was likely to cause conflicts, so we've rebased it onto the latest Your local copy of this branch is now out of date. Before you push again, please reset to the new version: git fetch origin
git checkout execaless
git reset --hard origin/execalessBecause the base moved a long way, it's also worth reinstalling before you carry on — the lockfile changed: pnpm installSorry for the interruption. If the rebase looks wrong, or CI now fails in a way that seems related to the Miniflare config change rather than your own work, comment here and we'll help get it sorted. |
c47d183 to
9319073
Compare
|
Codeowners approval required for this PR:
Show detailed file reviewers |
Two behavioural differences surfaced while migrating: - `throwOnError` only covers non-zero exit codes, so a process killed by a signal resolved successfully where execa rejected. For custom builds this silently turned an aborted build into a successful one. Guard all three call sites on a missing exit code. - `NonZeroExitError.message` does not name the command the way execa's `shortMessage` did. Embedding C3's captured stdout/stderr to compensate printed the output twice (it is already streamed live) and gave every failure a unique message, defeating Sentry grouping. Name the command and exit code instead, and let the output travel on the cause. Also narrows the C3 error with `instanceof` rather than an unchecked cast, trims the custom build command before handing it to the shell (`cmd.exe` is not whitespace tolerant, and `execaCommand` used to normalise this), and adds coverage for the abort, signal and C3 failure paths.
9319073 to
afa7296
Compare
|
Codeowners approval required for this PR:
Show detailed file reviewers |
|
@petebacondarwin almost 😬 it seems the server timed out during one of the windows tests |
|
Yeah our Vite and Vitest checks are a bit flakey that the moment... |
This removes
execaand uses the much smaller, more moderntinyexecinstead.
Reasoning:
execa640KB vstinyexec26KBexeca23 packages vstinyexec1 packagetinyexecis widely adopted by most of the modern CLIs today (tsdown,vite, vitest, storybook, etc.)
Part of #11854.