codecov-action: Error: failed to properly upload
Hi,
We are getting failed to properly upload errors in our codecov reports. This is a link to a failed report: test.
The error looks like this:
[2021-12-09T21:21:20.606Z] ['verbose'] parent
76
[2021-12-09T21:21:20.607Z] ['info'] Pinging Codecov: https://codecov.io/upload/v4?package=github-action-2.1.0-uploader-0.1.13&token=*******&branch=iwahbe%2Fignore-ambient-plugins-exclude-language-plugins&build=1560590304&build_url=https%3A%2F%2Fgithub.com%2Fpulumi%2Fpulumi%2Factions%2Fruns%2F1560590304&commit=0d49bcd7594916ab15876197c806c30cd5312477&job=.github%2Fworkflows%2Frun-build-and-acceptance-tests.yml&pr=8576&service=github-actions&slug=pulumi%2Fpulumi&name=&tag=&flags=&parent=
77
[2021-12-09T21:21:20.607Z] ['verbose'] Passed token was 0 characters long
78
[2021-12-09T21:21:20.607Z] ['verbose'] https://codecov.io/upload/v4?package=github-action-2.1.0-uploader-0.1.13&branch=iwahbe%2Fignore-ambient-plugins-exclude-language-plugins&build=1560590304&build_url=https%3A%2F%2Fgithub.com%2Fpulumi%2Fpulumi%2Factions%2Fruns%2F1560590304&commit=0d49bcd7594916ab15876197c806c30cd5312477&job=.github%2Fworkflows%2Frun-build-and-acceptance-tests.yml&pr=8576&service=github-actions&slug=pulumi%2Fpulumi&name=&tag=&flags=&parent=
79
Content-Type: 'text/plain'
80
Content-Encoding: 'gzip'
81
X-Reduced-Redundancy: 'false'
82
[2021-12-09T21:21:20.804Z] ['error'] There was an error running the uploader: Error uploading to https://codecov.io: Error: There was an error fetching the storage URL during POST: 404 - Not Found - {'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')}
83
[2021-12-09T21:21:20.805Z] ['verbose'] The error stack is: Error: Error uploading to https://codecov.io: Error: There was an error fetching the storage URL during POST: 404 - Not Found - {'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')}
84
at main (/snapshot/repo/dist/src/index.js)
85
at processTicksAndRejections (node:internal/process/task_queues:96:5)
86
[2021-12-09T21:21:20.805Z] ['verbose'] End of uploader: 431 milliseconds
87
Error: Codecov: Failed to properly upload: The process '/Users/runner/work/_actions/codecov/codecov-action/v2/dist/codecov' failed with exit code 255
It looks like the same issue as https://github.com/codecov/codecov-action/issues/595. Any help would be appreciated.
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 36
- Comments: 62 (9 by maintainers)
Commits related to this issue
- ci: codecov: add token template var Fixes failed upload? https://github.com/codecov/codecov-action/issues/598 — committed to fkie-cad/dewolf-logic by sweishen 2 years ago
- Downgrades codecov action There seems to be an issue with the >v0.1.15 src: codecov/codecov-action/issues/598 — committed to brunolange/artifax by brunolange 2 years ago
- workflow(codecov): fail_ci_if_error: false due to https://github.com/codecov/codecov-action/issues/598 — committed to 5j9/wikitextparser by 5j9 2 years ago
- Ignore failures to upload codecov results Related: https://github.com/codecov/codecov-action/issues/598 — committed to ansible/ansible-lint by ssbarnea 2 years ago
- Ignore failures to upload codecov results (#2326) Related: https://github.com/codecov/codecov-action/issues/598 — committed to ansible/ansible-lint by ssbarnea 2 years ago
- Add the ${{ secrets.CODECOV_TOKEN }} for the codecov upload. The token is not required for public repos, but it makes the workflow less likely to randomly fail because of a limit in codecov CI capabi... — committed to DaviDevMod/focus-trap by DaviDevMod 2 years ago
- CI: Fix Codecov intermittently failing on coverage report upload The patch explicitly adds the use of the `with.token` option, as confirmed by others to improve the behaviour even on public repos. T... — committed to crate/crate-python by amotl 2 years ago
- CI: Fix Codecov intermittently failing on coverage report upload The patch explicitly adds the use of the `with.token` option, as confirmed by others to improve the behaviour even on public repos. T... — committed to crate/crate-python by amotl 2 years ago
- Use v3 of codecov GitHub action I'm observing a lot of: > Error: Codecov: Failed to properly upload: The process > '/Users/runner/work/_actions/codecov/codecov-action/v2/dist/codecov' > failed with ... — committed to BenjaminBossan/skops by BenjaminBossan 2 years ago
- set fail_ci_if_error to false to workaround https://github.com/codecov/codecov-action/issues/598 — committed to nnsvs/nnsvs by r9y9 2 years ago
- refactor: fail_ci_if_error: false due to https://github.com/codecov/codecov-action/issues/598 — committed to Flutter-Dart-Open-Source/rx_storage by hoc081098 2 years ago
- refactor: executeUpdate (#24) * refactor: executeUpdate * refactor: fail_ci_if_error: false due to https://github.com/codecov/codecov-action/issues/598 * export 'src/interface/transactionally_s... — committed to Flutter-Dart-Open-Source/rx_storage by hoc081098 2 years ago
- upload to codecov using the token This should fix the timeouts caused by GitHub rate-limiting CodeCov.io https://github.com/codecov/codecov-action/issues/598 — committed to common-workflow-language/cwltool by mr-c 2 years ago
- upload to codecov using the token This should fix the timeouts caused by GitHub rate-limiting CodeCov.io https://github.com/codecov/codecov-action/issues/598 — committed to common-workflow-lab/wdl-cwl-translator by mr-c 2 years ago
- upload to codecov using the token This should fix the timeouts caused by GitHub rate-limiting CodeCov.io https://github.com/codecov/codecov-action/issues/598 — committed to common-workflow-lab/wdl-cwl-translator by mr-c 2 years ago
- upload to codecov using the token (#1764) This should fix the timeouts caused by GitHub rate-limiting CodeCov.io https://github.com/codecov/codecov-action/issues/598 — committed to common-workflow-language/cwltool by mr-c 2 years ago
- upload to codecov using the token This should fix the timeouts caused by GitHub rate-limiting CodeCov.io https://github.com/codecov/codecov-action/issues/598 — committed to common-workflow-language/cwl-utils by mr-c 2 years ago
- upload to codecov using the token This should fix the timeouts caused by GitHub rate-limiting CodeCov.io https://github.com/codecov/codecov-action/issues/598 — committed to common-workflow-language/cwl-utils by mr-c 2 years ago
- add codecov secret to test workflow to avoid GitHub Action API rate-limiting failing upload (relates to https://github.com/codecov/codecov-action/issues/598) — committed to crim-ca/weaver by fmigneault 2 years ago
- fix(ci): adding CODECOV_TOKEN due to public repo file upload error - https://github.com/codecov/codecov-action/issues/598 - https://community.codecov.com/t/upload-issues-unable-to-locate-build-via-gi... — committed to ztcjoe93/tatwritescode by ztcjoe93 2 years ago
@clementchadebec our repo is public, and we don’t have a secret configured
We get this 404 error from time to time. Rather annoying if you have
fail_ci_if_error: true
There seem to be a few different “fixes” for this being posted here, but we’re just having this problem intermittently for no apparent reason.
We are getting this error on version
v0.1.16
, butversion: "v0.1.15"
in the action works fine:In the past few days the amount of failures has increased a lot. Usually a rebuild fixed it but now it takes multiple re-tries.
I’m having the same issue. Are the code-cove folks on this? what’s the status? Some times the server returns 404 😦
Hi all, I posted an update here on this issue. I know it’s not ideal, but this is the most important issue on my plate right now. Thanks for your patience as we try to fix the problem.
I just stopped using it.
New version
codecov/codecov-action@v3
works. Please take a try.I also still have this issue. I have the feeling that it goes away when I log into the admin panel of CodeCov and resync the repos, but that’s only an idea … Really annoying because it costs me many additional GitHub Actions runs.
@thomasrockhu IMO it seems that the main issue is related to https://community.codecov.com/t/upload-issues-unable-to-locate-build-via-github-actions-api/3954
Having this issue for private repo. It was because the GitHub action secrets token can be read in the plugin step.
Instead, I put the env variable
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
to the job level. It works then.Example:
This doesn’t work
This works
Hi,
I just got the same issue. Try regenerating a new secret token and change it in your settings > secrets.
Hope this helps.
I mentioned above that changing around where the coverage token was stored worked for me. However, it only worked very temporarily.
I’m encountering this issue off-and-on across multiple repos, and have been for many months now. Here’s some more details I can deduce about the nature of it.
This fixed it for me (Private repo)
This is the general solution for everyone, just create a token to remove the API rate limitation by GitHub, this fixed the issue for me too!
@dixudx we use
codecov/codecov-action@v3
and is currently occasionally failing https://github.com/rancher/dashboard/actions/workflows/test.yaml?query=is%3Afailure+branch%3AmasterUpdate: I actually seem to have found a very likely cause. I have a special check that decreases the amount of actions that run per commit for PRs.
Essentially, this cuts the amount of actions minutes used per commit in half. However, when disabling this check codecov appears to work just fine. I suppose if there’s any way fix this that’d be great. In the meantime, I’ll see if I can find a workaround such as always uploading even if tests aren’t run.
Edit: To clarify, on PRs, only actions triggered by
push
events run, as long as the PR is from the base repo. The others are skipped since they’re usually redundantFWIW a clear pattern has emerged as to which runs fail - all runs triggered by PRs fail while those simply run on push work just fine.
The 404 error has been happening a lot in the past week or so
Getting these errors today, public repo on GitHub Actions https://github.com/ansible-collections/community.hashi_vault/runs/6353992475?check_suite_focus=true#step:5:95
Edit: Started working again after a few hours 🤷♂️
I had the same issue since today, generating a new token was pointless. Using an explicit version here with
0.1.15
was actually the only workaround I found. See Sonia-corporation/stale@d466fb2
(#388).Thank you very much @rafaelcalpena!
Had to rerun the workflow. It’s up and running. Is it a Heisenbug?
I resolved the issue by changing the report extension to xml. I used to use
coverage.out
file.