Codecov: Failed to properly upload

Before submitting a topic, please confirm the following

I have searched for similar issues before creating this topic.
I have verified that my repository is using the Codecov GitHub app, if using GitHub
I have validated my codecov.yaml configuration file.
I have filled out the below sections to the best of my ability.
I understand that the community boards are a free, best-effort tool. While we hope to have someone on the Codecov team resolve your problem quickly, this is not always possible.


Somewehat recently, CodeCov upload operations for a public repository using the appropriate GH action seem to randomly fail to upload results. The error message is often about a gateway timeout, or google storage APIs failing to accept the request.


An example: fix tests; minor polish and cleanup · mmoayyed/cas@e47371a · GitHub

Here is another run where you’d see many CodeCov upload failures:

Codecov Output

==> linux OS detected
==> SHASUM file signed by key id 806bb28aed779869
==> Uploader SHASUM verified (671cf0d89d1c149f57e1a9a31f3fb567ab4209e4d5829f13ff7b8c104db7131f  codecov)
==> Running version latest
==> Running version v0.4.0
/home/runner/work/_actions/codecov/codecov-action/v3/dist/codecov -n ldapauthentication -Q github-action-3.1.1 -Z -f ./build/reports/jacoco/jacocoRootReport/jacocoRootReport.xml -F ldapauthentication
[2023-03-29T14:43:53.002Z] ['info'] 
     _____          _
    / ____|        | |
   | |     ___   __| | ___  ___ _____   __
   | |    / _ \ / _` |/ _ \/ __/ _ \ \ / /
   | |___| (_) | (_| |  __/ (_| (_) \ V /
    \_____\___/ \__,_|\___|\___\___/ \_/

  Codecov report uploader 0.4.0
[2023-03-29T14:43:53.026Z] ['info'] => Project root located at: /home/runner/work/cas/cas
[2023-03-29T14:43:53.031Z] ['info'] ->  Token found by environment variables
[2023-03-29T14:43:53.080Z] ['info'] Searching for coverage files...
[2023-03-29T14:43:55.359Z] ['info'] => Found 1 possible coverage files:
[2023-03-29T14:43:55.359Z] ['info'] Processing ./build/reports/jacoco/jacocoRootReport/jacocoRootReport.xml...
[2023-03-29T14:43:55.583Z] ['info'] Detected GitHub Actions as the CI provider.
[2023-03-29T14:43:55.585Z] ['info'] Pinging Codecov:*******&branch=master&build=4554798272&***%2Fcas%2Factions%2Fruns%2F4554798272&commit=e47371a75a0454b7d1baa1d7e6c616f663088c2c&job=Tests+-+Ubuntu&pr=&service=github-actions&slug=***%2Fcas&name=ldapauthentication&tag=&flags=ldapauthentication&parent=
[2023-03-29T14:43:56.543Z] ['info']***/cas/commit/e47371a75a0454b7d1baa1d7e6c616f663088c2c
[2023-03-29T14:43:56.543Z] ['info'] Uploading...
[2023-03-29T14:44:01.553Z] ['error'] There was an error running the uploader: Error uploading to Error: getaddrinfo EAI_AGAIN
Error: Codecov: Failed to properly upload: The process '/home/runner/work/_actions/codecov/codecov-action/v3/dist/codecov' failed with exit code 255

Additional Information

This seems to be quite random, and does not happen every time, for the same job, etc. I wonder if this can perhaps be improved with some sort of retry mechanism, for which I see there is a request on GH.

@mmoayyed I have no idea why this is, I’ll take a look tomorrow morning

Hi @mmoayyed, ok, it looks like for the 2nd link where we are returning There was an error fetching the storage URL during POST: 502 - that there was a short bit of downtime on our side.

The 1st link reads like a DNS error getaddrinfo EAI_AGAIN which I think would probably be outside our control. I can’t imagine that that should happen again. Please correct me if I’m wrong.

Thank you @tom! I will keep an eye on it and will report back if this popped up again.

1 Like