Migrate CI/CD to Rust scripts and adopt template best practices#133
Merged
Migrate CI/CD to Rust scripts and adopt template best practices#133
Conversation
Adding .gitkeep for PR creation (default mode). This file will be removed when the task is complete. Issue: #132
Migrate all CI/CD pipeline scripts from .mjs (Node.js) to .rs (Rust) to match best practices from the rust-ai-driven-development-pipeline-template. New Rust scripts added: - publish-crate.rs: Graceful crates.io publishing with auth error handling - check-release-needed.rs: Check crates.io (not git tags) for release state - check-version-modification.rs: Prevent manual version changes in PRs - detect-code-changes.rs: Smart change detection for CI optimization - git-config.rs: Git user configuration for automated commits - get-version.rs: Extract version from Cargo.toml for CI outputs - rust-paths.rs: Multi-language repo path detection utility - check-changelog-fragment.rs: PR-diff-aware changelog fragment validation - create-changelog-fragment.rs: Manual release changelog fragment creation - version-and-commit.rs, get-bump-type.rs, collect-changelog.rs, bump-version.rs, check-file-size.rs, create-github-release.rs Workflow improvements: - Added detect-changes job for smart CI optimization - Added version-check job to prevent manual version modification - Added clippy lint check - Added doc tests (cargo test --doc) - Added cargo package --list verification - Added changelog-pr release mode for manual changelog PR creation - Switched to rust-script for all script execution - Added proper always() && !cancelled() patterns for job dependencies - Release now checks crates.io instead of git tags for version state - Publish step uses publish-crate.rs with graceful auth error handling Co-Authored-By: Claude Opus 4.6 <[email protected]>
- Add comprehensive case study in docs/case-studies/issue-132/ with timeline, root cause analysis, solution details, and lessons learned - Save compressed CI logs from failing run 23390203130 - Add changelog fragment for the CI/CD migration changes Co-Authored-By: Claude Opus 4.6 <[email protected]>
This reverts commit 4c88e28.
Member
Author
🤖 Solution Draft LogThis log file contains the complete execution trace of the AI solution draft process. 💰 Cost estimation:
🤖 Models used:
📎 Log file uploaded as Gist (1654KB)Now working session is ended, feel free to review and add any feedback on the solution draft. |
Member
Author
✅ Ready to mergeThis pull request is now ready to be merged:
Monitored by hive-mind with --auto-restart-until-mergeable flag |
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
rust-script, matching the rust-ai-driven-development-pipeline-templateCARGO_REGISTRY_TOKENRoot Cause
The "Publish to Crates.io" step used inline bash that called
exit 1when noCARGO_REGISTRY_TOKENwas configured. The template uses a dedicatedpublish-crate.rsscript that handles auth failures gracefully, supports--allow-dirty, and handles "already exists" responses.Changes
New Rust scripts (matching template):
publish-crate.rs— Graceful crates.io publishing with auth error handlingcheck-release-needed.rs— Checks crates.io API instead of git tagscheck-version-modification.rs— Prevents manual version edits in PRsdetect-code-changes.rs— Smart change detection for CI optimizationgit-config.rs,get-version.rs,rust-paths.rs— Utility scriptscheck-changelog-fragment.rs— PR-diff-aware changelog validationcreate-changelog-fragment.rs— Manual release changelog creationversion-and-commit.rs,get-bump-type.rs,collect-changelog.rs,bump-version.rs,check-file-size.rs,create-github-release.rsWorkflow improvements:
detect-changesjob for smart CI optimizationversion-checkjob to prevent manual version modificationchangelog-prrelease modealways() && !cancelled()job dependency patternsDocumentation:
docs/case-studies/issue-132/with timeline, root cause analysis, and lessons learnedTest plan
cargo fmt --all -- --checkpassescargo clippy --all-targets --all-featurespassescargo test --all-features— 67 tests passFixes #132
🤖 Generated with Claude Code