From 232a617fe1a19d621c138fa1b65bccf54edf7a84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Fri, 22 Dec 2023 14:37:31 +0100 Subject: [PATCH] let nix handle the silent timeout of builds --- buildbot_nix/__init__.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/buildbot_nix/__init__.py b/buildbot_nix/__init__.py index d5ceb4b..6997d92 100644 --- a/buildbot_nix/__init__.py +++ b/buildbot_nix/__init__.py @@ -439,11 +439,18 @@ def nix_build_config( "--option", "keep-going", "true", + "--option", + # stop stuck builds after 20 minutes + "--max-silent-time", + str(60 * 20), "--accept-flake-config", "--out-link", util.Interpolate("result-%(prop:attr)s"), util.Interpolate("%(prop:drv_path)s^*"), ], + # 3 hours, defaults to 20 minutes + # We increase this over the default since the build output might end up in a different `nix build`. + timeout=60 * 60 * 3, haltOnFailure=True, ) )