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

misc(ci): increase fetch-depth for codecov SHA #12079

Merged
merged 2 commits into from
Feb 10, 2021
Merged

Conversation

brendankenny
Copy link
Member

@brendankenny brendankenny commented Feb 10, 2021

Possible fix for codecov issues. It seems to have some problem with the checkout fetch-depth, but 100 seems to fit what it's asking for and codecov/codecov-action#190 has been closed for over a month now.

No reason it needs to go rooting around though, we already know the commit hash.

codecov issue screenshot

image

@brendankenny brendankenny requested a review from a team as a code owner February 10, 2021 22:33
@brendankenny brendankenny requested review from patrickhulce and removed request for a team February 10, 2021 22:33
@google-cla google-cla bot added the cla: yes label Feb 10, 2021
@paulirish
Copy link
Member

in basics we get good depth, but not in the unit jobs. there we get the default depth=1.

i'm fine with this as a fix (attempt), but.. if not.. there's a decent chance my lovely git-get-shared-history script would do the work to satisfy this as well. :)

@patrickhulce
Copy link
Collaborator

If the action fixed it maybe we should just update to the latest? We're pinned to 6004246 right now

@brendankenny
Copy link
Member Author

If the action fixed it maybe we should just update to the latest? We're pinned to 6004246 right now

I can update but from that conversation it's fixed in the bash script, and we're on Bash-20210129-7c25fce, well past where the fix supposedly landed.

@patrickhulce
Copy link
Collaborator

proof is in the pudding though, if this passes codecov checks I'll LGTM too :)

@patrickhulce
Copy link
Collaborator

we're on Bash-20210129-7c25fce, well past where the fix supposedly landed.

Wait, so our fixed action commit just updates itself and runs whatever the hell it wants? 😆

@brendankenny
Copy link
Member Author

Warning: Unexpected input(s) 'override_commit', valid inputs are ['name', 'token', 'file', 'files', 'directory', 'flags', 'path_to_write_report', 'env_vars', 'fail_ci_if_error']

haha, see if you can see the problem with these docs: https://github.com/codecov/codecov-action#arguments

Codecov's Action currently supports five inputs from the user...

Table with 30 options...

Copy link
Collaborator

@patrickhulce patrickhulce left a comment

Choose a reason for hiding this comment

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

fetch-depth: 2 LGTM assuming it works :)

(seems like it did? https://github.com/GoogleChrome/lighthouse/pull/12079/checks?check_run_id=1875496980)

@brendankenny
Copy link
Member Author

in basics we get good depth, but not in the unit jobs. there we get the default depth=1.

ah, yeah, I didn't notice that. I'll try deeper.

i'm fine with this as a fix (attempt), but.. if not.. there's a decent chance my lovely git-get-shared-history script would do the work to satisfy this as well. :)

Honestly I don't know if depth matters all that much for CI perf...between some level of caching and overhead, there's barely a difference between git clone in basics (depth 100) and unit (depth 1) and then we spend like 10x that time building LR right afterwards :)

@brendankenny brendankenny changed the title misc: manually set codecov SHA misc(CI): deepen fetch-depth for codecov SHA Feb 10, 2021
@brendankenny brendankenny changed the title misc(CI): deepen fetch-depth for codecov SHA misc(ci): deepen fetch-depth for codecov SHA Feb 10, 2021
@brendankenny brendankenny changed the title misc(ci): deepen fetch-depth for codecov SHA misc(ci): increase fetch-depth for codecov SHA Feb 10, 2021
@devtools-bot devtools-bot merged commit 229b546 into master Feb 10, 2021
@devtools-bot devtools-bot deleted the codecovfix branch February 10, 2021 23:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants