loud-laptop-17949
10/28/2021, 5:15 PM--changed-since
in our CI system and and get this error
Error: 6.70 [ERROR] git --git-dir=/home/runner/work/color/color/.git --work-tree=/home/runner/work/color/color diff --name-only master...HEAD -- /home/runner/work/color/color failed with exit code 128
.
Not sure how to debug this further without a more detailed error message?enough-analyst-54434
10/28/2021, 5:16 PMenough-analyst-54434
10/28/2021, 5:16 PMloud-laptop-17949
10/28/2021, 5:17 PMfetch-depth: 0
in this github action. Also do a `git fetch origin ${{ gitbhub.base_ref }}
to make sure that reference is thereenough-analyst-54434
10/28/2021, 5:18 PMenough-analyst-54434
10/28/2021, 5:19 PMenough-analyst-54434
10/28/2021, 5:21 PMenough-analyst-54434
10/28/2021, 5:39 PM$ ./pants --changed-since=upstream/main fmt lint check test
...
File "/home/jsirois/dev/pantsbuild/pants/src/python/pants/vcs/git.py", line 82, in _check_result
raise GitException(failure_msg or f"{cmd_str} failed with exit code {result}")
pants.vcs.git.GitException: git --git-dir=/home/jsirois/dev/pantsbuild/pants/.git --work-tree=/home/jsirois/dev/pantsbuild/pants diff --name-only upstream/main...HEAD -- /home/jsirois/dev/pantsbuild/pants failed with exit code 128
Use -ldebug for more logs.
See <https://www.pantsbuild.org/v2.8/docs/troubleshooting> for common issues.
Consider reaching out for help: <https://www.pantsbuild.org/v2.8/docs/getting-help>
Just like you. And that's horrible.
Running the command line bare I get:
$ git --git-dir=/home/jsirois/dev/pantsbuild/pants/.git --work-tree=/home/jsirois/dev/pantsbuild/pants diff --name-only upstream/main...HEAD -- /home/jsirois/dev/pantsbuild/pants
fatal: bad revision 'upstream/main...HEAD'
Which is better - I'm working in a clone with just an origin remote and no upstream remote.
We should be outputting the stderr of the failure: https://github.com/pantsbuild/pants/issues/13396loud-laptop-17949
10/28/2021, 5:50 PMenough-analyst-54434
10/28/2021, 5:57 PMloud-laptop-17949
10/28/2021, 6:22 PMloud-laptop-17949
10/28/2021, 6:34 PMgit fetch origin master:master
to get a reference therebusy-vase-39202
10/28/2021, 7:40 PMloud-laptop-17949
10/28/2021, 9:06 PMenough-analyst-54434
11/15/2021, 6:24 PMloud-laptop-17949
11/15/2021, 7:14 PM