Repository navigation
Closed
Description
My commit messages look like these:
commit d2b67fb4df02293e0a6478ffa6b61a1d6c502cff (origin/main-dev)
Author: Ash Vardanian <1983160+ashvardanian@users.noreply.github.com>
Date: Mon May 6 00:55:26 2024 +0000
Fix: Build graph dependency
commit 4168fcda53a75eb50bde9cd342aa42eebf253422 (main-dev)
Author: Ash Vardanian <1983160+ashvardanian@users.noreply.github.com>
Date: Sun May 5 06:15:13 2024 +0000
Make: Refresh `Cargo.lock`... and the .releaserc is configured to detect those:
"plugins": [
[
"@semantic-release/commit-analyzer",
{
"preset": "eslint",
"releaseRules": [
{
"tag": "Break",
"release": "major"
},
{
"tag": "Add",
"release": "minor"
},
{
"tag": "Improve",
"release": "patch"
},
{
"tag": "Make",
"release": "patch"
},
{
"tag": "Refactor",
"release": false
}
]
}
],But recently, all of the semantic-release pipelines simply ignore all the releases:
[6:17:19 PM] [semantic-release] [@semantic-release/commit-analyzer] › ℹ The commit should not trigger a release
[6:17:19 PM] [semantic-release] [@semantic-release/commit-analyzer] › ℹ Analyzing commit: Make: Publish Python sources
Closes #113
[6:17:19 PM] [semantic-release] [@semantic-release/commit-analyzer] › ℹ The commit should not trigger a release
[6:17:19 PM] [semantic-release] [@semantic-release/commit-analyzer] › ℹ Analyzing commit: Merge pull request #117 from ashvardanian/main-dev
Linking OpenMP
[6:17:19 PM] [semantic-release] [@semantic-release/commit-analyzer] › ℹ The commit should not trigger a release
[6:17:19 PM] [semantic-release] [@semantic-release/commit-analyzer] › ℹ Analyzing commit: Make: Disable JS prebuild for Windows
I'm currently using semantic-release in several projects and can't run the CI without it. I've tried locating the issue, but couldn't find where its coming from. Any pointers you could share?
Reacted by Basti Buck, Gerry, Yelin Zhang, SHEN Lin and Raman Sinclair
Metadata
Metadata
Assignees
Labels
No labels
Activity
travi commentedon May 8, 2024
Possibly related to semantic-release/release-notes-generator#633
HenrikPoulsen commentedon May 14, 2024
Why doesn't the commit-analyzer throw an error in this situation?
I also had issues with it, in my case I was trying to get the breaking change
feat!syntax working. The commit analyzer just ignored them, so I assume it just silently falls back to the angular preset or something?Would have saved me many hours if it actually hard failed
HenrikPoulsen commentedon May 30, 2024
I raised it over in semantic-release/release-notes-generator#633 as well, but I think it makes sense here as well.
Updating the plugins seems like an inherently dangerous proposition when it comes to semantic-release.
How am I supposed to know when an update is breaking the entire release flow like in the case outlined here?
As you can see from the output there's no errors at all. So you could go week after updating something without noticing anything is wrong.
We at least saw that the release-notes-generator broke from this change, but the commit-analyzer doesn't even get that far if you do what was outlined in this issue here.
Are there any suggestions for how one could automate verifying that an update doesn't break something? (even a non-major version update could still break you)
How would you, in your update branch, verify automatically that things like a
feat!,fixor whatever else would still want to bump?Are there things that could be done in semantic release itself to help reduce this?
If you are just doing this in a single repo it's not so much of a problem. But in my case I am considering rolling it out across hundreds of repos, specifically with the conventionalcommits plugin.
I don't know how to do this successfully given issues like this being able to arise.
Yelinz commentedon Jun 7, 2024
travi commentedon Jun 7, 2024
are you using commitlint as well? if so, see semantic-release/release-notes-generator#660 (comment)
what does
npm ls conventional-changelog-conventionalcommitsgive you?Yelinz commentedon Jun 10, 2024
cgmEdi commentedon Jul 11, 2024
Hi,
we have a similar issue but for us the releases are skipped if we use a release config that analyzes the "message"field:
Commits with type fix or feat work as expected.
rj-wowza commentedon Jul 11, 2024
Branches where there the branch name is capitalized are skipped:
it works if the branch name is lowercase like:
fix: [LIVE-735] Remove feature flag for facebook livethis is problematic since Github capitalizes the branch names automatically
travi commentedon Jul 12, 2024
Branchescommits with initial capitalization do not follow the commit convention you have chosen (even if you are using the default configured for semantic-release). semantic-release does not define the conventions and you have the option to define your own.also, semantic-release evaluates commit messages, not branch names. this has not changed in recent updates
if you are making commits through your browser, capitalizing the first letter of the
branch namecommit message field is browser behavior that you simply need to be careful aboutjebeaudet commentedon Jul 30, 2024
FWIW I have this project which works on 23.x but does not on 24.x :
package.json
.release.rc
Here is the build run :
travi commentedon Jul 30, 2024
You need to also upgrade to the latest major version of your preset at the same time
jebeaudet commentedon Jul 30, 2024
Argh, so sorry for this useless noise, indeed bumping to
"conventional-changelog-conventionalcommits": "^8.0.0"fixes it. Thanks @travitravi commentedon Aug 2, 2024
i'm closing this thread as i believe all mentioned situations have solutions. to summarize: