From 11749394dfc69a6c5843fd30e749161a3ff20f86 Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Fri, 31 Oct 2025 20:03:17 +0100 Subject: [PATCH] ci/eval: avoid passing args around There is no point in passing these arguments around between all the different parts of the eval chain - these global settings should surely not be modified between different steps. This also makes it simpler to add new arguments like extra nixpkgs configuration. --- ci/eval/default.nix | 26 +++++++++++--------------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/ci/eval/default.nix b/ci/eval/default.nix index 75b2eb9cba5d..23a2d4cb4f72 100644 --- a/ci/eval/default.nix +++ b/ci/eval/default.nix @@ -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;