From 728de762fd556015ad0085b4946a0915a15654e9 Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Fri, 14 Jul 2023 19:16:02 +0300 Subject: feat(nix/buildkite): support meta.timeout 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 Reviewed-by: tazjin Tested-by: BuildkiteCI --- nix/buildkite/default.nix | 2 ++ 1 file changed, 2 insertions(+) (limited to 'nix') 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 -- cgit 1.4.1