Skip to content

Commit 418aa1c

Browse files
authored
Merge pull request #4965 from input-output-hk/andreabedini/fix-flake
Fix flake (again)
2 parents a16c198 + e4e2928 commit 418aa1c

File tree

4 files changed

+32
-45
lines changed

4 files changed

+32
-45
lines changed

flake.lock

Lines changed: 9 additions & 26 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,6 @@
1414
url = "github:input-output-hk/hackage.nix";
1515
flake = false;
1616
};
17-
nixTools = {
18-
url = "github:input-output-hk/nix-tools";
19-
flake = false;
20-
};
2117
haskellNix = {
2218
url = "github:input-output-hk/haskell.nix";
2319
inputs.nixpkgs.follows = "nixpkgs";
@@ -323,16 +319,20 @@
323319
};
324320
};
325321
nonRequiredPaths = [
326-
# hlint required status is controled via the github action:
327-
"native\\.(.*\\.)?checks/hlint"
322+
#FIXME: hydraJobs.native.workbench-ci-test need some work to support Conway
323+
"native\\.(.*\\.)?workbench-ci-test"
328324
#FIXME: cardano-tracer-test for windows should probably be disabled in haskell.nix config:
329325
"windows\\.(.*\\.)?checks\\.cardano-tracer\\.cardano-tracer-test"
330326
#FIXME: plutus-scripts-bench (dep of tx-generator) does not compile for windows:
331327
"windows\\.(.*\\.)?tx-generator.*"
328+
# hlint required status is controled via the github action:
329+
"native\\.(.*\\.)?checks/hlint"
330+
#system-tests are build and run separately:
331+
"native\\.(.*\\.)?system-tests"
332332
] ++
333333
lib.optionals (system == "x86_64-darwin") [
334-
#FIXME: ExceptionInLinkedThread (ThreadId 253) pokeSockAddr: path is too long
335-
"native\\.(.*\\.)?.checks/cardano-testnet/cardano-testnet-tests"
334+
#FIXME: make variants nonrequired for macos until CI has more capacity for macos builds
335+
"native\\.variants\\..*"
336336
];
337337
in
338338
pkgs.callPackages iohkNix.utils.ciJobsAggregates

nix/haskell.nix

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ let
2121
name = "cardano-node";
2222
compiler-nix-name = lib.mkDefault "ghc8107";
2323
# extra-compilers
24-
flake.variants = lib.genAttrs ["ghc927"] (x: {compiler-nix-name = x;});
24+
flake.variants = lib.genAttrs ["ghc925"] (x: {compiler-nix-name = x;});
2525
cabalProjectLocal = ''
2626
allow-newer: terminfo:base
2727
'' + lib.optionalString pkgs.stdenv.hostPlatform.isWindows ''
@@ -110,6 +110,12 @@ let
110110
"configuration/cardano/mainnet-byron-genesis.json"
111111
"configuration/cardano/mainnet-shelley-genesis.json"
112112
"configuration/cardano/mainnet-alonzo-genesis.json"
113+
"configuration/cardano/mainnet-conway-genesis.json"
114+
];
115+
goldenConfigFiles = [
116+
"configuration/defaults/byron-mainnet"
117+
"cardano-cli/test/data/golden/alonzo/genesis.alonzo.spec.json"
118+
"cardano-cli/test/data/golden/conway/genesis.conway.spec.json"
113119
];
114120
in
115121
{
@@ -151,10 +157,7 @@ let
151157
packages.cardano-node-chairman.preCheck =
152158
let
153159
# This define files included in the directory that will be passed to `H.getProjectBase` for this test:
154-
filteredProjectBase = incl ../. [
155-
"configuration/defaults/byron-mainnet"
156-
"cardano-cli/test/data/golden/alonzo/genesis.alonzo.spec.json"
157-
];
160+
filteredProjectBase = incl ../. goldenConfigFiles;
158161
in
159162
''
160163
${exportCliPath}
@@ -166,11 +169,11 @@ let
166169
packages.cardano-testnet.preCheck =
167170
let
168171
# This define files included in the directory that will be passed to `H.getProjectBase` for this test:
169-
filteredProjectBase = incl ../. (mainnetConfigFiles ++ [
172+
filteredProjectBase = incl ../. (mainnetConfigFiles ++ goldenConfigFiles ++ [
170173
"configuration/cardano/mainnet-topology.json"
171-
"configuration/defaults/byron-mainnet"
172-
"cardano-cli/test/data/golden/alonzo/genesis.alonzo.spec.json"
174+
"configuration/cardano/mainnet-conway-genesis.json"
173175
"scripts/babbage/alonzo-babbage-test-genesis.json"
176+
"scripts/babbage/conway-babbage-test-genesis.json"
174177
]);
175178
in
176179
''

nix/nixos/tests/cardano-node-edge.nix

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,10 @@ with pkgs;
5252
machine.wait_for_open_port(12798)
5353
machine.wait_for_open_port(3001)
5454
machine.succeed("systemctl status cardano-node")
55-
machine.succeed(
56-
"${cardanoNodePackages.cardano-ping}/bin/cardano-ping -h 127.0.0.1 -c 1 -q --json | ${jq}/bin/jq -c"
57-
)
55+
# FIXME reenable and check the cli syntax when https://github.com/input-output-hk/cardano-node/pull/4664 is merged
56+
#machine.succeed(
57+
# "${cardanoNodePackages.cardano-cli}/bin/cardano-cli ping -h 127.0.0.1 -c 1 -q --json | ${jq}/bin/jq -c"
58+
#)
5859
machine.wait_for_open_port(8101)
5960
machine.succeed("systemctl status cardano-submit-api")
6061
'';

0 commit comments

Comments
 (0)