summaryrefslogtreecommitdiff
path: root/ci/eval
diff options
context:
space:
mode:
authorWolfgang Walther <walther@technowledgy.de>2025-09-01 18:27:43 +0200
committerWolfgang Walther <walther@technowledgy.de>2025-09-03 18:35:01 +0200
commite3f583c5bf44c1bf8f62ae2e2dae2b65e7ca0500 (patch)
tree6c357f8e863bd1301ccf1e873a6b539bee6cf9ae /ci/eval
parentopenapv: 0.2.0.1 -> 0.2.0.2 (#439045) (diff)
downloadnixpkgs-e3f583c5bf44c1bf8f62ae2e2dae2b65e7ca0500.tar.gz
ci/eval: eval nixosTests.simple
We can't eval all nixos tests, this would be way too expensive. But we can evaluate `nixosTests.simple` as an indication whether the nixos test driver has changed. If that's the case, this means that *all* NixOS tests need to be rebuilt.
Diffstat (limited to 'ci/eval')
-rw-r--r--ci/eval/outpaths.nix18
1 files changed, 15 insertions, 3 deletions
diff --git a/ci/eval/outpaths.nix b/ci/eval/outpaths.nix
index 4efe8d1dc061..b4988e844e8e 100644
--- a/ci/eval/outpaths.nix
+++ b/ci/eval/outpaths.nix
@@ -14,7 +14,8 @@
}:
let
lib = import (path + "/lib");
- hydraJobs =
+
+ nixpkgsJobs =
import (path + "/pkgs/top-level/release.nix")
# Compromise: accuracy vs. resources needed for evaluation.
{
@@ -59,9 +60,15 @@ let
__allowFileset = false;
};
};
+
+ nixosJobs = import (path + "/nixos/release.nix") {
+ inherit attrNamesOnly;
+ supportedSystems = if systems == null then [ builtins.currentSystem ] else systems;
+ };
+
recurseIntoAttrs = attrs: attrs // { recurseForDerivations = true; };
- # hydraJobs leaves recurseForDerivations as empty attrmaps;
+ # release-lib leaves recurseForDerivations as empty attrmaps;
# that would break nix-env and we also need to recurse everywhere.
tweak = lib.mapAttrs (
name: val:
@@ -87,4 +94,9 @@ let
];
in
-tweak (builtins.removeAttrs hydraJobs blacklist)
+tweak (
+ (builtins.removeAttrs nixpkgsJobs blacklist)
+ // {
+ nixosTests.simple = nixosJobs.tests.simple;
+ }
+)