Open tom-moore opened 5 days ago
I noticed that in that error message above the 'Fetching the repository' step is failing looking for the main ref. That repo uses master as the default branch rather than main. The successful runs of the action are instead running
Fetching the repository
/usr/bin/git -c protocol.version=2 fetch --no-tags --prune --no-recurse-submodules --depth=1 origin +refs/heads/master*:refs/remotes/origin/master* +refs/tags/master*:refs/tags/master*
I'm not sure what would cause the action to try and use the wrong branch reference within the same PR. It appears to correctly try to fetch master in most cases but sometimes main. We have some repos using main and some older ones master.
Hi @tom-moore, thanks for reporting this issue. I am working with the team to fix this, and we need more troubleshooting information. Please privately share the PR link and the logs over email.
Thanks, pavel.vaks@linearb.io
Thanks, done!
Describe the bug
We have gitStream configured org wide in a main cm repo. We are finding that occasionally the main gitstream.cm action fails however on the PR itself the check runs until it is skipped with a 'Check could not be completed' after 10-11 minutes (not sure why, the timeout-minutes on the main action is set to 5 though the actual action is erroring out prior anyway). Even though we have gitStream.cm as a required check, the skip means that the PR is mergable even though the actions haven't re-run on the latest update.
When looking at the action runs on the main cm repo, the failures all are failures in less than a minute with the error
The process '/usr/bin/git' failed with exit code 1
. The check on the PR is not failing however. We are using v2 of the GH action.For example:
To Reproduce
This is a slightly redacted version of our gitstream file (with org name prefix removed from the team names and replaced with).
Expected behavior
Ideally the action doesn't fail but if it does, the failure should be represented on the PR check also. As it stands it also doesn't seem to allow the PR author to re-run checks (that option doesn't do anything) so there is no way to re-trigger without a new commit.
Screenshots The action failing:
The PR checks:
Note that our rules should not let me merge (or bypass branch protections) on a gitstream failure but am given that option (I'm allowed to bypass the out of date branch GitHub check).
Additional context
It seems very similar to this issue which seems it may have been GitHub timeouts https://github.com/linear-b/gitstream/issues/317. That was noted as fixed though.