8000 Output elapsed time with S3 upload (#148) · sajith/codecov-python@9137404 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9137404

Browse files
Output elapsed time with S3 upload (codecov#148)
* 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>
1 parent 2574d1b commit 9137404

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

codecov/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1149,6 +1149,7 @@ def main(*argv, **kwargs):
11491149
)
11501150
s3.raise_for_status()
11511151
assert s3.status_code == 200
1152+
write(" Uploading to S3 took %s" % s3.elapsed)
11521153
write(" " + result)
11531154
success = True
11541155

0 commit comments

Comments
 (0)
0