Skip to content

fix(ci): the release publishes the mcp-server image #4324

Closed

Description

@dan-petty

Problem Description

Deployment mcp-server in namespace devops has been in ImagePullBackOff since it was created (2026-11-09T21:16Z, about 5 hours). No workflow publishes the image that it names, ghcr.io/dan-petty/devops-cli/mcp-server.

Reproduction Steps

  1. kubectl -n devops get pods: mcp-server-7b94c95bb4-pkvt4 is 0/1 ImagePullBackOff (1296 back-offs); the Deployment condition is ProgressDeadlineExceeded; Application devops is Synced and Degraded.
  2. kubectl -n devops describe pod -l app.kubernetes.io/name=mcp-server: Back-off pulling image "ghcr.io/dan-petty/devops-cli/mcp-server".
  3. devops gh api /user/packages/container/devops-cli%2Fmcp-server/versions returns 404 Package not found.

Expected vs Actual Behavior

Expected: a release publishes the mcp-server image to GHCR with the same build, smoke test, scan, digest push, attestation and tags as the service and runner images, so Image Updater pins the digest and the pod becomes Ready.

Actual: no job publishes it. The package does not exist, and the Deployment cannot start.

Environment Diagnostics

  • Argo CD Image Updater log, every 2 minutes: Could not get tags from registry: Get "https://ghcr.io/v2/dan-petty/devops-cli/mcp-server/tags/list": denied (alias mcp-server).
  • Manifest: k8s/devops/mcp-server/deployment.yaml names the image with no tag, the same as service and runner; Image Updater writes the digest, so the manifest needs no change.

Logs, Traces, or Terminal Output

See Reproduction Steps and Environment Diagnostics.

Proposed fix

  • Add job mcp-server-image to release.yml, built from the runner-image job: target mcp-server, the smoke test and the Trivy scan of ci.yml job mcp-server-image (with .trivyignore-mcp-server), push by digest, attest, tag with the release tag and latest.
  • Add a check that fails when a workload under k8s/ names a ghcr.io/dan-petty/devops-cli/<name> image that no job of release.yml pushes.

Pre-Submission Checklist

Proposed design

Problem statement

Deployment mcp-server in namespace devops stays in ImagePullBackOff because no workflow publishes the image ghcr.io/dan-petty/devops-cli/mcp-server. The release workflow publishes devcontainer, service and runner only. Image Updater cannot find a digest, so the pod cannot start. A second gap lets a workload name an image that no release job pushes, with no check that catches it.

Acceptance criteria

Requirement: Release publishes the mcp-server image

The release workflow SHALL contain a job mcp-server-image that builds the mcp-server target and pushes the image ghcr.io/dan-petty/devops-cli/mcp-server by digest.

Scenario: Job exists and pushes by digest

  • WHEN a test parses .github/workflows/release.yml
  • THEN the test finds job mcp-server-image with target mcp-server and a push by digest to the mcp-server image

Requirement: Release gates the mcp-server image

The mcp-server-image job of the release workflow MUST run the smoke test and the Trivy scan with .trivyignore-mcp-server before it pushes the image.

Scenario: Smoke test and scan precede the push

  • WHEN a test reads the steps of job mcp-server-image
  • THEN the smoke test step and the Trivy scan step with .trivyignore-mcp-server come before the push step

Requirement: Release attests and tags the mcp-server image

The mcp-server-image job SHALL attest the pushed digest and tag the image with the release tag and with latest, as the runner-image job does.

Scenario: Attestation and tags present

  • WHEN a test reads the steps of job mcp-server-image and job runner-image
  • THEN both jobs attest the digest and tag the image with the release tag and latest

Requirement: Check for unpublished workload images

The repository SHALL hold a check that fails when a workload under k8s/ names an image ghcr.io/dan-petty/devops-cli/<name> that no job of release.yml pushes.

Scenario: Unpublished image fails the check

  • WHEN the check runs on a fixture where a manifest names ghcr.io/dan-petty/devops-cli/ghost and release.yml has no job for ghost
  • THEN the check fails and names the image ghost

