diff options
author | Florian Klink <flokli@flokli.de> | 2023-07-21T11·32+0300 |
---|---|---|
committer | clbot <clbot@tvl.fyi> | 2023-07-24T20·51+0000 |
commit | f41b611761cd7fa88ddfdf922eef7ec789903b81 (patch) | |
tree | b6f4270643048289a8c6b81c5dbe1b6fcb661e97 /nix | |
parent | b677aec50697051fe81c0706af45436831ea0963 (diff) |
feat(nix/buildkite): add meta.ci.buildkiteExtraDeps r/6442
This allows setting a buildkiteExtraDeps in `meta.ci`, which will get added to `depends_on` (which can also be a list). It allows explicitly describing a dependency on another buildkite step, either generated by nix/buildkite, or part of the static pipeline. At some point we might want to expose our key calculation function too, similar to how readTree exposes mkLabel already, but that's left for a followup. Change-Id: I793170401ccd3907ad8bf232b80ca7a492e1c942 Reviewed-on: https://cl.tvl.fyi/c/depot/+/8980 Reviewed-by: tazjin <tazjin@tvl.su> Autosubmit: flokli <flokli@flokli.de> Tested-by: BuildkiteCI
Diffstat (limited to 'nix')
-rw-r--r-- | nix/buildkite/default.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nix/buildkite/default.nix b/nix/buildkite/default.nix index ec148050b0a1..08be8f38c93d 100644 --- a/nix/buildkite/default.nix +++ b/nix/buildkite/default.nix @@ -83,7 +83,7 @@ rec { # Add a dependency on the initial static pipeline step which # always runs. This allows build steps uploaded in batches to # start running before all batches have been uploaded. - depends_on = ":init:"; + depends_on = [ ":init:" ] ++ lib.optionals (target ? meta.ci.buildkiteExtraDeps) target.meta.ci.buildkiteExtraDeps; } // lib.optionalAttrs (target ? meta.timeout) { timeout_in_minutes = target.meta.timeout / 60; }; |