From 0b11c2e1194b6ddd707ca7126760f60a0b30fc41 Mon Sep 17 00:00:00 2001 From: Rob Walker Date: Wed, 15 Aug 2018 13:59:30 -0700 Subject: [PATCH] restart testnet clients in case airdrop fails --- ci/testnet-deploy.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/ci/testnet-deploy.sh b/ci/testnet-deploy.sh index eee45e682..06bc1db91 100755 --- a/ci/testnet-deploy.sh +++ b/ci/testnet-deploy.sh @@ -276,10 +276,12 @@ client_start() { tmux new -s solana -d \" \ set -x; \ sudo rm /tmp/solana.log; \ - /snap/bin/solana.bench-tps $SOLANA_NET_ENTRYPOINT $fullnode_count --loop -s 600 --sustained -t \$threadCount 2>&1 | tee /tmp/solana.log; \ - echo 'https://metrics.solana.com:8086/write?db=${INFLUX_DATABASE}&u=${INFLUX_USERNAME}&p=${INFLUX_PASSWORD}' \ - | xargs curl --max-time 5 -XPOST --data-binary 'testnet-deploy,name=$netBasename clientexit=1'; \ - echo Error: bench-tps should never exit | tee -a /tmp/solana.log; \ + while : ; do \ + /snap/bin/solana.bench-tps $SOLANA_NET_ENTRYPOINT $fullnode_count --loop -s 600 --sustained -t \$threadCount 2>&1 | tee -a /tmp/solana.log; \ + echo 'https://metrics.solana.com:8086/write?db=${INFLUX_DATABASE}&u=${INFLUX_USERNAME}&p=${INFLUX_PASSWORD}' \ + | xargs curl --max-time 5 -XPOST --data-binary 'testnet-deploy,name=$netBasename clientexit=1'; \ + echo Error: bench-tps should never exit | tee -a /tmp/solana.log; \ + done \ bash \ \"; \ sleep 2; \