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: update checkout action to v2 #4294

Merged
merged 1 commit into from
May 18, 2020

Conversation

carlaKC
Copy link
Collaborator

@carlaKC carlaKC commented May 18, 2020

@carlaKC carlaKC requested a review from guggero May 18, 2020 09:00
@carlaKC carlaKC force-pushed the actions-updatecheckout branch from b892698 to db17750 Compare May 18, 2020 09:17
Copy link
Collaborator

@guggero guggero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for the fix 🎉

@carlaKC
Copy link
Collaborator Author

carlaKC commented May 18, 2020

Hm, old linter error is back:

Can't process result by diff processor: can't prepare diff by revgrep: could not read git repo: error executing git diff \"01f696afce2f9c0d4ed854edefa3846891d01d8a

Need to set fetch-depth again I think.

Checkout v1 has a known flake:
actions/checkout#23 (comment).

For our linter to pass, we need to checkout our full history (default
depth is 1 commit). We could set fetch-depth, but we will eventually
move that depth past the linter's start point commit and need to
implement another fix. Indead, we add an extra step in our linter to
fetch full history so that the linter reference commit is found.
@carlaKC carlaKC force-pushed the actions-updatecheckout branch from db17750 to d29271f Compare May 18, 2020 09:40
@carlaKC
Copy link
Collaborator Author

carlaKC commented May 18, 2020

Fetch depth defaults to 1, and does not seem to have an option for "no depth". Instead added an additional step to get all history so that the linter reference point is found, as in example.

Another option would be to add fetch-depth=maxint?

@carlaKC carlaKC requested a review from guggero May 18, 2020 09:45
uses: actions/checkout@v2

- name: Fetch all history for linter
run: git fetch --prune --unshallow
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice idea, I think that's good for now as we only need the full history for the linter anyway.

@carlaKC carlaKC requested a review from bhandras May 18, 2020 11:32
Copy link
Collaborator

@bhandras bhandras left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@carlaKC carlaKC merged commit bdb6a3c into lightningnetwork:master May 18, 2020
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

Successfully merging this pull request may close these issues.

3 participants