feat(nix/buildkite): extraSteps: include parentLabel into hash

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>
This commit is contained in:
Florian Klink 2023-06-03 17:00:52 +03:00 committed by clbot
parent ed159e3a1d
commit 4ddfdc2ae0

View file

@ -405,7 +405,7 @@ rec {
mkExtraStep = buildEnabled: cfg: mkExtraStep = buildEnabled: cfg:
let let
step = { step = {
key = hashString "sha1" cfg.label; key = hashString "sha1" "${cfg.label}-${cfg.parentLabel}";
label = ":gear: ${cfg.label} (from ${cfg.parentLabel})"; label = ":gear: ${cfg.label} (from ${cfg.parentLabel})";
skip = skip =
let let