Skip to content

Commit

Permalink
nix, tests: Split run-drun
Browse files Browse the repository at this point in the history
inspired by the work in #1459 I figured it would be nice if Hydra runs
the tests in `tests/run-drun` separately with `drun` and `ic-ref-run`.
This way

 * We can see from the status list already if only one of the two break
   (e.g. after bumping dependencies or changing Wasm featurs)
 * We do less rebuilds
   (e.g. after bumping dependencies)
 * We have higher nix-level parallelism
   (relevant as `tests.run-drun` is one of the longest running tests)

Thanks to #1216 this only needs a small change to `default.nix`.
  • Loading branch information
nomeata committed May 6, 2020
1 parent 66fd75f commit 6880113
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ rec {
# we test each subdirectory of test/ in its own derivation with
# cleaner dependencies, for more parallelism, more caching
# and better feedback about what aspect broke
# And test/run-drun is actually run twice (once with drun and once with ic-ref-run)
let test_subdir = dir: deps:
testDerivation {
name = "test-${dir}";
Expand Down Expand Up @@ -269,16 +270,17 @@ rec {
'';
}; in

{ run = test_subdir "run" [ moc ] ;
run-drun = test_subdir "run-drun" [ moc drun ic-ref ];
perf = perf_subdir "perf" [ moc drun ];
fail = test_subdir "fail" [ moc ];
repl = test_subdir "repl" [ moc ];
ld = test_subdir "ld" [ mo-ld ];
idl = test_subdir "idl" [ didc ];
mo-idl = test_subdir "mo-idl" [ moc didc ];
trap = test_subdir "trap" [ moc ];
run-deser = test_subdir "run-deser" [ deser ];
{ run = test_subdir "run" [ moc ] ;
drun = test_subdir "run-drun" [ moc drun ];
ic-ref-run = test_subdir "run-drun" [ moc ic-ref ];
perf = perf_subdir "perf" [ moc drun ];
fail = test_subdir "fail" [ moc ];
repl = test_subdir "repl" [ moc ];
ld = test_subdir "ld" [ mo-ld ];
idl = test_subdir "idl" [ didc ];
mo-idl = test_subdir "mo-idl" [ moc didc ];
trap = test_subdir "trap" [ moc ];
run-deser = test_subdir "run-deser" [ deser ];
inherit qc lsp unit-tests;
};

Expand Down

0 comments on commit 6880113

Please sign in to comment.