Skip to content

ci(docker): run the image smoke checks as Docker build stages #7202

Done

Description

@dan-petty

Problem

The smoke checks of the Service, runner, MCP server and uv-seed images are docker run lines in .github/workflows/ci.yml and the same lines again in .github/workflows/release-image.yml. A test compares the two copies. No developer can run them with one command, and BuildKit cannot cache them.

Owner direction of 2026-11-25: build testing and validation of Docker images happens in a Docker layer when possible, as best practice.

Change

  1. Add smoke.Dockerfile with one stage for each image: service-smoke, mcp-server-smoke, runner-smoke and uv-seed-smoke. Each stage starts FROM the image under test, which --build-context gives. So the same stage tests the local build of a pull request and the pushed digest of a release. The service stage stays the last stage of Dockerfile.
  2. A check goes into a RUN step of these stages when its result does not depend on the runtime sandbox, the entrypoint or the image metadata: the user, the tool versions, the absent build tools, the runner tool check and the offline sync of the uv seed.
  3. A check stays a docker run when a RUN step cannot make it: the start of the Service and /healthz, the write probe and the checkout bootstrap on a read-only root file system with all capabilities dropped, the --version call through the entrypoint, the size bounds and the scans.
  4. ci.yml and release-image.yml build the same stages.

The test suite in the Service image is #6408 and is not part of this item. The move of the image jobs into one workflow is #1858: it gets the shorter smoke steps.

Proof

  • Each smoke stage builds locally and in the image jobs of the pull request.
  • A smoke stage fails when its image lacks a tool or holds a forbidden one.
  • The first release after the merge shows the smoke stages on the pushed digests.

Alternatives check of 2026-11-25: not-applicable.
Class: ci, no search.
Tool: none found.

Activity

  1. added
    type/infra
    source/agent
    on Nov 25, 2026
  2. dan-petty commented on Nov 25, 2026

    @dan-petty
    OwnerAuthor
    • Scope: none. The title has the scope image, and .github/labels.yml declares no scope/image label. Add the label to the file to give the scope to this item.
  3. added
    status/new
    value/medium
    effort/medium
    priority/p2-medium
    owner/agent
    status/in-progress
    and removed
    status/new
    on Nov 25, 2026
  4. changed the title [-]ci(image): run the image smoke checks as Docker build stages[/-] [+]ci(docker): run the image smoke checks as Docker build stages[/+] on Nov 25, 2026
  5. added
    status/in-review
    and removed
    status/in-progress
    on Nov 25, 2026
  6. removed
    status/in-review
    owner/agent
    on Nov 25, 2026
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

    effort/mediumpriority/p2-mediumsource/agenttype/infravalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions