-
-
Notifications
You must be signed in to change notification settings - Fork 176
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Intermittent "Unable to locate the current sha" #458
Comments
Thanks for reporting this issue, don't forget to star this project to help us reach a wider audience. |
@scottwn You might have to upgrade the checkout action as directed by the docs |
Some known conditions where this might happen:
|
@scottwn looking at this workflow execution the previous step also fails since the commit no longer exists. https://github.com/AgnostiqHQ/covalent/runs/5740169813?check_suite_focus=true#step:3:6 I’ll recommend double-checking that the branch exists and the commit isn’t squashed or deleted |
Hey, I'm still encountering this issue. Although it looks a bit different to what was originally reported here. Should I create a new issue or post information here? |
@dmohns Sure |
Similar to the OP we encounter the issue
in an un-reproducible way. Sometimes rebasing and force-pushing fixes it, sometimes merging main fixes it. But also sometimes neither of them does. The configuration I use is
Example error
Note how To investigate further I was wondering if there is a way to run this in "debug" mode? I.e. Steps taken so far:
|
I'll actually create a new issue for this, as after some investigation I think it's unrelated. |
Is there an existing issue for this?
Does this issue exist in the latest version?
Describe the bug?
On ~10% of runs, I see this output and the action fails.
I have confirmed that I'm using
fetch-depth: 0
.To Reproduce
I'm not able to reproduce the behavior. It seems to happen intermittently. Interestingly, when it does happen, re-running the action fails with the same error. But I'm not sure what causes the initial failure.
What OS are you seeing the problem on?
ubuntu-latest or ubuntu-20.04
Expected behavior?
I expect the action to be able to fetch history successfully.
Relevant log output
Anything else?
The workflow that uses the action: https://github.com/AgnostiqHQ/covalent/blob/develop/.github/workflows/version.yml
Example failed run: https://github.com/AgnostiqHQ/covalent/actions/runs/2059600589
Example successful run: https://github.com/AgnostiqHQ/covalent/actions/runs/2059933529
Code of Conduct
The text was updated successfully, but these errors were encountered: