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
This commit is contained in:
Pankaj Garg 2018-11-05 13:50:33 -08:00 committed by GitHub
parent 1a7830f460
commit c4346e6191
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 4 deletions

View File

@ -1,5 +1,5 @@
steps:
- command: "ci/snap.sh"
- command: "test -n $USE_PREBUILT_CHANNEL_TARBALL || ci/snap.sh"
label: "create snap"
- wait

View File

@ -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"