Skip to content

Difference between version 7.28.1 and 7.29.0 when doing semantic-release publish #450

Closed

Description

The problem

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.

Activity

  1. ghost added
    bug
    on May 30, 2022
  2. vberlier commented on May 31, 2022

    @vberlier

    Version 7.29.0 is also broken for me.

  3. mikebrant-xdelivery commented on Jun 14, 2022

    @mikebrant-xdelivery

    Seeing similar issue as well on recent release attempts run using this library via Github Actions.

    It would appear that get_new_version is 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:

    [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

  4. mohitt commented on Jun 23, 2022

    @mohitt

    Facing same issue

  5. github-actions commented on Jul 15, 2022

    @github-actions

    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.

  6. added
    help-wanted
    on Jul 15, 2022
  7. bheijden commented on Jul 25, 2022

    @bheijden

    This comment seems related? Could you verify that?

  8. removed
    help-wanted
    on Jul 26, 2022
  9. github-actions commented on Aug 16, 2022

    @github-actions

    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.

  10. added
    help-wanted
    on Aug 16, 2022
  11. removed
    help-wanted
    on Oct 23, 2022
  12. github-actions commented on Nov 13, 2022

    @github-actions

    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.

  13. added
    help-wanted
    and removed
    help-wanted
    on Nov 13, 2022
  14. ghost closed this as completedon Dec 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions