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?
@drazisil-codecov I am having the same issue right now:
https://github.com/ansible-collections/community.hashi_vault/actions/runs/3373349479/jobs/5598109920#step:5:96
Seems there's more discussion here: https://community.codecov.com/t/github-actions-post-upload-404-requires-codecov-repository-upload-token/3771
https://community.codecov.com/t/upload-issues-unable-to-locate-build-via-github-actions-api/3954/15 is the latest update on this.