Skip to content

runtime: the image recipe defaults DSH_VERSION to 0.2.2-rc.1 while the pin installs 0.2.2-rc.5 #3489

Done

Description

@Birfy

What

runtime/flybot-image/Dockerfile declares the DSH version twice with a stale default:

  • line 27: ARG DSH_VERSION=0.2.2-rc.1
  • line 43: ARG DSH_VERSION=0.2.2-rc.1 (second stage, reused for the runtime/ds-bot-upstream/ds-bot dependency install at lines 97-101)

runtime/ds-bot-upstream.pin.json declares "dsh": "0.2.2-rc.5", and README + the pin are what the project advertises.

Why it matters

Both documented build paths pass the version explicitly, so they are fine:

  • .github/workflows/flybot-runtime-image.yml:43-62 reads dsh from the pin and passes --build-arg "DSH_VERSION=${DSH_VERSION}".
  • docs/GETTING_STARTED.md:29-34 does the same.

But a bare build does not fail — it silently installs the older DSH:

docker build -f runtime/flybot-image/Dockerfile runtime

Dockerfile:35 then runs npm install -g "@deepseek-ai/dsh@${DSH_VERSION}", i.e. rc.1, while the repository claims rc.5. docs/COMPOSE_MANAGER.md:24 tells operators they can build the image from runtime/flybot-image/, and nothing in the recipe or tests catches a build that omits the arg.

Expected vs actual

  • Expected: a build without --build-arg DSH_VERSION either fails loudly or produces the pinned version.
  • Actual: it succeeds and produces an image whose DSH version contradicts the pin, with no warning.

Evidence

  • Commit 4b8d4216781201383b34fcf84f86efed071527bb (tree cb0da4c0e8f64e90bd84eced6e95b1924e2490f1), git grep -n DSH_VERSION in runtime/flybot-image/Dockerfile → lines 27, 43, 94-101.
  • runtime/ds-bot-upstream.pin.json → "dsh": "0.2.2-rc.5".
  • Static reading only: this machine has no Docker daemon, so the build was not executed; the claim is from the recipe's own ARG default, not from a built image.

Suggested slice

Make the recipe refuse to build without an explicit version (drop the default, or default it from the pin at build time), and add a check to runtime/flybot-image/test/ that greps the recipe for a hardcoded default that contradicts the pin. Do not touch the shipped license records here (docs/reuse-audit/shipped-pins.json, NOTICE:22/:66) — those are a separate slice.

Related #3488

Activity

  1. added
    agent-ready
    agent-working
    on Dec 2, 2026
  2. Birfy commented on Dec 2, 2026

    @Birfy
    CollaboratorAuthor

    Claimed. Branch dev/3489-image-recipe-dsh-version-default from main 4b8d4216781201383b34fcf84f86efed071527bb; pull request #3491, head c01eb3b99f598c5b8ec004407550258ce639a17b, tree ccd25ec43fa95a0e71a4b60df24c4164cfb0f3c0, single parent, 3 files +47/−4.

    What the slice does, beyond the issue text: dropping the default alone would have been worse than keeping it, because an empty "@deepseek-ai/dsh@" resolves to * (npm-package-arg reports fetchSpec="*"), which is further from the pin than rc.1 was. So both stages now declare ARG DSH_VERSION with no default and each fails fast on an empty value before its first install; test/recipe.test.js rejects a baked default, requires the guard to run before first use in both stages that install DSH packages, and requires the workflow, docs/GETTING_STARTED.md and runtime/flybot-image/README.md to read the version from the pin instead of a literal. docs/COMPOSE_MANAGER.md now says to pass --build-arg DSH_VERSION=<dsh in runtime/ds-bot-upstream.pin.json>.

    Out of scope here: NOTICE:22/:66 and docs/reuse-audit/shipped-pins.json still name 0.2.2-rc.1; those are a separate slice.

    Note on local evidence: this host has no Docker daemon, so no image build was executed. The recipe test suite is 12/12 on the replayed tree, and npm test in runtime/flybot-image is 28/29 because test/model-api.test.js:80 reads this host's real /run/secrets/flybot-workspace-model-api.json; that red exists on the parent commit too and is filed as #3490.

  3. Birfy commented on Dec 2, 2026

    @Birfy
    CollaboratorAuthor

    Implemented and merged.

    a062ba2158261ed0e5e5e217723e19df290ff02a — squash of #3491, single parent 3d4cb42a, tree 3f164e11a3bf79f8707ae1e250d7e686689cce38, 3 files +47/-4.

    Both build stages now declare ARG DSH_VERSION with no default value and fail fast with test -n "$DSH_VERSION" before the first use (install at :41, version check at :102). runtime/flybot-image/test/recipe.test.js asserts that no ARG DSH_VERSION= default is baked into the recipe, so a bare docker build can no longer silently install the old 0.2.2-rc.1. The build instructions in docs/COMPOSE_MANAGER.md (24-27), docs/GETTING_STARTED.md and runtime/flybot-image/README.md now pass --build-arg DSH_VERSION=<pin>.

    Local check on the replayed tree: recipe.test.js 12/12 and the top-level tests/*.test.mjs suite 974/974 rc 0; putting the default back turns exactly the new assertion red. No docker on this host, so the guard semantics were exercised with sh -c, not a real image build.

    Related #3491

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent-readyagent-working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions