Skip to content

Commit

Permalink
bench: prevent the generator to be started prior node creating the so…
Browse files Browse the repository at this point in the history
…cket
  • Loading branch information
deepfire committed Nov 30, 2021
1 parent e520d57 commit 6b72072
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion bench/bench.sh
Expand Up @@ -420,9 +420,15 @@ op_bench_start() {
while now=$(date +%s); test $now -lt $((start_time + 15))
do sleep 1; done; fi

oprint_ne "waiting until local node socket is up: "
while ! { nixops ssh "$canary" -- journalctl -u cardano-node |
grep "LocalSocketUp"; }
do sleep 1; echo -ne "."; done
echo "LocalSocketUp seen"

if nixops ssh "$canary" -- journalctl -u cardano-node |
grep "TraceNoLedgerView" >/dev/null
then fail "no ledger view, cluster is dead."; fi
then fail "cluster is dead: seen TraceNoLedgerView"; fi

tag=$(generate_run_tag "$batch" "$prof" "$node_commit")
dir="./runs/${tag}"
Expand Down

0 comments on commit 6b72072

Please sign in to comment.