8000 More retries by thomasrockhu · Pull Request #273 · codecov/codecov-python · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on May 21, 2025. It is now read-only.

More retries #273

Merged
merged 9 commits into from
Jun 12, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Retry all the things
  • Loading branch information
thomasrockhu committed Jun 11, 2020
commit 3a11bdbbc9aba80b55943e4dc3c52556d2ed041f
6 changes: 4 additions & 2 deletions codecov/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1123,8 +1123,9 @@ def main(*argv, **kwargs):
result, upload_url = res[0], res[1]

write(" Uploading to S3...")
s3 = requests.put(
s3 = retry_upload(
upload_url,
requests.put,
verify=codecov.cacert,
data=reports_gzip,
headers={
Expand All @@ -1145,8 +1146,9 @@ def main(*argv, **kwargs):

write(" Uploading to Codecov...")
# just incase, try traditional upload
res = requests.post(
res = retry_upload(
"%s/upload/v2?%s" % (codecov.url, urlargs),
requests.post,
verify=codecov.cacert,
data=reports_gzip,
headers={
Expand Down
0