Unverified Commit a47257e8 authored by Wolfgang Walther's avatar Wolfgang Walther Committed by GitHub
Browse files

ci/eval: avoid passing args around (#457329)

parents 7e7f6033 11749394
Loading
Loading
Loading
Loading
+11 −15
Original line number Diff line number Diff line
@@ -19,6 +19,15 @@
  nix,
}:

{
  # The number of attributes per chunk, see ./README.md for more info.
  chunkSize ? 5000,
  # Whether to just evaluate a single chunk for quick testing
  quickTest ? false,
  # Don't try to eval packages marked as broken.
  includeBroken ? false,
}:

let
  nixpkgs =
    with lib.fileset;
@@ -79,13 +88,6 @@ let
      evalSystem ? builtins.currentSystem,
      # The path to the `paths.json` file from `attrpathsSuperset`
      attrpathFile ? "${attrpathsSuperset { inherit evalSystem; }}/paths.json",
      # The number of attributes per chunk, see ./README.md for more info.
      chunkSize ? 5000,

      # Don't try to eval packages marked as broken.
      includeBroken ? false,
      # Whether to just evaluate a single chunk for quick testing
      quickTest ? false,
    }:
    let
      singleChunk = writeShellScript "single-chunk" ''
@@ -259,16 +261,13 @@ let
    {
      # Whether to evaluate on a specific set of systems, by default all are evaluated
      evalSystems ? if quickTest then [ "x86_64-linux" ] else supportedSystems,
      # The number of attributes per chunk, see ./README.md for more info.
      chunkSize ? 5000,
      quickTest ? false,
    }:
    symlinkJoin {
      name = "nixpkgs-eval-baseline";
      paths = map (
        evalSystem:
        singleSystem {
          inherit quickTest evalSystem chunkSize;
          inherit evalSystem;
        }
      ) evalSystems;
    };
@@ -277,9 +276,6 @@ let
    {
      # Whether to evaluate on a specific set of systems, by default all are evaluated
      evalSystems ? if quickTest then [ "x86_64-linux" ] else supportedSystems,
      # The number of attributes per chunk, see ./README.md for more info.
      chunkSize ? 5000,
      quickTest ? false,
      baseline,
      # Which maintainer should be considered the author?
      # Defaults to nixpkgs-ci which is not a maintainer and skips the check.
@@ -300,7 +296,7 @@ let
            inherit evalSystem;
            beforeDir = baseline;
            afterDir = singleSystem {
              inherit quickTest evalSystem chunkSize;
              inherit evalSystem;
            };
          }
        ) evalSystems;