Skip to content
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

GitHub Actions workflow: git ls-tree error on wily diff command #178

Open
mbell-volpe opened this issue Jun 29, 2023 · 3 comments
Open

GitHub Actions workflow: git ls-tree error on wily diff command #178

mbell-volpe opened this issue Jun 29, 2023 · 3 comments

Comments

@mbell-volpe
Copy link

Seeking guidance for git command error on _wily diff src/ -r HEAD^1 command that seems like some of the references may not be correct for the git tree object being passed as an argument:
git-cmd-error-ls-tree

@tonybaloney
Copy link
Owner

The checkout action in the workflow needs extra parameters. By default GitHub will do a shallow clone (ie not check out the history).

See https://wily.readthedocs.io/en/latest/ci.html#github-workflows

So your checkout action needs to look like this:

      - name: Checkout repository
        uses: actions/checkout@v2
        with:
          fetch-depth: 0
          ref: ${{ github.event.pull_request.head.ref }}

@mbell-volpe
Copy link
Author

Thanks! I included the extra parameters; however, I'm getting no data collected messages due to main (our renamed master, which I also tried) not being an object with the line: wily diff src/our_path_specific_filename.py/ -r main.
image
image

This is what outputs by omitting -r main (or master) from wily diff src/our_path_specific_filename.py/ -r main :

image

Would you be able to advise on why 'no data is being collected'?

Also, on wily build src/ test/ command, is wily creating a folder for these metrics to be output or should test/ already be created in our repo? Thanks for the clarification on this.

@mbell-volpe
Copy link
Author

I did try following up with the alternate syntax: wily diff src/our_path_filename.py/ -r HEAD^1 but still getting the no data collected in above/previous images.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants