Repository navigation
Fix the publish gate: it skipped on every tag push - #97
Merged
Merged
Conversation
The release-2026-07-29 rollout succeeded but left no Release: `publish` was SKIPPED (run 30441720101), and it turns out it could never have run at all — it has been dead since it merged in #93. `if: github.event_name == 'push'` carries no status check function, so GitHub applies an implicit success() across the whole upstream chain. That chain includes validate-ref, which is deliberately SKIPPED on a tag push, and a skip is not a success — so the gate failed on the only path the job is restricted to. The event half of the condition was true the whole time; the invisible half was not. This is precisely the trap the deploy job immediately above documents and works around. I wrote that comment and then failed to carry the fix one job down. Combine both halves so the status function suppresses the implicit success(): if: ${{ !failure() && !cancelled() && github.event_name == 'push' }} `needs: deploy` still holds, so a failed rollout stops the publish and an asset never claims to be what production runs when it isn't. Not fixable retroactively for release-2026-07-29: the tag points at 48f1ed6, which predates this commit, so its workflow definition is the broken one. The run's artifact is still in its window (expires 2026-08-05T10:02:35Z), so that Release can be populated by hand — and unlike release-2026-07-28, no Release object exists for it yet, so that is a create, not an upload. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01R8ZshwKmjD5fZ4Hs9dS6zh
There was a problem hiding this comment.
Pull request overview
This PR fixes a GitHub Actions gating bug where the publish job in the production release workflow was always being skipped on release-* tag pushes due to the implicit success() behavior interacting with a deliberately-skipped upstream job (validate-ref).
Changes:
- Updates the
publishjob condition to explicitly include status checks (!failure() && !cancelled()) alongside the event check, preventing the implicitsuccess()from skippingpublishwhenvalidate-refis skipped on tag pushes. - Adds an inline comment documenting the root cause and referencing the concrete failing run for future debugging.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
Summary
release-2026-07-29deployed successfully but left no Release page. Thepublishjob was skipped, not failed — and it turns out it could never have run. It has been dead since it merged in #93.An
if:with no status check function gets an implicitsuccess()applied across the whole upstream chain. That chain includesvalidate-ref, which is deliberately skipped on a tag push, and a skip is not a success — so the gate failed on the only path the job is restricted to. The event half of the condition was true all along; the invisible half never was.This is exactly the trap the
deployjob immediately above documents and works around. I wrote that comment and then didn't carry the fix one job down.Related issues
None. Fixes the
publishjob added in #93; surfaced by run 30441720101.Changes
deploy-release.yml: combine both halves so the status function suppresses the implicitsuccess():needs: deployis unchanged, so a failed rollout still stops the publish — an asset never claims to be what production runs when it isn't.The generated release notes are unchanged and already match the house pattern (a headerless Commit / Target / Run table plus the
sha256sum -cline), so once this merges the notes come out right automatically.Testing
publishresolves toneeds: deployand the combinedif:above.publishshowsconclusion: skippedwithcompleted_atin the same second it was created (10:03:14Z), i.e. a gate evaluation rather than a step failure, whiledeploy / buildanddeploy / shipboth succeeded and the run'seventis unambiguouslypush.publishonly runs on a tag push, so the fix is unverifiable end to end before then — the same caveat Attach the deployed binary to the release page #93 carried, which is how this got through.Checklist
release-2026-07-29— backfill done, notes need correctingThe assets were backfilled by hand at 11:05Z (
imcp2-linux-arm64+.sha256). The notes on that Release are wrong, though: they carry a flat one-liner rather than the table, because the--notesshortcut in the original backfill command here produced it. That was a defect in these instructions, not in the workflow —publishgenerates the table correctly.To bring it in line (note the quoted heredoc — unquoted, the backticks become command substitution):
For reference, any future manual backfill should use
--notes-filewith the block above rather than an inline--notesstring, for the same reason.The rest of the release verified clean
Production is on
48f1ed6and healthy — the skipped publish was the only thing that went wrong:/versioncommit48f1ed6✅/versioninstances[][{prod, /mcp, https://id.ai, rdmx6-…}]✅ — production II, no beta entry/mcp-prod/mcp-betaPOST /mcp/status/dashboardoverall: pass✅ — II section green, ending the false failure