If a snap build times out, dump the logs (#9340)

This commit is contained in:
Will Greenberg 2022-07-07 14:31:48 -07:00 committed by GitHub
parent 2b1255cd6a
commit 1da36a9278
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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