From 0f70ad56a922a7c77700cf23a848f2f5b54ca7cb Mon Sep 17 00:00:00 2001 From: "Mikhail f. Shiryaev" Date: Wed, 10 May 2023 20:14:30 +0200 Subject: [PATCH] Do not upload failed site to the S3 --- tests/ci/codebrowser_check.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/ci/codebrowser_check.py b/tests/ci/codebrowser_check.py index 99bc7e2f29a..28e3bbdb4fa 100644 --- a/tests/ci/codebrowser_check.py +++ b/tests/ci/codebrowser_check.py @@ -87,9 +87,10 @@ def main(): report_path = result_path / "html_report" logging.info("Report path %s", report_path) s3_path_prefix = "codebrowser" - _ = s3_helper.fast_parallel_upload_dir( - report_path, s3_path_prefix, S3_TEST_REPORTS_BUCKET - ) + if state == "success": + _ = s3_helper.fast_parallel_upload_dir( + report_path, s3_path_prefix, S3_TEST_REPORTS_BUCKET + ) index_html = ( f''