Skip to content

7.31.3 keeps making new releases #490

Closed
@zjgoodman

Description

@zjgoodman

The problem

We noticed today that our CICD generated 10+ new releases

image

After looking into it we've discovered that the problem is the newest version of SR itself. The current version of SR (7.31.3) keeps making new releases even if we don't push any new commits. Just running it on the clean master branch causes it to make a new release.

❯ pip list | grep python-semantic-release                                                                                                                        
python-semantic-release 7.31.3

❯ semantic-release publish --noop                                                                                                                                   
Current version: 14.0.0, Current release version: 14.0.0
warning: No operation mode. Should have bumped from 14.0.0 to 15.0.0

The previous version (7.31.2) works as expected

❯ pip list | grep python-semantic-release                                                                                                                    
python-semantic-release 7.31.2

❯ semantic-release publish --noop                                                                                                                                   
Current version: 14.0.0, Current release version: 14.0.0
No release will be made.

A clear and concise description of what the bug is.

Expected behavior

If I run semantic release without changing any of the code in master then I won't get a release. But the actual behavior is we do get a release. This is not the case for previous versions of SR.

Additional context

Here's the command with debug verbosity

❯ semantic-release publish --verbosity=DEBUG --noop  
debug: get_current_version_by_config_file()
debug: Parsing current version: path=PosixPath('src/myproject/__init__.py') pattern='__version__ *[:=] *["\\\'](\\d+\\.\\d+\\.\\d+(-dev\\.\\d+)?)["\\\']' num_matches=1
debug: Parsing current version: path=PosixPath('pyproject.toml') pattern='version *[:=] *["\\\'](\\d+\\.\\d+\\.\\d+(-dev\\.\\d+)?)["\\\']' num_matches=1
debug: Regex matched version: 14.0.0
debug: get_current_version_by_config_file -> 14.0.0
debug: get_current_release_version_by_commits()
debug: Checking commit 797c773f6be96b0224cdba6e05b1dad20b142ab7
debug: Version matches regex 14.0.0
debug: 
debug: Automatically generated by python-semantic-release
debug: get_current_release_version_by_commits -> 14.0.0
Current version: 14.0.0, Current release version: 14.0.0
debug: evaluate_version_bump('14.0.0', None)
debug: Reference v14.0.0 does not exist, considering entire history
debug: parse_commit_message('14.0.0
debug: 
debug: Automatically generated by python-semantic-release')
debug: Ignoring UnknownCommitMessageStyleError: Unable to parse the given commit message: 14.0.0
debug: 
debug: Automatically generated by python-semantic-release
debug: parse_commit_message('13.0.0
debug: 
debug: Automatically generated by python-semantic-release')
debug: Ignoring UnknownCommitMessageStyleError: Unable to parse the given commit message: 13.0.0
debug: 
debug: Automatically generated by python-semantic-release
debug: parse_commit_message('12.0.0
debug: 
debug: Automatically generated by python-semantic-release')
debug: Ignoring UnknownCommitMessageStyleError: Unable to parse the given commit message: 12.0.0
debug: 
debug: Automatically generated by python-semantic-release
debug: parse_commit_message('11.0.0
debug: 
debug: Automatically generated by python-semantic-release')
debug: Ignoring UnknownCommitMessageStyleError: Unable to parse the given commit message: 11.0.0
debug: 
debug: Automatically generated by python-semantic-release
debug: parse_commit_message('10.0.0
debug: 
debug: Automatically generated by python-semantic-release')
debug: Ignoring UnknownCommitMessageStyleError: Unable to parse the given commit message: 10.0.0
debug: 
debug: Automatically generated by python-semantic-release
debug: parse_commit_message('9.0.0
debug: 
debug: Automatically generated by python-semantic-release')
debug: Ignoring UnknownCommitMessageStyleError: Unable to parse the given commit message: 9.0.0
debug: 
debug: Automatically generated by python-semantic-release
debug: parse_commit_message('8.0.0
debug: 
debug: Automatically generated by python-semantic-release')
debug: Ignoring UnknownCommitMessageStyleError: Unable to parse the given commit message: 8.0.0
debug: 
debug: Automatically generated by python-semantic-release
debug: parse_commit_message('7.0.0
debug: 
debug: Automatically generated by python-semantic-release')
debug: Ignoring UnknownCommitMessageStyleError: Unable to parse the given commit message: 7.0.0
debug: 
debug: Automatically generated by python-semantic-release
debug: parse_commit_message('6.0.0
debug: 
debug: Automatically generated by python-semantic-release')
debug: Ignoring UnknownCommitMessageStyleError: Unable to parse the given commit message: 6.0.0
debug: 
debug: Automatically generated by python-semantic-release
debug: parse_commit_message('5.0.0
debug: 
debug: Automatically generated by python-semantic-release')
debug: Ignoring UnknownCommitMessageStyleError: Unable to parse the given commit message: 5.0.0
debug: 
debug: Automatically generated by python-semantic-release
debug: parse_commit_message('4.0.0
debug: 
debug: Automatically generated by python-semantic-release')
debug: Ignoring UnknownCommitMessageStyleError: Unable to parse the given commit message: 4.0.0
debug: 
debug: Automatically generated by python-semantic-release
debug: parse_commit_message('3.0.0
debug: 
debug: Automatically generated by python-semantic-release')
debug: Ignoring UnknownCommitMessageStyleError: Unable to parse the given commit message: 3.0.0
debug: 
debug: Automatically generated by python-semantic-release
debug: parse_commit_message('2.0.0
debug: 
debug: Automatically generated by python-semantic-release')
debug: Ignoring UnknownCommitMessageStyleError: Unable to parse the given commit message: 2.0.0

# -----------------------------
# skipping the next 140 commits
# -----------------------------

debug: Ignoring UnknownCommitMessageStyleError: Unable to parse the given commit message: root commit
debug: Commits found since last release: 140
debug: evaluate_version_bump -> major
debug: get_new_version('14.0.0', '14.0.0', 'major', False, True)
debug: get_new_version -> 15.0.0
debug: get_repository_owner_and_name()
debug: get_repository_owner_and_name -> ('mycompany/myorg', 'myproject')
debug: Running publish on branch master
debug: checkout(master)
debug: checkout -> Your branch is up to date with 'origin/master'.
warning: No operation mode. Should have bumped from 14.0.0 to 15.0.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working properly

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions