Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Commit

Permalink
Include blockstreamer node in sanity
Browse files Browse the repository at this point in the history
  • Loading branch information
mvines committed Apr 9, 2019
1 parent 62c28a8 commit 0b95a5c
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions net/net.sh
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ startBootstrapLeader() {
bootstrap-leader \
$publicNetwork \
$entrypointIp \
${#fullnodeIpList[@]} \
$((${#fullnodeIpList[@]} + ${#blockstreamerIpList[@]})) \
\"$RUST_LOG\" \
$skipSetup \
$leaderRotation \
Expand Down Expand Up @@ -226,7 +226,7 @@ startNode() {
$nodeType \
$publicNetwork \
$entrypointIp \
${#fullnodeIpList[@]} \
$((${#fullnodeIpList[@]} + ${#blockstreamerIpList[@]})) \
\"$RUST_LOG\" \
$skipSetup \
$leaderRotation \
Expand Down Expand Up @@ -260,12 +260,23 @@ sanity() {
echo "--- Sanity"
$metricsWriteDatapoint "testnet-deploy net-sanity-begin=1"

declare host=${fullnodeIpList[0]}
declare bootstrapLeader=${fullnodeIpList[0]}
declare blockstreamer=${blockstreamerIpList[0]}
(
set -x
echo "--- Sanity: $bootstrapLeader"
# shellcheck disable=SC2029 # remote-client.sh args are expanded on client side intentionally
ssh "${sshOptions[@]}" "$host" \
ssh "${sshOptions[@]}" "$bootstrapLeader" \
"./solana/net/remote/remote-sanity.sh $sanityExtraArgs \"$RUST_LOG\""

# If there's a blockstreamer node run a reduced sanity check on it as well
if [[ -n $blockstreamer ]]; then
echo "--- Sanity: $blockstreamer"
# shellcheck disable=SC2029 # remote-client.sh args are expanded on client side intentionally
ssh "${sshOptions[@]}" "$blockstreamer" \
"./solana/net/remote/remote-sanity.sh $sanityExtraArgs -o noLedgerVerify -o noValidatorSanity \"$RUST_LOG\""

fi
) || ok=false

$metricsWriteDatapoint "testnet-deploy net-sanity-complete=1"
Expand Down

0 comments on commit 0b95a5c

Please sign in to comment.