Skip to content
This repository was archived by the owner on May 21, 2025. It is now read-only.
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
Next Next commit
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>'
  • Loading branch information
blueyed committed May 19, 2018
commit e7212772e7766ba0529f6ef9a979b7ce9a461e01
1 change: 1 addition & 0 deletions codecov/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -739,6 +739,7 @@ def main(*argv, **kwargs):
s3 = requests.put(upload_url, data=reports,
headers={'Content-Type': 'text/plain',
'x-amz-acl': 'public-read'})
write(' Took %s' % s3.elapsed)
s3.raise_for_status()
assert s3.status_code == 200
write(' ' + result)
Expand Down