Skip to content

Codecov uploads failing #1472

Closed
Closed
@rabernat

Description

@rabernat

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions