Repository navigation
fix(release): gate crates.io publish behind the release job + idempotent version guard; regen skill bundle - #492
Merged
Conversation
…ent version guard; regen skill bundle Run 39598031043 post-mortem: - publish-crates declared no needs and raced the build/gate jobs; niubash-runtime 1.4.3 and niubash 1.4.3 reached crates.io while the GitHub Release page never existed (the real blocker was skill-bundle's golden check failing, which skipped the release job). - publish-crates now needs [release, build-windows, build-linux, build-macos, journey, perfbudget, skill-bundle]: build all platforms -> journey + per-asset timing gates -> GitHub Release with all assets -> and only then crates.io. A publish failure can no longer race the gates or precede the release page. - New guard step queries the crates.io API before publishing and skips any crate whose max_version equals this release's version (::notice), so re-running a release whose versions already ship stays green; an API lookup failure falls back to cargo publish's own idempotency verdicts. - skills/niubash/SKILL.md: the #488 version bump never regenerated the bundle, so "Bundle version" still said 1.4.2 - the drift that actually failed the golden check and blocked the release job. Regenerated. - Refreshed the stale "rubash 1.0.0 is not on crates.io" publish comment.
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.
What
Fixes the release-pipeline ordering defect that broke the v1.4.3 attempt (run 39598031043), plus the content drift that actually blocked the release job.
Root cause (run 39598031043)
publish-cratesdeclared noneedsand raced the build/gate jobs:niubash-runtime1.4.3 andniubash1.4.3 were uploaded to crates.io before/while the gates ran — a half-released state (crates.io carried 1.4.3, the GitHub Release page never existed).releasejob wasskill-bundle's golden check: the release: 1.4.3 prep — version bump 1.4.2 → 1.4.3 (lock self-entries in lockstep, pins untouched) #488 version bump (55cc901) never regenerated the bundle, soskills/niubash/SKILL.mdstill said "Bundle version: niubash 1.4.2" →DRIFT skills/niubash/SKILL.md→ FAIL →releaseskipped by the dependency graph.Changes
publish-cratesnow declaresneeds: [release, build-windows, build-linux, build-macos, journey, perfbudget, skill-bundle]:build all platforms → journey + per-asset timing gates → GitHub Release with all assets → crates.io publish last. A publish failure can no longer race the gates or precede the release page.
https://crates.io/api/v1/crates/<name>(3 retries, proper User-Agent) and skips any crate whosemax_versionequals this release's version (with a::notice), so re-running a release whose versions already ship stays green. API lookup failure is fail-open to cargo publish's existing idempotency verdicts ("already uploaded" / "already exists on crates.io index"), which remain as backstop.skills/niubash/SKILL.mdbundle version now reads 1.4.3;python scripts/generate-skill.py --checkpasses.version = "1.4.1").Verification
generate-skill.py --check: PASS locally.niubash-runtimeandniubashreportmax_version=1.4.3→ guard emits skip (this is exactly the re-tag scenario the guard is for).if:conditions verified.