Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v7 semantic-release stops without any output #1106

Closed
maarten-kieft opened this issue Aug 30, 2023 · 6 comments
Closed

v7 semantic-release stops without any output #1106

maarten-kieft opened this issue Aug 30, 2023 · 6 comments

Comments

@maarten-kieft
Copy link

Since 2 days we are facing an issue that semantic-release with the plugin conventional-changelog-conventionalcommits stops without any output and/or errors. We are running the tool in our gitlab pipeline and we have the following script:

version-step:
  image: node:latest
  stage: versioning
  script:
    - >
      npm install -g semantic-release @semantic-release/gitlab @semantic-release/changelog @semantic-release/git @semantic-release/exec;
      npm install conventional-changelog-conventionalcommits -D;
      semantic-release --branches "main"

With version 6, the output is like this:

[1:46:47 PM] [semantic-release] › ℹ  Running semantic-release version 21.1.1
(node:62) ExperimentalWarning: Import assertions are not a stable feature of the JavaScript language. Avoid relying on their current behavior and syntax as those might change in a future version of Node.js.
(Use `node --trace-warnings ...` to show where the warning was created)
(node:62) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time
[1:46:48 PM] [semantic-release] › ✔  Loaded plugin "verifyConditions" from "@semantic-release/gitlab"
[1:46:48 PM] [semantic-release] › ✔  Loaded plugin "analyzeCommits" from "@semantic-release/commit-analyzer"
[1:46:48 PM] [semantic-release] › ✔  Loaded plugin "generateNotes" from "@semantic-release/release-notes-generator"
[1:46:48 PM] [semantic-release] › ✔  Loaded plugin "prepare" from "@semantic-release/changelog"
[1:46:48 PM] [semantic-release] › ✔  Loaded plugin "prepare" from "@semantic-release/git"
[1:46:48 PM] [semantic-release] › ✔  Loaded plugin "prepare" from "@semantic-release/exec"
[1:46:48 PM] [semantic-release] › ✔  Loaded plugin "publish" from "@semantic-release/gitlab"
[1:46:53 PM] [semantic-release] › ✔  Run automated release from branch main on repository https://gitlab-ci-token:[secure]@gitlab.ic.uva.nl/onderwijshub/onderwijshub.git
[1:46:54 PM] [semantic-release] › ✔  Allowed to push to the Git repository
[1:46:54 PM] [semantic-release] › ℹ  Start step "verifyConditions" of plugin "@semantic-release/gitlab"
[1:46:54 PM] [semantic-release] [@semantic-release/gitlab] › ℹ  Verify GitLab authentication (https://gitlab.ic.uva.nl/api/v4)
[1:46:54 PM] [semantic-release] › ✔  Completed step "verifyConditions" of plugin "@semantic-release/gitlab"
[1:46:54 PM] [semantic-release] › ℹ  Found git tag 2.31.0 associated with version 2.31.0 on branch main
[1:46:54 PM] [semantic-release] › ℹ  Found 2 commits since last release
[1:46:54 PM] [semantic-release] › ℹ  Start step "analyzeCommits" of plugin "@semantic-release/commit-analyzer"
[1:46:54 PM] [semantic-release] [@semantic-release/commit-analyzer] › ℹ  Analyzing commit: fix(IMTEAM-1635): Pinning semantic release version onderwijshub/onderwijshub![42](https://gitlab.ic.uva.nl/onderwijshub/onderwijshub/-/jobs/393708#L42)4
[1:[46](https://gitlab.ic.uva.nl/onderwijshub/onderwijshub/-/jobs/393708#L46):[54](https://gitlab.ic.uva.nl/onderwijshub/onderwijshub/-/jobs/393708#L54) PM] [semantic-release] [@semantic-release/commit-analyzer] › ℹ  The release type for the commit is patch
[1:46:54 PM] [semantic-release] [@semantic-release/commit-analyzer] › ℹ  Analyzing commit: fix(IMTEAM-1635): Pinning the semantic release version to 21.0.1 to resolve pipeline issue onderwijshub/onderwijshub!422
[1:46:54 PM] [semantic-release] [@semantic-release/commit-analyzer] › ℹ  The release type for the commit is patch
[1:46:54 PM] [semantic-release] [@semantic-release/commit-analyzer] › ℹ  Analysis of 2 commits complete: patch release
[1:46:54 PM] [semantic-release] › ✔  Completed step "analyzeCommits" of plugin "@semantic-release/commit-analyzer"
[1:46:54 PM] [semantic-release] › ℹ  The next release version is 2.31.1
[1:46:54 PM] [semantic-release] › ℹ  Start step "generateNotes" of plugin "@semantic-release/release-notes-generator"
[1:46:54 PM] [semantic-release] › ✔  Completed step "generateNotes" of plugin "@semantic-release/release-notes-generator"
[1:46:54 PM] [semantic-release] › ℹ  Start step "prepare" of plugin "@semantic-release/changelog"
[1:46:54 PM] [semantic-release] [@semantic-release/changelog] › ℹ  Update /builds/onderwijshub/onderwijshub/CHANGELOG.md
[1:46:54 PM] [semantic-release] › ✔  Completed step "prepare" of plugin "@semantic-release/changelog"
[1:46:54 PM] [semantic-release] › ℹ  Start step "prepare" of plugin "@semantic-release/exec"
[1:46:54 PM] [semantic-release] [@semantic-release/exec] › ℹ  Call script echo BUILD_VERSION=2.31.1 >> build.env
[1:46:54 PM] [semantic-release] › ✔  Completed step "prepare" of plugin "@semantic-release/exec"
[1:46:54 PM] [semantic-release] › ℹ  Start step "prepare" of plugin "@semantic-release/git"
[1:46:54 PM] [semantic-release] [@semantic-release/git] › ℹ  Found 1 file(s) to commit
[1:46:[56](https://gitlab.ic.uva.nl/onderwijshub/onderwijshub/-/jobs/393708#L56) PM] [semantic-release] [@semantic-release/git] › ℹ  Prepared Git release: 2.31.1
[1:46:56 PM] [semantic-release] › ✔  Completed step "prepare" of plugin "@semantic-release/git"
[1:46:56 PM] [semantic-release] › ℹ  Start step "generateNotes" of plugin "@semantic-release/release-notes-generator"
[1:46:56 PM] [semantic-release] › ✔  Completed step "generateNotes" of plugin "@semantic-release/release-notes-generator"
[1:46:[58](https://gitlab.ic.uva.nl/onderwijshub/onderwijshub/-/jobs/393708#L58) PM] [semantic-release] › ✔  Created tag 2.31.1
[1:46:58 PM] [semantic-release] › ℹ  Start step "publish" of plugin "@semantic-release/gitlab"
[1:46:[59](https://gitlab.ic.uva.nl/onderwijshub/onderwijshub/-/jobs/393708#L59) PM] [semantic-release] [@semantic-release/gitlab] › ℹ  Published GitLab release: 2.31.1
[1:46:59 PM] [semantic-release] › ✔  Completed step "publish" of plugin "@semantic-release/gitlab"
[1:46:59 PM] [semantic-release] › ✔  Published release 2.31.1 on default channel

With v7 we get this output which breaks the pipeline:

[8:56:34 AM] [semantic-release] › ℹ  Running semantic-release version 21.0.1
(node:69) ExperimentalWarning: Import assertions are not a stable feature of the JavaScript language. Avoid relying on their current behavior and syntax as those might change in a future version of Node.js.
(Use `node --trace-warnings ...` to show where the warning was created)
(node:69) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time
[8:56:34 AM] [semantic-release] › ✔  Loaded plugin "verifyConditions" from "@semantic-release/gitlab"
[8:56:34 AM] [semantic-release] › ✔  Loaded plugin "analyzeCommits" from "@semantic-release/commit-analyzer"
[8:56:34 AM] [semantic-release] › ✔  Loaded plugin "generateNotes" from "@semantic-release/release-notes-generator"
[8:56:34 AM] [semantic-release] › ✔  Loaded plugin "prepare" from "@semantic-release/changelog"
[8:56:34 AM] [semantic-release] › ✔  Loaded plugin "prepare" from "@semantic-release/git"
[8:56:34 AM] [semantic-release] › ✔  Loaded plugin "prepare" from "@semantic-release/exec"
[8:56:34 AM] [semantic-release] › ✔  Loaded plugin "publish" from "@semantic-release/gitlab"
[8:56:[39](https://gitlab.ic.uva.nl/onderwijshub/onderwijshub/-/jobs/393339#L39) AM] [semantic-release] › ✔  Run automated release from branch main on repository https://gitlab-ci-token:[secure]@gitlab.ic.uva.nl/onderwijshub/onderwijshub.git
[8:56:[40](https://gitlab.ic.uva.nl/onderwijshub/onderwijshub/-/jobs/393339#L40) AM] [semantic-release] › ✔  Allowed to push to the Git repository
[8:56:40 AM] [semantic-release] › ℹ  Start step "verifyConditions" of plugin "@semantic-release/gitlab"
[8:56:40 AM] [semantic-release] [@semantic-release/gitlab] › ℹ  Verify GitLab authentication (https://gitlab.ic.uva.nl/api/v4)
[8:56:40 AM] [semantic-release] › ✔  Completed step "verifyConditions" of plugin "@semantic-release/gitlab"
[8:56:40 AM] [semantic-release] › ℹ  Found git tag 2.31.0 associated with version 2.31.0 on branch main
[8:56:40 AM] [semantic-release] › ℹ  Found 1 commits since last release
[8:56:40 AM] [semantic-release] › ℹ  Start step "analyzeCommits" of plugin "@semantic-release/commit-analyzer"

We are running the latest node version as you can see in the pipeline file. Are we missing something or is v7 broken?

@dangreen
Copy link
Member

@maarten-kieft Hi. conventional-changelog-conventionalcommits v7.0.0 release contains some breaking changes. Please open issue in semantic-release repo with request to support new preset version,

@maarten-kieft
Copy link
Author

Thanks for the info, I think its already there: semantic-release/semantic-release#2929 am I correct?

@dangreen
Copy link
Member

@maarten-kieft yes

@wyardley
Copy link

Based on the wording of the breaking change in the release notes, it would not have been at all obvious that this would break semantic-release.

@dangreen
Copy link
Member

@wyardley Yes, maybe. Sorry. But I wrote that note about packages in this monorepo, I don't know how these packages used in other tools.

@wyardley
Copy link

Got it, yeah.
As best I know, this plugin was the main way to configure semantic-release to use conventional commits as its main preset vs. angular.

Thanks for the quick response and the pointer to the updated links - I hadn't thought of looking in semantic-release's issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants