From ebb284467df18c31be92c0be2a3ad66470ce5bce Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 29 Oct 2022 19:01:58 +0530 Subject: [PATCH] Dont shutdown the ARM build machine as it is flaky --- setup/installers.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/setup/installers.py b/setup/installers.py index 75ec777618..efc433b5d5 100644 --- a/setup/installers.py +++ b/setup/installers.py @@ -52,6 +52,13 @@ def get_dist(base, which, bitness): return dist +def shutdown_allowed(which, bitness): + # The ARM64 VM is extremely flakey often booting up to a non-functional + # state so dont shut it down as it seems to be more stable once bootup is + # done. + return bitness != 'arm64' + + def build_only(which, bitness, spec, shutdown=False): base, bypy = get_paths() exe = get_exe() @@ -62,7 +69,7 @@ def build_only(which, bitness, spec, shutdown=False): raise SystemExit(ret) dist = get_dist(base, which, bitness) dist = os.path.join(dist, 'c-extensions') - if shutdown: + if shutdown and shutdown_allowed(which, bitness): cmd = get_cmd(exe, bypy, which, bitness, action='shutdown') subprocess.Popen(cmd).wait() return dist @@ -87,7 +94,7 @@ def build_single(which='windows', bitness='64', shutdown=True, sign_installers=T except OSError: pass os.link(src, dest) - if shutdown: + if shutdown and shutdown_allowed(which, bitness): cmd = get_cmd(exe, bypy, which, bitness, action='shutdown') subprocess.Popen(cmd).wait()