codecov/uploader

Upload from Github actions without token fails

Flamefire opened this issue · 4 comments

Describe the bug

Recently the codecov upload fails to work on PRs build via Github actions:

[2022-10-21T20:18:16.013Z] ['info'] Pinging Codecov: https://codecov.io/upload/v4?package=uploader-0.3.2&token=*******&branch=freebsd&build=3299962316&build_url=https%3A%2F%2Fgithub.com%2Fboostorg%2Flocale%2Factions%2Fruns%2F3299962316&commit=3ee3e0b1c1c406460ad59b009abfb7b9885ea5db&job=CI&pr=122&service=github-actions&slug=boostorg%2Flocale&name=Github+Actions&tag=&flags=&parent=
[2022-10-21T20:18:16.013Z] ['verbose'] Passed token was 0 characters long
[2022-10-21T20:18:16.013Z] ['verbose'] https://codecov.io/upload/v4?package=uploader-0.3.2&branch=freebsd&build=3299962316&build_url=https%3A%2F%2Fgithub.com%2Fboostorg%2Flocale%2Factions%2Fruns%2F3299962316&commit=3ee3e0b1c1c406460ad59b009abfb7b9885ea5db&job=CI&pr=122&service=github-actions&slug=boostorg%2Flocale&name=Github+Actions&tag=&flags=&parent=
        Content-Type: 'text/plain'
        Content-Encoding: 'gzip'
        X-Reduced-Redundancy: 'false'
[2022-10-21T20:18:21.242Z] ['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')}

This used to work, but no idea what changed.

Is it possible that parent needs to be set by the GHA provider?

To Reproduce

See e.g. https://github.com/boostorg/locale/actions/runs/3299962316/jobs/5443927946

Hi @Flamefire

The logs say the same as the uploader that we couldn't reach GitHub. Are you still seeing this?