Skip to content

Commit

Permalink
release: add release-barrier to have an all-green criteria
Browse files Browse the repository at this point in the history
  • Loading branch information
markuskowa committed Nov 15, 2023
1 parent 656238a commit 6da9090
Showing 1 changed file with 20 additions and 3 deletions.
23 changes: 20 additions & 3 deletions release.nix
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,27 @@ let

in pkgsClean;

in {
"${cfg.prefix}" = pkgs config (self: super: {});
# Aggregate all packages job
# Use as all-green-criteria
allJobs = prefix: jobs: let
aggrJob = (nixpkgs-final {}).releaseTools.aggregate {
name = "all-packages";
constituents = with lib;
let
a2l = mapAttrsToList (_: path: if (lib.isAttrs path && !isDerivation path) then a2l path else path);
pnames =
mapAttrsRecursiveCond
(as: !(as ? "type" && as.type == "derivation"))
(path: v: v)
jobs
;
in a2l pnames;
};
in {
"${prefix}" = jobs // { release-barrier = aggrJob; };
};

} # Extra variants for testing purposes
in (allJobs cfg.prefix (pkgs config (self: super: {})))
// (if buildVariants then {
"${cfg.prefix}-mpich" = pkgs config (self: super: { mpi = super.mpich; });

Expand Down

0 comments on commit 6da9090

Please sign in to comment.