fix(nix/buildkite): split extra steps based on all known phases
Fix a bug introduced by 2ca153141
(I merged the wrong patchset).
Issue happens when pipeline is split by phases into independent
evals (e.g. build/release/deploy).
Splitting extra steps requires knowledge of all known phases,
otherwise pipeline evaluation fails due to extra steps from inactive
phases.
Change-Id: Iab0f2dc3eadda281e483055e26f00a95442e15b0
Reviewed-on: https://cl.tvl.fyi/c/depot/+/6942
Tested-by: BuildkiteCI
Reviewed-by: tazjin <tazjin@tvl.su>
This commit is contained in:
parent
1181bd78fc
commit
b319e00831
1 changed files with 1 additions and 1 deletions
|
@ -197,7 +197,7 @@ rec {
|
||||||
|
|
||||||
# Split extra steps by phase.
|
# Split extra steps by phase.
|
||||||
splitExtraSteps = lib.groupBy ({ phase, ... }: phase)
|
splitExtraSteps = lib.groupBy ({ phase, ... }: phase)
|
||||||
(attrValues (mapAttrs (normaliseExtraStep enabledPhases overridable)
|
(attrValues (mapAttrs (normaliseExtraStep phases overridable)
|
||||||
(target.meta.ci.extraSteps or { })));
|
(target.meta.ci.extraSteps or { })));
|
||||||
|
|
||||||
extraSteps = mapAttrs
|
extraSteps = mapAttrs
|
||||||
|
|
Loading…
Reference in a new issue