Skip to content

build(docker): pin the image's workerd with a lockfile Dependabot bumps weekly (#294) - #326

Merged
Madraka merged 2 commits into
mainfrom
claude/workerd-bump-294
Nov 29, 2026
Merged

Madraka merged 2 commits into
mainfrom
claude/workerd-bump-294

Conversation

@Madraka

@Madraka Madraka commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

A weekly bump of the self-host image's workerd, with the version and its checksums in one PR, gated on the image's whole CI (RFC-0047 §11).

Why Dependabot can do it now

The pin used to be the text file deploy/docker/workerd-version. install.mjs installed that version with npm install and no lockfile. So the binary had no checksum pin, and no tool could see the version to bump it.

What changes

  • deploy/docker/workerd/: an npm package of its own, outside the pnpm workspace.
    • package.json pins workerd 1.20261122.2 exactly, the same version as before.
    • package-lock.json holds the SHA-512 integrity of workerd and of every platform's binary package.
    • workerd-version is removed.
  • install.mjs:
    • runs npm ci --omit=dev --ignore-scripts in that folder, so npm refuses a tarball that doesn't match;
    • checks that the installed @cloudflare/workerd-<platform> is the pinned version;
    • copies that binary;
    • no longer installs workerd next to @cloudhal/cli.
  • .github/dependabot.yml: an npm entry for /deploy/docker/workerd, weekly, allow: workerd only, commit prefix build(docker). The root npm entry, which carries the Miniflare 4 pin, is unchanged (ADR-0012).
  • workerd-no-tcmalloc: a pin behind the image's version now prints a warning and leaves the arm64 fallback out. Before, it failed the build, which would block every bump while the community build catches up. As the issue says, the pin follows when a matching build exists.

The gate

A Dependabot PR touches deploy/docker/**, so it runs docker.yml in full on the new binary:

Why not a scheduled workflow. A PR opened with GITHUB_TOKEN starts no workflows, so the gate would never run. An App or personal token would mean a long-lived write credential for one file.

Merging. "Build edge" is deliberately not a required check of main's ruleset: docker.yml runs only on PRs that touch its paths, so a required check would block every other PR. A workerd bump merges on a green Build edge, like every image PR.

Docs

  • ADR-0047 (new) records the two pins and the bump. It is listed in the ADR index.
  • RFC-0047 §1 has an amendment.
  • The self-host guide (Upgrades) says how the image's workerd moves.
  • deploy/docker/README.md, the Dockerfile comment, docker.yml's header and AGENTS.md now point at deploy/docker/workerd.

No published package changes, so there is no changeset.

Checked

  • actionlint, biome check --diagnostic-level=error, pnpm size:check, node --check install.mjs.
  • dependabot.yml parses, and its entries are listed as expected.
  • The lockfile was generated with npm install --package-lock-only --ignore-scripts. There was no local Docker build: this PR's own docker.yml run builds the image through the new npm ci path and runs every gate on it.

Closes #294

🤖 Generated with Claude Code

Madraka and others added 2 commits November 29, 2026 10:28
…ps weekly (#294)

The image's workerd was a version in a text file, installed with npm and no
lockfile: no checksum pin, and nothing could see it to bump it.

deploy/docker/workerd is now an npm package of its own, outside the pnpm
workspace: package.json pins workerd exactly, package-lock.json holds the
SHA-512 of the workerd package and every platform's binary. install.mjs
installs it with npm ci --ignore-scripts, checks the platform package is the
pinned version and copies its binary.

Dependabot bumps it weekly (npm at /deploy/docker/workerd, workerd only), so
version and checksums move in one PR; that PR runs docker.yml in full on the
new binary: store conformance, the docker, Swarm and Helm smokes, the cluster
failover test and Trivy. A scheduled workflow was not used: a PR opened with
GITHUB_TOKEN starts no workflows. The Miniflare pin is untouched (ADR-0012).

A workerd-no-tcmalloc pin behind the image's version now warns and leaves the
fallback out instead of failing the build, so a bump is never blocked by the
community build.

ADR-0047 records the two pins; RFC-0047 §1 is amended; the guide, the image
README and AGENTS.md follow.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Madraka <8898640+Madraka@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Madraka <8898640+Madraka@users.noreply.github.com>
@Madraka
Madraka merged commit e8068d4 into main Nov 29, 2026
12 checks passed
@Madraka
Madraka deleted the claude/workerd-bump-294 branch November 29, 2026 07:54
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.

Self-host: a weekly workerd bump, gated on store conformance and the cluster smoke

1 participant