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
Unable to get current release by commits in Github Actions #560
Since a few days ago we have multiple repositories where the Github Action is failing, resolving an empty SHA while doing the action and returning an error.
We tried to re-run an old job, which worked correctly and now it is failing with the same error.
Doing the action, calling directly the library with:
This is going to be really difficult to debug without an environment to reproduce the issue in, as it might be dependent on specific properties of commits - is there a public example or some steps I could use to reproduce this myself?
@madpah thank you for sharing - super helpful. I noticed you're running relekang/[email protected] in the pipeline which is failing - there was a patch in v7.33.1 which changed some git configuration in the Docker container used for the GitHub action (2a55fc8) to account for the recent security patches to Git; looking at this GitPython issue I think it's a good idea to rule that out first - would you mind bumping to v7.33.2 (and changing to reference python-semantic-release/python-semantic-release) and seeing if that resolves it?
On the basis of the above - @sp-ivan-alcoceba + @luchinke could you also check/update the version of python-semantic-release you are using please?
I'm seeing this error: SHA could not be resolved, git returned: b'' error when using Jenkins as well, using semantic release v7.34.6, but downgrading to v7.33.2 hasn't made a difference.
This was also the case whether the version of gitpython was 3.1.31 or 3.1.30.
Activity
luchinke commentedon Feb 22, 2023
Also happening to me. The only thing i could see that changed is the version of GitPython. (from 3.1.30 to 3.1.31)
bernardcooke53 commentedon Feb 24, 2023
This is going to be really difficult to debug without an environment to reproduce the issue in, as it might be dependent on specific properties of commits - is there a public example or some steps I could use to reproduce this myself?
madpah commentedon Feb 27, 2023
@bernardcooke53 - failing with this error on sonatype-nexus-community/ossindex-python@552a93a
bernardcooke53 commentedon Feb 27, 2023
@madpah thank you for sharing - super helpful. I noticed you're running
relekang/[email protected]in the pipeline which is failing - there was a patch inv7.33.1which changed some git configuration in the Docker container used for the GitHub action (2a55fc8) to account for the recent security patches to Git; looking at this GitPython issue I think it's a good idea to rule that out first - would you mind bumping tov7.33.2(and changing to referencepython-semantic-release/python-semantic-release) and seeing if that resolves it?On the basis of the above - @sp-ivan-alcoceba + @luchinke could you also check/update the version of
python-semantic-releaseyou are using please?sp-ivan-alcoceba commentedon Feb 28, 2023
Thanks for sharing @madpah as we didn't have any public repository to be shared. Look forward to seeing if that works.
CaibinSh commentedon Mar 1, 2023
I also got this problem. Following @bernardcooke53 's suggestion on updating python-semantic-release to v7.33.2, the issue is resolved. Thanks
ci: attempt to reolve broken CI (python-semantic-release/python-seman…
madpah commentedon Mar 2, 2023
@bernardcooke53 -
v7.33.2definitely seems to resolve the issue reported.I hit a bunch of other unrelated things now - but thanks for the time and support!
sp-ivan-alcoceba commentedon Mar 3, 2023
Thanks @bernardcooke53 @CaibinSh @madpah.
luchinke commentedon Mar 3, 2023
v7.33.2 also worked for me! 🚀
InterferencePattern commentedon Jul 10, 2023
I'm seeing this
error: SHA could not be resolved, git returned: b''error when using Jenkins as well, using semantic release v7.34.6, but downgrading to v7.33.2 hasn't made a difference.This was also the case whether the version of gitpython was 3.1.31 or 3.1.30.