From ee166c5555a83ab6dd9d440c25114a2cf69bbcbf Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 22 Dec 2021 07:45:10 +0530 Subject: [PATCH] Retry the Linux ARM build as it is pretty flaky --- publish.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/publish.py b/publish.py index e2dd393e8..23a24696c 100755 --- a/publish.py +++ b/publish.py @@ -59,7 +59,14 @@ def call(*cmd: str, cwd: Optional[str] = None, echo: bool = False) -> None: def run_build(args: Any) -> None: for x in ('64', '32', 'arm64'): - call(f'python ../bypy linux --arch {x} program', echo=True) + try: + call(f'python ../bypy linux --arch {x} program', echo=True) + except Exception: + if x != 'arm64': + raise + print('Linux ARM build failed, retrying in a few seconds...', file=sys.stderr) + time.sleep(5) + call(f'python ../bypy linux --arch {x} program', echo=True) call(f'python ../bypy linux --arch {x} shutdown', echo=True) call('python ../bypy macos program --sign-installers --notarize', echo=True) call('python ../bypy macos shutdown')