Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions ci/testnet-automation.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,25 @@ source ci/upload-ci-artifact.sh
[[ -n $LEADER_CPU_MACHINE_TYPE ]] ||
LEADER_CPU_MACHINE_TYPE="--machine-type n1-standard-16 --accelerator count=2,type=nvidia-tesla-v100"
[[ -n $CLIENT_COUNT ]] || CLIENT_COUNT=2
[[ -n $CLIENT_OPTIONS ]] || CLIENT_OPTIONS=""
[[ -n $TESTNET_TAG ]] || TESTNET_TAG=testnet-automation
[[ -n $TESTNET_ZONES ]] || TESTNET_ZONES="us-west1-b"
[[ -n $CHANNEL ]] || CHANNEL=beta
[[ -n $ADDITIONAL_FLAGS ]] || ADDITIONAL_FLAGS=""

TESTNET_CLOUD_ZONES=(); while read -r -d, ; do TESTNET_CLOUD_ZONES+=( "$REPLY" ); done <<< "${TESTNET_ZONES},"

maybeClientOptions=
if [[ -n $CLIENT_OPTIONS ]] ; then
maybeClientOptions="-c"
fi

launchTestnet() {
declare nodeCount=$1
echo --- setup "$nodeCount" node test

set -x

# shellcheck disable=SC2068
net/gce.sh create \
-d pd-ssd \
Expand All @@ -39,16 +47,14 @@ launchTestnet() {

echo --- start "$nodeCount" node test
if [[ -n $USE_PREBUILT_CHANNEL_TARBALL ]]; then
net/net.sh start -f "cuda" -o noValidatorSanity -t "$CHANNEL"
net/net.sh start -f "cuda" -o noValidatorSanity -t "$CHANNEL" -c bench-tps=1="--tx_count 50000 --thread-batch-sleep-ms 1000"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

-c 'bench-tps=1="--tx_count 50000 --thread-batch-sleep-ms 1000"' oughta do it I'd think

else
net/net.sh start -f "cuda" -o noValidatorSanity -T solana-release*.tar.bz2
net/net.sh start -f "cuda" -o noValidatorSanity -T solana-release*.tar.bz2 -c bench-tps=1="--tx_count 50000 --thread-batch-sleep-ms 1000"
fi

echo --- wait "$ITERATION_WAIT" seconds to complete test
sleep "$ITERATION_WAIT"

set -x

declare q_mean_tps='
SELECT round(mean("sum_count")) AS "mean_tps" FROM (
SELECT sum("count") AS "sum_count"
Expand Down