Skip to content

Run the published image and .mcpb in the weekly canary - #317

Closed
claudeleet wants to merge 2 commits into
mainfrom
canary-image-and-mcpb
Closed

claudeleet wants to merge 2 commits into
mainfrom
canary-image-and-mcpb

Conversation

@claudeleet

Copy link
Copy Markdown
Contributor

The weekly canary installs and runs only the PyPI package. Nothing starts the GHCR images or the .mcpb after a release: the release's verify job reads the image digests and the .mcpb checksum, but never runs either. The .mcpb is a uv-type bundle that resolves its dependencies on the user's machine, so it can stop installing exactly as the PyPI package can.

Changes

  1. .mcpb smoke, added to install-smoke on all three runners (macos-latest, macos-15-intel, windows-latest). It downloads the newest release's .mcpb, checks it against its .sha256, and starts it with the command manifest.json gives Claude Desktop (uv run --directory <bundle> mcpb_run.py) plus --version, which must print the bundle's own version. On Intel macOS it reuses the existing OpenSSL setup.
  2. image-smoke, a new job pulling ghcr.io/l337-org/docker-mcp-server:latest and :no-scout and running each with --version, which must report the newest PyPI release.
  3. notify now waits on image-smoke, so its failures file the same deduplicated wf:canary issue.
  4. architecture/ci.md describes both.

Both new legs are schedule and dispatch only, like the existing published-package legs, because they test what is already released rather than the pull request.

Testing

  • The .mcpb steps were run locally on Apple-silicon macOS against the 2.3.0 release: the checksum verified and the bundle reported 2.3.0.
  • The workflow parses, and notify lists all three jobs.

Not tested

  • The image steps were not run locally, for want of a Docker daemon.
  • None of the new steps runs on this pull request, since they are skipped on pull_request. The real test is a dispatched run on this branch or the next Monday's scheduled run.

The canary installed and ran only the PyPI package.  Nothing started the
GHCR images or the .mcpb after release: the release's verify job reads the
image digests and the .mcpb checksum, but never runs either.

The .mcpb is a uv-type bundle, so its dependencies resolve on the user's
machine at install time and it can stop installing exactly as the PyPI
package can.  install-smoke now downloads the newest release's .mcpb,
checks it against its .sha256, and starts it with the command manifest.json
gives Claude Desktop, plus --version.  It runs on the same three runners,
reusing the Intel-macOS OpenSSL setup the cryptography source build needs.

A new image-smoke job pulls :latest and :no-scout from GHCR and runs each
with --version, which must report the newest PyPI release, so an image that
no longer starts or a moving tag left on an older build fails.  notify waits
on it, so its failures file the same deduplicated wf:canary issue.

The .mcpb steps were run locally on Apple-silicon macOS against the 2.3.0
release: the checksum verified and the bundle reported 2.3.0.  The image
steps were not run locally, for want of a Docker daemon.

Signed-off-by: CL <CL@L337.org>
@github-actions

Copy link
Copy Markdown

Claude review: changes requested

Findings

1. Maintainability (inaccurate claim in prose): the .mcpb does not "drift exactly as the PyPI package does".
.github/workflows/canary.yaml:13-14 says "A uv-type bundle resolves its dependencies on the user's machine, so it drifts exactly as the PyPI package does". architecture/ci.md:91-92 says the same ("drifts as the PyPI package does"), and so does the commit message. But the bundle ships uv.lock: .mcpbignore:2 lists it under "Keep" and nothing later in the file excludes it. uv run --directory <bundle> mcpb_run.py finds that lockfile and installs the locked versions. A new upstream release, which is what breaks a fresh uvx docker-mcp-server resolve, does not change what the bundle installs. The ways the bundle can actually break are narrower and different:

  • a locked file is removed from PyPI;
  • a locked version has no wheel for the user's platform or for a newer CPython that uv picks under requires-python = ">=3.14";
  • the host's managed uv behaves differently.

The check is still worth having, but the reason given is wrong. A later reader could decide the .mcpb leg duplicates the uvx leg, or that dropping uv.lock from the bundle changes nothing. AGENTS.md ranks this kind of claim first among review priorities. Please reword both places to give the real exposure. I could not run uv here, so this rests on uv's documented uv run lock-then-sync behaviour and the .mcpbignore contents, not on a run.

