feedback
feedback copied to clipboard
Codecov cli coverage upload 500 status
Describe the bug Uploading coverage using codecov cli is returning 500 errors
Run curl -Os https://cli.codecov.io/v10.0.1/linux/codecov
Run shared_flags="--auto-load-params-from=GithubActions --codecov-yml-path=${CODECOV_YML} --verbose"
--file=/tmp/av_binary_deps_coverage.dat
debug - 2025-05-14 21:47:57,817 -- Using ci service from provider name: GithubActions
debug - 2025-05-14 21:47:57,819 -- versioning system found: <class 'codecov_cli.helpers.versioning_systems.GitVersioningSystem'>
debug - 2025-05-14 21:47:57,819 -- Loading config from /tmp/generated_codecov.yml
debug - 2025-05-14 21:47:57,890 -- Starting create commit process --- {"auto_load_params_from": "GithubActions", "codecov_yml_path": "/tmp/generated_codecov.yml", "verbose": true, "enterprise_url": null, "disable_telem": false, "version": "cli-10.0.1", "command": "create-commit", "slug": <redacted>", "commit_sha": "fb0f8f836b8eb30bd653a3f4b8198e36d64bb376", "git_service": "github", "parent_sha": null, "pull_request_number": "51159", "branch": "user/ryang/rm_docker_unused", "fail_on_error": false}
info - 2025-05-14 21:47:57,890 -- Using token to create a commit for protected branch `user/ryang/rm_docker_unused`
info - 2025-05-14 21:47:58,162 -- Process Commit creating complete
debug - 2025-05-14 21:47:58,162 -- Commit creating result --- {"result": "RequestResult(error=None, warnings=[], status_code=202, text='{\"status\":\"queued\"}\\n')"}
Sentry is attempting to send 2 pending events
Waiting up to 2 seconds
Press Ctrl-C to quit
debug - 2025-05-14 21:47:58,861 -- Using ci service from provider name: GithubActions
debug - 2025-05-14 21:47:58,862 -- versioning system found: <class 'codecov_cli.helpers.versioning_systems.GitVersioningSystem'>
debug - 2025-05-14 21:47:58,862 -- Loading config from /tmp/generated_codecov.yml
debug - 2025-05-14 21:47:58,936 -- Starting create report process --- {"auto_load_params_from": "GithubActions", "codecov_yml_path": "/tmp/generated_codecov.yml", "verbose": true, "enterprise_url": null, "disable_telem": false, "version": "cli-10.0.1", "command": "create-report", "slug": "<redacted>", "commit_sha": "fb0f8f836b8eb30bd653a3f4b8198e36d64bb376", "git_service": "github", "code": "default", "pull_request_number": "51159", "fail_on_error": false}
info - 2025-05-14 21:47:59,223 -- Process Report creating complete
debug - 2025-05-14 21:47:59,2[24](https://github.com/<redacted>actions/runs/15031698369/job/42245612680?pr=51159#step:19:26) -- Report creating result --- {"result": "RequestResult(error=None, warnings=[], status_code=202, text='{\"status\":\"queued\"}\\n')"}
info - 2025-05-14 21:47:59,224 -- Finished creating report successfully --- {"response": "{\"status\":\"queued\"}\n"}
debug - 2025-05-14 21:47:59,899 -- Using ci service from provider name: GithubActions
debug - 2025-05-14 21:47:59,900 -- versioning system found: <class 'codecov_cli.helpers.versioning_systems.GitVersioningSystem'>
debug - 2025-05-14 21:47:59,901 -- Loading config from /tmp/generated_codecov.yml
debug - 2025-05-14 21:47:59,[97](https://github.com/<redacted>/actions/runs/15031698369/job/42245612680?pr=51159#step:19:100)3 -- Starting base picking process --- {"auto_load_params_from": "GithubActions", "codecov_yml_path": "/tmp/generated_codecov.yml", "verbose": true, "enterprise_url": null, "disable_telem": false, "version": "cli-10.0.1", "command": "pr-base-picking", "slug": "<redacted>", "base_sha": "2eb0b15fd0ed643ecade2ef48af4743645536564", "service": "github", "pr": "51159"}
warning - 2025-05-14 21:48:00,194 -- Response status code was 500. --- {"retry": 0}
warning - 2025-05-14 21:48:00,194 -- Request failed. Retrying --- {"retry": 0}
warning - 2025-05-14 21:48:00,870 -- Response status code was 500. --- {"retry": 1}
warning - 2025-05-14 21:48:00,870 -- Request failed. Retrying --- {"retry": 1}
warning - 2025-05-14 21:48:02,038 -- Response status code was 500. --- {"retry": 2}
warning - 2025-05-14 21:48:02,038 -- Request failed. Retrying --- {"retry": 2}
Traceback (most recent call last):
File "codecov_cli/main.py", line 97, in <module>
File "codecov_cli/main.py", line 93, in run
File "click/core.py", line 1157, in __call__
File "click/core.py", line 1078, in main
File "click/core.py", line 1688, in invoke
File "click/core.py", line 1434, in invoke
File "click/core.py", line 783, in invoke
File "click/decorators.py", line 33, in new_func
File "codecov_cli/commands/base_picking.py", line 75, in pr_base_picking
File "codecov_cli/services/commit/base_picking.py", line 21, in base_picking_logic
File "codecov_cli/helpers/request.py", line 82, in wrapper
Exception: Request failed after too many retries
[PYI-3400:ERROR] Failed to execute script 'main' due to unhandled exception!
Sentry is attempting to send 2 pending events
Waiting up to 2 seconds
Press Ctrl-C to quit
Error: Process completed with exit code 1.
Environment (please complete the following information): Github actions
Ubuntu 20.04
To Reproduce upload coverage
shared_flags="--auto-load-params-from=GithubActions --codecov-yml-path=${CODECOV_YML} --verbose"
sha="fb0f8f836b8eb30bd653a3f4b8198e36d64bb376"
git -c protocol.version=2 fetch -q --no-tags --no-recurse-submodules --depth=2 origin "${sha}"
merge_base_sha=$(git rev-parse HEAD^1)
file=()
IFS=',' read -r -a files <<< "$FILES"
for f in "${files[@]}"; do
file+=("--file=${f}")
done
echo "${file[@]}"
flag=()
for f in ${FLAG}; do
flag+=("--flag=${f}")
done
./codecov \
${shared_flags} \
create-commit \
--slug="slug" \
--sha="${sha}" \
--git-service github \
-t ${CODECOV_TOKEN}
./codecov \
${shared_flags} \
create-report \
--slug="slug" \
--sha="${sha}" \
--git-service github \
-t ${CODECOV_TOKEN}
if [ "pull_request" = "pull_request" ]
then
./codecov \
${shared_flags} \
pr-base-picking \
--slug="slug" \
--base-sha="${merge_base_sha}" \
--service github \
-t ${CODECOV_TOKEN}
fi
./codecov \
${shared_flags} \
do-upload \
--slug="slug" \
--sha="${sha}" \
--disable-search \
${file[@]+"${file[@]}"} \
${flag[@]+"${flag[@]}"} \
--git-service github \
-t ${CODECOV_TOKEN}
Expected behavior This shouldn't error. It was working earlier this morning This started happening around may 14 noon (pacific standard time)