Skip to content

Commit 4cb4268

Browse files
committed
Update hydra eval checks
1 parent 8fa0abb commit 4cb4268

File tree

4 files changed

+15
-23
lines changed

4 files changed

+15
-23
lines changed

.github/workflows/pipeline.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -139,31 +139,37 @@ jobs:
139139

140140
hydra-ifdLevel-0-and-1:
141141
runs-on: [self-hosted, linux]
142+
timeout-minutes: 20
142143
steps:
143144
- uses: actions/checkout@v4
144145
- name: "Check that jobset will evaluate in Hydra at ifdLevel 0 and 1"
145146
run: |
146147
nix-build build.nix -A maintainer-scripts.check-hydra -o check-hydra.sh
147-
./check-hydra.sh --arg ifdLevel 0
148-
./check-hydra.sh --arg ifdLevel 1
148+
sed -i 's/ifdLevel = 3/ifdLevel = 0/' flake.nix
149+
./check-hydra.sh
150+
sed -i 's/ifdLevel = 0/ifdLevel = 1/' flake.nix
151+
./check-hydra.sh
149152
150153
hydra-ifdLevel-2:
151154
runs-on: [self-hosted, linux]
155+
timeout-minutes: 20
152156
steps:
153157
- uses: actions/checkout@v4
154158
- name: "Check that jobset will evaluate in Hydra at ifdLevel 2"
155159
run: |
156160
nix-build build.nix -A maintainer-scripts.check-hydra -o check-hydra.sh
157-
./check-hydra.sh --arg ifdLevel 2
161+
sed -i 's/ifdLevel = 3/ifdLevel = 2/' flake.nix
162+
./check-hydra.sh
158163
159164
hydra-ifdLevel-3-and-ghc-8-10:
160165
runs-on: [self-hosted, linux]
166+
timeout-minutes: 30
161167
steps:
162168
- uses: actions/checkout@v4
163-
- name: "Check that jobset will evaluate in Hydra at ifdLevel 3 and ghc 8.10"
169+
- name: "Check that jobset will evaluate in Hydra at ifdLevel 3"
164170
run: |
165171
nix-build build.nix -A maintainer-scripts.check-hydra -o check-hydra.sh
166-
./check-hydra.sh --arg ifdLevel 3 --arg include 'x: __substring 0 6 x == "ghc810"'
172+
./check-hydra.sh
167173
168174
hydra-ifdLevel-3-and-ghc-9-2:
169175
runs-on: [self-hosted, linux]

overlays/default.nix

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ let
7878
compiler-llvm = import ./compiler-llvm.nix;
7979
ghc = import ./ghc.nix;
8080
ghc-packages = import ./ghc-packages.nix;
81-
hydra = import ./hydra.nix { inherit sources; };
8281
darwin = import ./darwin.nix;
8382
windows = import ./windows.nix;
8483
armv6l-linux = import ./armv6l-linux.nix;
@@ -129,7 +128,6 @@ let
129128
cabalPkgConfig
130129
gobject-introspection
131130
hix
132-
hydra
133131
# Restore nixpkgs haskell and haskellPackages
134132
(_: prev: { inherit (prev.haskell-nix-prev) haskell haskellPackages; })
135133
cacheCompilerDeps

overlays/hydra.nix

Lines changed: 0 additions & 9 deletions
This file was deleted.

scripts/check-hydra.nix

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,19 @@
1-
{ stdenv, glibc, lib, writeScript, coreutils, time, gnutar, gzip, hydra-unstable, jq, gitMinimal }:
1+
{ stdenv, glibc, lib, writeScript, coreutils, time, gnutar, gzip, hydra_unstable, jq, gitMinimal }:
22

33
with lib;
44

55
writeScript "check-hydra.sh" ''
66
#! /usr/bin/env nix-shell
7-
#! nix-shell -i bash --pure -p glibc coreutils time gnutar gzip hydra-unstable jq gitMinimal
7+
#! nix-shell -i bash --pure -p glibc coreutils time gnutar gzip hydra_unstable jq gitMinimal
88
99
set -euo pipefail
1010
1111
export NIX_PATH=
1212
1313
echo '~~~ Evaluating release.nix with' "$@"
14-
command time --format '%e' -o eval-time.txt \
14+
HYDRA_CONFIG= command time --format '%e' -o eval-time.txt \
1515
hydra-eval-jobs \
16-
--option allowed-uris "https://github.com/NixOS https://github.com/input-output-hk" \
17-
--arg supportedSystems '[ builtins.currentSystem ]' \
18-
"$@" \
19-
-I $(realpath .) release.nix > eval.json
16+
--flake $(pwd) > eval.json
2017
EVAL_EXIT_CODE="$?"
2118
if [ "$EVAL_EXIT_CODE" != 0 ]
2219
then

0 commit comments

Comments
 (0)