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.
Description
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.
Here is another run where you’d see many CodeCov upload failures:
Codecov Output
==> linux OS detected
https://uploader.codecov.io/latest/linux/codecov.SHA256SUM
==> 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:
./build/reports/jacoco/jacocoRootReport/jacocoRootReport.xml
[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: https://codecov.io/upload/v4?package=github-action-3.1.1-uploader-0.4.0&token=*******&branch=master&build=4554798272&build_url=https%3A%2F%2Fgithub.com%2F***%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'] https://app.codecov.io/github/***/cas/commit/e47371a75a0454b7d1baa1d7e6c616f663088c2c
https://storage.googleapis.com/codecov/v4/raw/2023-03-29/73A1E7171A8C172C16497ED22FF80BC3/e47371a75a0454b7d1baa1d7e6c616f663088c2c/8a8a7721-80c6-4bbc-922b-4a9dbed6bda0.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EJOGFN2JQ4OCTGA2MU5AEIT7OT5Z7HTFOAN2SPG4NWSN2UJYOY5U6LZQ%2F20230329%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20230329T144356Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=780d637db151da8c841eb84a7dddc248e519615da305351397c9461482fa8e1c
[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 https://codecov.io: Error: getaddrinfo EAI_AGAIN storage.googleapis.com
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.
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 storage.googleapis.com 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.