2. Maintainability (documentation the change makes untrue): the header still says "Two angles".
canary.yaml:4 introduces the list with "Two angles:", and this change adds item 3 (image-smoke) at lines 16-17. Further down, the header paragraph (lines 22-25) lists the schedule/dispatch-only legs as "(PyPI-release resolution, install smokes)" and leaves out the new image smoke, which is also skipped on PRs. Better to say "three" or drop the count, and either name the image smoke there or describe the legs without listing them.

3. Maintainability (recorded state): descriptions of another workflow and of runner images.

  • canary.yaml:16-17: "The release's verify job only reads their digests; this is the only thing that runs them after release." architecture/ci.md:94-95 says the same: "the release's verify job only compares their digests, so nothing else starts them after release". Both describe how publish.yaml is configured. That is true today: I grepped publish.yaml and it has no docker run. But both lines go stale as soon as verify gains a run step. That fact lives in publish.yaml, and the commit message already records why the job was added. Saying what this job checks is enough.
  • canary.yaml:150: "macOS, which ships no sha256sum" is a claim about the runner image. The command -v fallback works either way, so it can just say it uses whichever tool is present.
  • canary.yaml:174: "Two pulls of an image of a few hundred MB" gives an image size, which docker image ls or the registry already answers. It is also inaccurate as a basis for the timeout: timeout-minutes applies to each matrix job, and each one pulls a single image.

4. Preference / risk: the Windows and Intel-macOS .mcpb legs and both image legs have never run, and nothing will run them before merge.
install-smoke and image-smoke are skipped on pull_request, so the first real run will be the Monday after merge. The commit message says only the Apple-silicon .mcpb path was tried. Two things I could not settle without running it:

  • On Windows, CPython writes \r\n to a pipe. Whether Git Bash's $(...) strips the \r before the [ "$actual" != "$expected" ] comparison at canary.yaml:164 decides whether that leg passes. I believe MSYS2's bash does strip it, but I have not confirmed it. actual="${actual%$'\r'}" would remove the doubt.
  • On macos-15-intel, the bundle installs the locked cryptography, while uvx installs the newest one. If they differ, that leg does two Rust source builds inside the timeout-minutes: 20 whose comment (line 107) only accounts for one.

A gh workflow run canary.yaml --ref <this branch> before merge would answer both.

5. Preference (diagnosability): a failed uvx step hides the .mcpb result.
The new .mcpb steps (canary.yaml:140, :153) come after the entry-point smoke in the same job and have no if:. When the PyPI install fails, the bundle is never tried, so that week's issue cannot say whether the .mcpb broke too. if: ${{ !cancelled() }} on the two new steps would report both.

6. Preference (formatting): architecture/ci.md:96 is 165 characters wide where the rest of the paragraph wraps at about 100. The new text was spliced in without reflowing the paragraph.

What I checked

  • I read the whole diff (.github/workflows/canary.yaml, architecture/ci.md), the full canary workflow, AGENTS.md, .agents/policy/review-context.md and architecture/ci.md.
  • Bundle smoke. The command matches manifest.json's mcp_config (uv run --directory ${__dirname} mcpb_run.py). mcpb_run.py calls main(), and main() prints the bare importlib.metadata version for --version, so comparing against the version in the filename works.
  • Download and checksum. The asset name and the bare-filename .sha256 format match the mcpb job in publish.yaml (lines 425-429). The download pattern matches only the .mcpb and its .sha256, not the skill archive.
  • Image smoke. The latest and no-scout tags match publish.yaml lines 259-314. The Dockerfile's ENTRYPOINT ["docker-mcp"] makes docker run <image> --version valid. images.yaml never pushes, so :latest only moves on a release and comparing it with PyPI's newest version is sound.
  • Workflow rules. The new job has timeout-minutes, adds no uses: and needs no new permissions (gh uses the read-only github.token for a public release). notify now waits on the image job. All added lines are ASCII.

What I did not check

I ran none of the workflow steps. There is no uv or Docker daemon here, and no Windows or macOS runner. The Windows CR behaviour and the Intel-macOS timing above are unverified.


full review of e744c8743e21..27f63e98f538. Run.

