Skip to content
This repository has been archived by the owner on Apr 20, 2023. It is now read-only.

Commit

Permalink
Output elapsed time with S3 upload (#148)
Browse files Browse the repository at this point in the history
* Output elapsed time with S3 upload

It seems that it fails with "Forbidden" when it takes longer than 15s,
so this at least helps with debugging that.
The Bash uploader gzips the data file, so it is faster to upload and
does not trigger it with the given data file / internet connection.

    (Pdb++) s3.text
    '<?xml version="1.0" encoding="UTF-8"?>\n<Error><Code>AccessDenied</Code><Message>Request has expired</Message><Expires>2018-05-19T11:58:04Z</Expires><ServerTime>2018-05-19T11:58:10Z</ServerTime><RequestId>EFE63A2DA8CE9726</RequestId><HostId>LXoeTEXV7h3wN5DICvZg/U6uWIeyOgkJ1JnyEOQCpKNkQtpst4qKhkxuTgPnJeV3uB1jOexYP+s=</HostId></Error>'

* black

Co-authored-by: Thomas Hu <thomasrockhu@users.noreply.github.com>
  • Loading branch information
blueyed and thomasrockhu committed Sep 15, 2020
1 parent 2574d1b commit 9137404
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions codecov/__init__.py
Expand Up @@ -1149,6 +1149,7 @@ def main(*argv, **kwargs):
)
s3.raise_for_status()
assert s3.status_code == 200
write(" Uploading to S3 took %s" % s3.elapsed)
write(" " + result)
success = True

Expand Down

0 comments on commit 9137404

Please sign in to comment.