Fix CI/CD Auto Release: handle SemVer pre-release versions#31
Merged
Conversation
Adding .gitkeep for PR creation (default mode). This file will be removed when the task is complete. Issue: #30
… parser The version regex in version-and-commit.mjs only matched simple X.Y.Z versions, failing on the current 0.1.0-pre+beta.2 with "Could not parse version from Cargo.toml". Updated regex to accept optional pre-release and build metadata suffixes. Verified all repository files use Unlicense — no LGPL references found. Closes #30 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
konard
marked this pull request as ready for review
April 13, 2026 02:36
Member
Author
🤖 Solution Draft LogThis log file contains the complete execution trace of the AI solution draft process. 💰 Cost: $1.826726📊 Context and tokens usage:Claude Opus 4.6:
Total: (52.7K + 2.2M cached) input tokens, 10.5K output tokens, $1.712510 cost Claude Haiku 4.5: Total: (21.2K + 653.8K cached) input tokens, 4.5K / 64K (7%) output tokens, $0.114215 cost 🤖 Models used:
📎 Log file uploaded as Gist (1728KB)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 reverts commit 747e7d2.
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 #30
scripts/version-and-commit.mjsused a version regex ((\d+)\.(\d+)\.(\d+)) that only matches simpleX.Y.Zversions. The currentCargo.tomlversion0.1.0-pre+beta.2includes SemVer pre-release and build metadata, causing the Auto Release job to fail with "Could not parse version from Cargo.toml"(\d+)\.(\d+)\.(\d+)(?:-[^"]*)?to accept optional pre-release/build metadata suffixes while correctly extracting major.minor.patchDetails
Failed CI run: 24322652581
The failure occurred at the "Collect changelog and bump version" step in the Auto Release job. All test and build jobs passed; only the release process failed.
Files changed
scripts/version-and-commit.mjsdocs/case-studies/issue-30/README.mdchangelog.d/20260413_000000_fix_cicd_version_parse.mdexperiments/test_version_parse.mjsTest plan
experiments/test_version_parse.mjs) passes — verifies fix handles0.1.0-pre+beta.2,0.1.0-alpha,2.0.0-rc.1+build.123, and simpleX.Y.Zcargo test --all-featurespasses (all 12 tests + 10 doc-tests)🤖 Generated with Claude Code