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

This plugin just silently quits #523

Closed
revjtanton opened this issue Sep 7, 2023 · 4 comments
Closed

This plugin just silently quits #523

revjtanton opened this issue Sep 7, 2023 · 4 comments

Comments

@revjtanton
Copy link

revjtanton commented Sep 7, 2023

This was working and now it just stopped. When my previously working pipelines run everything works as it did until this plugin starts...then it just ends. No error, and it even shows that it ran successfully, but no commits are analyzed and no action is taken.

this is my releaserc.yaml

preset: conventionalcommits
tagFormat: "v${version}"

branches:
  - +([0-9])?(.{+([0-9]),x).x}
  - main

plugins:
  - "@semantic-release/commit-analyzer"
  - "@semantic-release/release-notes-generator"
  - "@semantic-release/changelog"
  - "@semantic-release/npm"
  - "@semantic-release/git"

verifyConditions:
  - "@semantic-release/changelog"
  - "@semantic-release/npm"
  - "@semantic-release/git"

analyzeCommits:
  - path: "@semantic-release/commit-analyzer"

generateNotes:
  - path: "@semantic-release/release-notes-generator"

prepare:
  - path: "@semantic-release/changelog"
    changelogFile: "CHANGELOG.md"
  - path: "@semantic-release/npm"
  - path: "@semantic-release/git"

I am running this in Jenkins via docker so it runs like this:

                            git config --global --add safe.directory ${WORKSPACE}
                            git config --global user.email "${userEmail}"
                            git config --global user.name "${userName}"
                            export GH_TOKEN=${GH_TOKEN}
                            export GH_URL=https://github.*****/api/v3 
                            npx semantic-release --debug

Now there are a lot of backed up commits (25) since this started silently failing so I'm not going to put the entire output here, but here's what I mean by silently failing/stopping:

[6:08:23 PM] [semantic-release] › ℹ  Start step "analyzeCommits" of plugin "@semantic-release/commit-analyzer"
[Pipeline] }
[Pipeline] // withCredentials
[Pipeline] }
[Pipeline] // script
[Pipeline] }
[Pipeline] // container
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // withEnv
[Pipeline] }
[Pipeline] // withCredentials
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline

I'm tearing my hair out debugging...any advice, guidance, or help would be greatly appreciated!

@revjtanton
Copy link
Author

I did see this issue #177 but have ruled that out. I have tried the --no-ci flag and that did not change anything.

@revjtanton
Copy link
Author

though it looked like this plugin was the culprit, I do not believe that it is. it looks like the issue is coming from somewhere else.

@amorphina
Copy link

I had the same issue since 28.08.2023, when we had several semantic release plugins upgraded (commit-analyzer included). After several tests it actually turned out that the issue is coming from the version of conventional-changelog-conventionalcommits, which we upgraded from 6.1.0 to 7.0.1. Rolled back to 6.1.0 fixed the issue.

@travi
Copy link
Member

travi commented Sep 12, 2023

see semantic-release/semantic-release#2929

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

No branches or pull requests

3 participants