Repository navigation
runtime: require DSH_VERSION as an explicit build-arg - #3491
Merged
Merged
Conversation
Both stages of runtime/flybot-image/Dockerfile carried ARG DSH_VERSION=0.2.2-rc.1, so a bare docker build without --build-arg installed a release that contradicts runtime/ds-bot-upstream.pin.json (0.2.2-rc.5) and said nothing about it. Dropping the default alone would have been worse: npm resolves an empty "@deepseek-ai/dsh@" to "*". Each stage now declares the arg without a default and fails fast on an empty value before the first install, a recipe test guards the default, the guard order and the documented build paths, and COMPOSE_MANAGER.md points operators at the pin. Related #3489
This was referenced Dec 2, 2026
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.
What changed
runtime/flybot-image/DockerfiledeclaredARG DSH_VERSION=0.2.2-rc.1in both stages, sodocker build -f runtime/flybot-image/Dockerfile runtimewithout--build-arginstalled rc.1 whileruntime/ds-bot-upstream.pin.jsonnames0.2.2-rc.5. Nothing caught it: the version check at the old:94sits in the final stage and never sees the build stage's install.ARG DSH_VERSIONwith no default, and each fails fast on an empty value before its firstnpm install -g "@deepseek-ai/dsh@${DSH_VERSION}". Removing the default alone would have been worse: an empty"@deepseek-ai/dsh@"resolves to*(npm-package-arg:fetchSpec="*"), which drifts further from the pin than rc.1 did.test/recipe.test.jsgains a case that rejects anyARG DSH_VERSION=default, requires the guard to precede first use in every stage that installs DSH packages (two stages), and requires the workflow,docs/GETTING_STARTED.mdandruntime/flybot-image/README.mdto read the version from the pin rather than pass a literal.docs/COMPOSE_MANAGER.mdnow tells operators to pass--build-arg DSH_VERSION=<dsh in runtime/ds-bot-upstream.pin.json>, so the documented bare-build path no longer walks into the new guard silently.3 files, +47/−4, tree
ccd25ec43fa95a0e71a4b60df24c4164cfb0f3c0, single parent4b8d4216.Local evidence (local, not CI; this host has no Docker daemon, so no image build was executed)
Bound to head
c01eb3b99f598c5b8ec004407550258ce639a17b/ treeccd25ec4:runtime/flybot-image:node --test test/recipe.test.js→ 12/12 pass, rc 0.runtime/flybot-image:npm test→ 29 tests, 28 pass, 1 fail. The failure istest/model-api.test.js:80, which reads this host's real/run/secrets/flybot-workspace-model-api.json(272 B, 0600) and assertsundefined; it fails identically on parent4b8d4216without this slice, and is filed separately as runtime/flybot-image: recipe tests read the host's real /run/secrets model-api file and fail on a provisioned host #3490.node --test --test-concurrency=2 tests/*.test.mjs→ 974/974 pass, 0 fail, rc 0 (8.4 s).python3 -m unittest test_docs_pages test_shipped_licenses→ 8 tests OK.DSH_VERSION→ rc 1 with the message on stderr;DSH_VERSION=0.2.2-rc.5→ rc 0.CI has not been read for this head yet; the check runs will decide.
Boundary
Does not touch the shipped license records that still name rc.1 (
NOTICE:22/:66,docs/reuse-audit/shipped-pins.json); that is a separate slice.Related #3489