Review found the reason given for the .mcpb leg was wrong.  The bundle
ships uv.lock, so it installs the locked versions rather than resolving
afresh, and does not drift as uvx does.  Its real exposure is a locked file
pulled from PyPI, a locked version with no wheel for the platform or a newer
CPython, or a change in the host's uv.  The workflow header and
architecture/ci.md now say that, and no longer describe the release's
verify job or the runner images, which go stale independently.

The .mcpb steps now run even when the uvx smoke fails, so a failure report
covers both; strip a trailing carriage return from the Windows output
before comparing versions; and the job timeout rises to 30 minutes, since
Intel macOS may source-build cryptography twice when the bundle's locked
version differs from the one uvx resolves.

Signed-off-by: CL <CL@L337.org>
@claudeleet

Copy link
Copy Markdown
Contributor Author

Addressed in 9e77041.

  1. Fixed. Confirmed the 2.3.0 bundle ships uv.lock. Both places now give the real exposure: a locked file pulled from PyPI, a locked version with no wheel for the platform or a newer CPython, or a change in the host's uv.
  2. Fixed: the count is gone and the PR-skipped legs now include the image smoke.
  3. Fixed: the descriptions of verify, the runner images and the image size are gone.
  4. The carriage return is now stripped before the comparison, and the timeout rises to 30 minutes to cover two Intel-macOS source builds. A dispatched run on this branch before merge is the owner's call, since a failure files a ci-failure issue.
  5. Fixed: both .mcpb steps run with if: ${{ !cancelled() }}.
  6. Fixed: the paragraph is reflowed.

@github-actions

Copy link
Copy Markdown

Claude review: approve

Resolved

  • Finding 1 (the .mcpb "drifts as the PyPI package does"): fixed in canary.yaml and architecture/ci.md. Both now say the bundle installs from its own uv.lock. They name the real exposures: a locked file pulled from PyPI, no wheel for the platform or a newer CPython, or a change in the host's uv.
  • Finding 2 ("Two angles"): fixed. The count is gone, and the PR-skipped list now includes the image smoke.
  • Finding 3 (recorded state): fixed. The descriptions of verify, the runner image and the image size are gone. The remaining timeout comments describe the reason for the value, not a measured figure.
  • Finding 4, carriage return: actual="${actual%$'\r'}" now runs before the comparison.
  • Finding 4, timeout: raised to 30 minutes, and the comment gives the reason.
  • Finding 5: both .mcpb steps now have if: ${{ !cancelled() }}.
  • Finding 6: the ci.md paragraph is reflowed.

Still open

  • Finding 4, the unrun legs: the Windows and Intel-macOS .mcpb legs and both image legs are skipped on pull_request, so none has run on this branch. The owner declined a pre-merge dispatch because a failure files a ci-failure issue. See Declined.

Declined

  • A dispatched pre-merge run of canary.yaml: declined by @claudeleet, because a failure files a ci-failure issue. This is a risk the owner accepts, so I'm not raising it as a blocker.

New

  • None blocking.
  • Preference (formatting): canary.yaml:25 is 106 characters wide, because the added "and image smokes" lengthened an already-long line. Other lines in the file are wider, so this is cosmetic.
  • Preference: canary.yaml:144 gives if: !cancelled() to the download step, and the bundle smoke step has it too. If the download fails, the smoke step then runs against a missing bundle/mcpb directory and fails a second time. Both failures show up in the log, so this only adds noise.

What I checked

  • I read the delta in canary.yaml and architecture/ci.md.
  • I read AGENTS.md and its .github/workflows area check.
  • I checked the new prose for recorded state and found none.
  • I measured line widths.
  • I confirmed the $'\r' parameter expansion is valid bash under the shell: bash the steps use.

What I did not check

  • I ran no workflow steps: there is no uv, Docker, Windows or macOS runner here.
  • I did not re-verify that the 2.3.0 bundle ships uv.lock. I rely on the author's confirmation and the .mcpbignore contents noted in the earlier round.

delta review of 27f63e98f538..9e770417da16. Run.

@claudeleet

Copy link
Copy Markdown
Contributor Author

Correction to the record: the pre-merge dispatch has not been declined. It is undecided and with the owner, because a failed run files a ci-failure issue.

The two new preferences are left as they are, to avoid another full CI run for a long comment line and a duplicate failure line in the log.

@GavinLucas

Copy link
Copy Markdown
Collaborator

This test is not the right approach and doesn't really add useful coverage. If an additional post-release check is required then that could be considered instead.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants