fix(rust): fix CI/CD release pipeline silently skipping all Rust releases#248
Merged
fix(rust): fix CI/CD release pipeline silently skipping all Rust releases#248
Conversation
Adding .gitkeep for PR creation (default mode). This file will be removed when the task is complete. Issue: #247
…ases (#247) Root cause: The `auto-release` and `manual-release` jobs in rust.yml lacked `always()` in their `if` conditions. When `changelog-check` is skipped on push events (it only runs on PRs), GitHub Actions transitively skips all downstream jobs that don't use `always()` — even though the immediate `needs` jobs succeed. Fixes: - Add `always()` with explicit result checks to auto-release and manual-release job conditions, matching the pattern already used in the JS workflow - Fix changelog version regex in create-github-release.mjs to support Rust's `## [version] - date` format alongside JS's `## version` format - Add format-github-release.mjs step to Rust release jobs for consistent release note formatting Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Contributor
Author
🤖 Solution Draft LogThis log file contains the complete execution trace of the AI solution draft process. 💰 Cost: $4.009320📊 Context and tokens usage:
Total: (83.6K + 5.9M cached) input tokens, 21.3K output tokens, $4.009320 cost 🤖 Models used:
📎 Log file uploaded as Gist (2082KB)Now working session is ended, feel free to review and add any feedback on the solution draft. |
Contributor
Author
✅ Ready to mergeThis pull request is now ready to be merged:
Monitored by hive-mind with --auto-restart-until-mergeable flag |
This reverts commit 848ff71.
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
Fixes #247 — The Rust CI/CD pipeline was silently skipping all releases despite successful builds and tests.
Root Cause Analysis
Primary root cause: The
auto-releaseandmanual-releasejobs inrust.ymllackedalways()in theirifconditions. In GitHub Actions, when a job in the transitive dependency chain is skipped (likechangelog-checkwhich only runs on PRs), all downstream jobs withoutalways()are also skipped by default — even if the immediateneedsjobs all succeed.The dependency chain on push events:
Secondary issues:
create-github-release.mjsdidn't support Rust's## [version] - dateformat (only JS's## version)format-github-release.mjsstep for consistent release note formattingChanges
.github/workflows/rust.yml— Addedalways()with explicitneeds.*.result == 'success'checks to bothauto-releaseandmanual-releasejob conditions, matching the pattern used in the working JS workflowscripts/create-github-release.mjs— Fixed changelog regex to handle both## 0.22.0(JS) and## [0.8.0] - 2026-04-11(Rust) formats.github/workflows/rust.yml— Addedformat-github-release.mjsstep to bothauto-releaseandmanual-releasejobsEvidence
CI run 24273002407 on the most recent push to
main:Full case study:
docs/case-studies/issue-247/README.mdTest Plan
experiments/test-changelog-regex.mjsmainwith Rust changes should trigger theauto-releasejob (no longer skipped)