Requirement: Check passes on the current tree

The check MUST pass when each ghcr.io/dan-petty/devops-cli image under k8s/ has a release job that pushes it.

Scenario: Current tree passes

  • WHEN the check runs on the repository after the mcp-server-image job exists
  • THEN the check passes for devcontainer-independent images service, runner and mcp-server

Existing Tool Considered

No outside tool covers the need. The release job reuses the existing runner-image job and the existing build, smoke test, Trivy and attestation actions, so the cost is a copy of one job with a new target name and a small offline test. The check for unpublished images is a pytest test in tests/ that parses YAML, in the style of tests/invariants/test_k8s_argocd_apps.py. No alternatives check has run.

Key questions

  • Where does the check for unpublished workload images live?: It lives as a pytest invariant test under tests/invariants/. The test reads the manifests under k8s/ and the jobs of .github/workflows/release.yml. It runs in the Tests and Coverage required check, so no new CI job and no new required check is needed. (best practice) [sources: tests/invariants/test_k8s_argocd_apps.py, tests/k8s/test_image_pins.py, docs/adr/0004-ci-is-the-authoritative-gate.md]
    • Chosen: Pytest invariant test. It runs offline in the existing required check and follows the existing invariant tests.
    • Rejected: Extend devops k8s image-pins. That command skips images that an ImageUpdater names and reads the registry, so it cannot catch a missing release job.
    • Rejected: New CI job. It adds a job and may need a ruleset change for no gain over a test.
  • Does the mcp-server manifest need a change?: No. The Deployment names the image with no tag, as the service and runner manifests do. Image Updater writes the digest once the package exists. The ImageUpdater entry for mcp-server already exists. [sources: k8s/devops/mcp-server/deployment.yaml, k8s/argocd/image-updater-values.yaml]
  • How is the new release job built?: Copy the runner-image job and change the target to mcp-server, the image name, the smoke test and the ignore file to .trivyignore-mcp-server. Take the smoke test and scan steps from ci.yml job mcp-server-image. (best practice) [sources: openspec/specs/roadmap-implement-runner/spec.md, docs/adr/0004-ci-is-the-authoritative-gate.md]
    • Chosen: Copy the runner-image job. It keeps the same digest push, attestation and tags, as the issue asks.
    • Rejected: Matrix over service, runner and mcp-server. It rewrites working jobs and widens the risk of the change.

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

None.

Activity

  1. added
    source/agent
    type/bug
    scope/ci
    status/new
    value/high
    effort/medium
    on Nov 10, 2026
  2. dan-petty commented on Nov 10, 2026

    @dan-petty
    OwnerAuthor

    Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.

    • Type: type/bug. The fix prefix of the title gives the type.
    • Scope: scope/ci. The (ci) scope of the title gives the scope.
    • Priority: P1-High. A production pod is in ImagePullBackOff and the service is non-functional.
    • Value: High. The mcp-server deployment is completely non-functional without the published image.
    • Effort: Medium. The job is modeled on existing release jobs and the check is a small validation script.
    • Related: feat(k8s): deploy MCP server manifests when entrypoint exists #3600, which asks for a different change. Both concern the MCP server deployment; #3600 adds the k8s manifests while the candidate adds the release job that publishes the image.
  3. added
    priority/p1-high
    owner/agent
    on Nov 10, 2026
  4. added
    status/ready
    and removed
    status/new
    on Nov 10, 2026
  5. devops-cli-service commented on Nov 10, 2026

    @devops-cli-service
    Contributor

    Status set to Ready at 4f377e1 (see proposed design in issue body).

  6. added
    status/in-progress
    and removed
    status/ready
    on Nov 10, 2026
  7. added
    status/in-review
    and removed
    status/in-progress
    on Nov 10, 2026
  8. removed
    status/in-review
    owner/agent
    on Nov 10, 2026
  9. devops-cli-service commented on Nov 10, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-10 06:39 UTC

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/p1-highscope/cisource/agenttype/bugvalue/high

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions