diff options
author | Alyssa Ross <alyssa.ross@unikie.com> | 2022-11-30 09:41:30 +0000 |
---|---|---|
committer | Alyssa Ross <alyssa.ross@unikie.com> | 2022-11-30 09:41:30 +0000 |
commit | 23a1e56eae21f99978ae43b387480bf9d53f33b6 (patch) | |
tree | 900ddb21ae31a7c56e0ca86c0da74426a7f55629 /run | |
parent | 21ab5b6c0fcf126a1465568da5b63c35f47953a5 (diff) | |
download | infra-23a1e56eae21f99978ae43b387480bf9d53f33b6.tar infra-23a1e56eae21f99978ae43b387480bf9d53f33b6.tar.gz infra-23a1e56eae21f99978ae43b387480bf9d53f33b6.tar.bz2 infra-23a1e56eae21f99978ae43b387480bf9d53f33b6.tar.lz infra-23a1e56eae21f99978ae43b387480bf9d53f33b6.tar.xz infra-23a1e56eae21f99978ae43b387480bf9d53f33b6.tar.zst infra-23a1e56eae21f99978ae43b387480bf9d53f33b6.zip |
run: avoid infinite loop
If a 10-minute build failed towards the end, the limit would never be activated, and it wouldn't be obvious it had failed repeatedly. So let's apply a slightly bigger limit, but over a much longer time period that single builds shouldn't ever last longer than. (We could enforce this with a Nix timeout if we need to.) Signed-off-by: Alyssa Ross <alyssa.ross@unikie.com>
Diffstat (limited to 'run')
-rw-r--r-- | run | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/run b/run index 9cac7c4..7a0d5be 100644 --- a/run +++ b/run @@ -40,7 +40,7 @@ systemctl start --no-block multi-user.target systemd-journal-gatewayd.socket exec systemd-run --wait -u nix-build \ -p BindPaths=/mnt/tmp:/tmp \ -p Restart=on-failure \ - -p StartLimitBurst=3 \ - -p StartLimitIntervalSec=300 \ + -p StartLimitBurst=5 \ + -p StartLimitIntervalSec=1d \ nix-build --keep-going /tmp/spectrum-main/release.nix \ -I nixpkgs=https://spectrum-os.org/git/nixpkgs/snapshot/nixpkgs-rootfs.tar.gz |