From ce8796bc2e0fcef6a5f4278be99623e62e997533 Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Mon, 23 Jul 2018 19:54:52 -0700 Subject: [PATCH] Correctly calculate the expected number of full nodes --- ci/testnet-deploy.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/ci/testnet-deploy.sh b/ci/testnet-deploy.sh index dd4d00f534..2502ca5101 100755 --- a/ci/testnet-deploy.sh +++ b/ci/testnet-deploy.sh @@ -109,6 +109,13 @@ findVms client "name~^$leaderName-client" echo "Validator nodes:" findVms validator "name~^$leaderName-validator-" +fullnode_count=0 +inc_fullnode_count() { + fullnode_count=$((fullnode_count + 1)) +} +vm_foreach_in_class leader inc_fullnode_count +vm_foreach_in_class validator inc_fullnode_count + # Add "network stopping" datapoint netName=${SOLANA_NET_URL%testnet.solana.com} netName=${netName:0:8} @@ -149,7 +156,7 @@ client_start() { sudo snap set solana metrics-config=$SOLANA_METRICS_CONFIG; \ snap info solana; \ tmux new -s solana -d \" \ - /snap/bin/solana.bench-tps $SOLANA_NET_URL ${#vmlist[@]} --loop 2>&1 | tee /tmp/solana.log; \ + /snap/bin/solana.bench-tps $SOLANA_NET_URL $fullnode_count --loop 2>&1 | tee /tmp/solana.log; \ echo Error: bench-tps should never exit; \ bash \ \"; \ @@ -290,13 +297,6 @@ wait_for_pids validators echo "--- $publicUrl sanity test" ( - fullnode_count=0 - inc_fullnode_count() { - fullnode_count=$((fullnode_count + 1)) - } - vm_foreach_in_class leader inc_fullnode_count - vm_foreach_in_class validator inc_fullnode_count - set -x USE_SNAP=1 ci/testnet-sanity.sh $publicUrl $fullnode_count )