Skip to content

Commit

Permalink
Add tulia task that run system tests on PR.
Browse files Browse the repository at this point in the history
  • Loading branch information
jbgi committed Mar 6, 2023
1 parent 385c247 commit 9cc6ca1
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
17 changes: 17 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,23 @@
}).workbench-profile-run { };

inherit (pkgs) all-profiles-json;

system-tests = pkgs.writeShellApplication {
name = "system-tests";
runtimeInputs = with pkgs; [ git gnused ];
text = ''
NODE_REV="${self.rev or (throw "Sorry, need clean/pushed git revision to run system tests")}"
MAKE_TARGET=testpr
mkdir -p tmp && cd tmp
rm -rf cardano-node-tests
git clone https://github.com/input-output-hk/cardano-node-tests.git
cd cardano-node-tests
sed -i '1 s/^.*$/#! \/usr\/bin\/env bash/' ./.github/regression.sh
export NODE_REV
export MAKE_TARGET
nix develop --accept-flake-config .#base -c ./.github/regression.sh 2>&1
'';
};
}
# Add checks to be able to build them individually
// (prefixNamesWith "checks/" checks);
Expand Down
16 changes: 16 additions & 0 deletions nix/tullia.nix
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,18 @@ rec {
memory = 1024 * 16;
nomad.resources.cpu = 10000;
};

"ci/pr/system-tests" = {lib, ...} @ args: {
imports = [common];
after = [];

command.text = ''
nix run -L .#system-tests
'';

memory = 1024 * 64;
nomad.resources.cpu = 40000;
};
};

actions =
Expand Down Expand Up @@ -138,5 +150,9 @@ rec {
task = "ci/cardano-deployment";
io = prIo;
};
"cardano-node/ci/pr/system-tests" = {
task = "ci/pr/system-tests";
io = prIo;
};
};
}

0 comments on commit 9cc6ca1

Please sign in to comment.