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

Codecov CI error uploading report #2008

Closed
echedey-ls opened this issue Apr 12, 2024 · 3 comments · Fixed by #2022
Closed

Codecov CI error uploading report #2008

echedey-ls opened this issue Apr 12, 2024 · 3 comments · Fixed by #2022
Labels
build tools Pipelines, CI, GH actions
Milestone

Comments

@echedey-ls
Copy link
Contributor

Describe the bug
Originally from #2006 (comment), but also seen at #2007.
The reported error is related to upload.

To Reproduce
Steps to reproduce the behavior:

  1. Go to any PR updated on the last days and see the failing workflow.

Expected behavior
To be uploaded correctly.

Screenshots
image

Versions:
N/A

Additional context
These links may be useful:

Pinging @pvlib/maintainers, I can't be of help with this issue.

@kandersolar kandersolar added the build tools Pipelines, CI, GH actions label Apr 29, 2024
@kandersolar kandersolar added this to the v0.10.5 milestone Apr 29, 2024
@kandersolar
Copy link
Member

Thanks @echedey-ls. Looks like codecov very recently made it easier for us to solve this problem: PRs from forks no longer require a codecov token to upload coverage data. It seems to be working, at least in #2022.

However, coverage also gets uploaded when new commits land on main. From the codecov docs, I think these uploads will not be able to use the "tokenless" route available for PRs. For that, I have added a github secret with a codecov upload token.

With those two changes, I think this problem will be solved. I will proceed with merging #2022 and see if things work as expected on main.

@kandersolar
Copy link
Member

Looks like I neglected to make the environment variable available to the upload step. Follow-up PR incoming...

@kandersolar
Copy link
Member

Looks like everything is working after the second PR (#2024): https://app.codecov.io/gh/pvlib/pvlib-python/commit/25ec2968d97af1a0ad9814dc559b7ebaaaa619e2

PR uploads may still randomly fail; I don't think there's much we can do about that, at least for now. Re-triggering failed jobs continues to be the workaround.

Thanks @echedey-ls for making an issue :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build tools Pipelines, CI, GH actions
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants