Repository navigation
Wait for npm to serve the version before registering it - #13
Merged
Merged
Conversation
The registry job failed on 1.0.4 and said so nowhere. It validates a packages[] entry by fetching that exact version FROM npm, and npm's read API lags its own publish: the job asked at 01:37:39, npm began serving at 01:38:14. 35 seconds, and the whole job exits 1 with NPM package 'greencalculus-mcp' exists, but version '1.0.4' was not found `needs: npm` was never the missing piece -- the precondition is npm SERVING the version, not having published it. So wait for that, before logging in, because the registry session is short-lived and login must stay adjacent to publish. Publish then retries three times with a fresh token each attempt. The third change is the one that matters most. When this job fails, npm goes green beside it, the tag is cut, the image builds and Glama publishes its own release -- every visible signal says the release landed, and only reading the registry back shows it did not. It sat wrong for a day. A failure now writes what is actually inconsistent, how to fix it, and the API call that adjudicates. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NRueWxopDXHoWY2dPvsmLG
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
1.0.4shipped to npm on 15 September and the MCP registry stayed on1.0.3for a day. The registry job had failed, and nothing said so.What happened
The registry validates a
packages[]entry by fetching that exact version from npm, and npm's read API lags its own publish. The registry job asked at01:37:39; npm began serving1.0.4at01:38:14. Thirty-five seconds.needs: npmwas already there, so ordering was never the bug — the precondition is npm serving the version, not having published it.Three changes
v1.0.4tag is cut, the GHCR image builds, and Glama publishes its own 1.0.4 an hour later — every visible signal says the release landed, and only reading the registry back shows otherwise. On failure the step summary now states what is actually true, how to fix it, and the API call that adjudicates.State right now
Already repaired out of band by a
workflow_dispatch— the registry readsv1.0.4,isLatest: true, pinninggreencalculus-mcp@1.0.4, updated2026-09-16T00:54:17. This PR is so1.0.5does not repeat it.Worth noting the workflow's weekly
cron: 31 6 * * 1would have healed this on its own, since both jobs check before they act — but not until Monday 21 September, five days late.🤖 Generated with Claude Code
https://claude.ai/code/session_01NRueWxopDXHoWY2dPvsmLG