Skip to content

Commit

Permalink
pkgs/top-level: split release-checks into a separate job
Browse files Browse the repository at this point in the history
This should improve latency on channel updates.
  • Loading branch information
K900 committed Apr 17, 2024
1 parent f3936d0 commit 9cdada6
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/basic-eval.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ jobs:
name: nixpkgs-ci
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
# 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" ]'
5 changes: 4 additions & 1 deletion nixos/release-combined.nix
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,10 @@ in rec {
(onFullSupported "nixpkgs.emacs")
(onFullSupported "nixpkgs.jdk")
(onSystems ["x86_64-linux"] "nixpkgs.mesa_i686") # i686 sanity check + useful
["nixpkgs.tarball"]
[
"nixpkgs.tarball"
"nixpkgs.release-checks"
]
];
};
}
1 change: 1 addition & 0 deletions nixos/release-small.nix
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ in rec {
[
"nixos.channel"
"nixpkgs.tarball"
"nixpkgs.release-checks"
]
(map (onSystems [ "x86_64-linux" ]) [
"nixos.tests.boot.biosCdrom"
Expand Down
3 changes: 0 additions & 3 deletions pkgs/top-level/make-tarball.nix
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,6 @@ pkgs.releaseTools.sourceTarball {

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;

doCheck = true;
Expand Down
4 changes: 2 additions & 2 deletions pkgs/top-level/nixpkgs-basic-release-checks.nix
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{ supportedSystems, nixpkgs, pkgs, nix }:
{ supportedSystems, nixpkgs, pkgs }:

pkgs.runCommand "nixpkgs-release-checks"
{
src = nixpkgs;
buildInputs = [ nix ];
buildInputs = [ pkgs.nix ];
requiredSystemFeatures = [ "big-parallel" ]; # 1 thread but ~10G RAM; see #227945
}
''
Expand Down
4 changes: 4 additions & 0 deletions pkgs/top-level/release.nix
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ let
nonPackageJobs =
{ 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; };

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

0 comments on commit 9cdada6

Please sign in to comment.