Merge pull request #61 from Mic92/fixes

let nix handle the silent timeout of builds
This commit is contained in:
Jörg Thalheim 2023-12-22 14:53:28 +01:00 committed by GitHub
commit f7083c9f35
Failed to generate hash of commit

View file

@ -439,11 +439,18 @@ def nix_build_config(
"--option", "--option",
"keep-going", "keep-going",
"true", "true",
"--option",
# stop stuck builds after 20 minutes
"--max-silent-time",
str(60 * 20),
"--accept-flake-config", "--accept-flake-config",
"--out-link", "--out-link",
util.Interpolate("result-%(prop:attr)s"), util.Interpolate("result-%(prop:attr)s"),
util.Interpolate("%(prop:drv_path)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, haltOnFailure=True,
) )
) )