File tree Expand file tree Collapse file tree 3 files changed +22
-2
lines changed Expand file tree Collapse file tree 3 files changed +22
-2
lines changed Original file line number Diff line number Diff line change 77 imports = [
88 inputs . hercules-ci-effects . flakeModule
99 "${ inputs . hercules-ci-effects } /effects/push-cache/default.nix"
10+ ./impure-tests.nix
1011 ] ;
1112 config = {
1213 hercules-ci . github-pages . branch = "master" ;
Original file line number Diff line number Diff line change 1+ {
2+ withSystem ,
3+ config ,
4+ ...
5+ } : {
6+ # TODO map over all tests and add impure oens as effects
7+
8+ herculesCI . onPush . default . outputs . effects . testing-cardano-node = withSystem config . defaultEffectSystem ( {
9+ hci-effects ,
10+ config ,
11+ ...
12+ } :
13+ hci-effects . modularEffect {
14+ extraAttributes . __hci_effect_mounts . "/dev/kvm" = "kvm" ;
15+ effectScript = ''
16+ ${ ( config . cardanoNix . _mkCheckFromTest config . cardanoNix . tests . cardano-node ) . driver } /bin/nixos-test-driver
17+ '' ;
18+ } ) ;
19+ }
Original file line number Diff line number Diff line change 1010 nodes = {
1111 machine = { pkgs , ...} : {
1212 virtualisation = {
13- cores = 2 ;
13+ cores = 1 ;
1414 memorySize = 1024 ;
1515 } ;
1616 cardanoNix = {
2727
2828 testScript = ''
2929 machine.wait_for_unit("cardano-node")
30- machine.wait_until_succeeds("""[[ $(echo "$(cardano-cli query tip --testnet-magic 2 | jq '.syncProgress' --raw-output) > 1 " | bc) == "1" ]]""")
30+ machine.wait_until_succeeds("""[[ $(echo "$(cardano-cli query tip --testnet-magic 2 | jq '.syncProgress' --raw-output) > 0.01 " | bc) == "1" ]]""")
3131 '' ;
3232 } ;
3333 } ;
You can’t perform that action at this time.
0 commit comments