python-semantic-release: Unexpected failure with version command

Question

I need some help troubleshooting an issue I’m having. Versioning is working great up until the point where psr tries to create the version tag.

  • The merge request runs the pipeline successfully but does not create a version - good
  • The merge to main runs the pipeline where the only changes are the commits - good
  • The pipeline is run for the version creation and pyproject.toml/GHANGELOG.md are modified - good
  • Version tag is created and the pipeline run and fails. - bad

image

The failure just says ERROR: Job failed: exit code 1 with no other clue as to what’s wrong.

image

How do I further troubleshoot this?

Configuration

Semantic Release Configuration
[tool.semantic_release]
version_variables = ["pyproject.toml:version"]

[tool.semantic_release.branches.main]
match = "(main|master)"
prerelease = false

[tool.semantic_release.commit_author]
env = "GIT_COMMIT_AUTHOR"
default = "semantic-release <semantic-release>"

[tool.semantic_release.remote]
type = "gitlab"

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 32 (17 by maintainers)

Most upvoted comments

@daniel-albuschat, I haven’t gotten around to that but I did have it as an action item one of these days.

There is a way to check if the repo is already unshallowed and should be inluded as a bash conditional before the execution but I can’t remember what it is at the moment. Will check later.