diff options
author | Florian Klink <flokli@flokli.de> | 2023-06-03T14·00+0300 |
---|---|---|
committer | clbot <clbot@tvl.fyi> | 2023-06-03T14·09+0000 |
commit | 4ddfdc2ae0a9930c70af2d174be5c0d7c6912f3d (patch) | |
tree | 4ee1afec071d17d48b407f9887797a217add2248 | |
parent | ed159e3a1de68e6b1bc6e059a10d9015b22e12be (diff) |
feat(nix/buildkite): extraSteps: include parentLabel into hash r/6229
Contrary to the normal steps, extra steps only show the attribute name in their label, not the whole attribute path. To make sure these are still unique, also incorporate the parentLabel into the string that's hashed. Change-Id: Ic7a1f76aaac159ab5bd30054e422234882947990 Reviewed-on: https://cl.tvl.fyi/c/depot/+/8708 Autosubmit: flokli <flokli@flokli.de> Tested-by: BuildkiteCI Reviewed-by: tazjin <tazjin@tvl.su>
-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 5b9aa222ac4a..4849d1b8ea54 100644 --- a/nix/buildkite/default.nix +++ b/nix/buildkite/default.nix @@ -405,7 +405,7 @@ rec { mkExtraStep = buildEnabled: cfg: let step = { - key = hashString "sha1" cfg.label; + key = hashString "sha1" "${cfg.label}-${cfg.parentLabel}"; label = ":gear: ${cfg.label} (from ${cfg.parentLabel})"; skip = let |