Repository navigation
build(docker): pin the image's workerd with a lockfile Dependabot bumps weekly (#294) - #326
Merged
Merged
Conversation
…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>
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.
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.mjsinstalled that version withnpm installand 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.jsonpinsworkerd1.20261122.2 exactly, the same version as before.package-lock.jsonholds the SHA-512integrityofworkerdand of every platform's binary package.workerd-versionis removed.install.mjs:npm ci --omit=dev --ignore-scriptsin that folder, so npm refuses a tarball that doesn't match;@cloudflare/workerd-<platform>is the pinned version;workerdnext to@cloudhal/cli..github/dependabot.yml: annpmentry for/deploy/docker/workerd, weekly,allow: workerdonly, commit prefixbuild(docker). The rootnpmentry, 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 runsdocker.ymlin full on the new binary:Why not a scheduled workflow. A PR opened with
GITHUB_TOKENstarts 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
deploy/docker/README.md, the Dockerfile comment,docker.yml's header and AGENTS.md now point atdeploy/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.ymlparses, and its entries are listed as expected.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 newnpm cipath and runs every gate on it.Closes #294
🤖 Generated with Claude Code