Skip to content

Commit 927645f

Browse files
committed
Add tulia task that run lightweight QA tests.
1 parent 33b2366 commit 927645f

File tree

2 files changed

+31
-1
lines changed

2 files changed

+31
-1
lines changed

flake.nix

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,20 @@
257257
}).workbench-profile-run { };
258258

259259
inherit (pkgs) all-profiles-json;
260+
261+
qa-pr-tests = pkgs.writeShellApplication {
262+
name = "qa-pr-tests";
263+
runtimeInputs = [ pkgs.git ];
264+
text = ''
265+
NODE_REV="${self.rev or "$(git rev-parse --abbrev-ref HEAD)"}"
266+
mkdir -p tmp && cd tmp
267+
rm -rf cardano-node-tests
268+
git clone https://github.com/input-output-hk/cardano-node-tests.git
269+
cd cardano-node-tests
270+
export NODE_REV
271+
MAKE_TARGET=testpr ./.github/regression.sh
272+
'';
273+
};
260274
}
261275
# Add checks to be able to build them individually
262276
// (prefixNamesWith "checks/" checks);

nix/tullia.nix

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,19 @@ rec {
8989

9090
"ci/pr" = { lib, ... } @ args: {
9191
imports = [ common ];
92-
after = [ "ci/pr/required" "ci/pr/nonrequired" "ci/cardano-deployment" ];
92+
after = [ "ci/pr/required" "ci/pr/nonrequired" "ci/cardano-deployment" "ci/pr/qa-tests" ];
93+
};
94+
95+
"ci/pr/qa-tests" = {lib, ...} @ args: {
96+
imports = [common];
97+
after = ["ci/required"];
98+
99+
command.text = ''
100+
nix run -L .#qa-pr-tests
101+
'';
102+
103+
memory = 1024 * 64;
104+
nomad.resources.cpu = 40000;
93105
};
94106
};
95107

@@ -143,5 +155,9 @@ rec {
143155
task = "ci/cardano-deployment";
144156
io = prIo;
145157
};
158+
"cardano-node/ci/pr/qa-tests" = {
159+
task = "ci/cardano-deployment";
160+
io = prIo;
161+
};
146162
};
147163
}

0 commit comments

Comments
 (0)