From c4346e61917bb43293a09af46f9c6a4f8cab3a05 Mon Sep 17 00:00:00 2001 From: Pankaj Garg Date: Mon, 5 Nov 2018 13:50:33 -0800 Subject: [PATCH] Add testnet pipeline for prebuilt images (#1708) * Add testnet pipeline for prebuilt images - It'll speed up testnet testing for released images * removed quotes from variable * address review comments * fix testnet automation error --- ci/solana-testnet.yml | 2 +- ci/testnet-automation.sh | 13 ++++++++++--- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/ci/solana-testnet.yml b/ci/solana-testnet.yml index 4c93cec8f5..c85ae45213 100755 --- a/ci/solana-testnet.yml +++ b/ci/solana-testnet.yml @@ -1,5 +1,5 @@ steps: - - command: "ci/snap.sh" + - command: "test -n $USE_PREBUILT_CHANNEL_TARBALL || ci/snap.sh" label: "create snap" - wait diff --git a/ci/testnet-automation.sh b/ci/testnet-automation.sh index b9491e0ea8..c0b83ee394 100755 --- a/ci/testnet-automation.sh +++ b/ci/testnet-automation.sh @@ -2,8 +2,10 @@ cd "$(dirname "$0")/.." -echo --- downloading snap from build artifacts -buildkite-agent artifact download "solana_*.snap" . +if [[ -z $USE_PREBUILT_CHANNEL_TARBALL ]]; then + echo --- downloading snap from build artifacts + buildkite-agent artifact download "solana_*.snap" . +fi # shellcheck disable=SC1091 source ci/upload_ci_artifact.sh @@ -15,6 +17,7 @@ source ci/upload_ci_artifact.sh [[ -n $CLIENT_COUNT ]] || CLIENT_COUNT=2 [[ -n $TESTNET_TAG ]] || TESTNET_TAG=testnet-automation [[ -n $TESTNET_ZONE ]] || TESTNET_ZONE=us-west1-b +[[ -n $CHANNEL ]] || CHANNEL=beta launchTestnet() { declare nodeCount=$1 @@ -28,7 +31,11 @@ launchTestnet() { net/init-metrics.sh -e echo --- start "$nodeCount" node test - net/net.sh start -o noValidatorSanity -S solana_*.snap + if [[ -n $USE_PREBUILT_CHANNEL_TARBALL ]]; then + net/net.sh start -o noValidatorSanity -t "$CHANNEL" + else + net/net.sh start -o noValidatorSanity -S solana_*.snap + fi echo --- wait "$ITERATION_WAIT" seconds to complete test sleep "$ITERATION_WAIT"