Skip to content

Commit 232a617

Browse files
committed
let nix handle the silent timeout of builds
1 parent 707a1cd commit 232a617

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

buildbot_nix/__init__.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -439,11 +439,18 @@ def nix_build_config(
439439
"--option",
440440
"keep-going",
441441
"true",
442+
"--option",
443+
# stop stuck builds after 20 minutes
444+
"--max-silent-time",
445+
str(60 * 20),
442446
"--accept-flake-config",
443447
"--out-link",
444448
util.Interpolate("result-%(prop:attr)s"),
445449
util.Interpolate("%(prop:drv_path)s^*"),
446450
],
451+
# 3 hours, defaults to 20 minutes
452+
# We increase this over the default since the build output might end up in a different `nix build`.
453+
timeout=60 * 60 * 3,
447454
haltOnFailure=True,
448455
)
449456
)

0 commit comments

Comments
 (0)