Skip to content

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

Merged
dan-petty merged 2 commits into
mainfrom
fix/4324-release-publishes-mcp-server-image
Nov 10, 2026
Merged

dan-petty merged 2 commits into
mainfrom
fix/4324-release-publishes-mcp-server-image

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

Deployment mcp-server pulls ghcr.io/dan-petty/devops-cli/mcp-server, and no workflow pushed it, so the pod stayed in ImagePullBackOff. Job mcp-server-image in release.yml now builds, scans, pushes, attests and tags it like the runner image, with the smoke test and scan of ci.yml. A test fails when a manifest under k8s/ names an image of this repository that no release job attests.

Closes #4324

Change: openspec/changes/archive/2026-11-10-4324-the-release-publishes-the-mcp-server/

@dan-petty dan-petty added type/bug Type bug: the code does not do what it must scope/ci GitHub Actions workflows, pre-commit hooks, CI gates, and runners labels Nov 10, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Evidence

  • Cause (checked 2026-11-10): the package does not exist. devops gh api /user/packages/container/devops-cli%2Fmcp-server/versions returns 404. The Image Updater log says Could not get tags from registry ... mcp-server/tags/list: denied every 2 minutes. release.yml pushed devcontainer, service and runner only.
  • Fail-to-pass: devops ci fail-to-pass --base origin/main shows 8 tests fail on the base tree and pass on this branch (the release job, the same scan and smoke test as CI, the attest and Trivy lists, the job gate, the checkout ref, and the new check that each image of this repository in k8s/ has a publish job).
  • Tests of the three changed modules pass: 172 passed.
  • Full devops ci is queued behind other runs on ci.lock. The result follows in a comment.

Steps for a person after the merge

  1. Merge this pull request. release-please opens or updates the release pull request.
  2. Merge the release pull request (or wait for release-merge.yml, at most 6 hours). The Release run then starts job Build & Publish MCP Server Image. Nothing else publishes the image, and release.yml has no manual trigger.
  3. When that job ends green, make the new package public, as the package service is: open https://github.com/users/dan-petty/packages/container/mcp-server/settings, then Danger Zone, Change visibility, Public. A new GHCR package is private, and the pod has no pull secret. I cannot do this: it is a package setting.
  4. Verify:
    • kubectl -n argocd get application devops -o jsonpath='{.spec.source.kustomize.images}' lists ghcr.io/dan-petty/devops-cli/mcp-server:latest@sha256:... within about 2 minutes of step 3 (Image Updater polls every 2 minutes).
    • devops argo cd apps status devops exits 0, and the Application is Synced and Healthy.
    • kubectl -n devops rollout status deploy/mcp-server ends with success, and kubectl -n devops get pods -l app.kubernetes.io/name=mcp-server shows 1/1 Running.
    • If the pod still waits in back-off after the digest appears, delete it once: kubectl -n devops delete pod -l app.kubernetes.io/name=mcp-server. The Deployment makes a new pod at once.

Not checked

  • The release job itself runs only in the run that creates a release, so no run of it exists yet. It copies job runner-image and the tests compare its gate to CI, but the first real run is the proof.
  • The pod needs Secret devops-cli and ConfigMap devops-cli-config to start. They exist for the other workloads, but I did not check that the server starts and listens on port 8001 with them.

Deployment mcp-server names ghcr.io/dan-petty/devops-cli/mcp-server, and no
workflow pushed it, so the pod stayed in ImagePullBackOff. The release now
builds, scans, pushes, attests and tags the image like the runner image, and a
test fails when a manifest under k8s/ names an image that no release job
publishes.
@dan-petty
dan-petty force-pushed the fix/4324-release-publishes-mcp-server-image branch from e44b182 to 29f1c75 Compare November 10, 2026 03:26
@dan-petty
dan-petty marked this pull request as ready for review November 10, 2026 03:40
@dan-petty

Copy link
Copy Markdown
Owner Author

Checks: all 25 checks of GitHub CI pass on the rebased head (shards 1 to 4 of the tests, MCP Server Image, Service Image, Runner Image, image-pins, CodeQL). The full local devops ci waited more than 1 hour on ci.lock behind other runs, so I stopped it; the GitHub run covers the same gate.

Risk for the first publish: every entry of .trivyignore-mcp-server has exp:2026-11-11. If the release run starts after that date and the CVEs still have no fix, the new release scan fails and the image is not pushed. Renew the entries as SECURITY.md describes before the release pull request merges, or re-run the failed job after the renewal.

@dan-petty
dan-petty merged commit b4770d2 into main Nov 10, 2026
25 checks passed
@dan-petty
dan-petty deleted the fix/4324-release-publishes-mcp-server-image branch November 10, 2026 06:07
dan-petty-release Bot added a commit that referenced this pull request Nov 10, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.106.1](v0.106.0...v0.106.1)
(2026-11-10)


### Bug Fixes

* **ai:** a second Jev request on one model works
([#4331](#4331))
([cdefdd6](cdefdd6))
* **ci:** the release publishes the mcp-server image
([#4334](#4334))
([b4770d2](b4770d2))
* **roadmap:** a MODIFIED block gets the base scenarios it omits
([#4333](#4333))
([8bd434f](8bd434f))
* **security:** renew MCP server Trivy ignores, bump kubectl, helm
([#4337](#4337))
([ec4aabf](ec4aabf))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/ci GitHub Actions workflows, pre-commit hooks, CI gates, and runners type/bug Type bug: the code does not do what it must

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

1 participant