From 9137404b785122973abce66515c58d8999d0dbce Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Tue, 15 Sep 2020 17:06:07 +0200 Subject: [PATCH] Output elapsed time with S3 upload (#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 '\nAccessDeniedRequest has expired2018-05-19T11:58:04Z2018-05-19T11:58:10ZEFE63A2DA8CE9726LXoeTEXV7h3wN5DICvZg/U6uWIeyOgkJ1JnyEOQCpKNkQtpst4qKhkxuTgPnJeV3uB1jOexYP+s=' * black Co-authored-by: Thomas Hu --- codecov/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/codecov/__init__.py b/codecov/__init__.py index 3d6f4fc5..fd6ac89b 100644 --- a/codecov/__init__.py +++ b/codecov/__init__.py @@ -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