From 0612668e8c507b6a68ef5cfde3af2b3d1580cc7b Mon Sep 17 00:00:00 2001 From: Oliver Chang Date: Thu, 14 Jan 2021 15:49:15 +1100 Subject: [PATCH] build_specified_commit: Return failure rather than raise exception when rebuild fails. (#4964) --- infra/build_specified_commit.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/infra/build_specified_commit.py b/infra/build_specified_commit.py index 722917fce..886496a9a 100644 --- a/infra/build_specified_commit.py +++ b/infra/build_specified_commit.py @@ -274,7 +274,8 @@ def build_fuzzers_from_commit(commit, # Rebuild image and re-copy src dir since things in /src could have changed. if not _build_image_with_retries(build_data.project_name): - raise RuntimeError('Failed to rebuild image.') + logging.error('Failed to rebuild image.') + return False cleanup()