about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2023-07-14T16·16+0300
committerclbot <clbot@tvl.fyi>2023-07-18T16·47+0000
commit728de762fd556015ad0085b4946a0915a15654e9 (patch)
tree043ac18363767bcd973b9a8ab978f5d4aa07721c
parent6c630aadc8d1125daa5a2d827f2765ab619026cf (diff)
feat(nix/buildkite): support meta.timeout r/6431
This uses the nixpkgs convention of meta.timeout, and adds a
timeout_in_minutes field to the pipeline step in case its set.

Fixes https://b.tvl.fyi/issues/285.

Change-Id: Ia72e3832f14bf9172319bce070c5b0944f1c96fe
Reviewed-on: https://cl.tvl.fyi/c/depot/+/8970
Autosubmit: flokli <flokli@flokli.de>
Reviewed-by: tazjin <tazjin@tvl.su>
Tested-by: BuildkiteCI
-rw-r--r--nix/buildkite/default.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/nix/buildkite/default.nix b/nix/buildkite/default.nix
index 9ddf9a0042df..ec148050b0a1 100644
--- a/nix/buildkite/default.nix
+++ b/nix/buildkite/default.nix
@@ -84,6 +84,8 @@ rec {
       # always runs. This allows build steps uploaded in batches to
       # start running before all batches have been uploaded.
       depends_on = ":init:";
+    } // lib.optionalAttrs (target ? meta.timeout) {
+      timeout_in_minutes = target.meta.timeout / 60;
     };
 
   # Helper function to inelegantly divide a list into chunks of at