Merge pull request #304730 from K900/bigger-paralleler

pkgs/top-level: split release-checks into a separate job
This commit is contained in:
K900 2024-04-20 12:47:13 +03:00 committed by GitHub
commit 8f9e7071ff
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 12 additions and 7 deletions

View File

@ -26,4 +26,4 @@ jobs:
name: nixpkgs-ci name: nixpkgs-ci
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}' signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
# explicit list of supportedSystems is needed until aarch64-darwin becomes part of the trunk jobset # explicit list of supportedSystems is needed until aarch64-darwin becomes part of the trunk jobset
- run: nix-build pkgs/top-level/release.nix -A tarball.nixpkgs-basic-release-checks --arg supportedSystems '[ "aarch64-darwin" "aarch64-linux" "x86_64-linux" "x86_64-darwin" ]' - run: nix-build pkgs/top-level/release.nix -A release-checks --arg supportedSystems '[ "aarch64-darwin" "aarch64-linux" "x86_64-linux" "x86_64-darwin" ]'

View File

@ -168,7 +168,10 @@ in rec {
(onFullSupported "nixpkgs.emacs") (onFullSupported "nixpkgs.emacs")
(onFullSupported "nixpkgs.jdk") (onFullSupported "nixpkgs.jdk")
(onSystems ["x86_64-linux"] "nixpkgs.mesa_i686") # i686 sanity check + useful (onSystems ["x86_64-linux"] "nixpkgs.mesa_i686") # i686 sanity check + useful
["nixpkgs.tarball"] [
"nixpkgs.tarball"
"nixpkgs.release-checks"
]
]; ];
}; };
} }

View File

@ -103,6 +103,7 @@ in rec {
[ [
"nixos.channel" "nixos.channel"
"nixpkgs.tarball" "nixpkgs.tarball"
"nixpkgs.release-checks"
] ]
(map (onSystems [ "x86_64-linux" ]) [ (map (onSystems [ "x86_64-linux" ]) [
"nixos.tests.boot.biosCdrom" "nixos.tests.boot.biosCdrom"

View File

@ -34,9 +34,6 @@ pkgs.releaseTools.sourceTarball {
requiredSystemFeatures = [ "big-parallel" ]; # 1 thread but ~36G RAM (!) see #227945 requiredSystemFeatures = [ "big-parallel" ]; # 1 thread but ~36G RAM (!) see #227945
nixpkgs-basic-release-checks = import ./nixpkgs-basic-release-checks.nix
{ inherit nix pkgs nixpkgs supportedSystems; };
dontBuild = false; dontBuild = false;
doCheck = true; doCheck = true;

View File

@ -1,9 +1,9 @@
{ supportedSystems, nixpkgs, pkgs, nix }: { supportedSystems, nixpkgs, pkgs }:
pkgs.runCommand "nixpkgs-release-checks" pkgs.runCommand "nixpkgs-release-checks"
{ {
src = nixpkgs; src = nixpkgs;
buildInputs = [ nix ]; buildInputs = [ pkgs.nix ];
requiredSystemFeatures = [ "big-parallel" ]; # 1 thread but ~10G RAM; see #227945 requiredSystemFeatures = [ "big-parallel" ]; # 1 thread but ~10G RAM; see #227945
} }
'' ''

View File

@ -80,6 +80,8 @@ let
nonPackageJobs = nonPackageJobs =
{ tarball = import ./make-tarball.nix { inherit pkgs nixpkgs officialRelease supportedSystems; }; { tarball = import ./make-tarball.nix { inherit pkgs nixpkgs officialRelease supportedSystems; };
release-checks = import ./nixpkgs-basic-release-checks.nix { inherit pkgs nixpkgs supportedSystems; };
metrics = import ./metrics.nix { inherit pkgs nixpkgs; }; metrics = import ./metrics.nix { inherit pkgs nixpkgs; };
manual = import ../../doc { inherit pkgs nixpkgs; }; manual = import ../../doc { inherit pkgs nixpkgs; };
@ -91,6 +93,7 @@ let
meta.description = "Release-critical builds for the Nixpkgs darwin channel"; meta.description = "Release-critical builds for the Nixpkgs darwin channel";
constituents = constituents =
[ jobs.tarball [ jobs.tarball
jobs.release-checks
jobs.cabal2nix.x86_64-darwin jobs.cabal2nix.x86_64-darwin
jobs.ghc.x86_64-darwin jobs.ghc.x86_64-darwin
jobs.git.x86_64-darwin jobs.git.x86_64-darwin
@ -140,6 +143,7 @@ let
meta.description = "Release-critical builds for the Nixpkgs unstable channel"; meta.description = "Release-critical builds for the Nixpkgs unstable channel";
constituents = constituents =
[ jobs.tarball [ jobs.tarball
jobs.release-checks
jobs.metrics jobs.metrics
jobs.manual jobs.manual
jobs.lib-tests jobs.lib-tests