Skip to content

Commit

Permalink
Add tulia task that run lightweight QA tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
jbgi committed Feb 24, 2023
1 parent 33b2366 commit 927645f
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
14 changes: 14 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,20 @@
}).workbench-profile-run { };

inherit (pkgs) all-profiles-json;

qa-pr-tests = pkgs.writeShellApplication {
name = "qa-pr-tests";
runtimeInputs = [ pkgs.git ];
text = ''
NODE_REV="${self.rev or "$(git rev-parse --abbrev-ref HEAD)"}"
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
export NODE_REV
MAKE_TARGET=testpr ./.github/regression.sh
'';
};
}
# Add checks to be able to build them individually
// (prefixNamesWith "checks/" checks);
Expand Down
18 changes: 17 additions & 1 deletion nix/tullia.nix
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,19 @@ rec {

"ci/pr" = { lib, ... } @ args: {
imports = [ common ];
after = [ "ci/pr/required" "ci/pr/nonrequired" "ci/cardano-deployment" ];
after = [ "ci/pr/required" "ci/pr/nonrequired" "ci/cardano-deployment" "ci/pr/qa-tests" ];
};

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

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

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

Expand Down Expand Up @@ -143,5 +155,9 @@ rec {
task = "ci/cardano-deployment";
io = prIo;
};
"cardano-node/ci/pr/qa-tests" = {
task = "ci/cardano-deployment";
io = prIo;
};
};
}

0 comments on commit 927645f

Please sign in to comment.