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 uploads failing #1472

Closed
rabernat opened this issue Jul 19, 2023 · 4 comments · Fixed by #1473
Closed

Codecov uploads failing #1472

rabernat opened this issue Jul 19, 2023 · 4 comments · Fixed by #1473

Comments

@rabernat
Copy link
Contributor

This has been reported in two recent PR:

The failure occurs in this part of our CI

- uses: codecov/codecov-action@v3
with:
#token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos
#files: ./coverage1.xml,./coverage2.xml # optional
#flags: unittests # optional
#name: codecov-umbrella # optional
#fail_ci_if_error: true # optional (default = false)
verbose: true # optional (default = false)

And the error message looks like

[2023-07-19T13:32:37.869Z] ['info'] Pinging Codecov: https://codecov.io/upload/v4?package=github-action-3.1.4-uploader-0.6.1&token=*******&branch=docs%2Fprep-2.16.0-release&build=5599658677&build_url=https%3A%2F%2Fgithub.com%2Fzarr-developers%2Fzarr-python%2Factions%2Fruns%2F5599658677&commit=022a216cfdf6b36d4967e3953414aa27860c0c22&job=Linux+Testing&pr=1471&service=github-actions&slug=zarr-developers%2Fzarr-python&name=&tag=&flags=&parent=
[2023-07-19T13:32:37.869Z] ['verbose'] Passed token was 0 characters long
[2023-07-19T13:32:37.869Z] ['verbose'] https://codecov.io/upload/v4?package=github-action-3.1.4-uploader-0.6.1&branch=docs%2Fprep-2.16.0-release&build=5599658677&build_url=https%3A%2F%2Fgithub.com%2Fzarr-developers%2Fzarr-python%2Factions%2Fruns%2F5599658677&commit=022a216cfdf6b36d4967e3953414aa27860c0c22&job=Linux+Testing&pr=1471&service=github-actions&slug=zarr-developers%2Fzarr-python&name=&tag=&flags=&parent=
        Content-Type: 'text/plain'
        Content-Encoding: 'gzip'
        X-Reduced-Redundancy: 'false'
[2023-07-19T13:32:38.087Z] ['error'] There was an error running the uploader: Error uploading to [https://codecov.io:](https://codecov.io/) Error: There was an error fetching the storage URL during POST: 404 - {'detail': ErrorDetail(string='Unable to locate build via Github Actions API. Please upload with the Codecov repository upload token to resolve issue.', code='not_found')}
[2023-07-19T13:32:38.088Z] ['verbose'] The error stack is: Error: Error uploading to [https://codecov.io:](https://codecov.io/) Error: There was an error fetching the storage URL during POST: 404 - {'detail': ErrorDetail(string='Unable to locate build via Github Actions API. Please upload with the Codecov repository upload token to resolve issue.', code='not_found')}
    at main (/snapshot/repo/dist/src/index.js)
@d-v-b
Copy link
Contributor

d-v-b commented Jul 19, 2023

might be due to rate-limiting: codecov/codecov-action#557

@d-v-b
Copy link
Contributor

d-v-b commented Jul 19, 2023

I am just parroting what I read here, but perhaps uncommenting this line from the CI workflow would address this.

@d-v-b d-v-b mentioned this issue Jul 19, 2023
6 tasks
@rabernat
Copy link
Contributor Author

I just checked, and unfortunately CODECOV_TOKEN is not actually set as a secret on this repo or on the org.

@d-v-b
Copy link
Contributor

d-v-b commented Jul 19, 2023

I was worried about that 😆

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 a pull request may close this issue.

2 participants