You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Difference between version 7.28.1 and 7.29.0 when doing semantic-release publish #450
I am taking semantic release in use at first and when use version 7.28.1 on my project and run: semantic-release publish -v DEBUG --noop, I see something like this:
debug: evaluate_version_bump -> minor
debug: get_new_version(0.1.0, 'minor', False)
debug: get_new_version -> 0.2.0
debug: get_repository_owner_and_name()
debug: get_repository_owner_and_name -> ('tatu-aalto', 'failures-analysis')
debug: Running publish on branch main
debug: checkout(main)
debug: checkout -> M poetry.lock
debug: M pyproject.toml
debug: M utest/test_similarity.py
debug: Your branch is ahead of 'upstream/main' by 1 commit.
debug: (use "git push" to publish your local commits)
warning: No operation mode. Should have bumped from 0.1.0 to 0.2.0
Which is what I did expect to see. But when I run same command by using 7.29.0 I see
debug: Ignoring UnknownCommitMessageStyleError: Unable to parse the given commit message: Initial commit
debug: Commits found since last release: 56
debug: evaluate_version_bump -> minor
debug: get_new_version(0.1.0, '7.29.0', 'minor', False)
and then program exists with return code 1. The full log with version 7.29.0, can be found from GitHub actions.
Expected behavior
I did 7.29.0 and 7.28.1 work in similar way.
Additional context
I did run the code with debugger and 7.29.0 fails on some sanity check and that code was added by #435 but can not figure out how it should be fixed.
It is unclear why the most recent release version as determined by the 2nd parameter is not being calculated correctly.
Our config is as follows:
[semantic_release]
branch = main
version_variable = setup.py:__version__
upload_to_pypi = false
We are able to perform release using version_source = tag to look for latest release from tag instead of commits, but this prevent automatic update of our __version__ value.
Basically it seems something is wrong in getting last release from commits.
I was able to get release working by pinning my version to v7.28.1
Activity
vberlier commentedon May 31, 2022
Version
7.29.0is also broken for me.mikebrant-xdelivery commentedon Jun 14, 2022
Seeing similar issue as well on recent release attempts run using this library via Github Actions.
It would appear that
get_new_versionis being passed 2nd parameter that is incorrect, like...debug: get_new_version('1.39.0', '1.16.0', None, False)and having error raised at code linked below...
https://github.com/relekang/python-semantic-release/blob/3329eeffb077f628e4a965bc7fd922d09d6b63da/semantic_release/history/__init__.py#L286
It is unclear why the most recent release version as determined by the 2nd parameter is not being calculated correctly.
Our config is as follows:
We are able to perform release using
version_source = tagto look for latest release from tag instead of commits, but this prevent automatic update of our__version__value.Basically it seems something is wrong in getting last release from commits.
I was able to get release working by pinning my version to v7.28.1
chore: rollback python-semantic-release
rollback python-semantic-release to `v7.28.1`
mohitt commentedon Jun 23, 2022
Facing same issue
github-actions commentedon Jul 15, 2022
This bug report has been labelled as help wanted since there has been no activity in the last 3 weeks. It will not be closed.
bheijden commentedon Jul 25, 2022
This comment seems related? Could you verify that?
github-actions commentedon Aug 16, 2022
This bug report has been labelled as help wanted since there has been no activity in the last 3 weeks. It will not be closed.
github-actions commentedon Nov 13, 2022
This bug report has been labelled as help wanted since there has been no activity in the last 3 weeks. It will not be closed.