Skip to content

Ship worker-bundler in the self-host Docker runtime#1390

Merged
RhysSullivan merged 1 commit into
mainfrom
fix/selfhost-worker-bundler
Jul 10, 2026
Merged

Ship worker-bundler in the self-host Docker runtime#1390
RhysSullivan merged 1 commit into
mainfrom
fix/selfhost-worker-bundler

Conversation

@RhysSullivan

Copy link
Copy Markdown
Collaborator

The self-host image crashed on startup with Cannot find module '@cloudflare/worker-bundler' since the dynamic Worker bundler change: the package is resolved at runtime but was never copied into the packaged runtime.

Copies it in package-runtime.ts (with a pre-bundled entry, since the runtime image has no esbuild for the fallback), and extends the CI docker smoke job to boot the container and require a healthy /api/health instead of only building the image.

The dynamic Worker bundler change made plugin-apps resolve
@cloudflare/worker-bundler at runtime via import.meta.resolve, but
package-runtime.ts never copied the package into the self-host image, so
serve.js crashed on startup with a module-not-found error.

Copy the package alongside the other runtime externals and pre-bundle
dist/index.bundled.js at build time (the npm package does not ship it and
the distroless runtime has no esbuild for the fallback), mirroring what
apps/cli/src/build.ts does for the packed CLI.

The CI smoke job only built the image, which is exactly why this slipped
through: boot the container and require a healthy /api/health as well.
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
executor-marketing 2679f7f Commit Preview URL

Branch Preview URL
Jul 10 2026, 05:42 AM

@github-actions

github-actions Bot commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

Cloudflare preview

Torn down — the PR is closed.

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
executor-cloud 2679f7f Jul 10 2026, 05:44 AM

@pkg-pr-new

pkg-pr-new Bot commented Jul 10, 2026

Copy link
Copy Markdown

Open in StackBlitz

@executor-js/cli

npm i https://pkg.pr.new/@executor-js/cli@1390

@executor-js/config

npm i https://pkg.pr.new/@executor-js/config@1390

@executor-js/execution

npm i https://pkg.pr.new/@executor-js/execution@1390

@executor-js/sdk

npm i https://pkg.pr.new/@executor-js/sdk@1390

@executor-js/codemode-core

npm i https://pkg.pr.new/@executor-js/codemode-core@1390

@executor-js/runtime-quickjs

npm i https://pkg.pr.new/@executor-js/runtime-quickjs@1390

@executor-js/plugin-file-secrets

npm i https://pkg.pr.new/@executor-js/plugin-file-secrets@1390

@executor-js/plugin-graphql

npm i https://pkg.pr.new/@executor-js/plugin-graphql@1390

@executor-js/plugin-keychain

npm i https://pkg.pr.new/@executor-js/plugin-keychain@1390

@executor-js/plugin-mcp

npm i https://pkg.pr.new/@executor-js/plugin-mcp@1390

@executor-js/plugin-onepassword

npm i https://pkg.pr.new/@executor-js/plugin-onepassword@1390

@executor-js/plugin-openapi

npm i https://pkg.pr.new/@executor-js/plugin-openapi@1390

executor

npm i https://pkg.pr.new/executor@1390

commit: 2679f7f

@RhysSullivan
RhysSullivan marked this pull request as ready for review July 10, 2026 05:47
@RhysSullivan
RhysSullivan merged commit d95e63c into main Jul 10, 2026
21 checks passed
@RhysSullivan RhysSullivan mentioned this pull request Jul 10, 2026
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