Skip to content

Commit 9cc6ca1

Browse files
committed
Add tulia task that run system tests on PR.
1 parent 385c247 commit 9cc6ca1

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

flake.nix

+17
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,23 @@
223223
}).workbench-profile-run { };
224224

225225
inherit (pkgs) all-profiles-json;
226+
227+
system-tests = pkgs.writeShellApplication {
228+
name = "system-tests";
229+
runtimeInputs = with pkgs; [ git gnused ];
230+
text = ''
231+
NODE_REV="${self.rev or (throw "Sorry, need clean/pushed git revision to run system tests")}"
232+
MAKE_TARGET=testpr
233+
mkdir -p tmp && cd tmp
234+
rm -rf cardano-node-tests
235+
git clone https://github.com/input-output-hk/cardano-node-tests.git
236+
cd cardano-node-tests
237+
sed -i '1 s/^.*$/#! \/usr\/bin\/env bash/' ./.github/regression.sh
238+
export NODE_REV
239+
export MAKE_TARGET
240+
nix develop --accept-flake-config .#base -c ./.github/regression.sh 2>&1
241+
'';
242+
};
226243
}
227244
# Add checks to be able to build them individually
228245
// (prefixNamesWith "checks/" checks);

nix/tullia.nix

+16
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,18 @@ rec {
8282
memory = 1024 * 16;
8383
nomad.resources.cpu = 10000;
8484
};
85+
86+
"ci/pr/system-tests" = {lib, ...} @ args: {
87+
imports = [common];
88+
after = [];
89+
90+
command.text = ''
91+
nix run -L .#system-tests
92+
'';
93+
94+
memory = 1024 * 64;
95+
nomad.resources.cpu = 40000;
96+
};
8597
};
8698

8799
actions =
@@ -138,5 +150,9 @@ rec {
138150
task = "ci/cardano-deployment";
139151
io = prIo;
140152
};
153+
"cardano-node/ci/pr/system-tests" = {
154+
task = "ci/pr/system-tests";
155+
io = prIo;
156+
};
141157
};
142158
}

0 commit comments

Comments
 (0)