vmware-tanzu / velero

Backup and migrate Kubernetes applications and their persistent volumes
https://velero.io
Apache License 2.0
8.41k stars 1.37k forks source link

Retry upload codecov when rate limit is hit. #7787

Open kaovilai opened 1 month ago

kaovilai commented 1 month ago

What steps did you take and what happened:

Following happened.

info - 2024-05-08 19:47:47,812 -- The PR is happening in a forked repo. Using tokenless upload.
info - 2024-05-08 19:47:48,001 -- Process Commit creating complete
debug - 2024-05-08 19:47:48,001 -- Commit creating result --- {"result": "RequestResult(error=RequestError(code='HTTP Error 429', params={}, description='{\"detail\":\"Tokenless has reached GitHub rate limit. Please upload using a token: https://docs.codecov.com/docs/adding-the-codecov-token. Expected available in 197 seconds.\"}'), warnings=[], status_code=429, text='{\"detail\":\"Tokenless has reached GitHub rate limit. Please upload using a token: https://docs.codecov.com/docs/adding-the-codecov-token. Expected available in 197 seconds.\"}')"}

What did you expect to happen: This rate limit to not fail Run CI job.

Expected available in 197 seconds. from log can be used to wait before retrying again.

Anything else you would like to add:

Could potentially be solved via Codecov CLI repo https://github.com/codecov/codecov-cli/issues/441

https://github.com/codecov/feedback/issues/358

Environment:

Vote on this issue!

This is an invitation to the Velero community to vote on issues, you can see the project's top voted issues listed here.
Use the "reaction smiley face" up to the right of this comment to vote.