Skip to content

Workflows with python-semantic-release broke on 03.05.22 #442

Closed

Description

@eifinger

The problem

All my repo have a nightly scheduled workflow. I noticed that all which use this Github Action broke tonight. I struggle to find what the actual error is. Here is one example where the workflow broke: https://github.com/eifinger/hass-here-weather/runs/6267125839?check_suite_focus=true
I am running on the master branch so I think the latest commit broke something.

Expected behavior

The Github Action starts, checks commits, sees there is nothing to do and exits successfully.

Additional context

Activity

  1. added
    bug
    on May 3, 2022
  2. martolini commented on May 3, 2022

    @martolini

    Experiencing the same issue, here.

  3. ngshiheng commented on May 5, 2022

    @ngshiheng

    I dived a little bit deeper into this issue, and here's what I found:

  4. H0R5E commented on May 17, 2022

    @H0R5E
    Contributor

    EDIT: Removed pointless comment

    I've pinned semantic release to version 7.28.1 as a workaround:

        - name: Python Semantic Release
          uses: relekang/[email protected]
          with:
            github_token: ${{ secrets.GITHUB_TOKEN }}
            repository_username: __token__
            repository_password: ${{ secrets.PYPI_TOKEN }}
  5. SoundsSerious commented on May 18, 2022

    @SoundsSerious

    same here, not sure what to do about it besides downgrade

  6. SoundsSerious commented on May 18, 2022

    @SoundsSerious

    I can confirm @H0R5E's downgrade works

  7. sbrugman commented on May 27, 2022

    @sbrugman

    Same issue here. python-semantic-release picked up the version of another package that was linked in one of the commits.

  8. ajite commented on Jun 2, 2022

    @ajite

    Same issue here. The downgrade worked.

  9. mrlubos commented on Jun 7, 2022

    @mrlubos

    +1

  10. added a commit that references this issue on Jun 25, 2022
  11. github-actions commented on Jun 29, 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.

  12. added
    help-wanted
    on Jun 29, 2022
  13. added a commit that references this issue on Jul 10, 2022
  14. added a commit that references this issue on Jul 14, 2022
  15. browniebroke commented on Jul 14, 2022

    @browniebroke
    Contributor

    I've pinned PSR to be <7.29 as well, but unfortunately this is also affected by the recent issue with packaging (#468). People in this thread were correct, it's a version parsing issue when one of the commits contain a version bump.

    I think I fixed it in #472

    Just tested it on one of my projects and it worked: https://github.com/browniebroke/deezer-oauth-cli/runs/7349125319?check_suite_focus=true#step%3A4%3A235=

    EDIT: See below message. Although my fix worked in simple cases, it didn't work with a more recent version of PSR, and @eifinger fixed it.

  16. removed
    help-wanted
    on Jul 15, 2022
  17. ajite commented on Jul 19, 2022

    @ajite

    @browniebroke thanks. I tried on it on one of my repo and it works.

  18. eifinger commented on Jul 21, 2022

    @eifinger
    ContributorAuthor

    I opened #476 to add the commit_subject functionality to @browniebroke work. I was using this feature and missing it.

    You can use my action:

    uses: eifinger/python-semantic-release@fix/ignore-deb-version-commits
    

    I tested it on one of my projects:

    https://github.com/eifinger/here_routing/runs/7449031696?check_suite_focus=true

  19. chanind commented on Jul 23, 2022

    @chanind

    For some reason @browniebroke's fix didn't work for me. I had to branch off the 7.28.1 release and manually add the packaging fix in. In case it's useful for anyone else my fork can be used in a github action with uses: chanind/python-semantic-release@7-28-1-packaging-fix

  20. eifinger commented on Jul 23, 2022

    @eifinger
    ContributorAuthor

    @chanind what didn't work for you with my fix?

  21. chanind commented on Jul 23, 2022

    @chanind

    I didn't try your version, I just tried browniebroke/python-semantic-release@fix/version-parsing-commit. You can see the output here, I'm not sure why it didn't work but it had the same issue with incorrectly parsing version from commits: https://github.com/chanind/fuzzy-reasoner/runs/7480887304?check_suite_focus=true

  22. browniebroke commented on Jul 24, 2022

    @browniebroke
    Contributor
  23. chanind commented on Jul 24, 2022

    @chanind

    I didn't try the eifinger version - that link is using chanind/python-semantic-release@7-28-1-packaging-fix.

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