From 1da36a92781d105d22d71fc7c2dcaed8c83134dc Mon Sep 17 00:00:00 2001 From: Will Greenberg Date: Thu, 7 Jul 2022 14:31:48 -0700 Subject: If a snap build times out, dump the logs (#9340) --- tools/snap/build_remote.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/snap/build_remote.py b/tools/snap/build_remote.py index 6ab80669c..7a4eea1b0 100755 --- a/tools/snap/build_remote.py +++ b/tools/snap/build_remote.py @@ -253,6 +253,12 @@ def main(): process.join(args.timeout) if process.is_alive(): + for target in targets: + if target == 'certbot': + workspace = CERTBOT_DIR + else: + workspace = join(CERTBOT_DIR, target) + _dump_failed_build_logs(target, archs, status, workspace) raise ValueError(f"Timeout out reached ({args.timeout} seconds) during the build!") build_success = True -- cgit v1.2.3