Swap testnet-beta and testnet configuration

This commit is contained in:
Michael Vines 2019-04-26 23:23:42 -07:00
parent c81733b41a
commit d36af917ea
No known key found for this signature in database
GPG Key ID: 33F4FDEC4E0E88BD
1 changed files with 45 additions and 54 deletions

View File

@ -92,12 +92,12 @@ testnet-beta|testnet-beta-perf)
CHANNEL_OR_TAG=beta CHANNEL_OR_TAG=beta
CHANNEL_BRANCH=$BETA_CHANNEL CHANNEL_BRANCH=$BETA_CHANNEL
: "${TESTNET_DB_HOST:=https://clocktower-f1d56615.influxcloud.net:8086}" : "${TESTNET_DB_HOST:=https://clocktower-f1d56615.influxcloud.net:8086}"
: "${EC2_NODE_COUNT:=10}"
: "${GCE_NODE_COUNT:=}"
;; ;;
testnet) testnet)
CHANNEL_OR_TAG=$STABLE_CHANNEL_LATEST_TAG CHANNEL_OR_TAG=$STABLE_CHANNEL_LATEST_TAG
CHANNEL_BRANCH=$STABLE_CHANNEL CHANNEL_BRANCH=$STABLE_CHANNEL
: "${EC2_NODE_COUNT:=10}"
: "${GCE_NODE_COUNT:=}"
: "${TESTNET_DB_HOST:=https://clocktower-f1d56615.influxcloud.net:8086}" : "${TESTNET_DB_HOST:=https://clocktower-f1d56615.influxcloud.net:8086}"
;; ;;
testnet-perf) testnet-perf)
@ -105,15 +105,9 @@ testnet-perf)
CHANNEL_BRANCH=$STABLE_CHANNEL CHANNEL_BRANCH=$STABLE_CHANNEL
;; ;;
testnet-demo) testnet-demo)
CHANNEL_OR_TAG=edge CHANNEL_OR_TAG=beta
CHANNEL_BRANCH=$EDGE_CHANNEL CHANNEL_BRANCH=$BETA_CHANNEL
#CHANNEL_OR_TAG=beta : "${GCE_NODE_COUNT:=200}"
#CHANNEL_BRANCH=$BETA_CHANNEL
: "${GCE_NODE_COUNT:=10}"
# TODO: Increase zone list to maximum
GCE_ZONES=(us-west1-b us-east4-c)
;; ;;
*) *)
echo "Error: Invalid TESTNET=$TESTNET" echo "Error: Invalid TESTNET=$TESTNET"
@ -185,19 +179,8 @@ sanity() {
testnet-beta) testnet-beta)
( (
set -x set -x
NO_LEDGER_VERIFY=1 \
ok=true ci/testnet-sanity.sh beta-testnet-solana-com ec2 us-west-1a
if [[ -n $EC2_NODE_COUNT ]]; then
NO_LEDGER_VERIFY=1 \
ci/testnet-sanity.sh beta-testnet-solana-com ec2 "${EC2_ZONES[0]}" || ok=false
elif [[ -n $GCE_NODE_COUNT ]]; then
NO_LEDGER_VERIFY=1 \
ci/testnet-sanity.sh beta-testnet-solana-com gce "${GCE_ZONES[0]}" || ok=false
else
echo "Error: no EC2 or GCE nodes"
ok=false
fi
$ok
) )
;; ;;
testnet-beta-perf) testnet-beta-perf)
@ -212,9 +195,19 @@ sanity() {
testnet) testnet)
( (
set -x set -x
NO_LEDGER_VERIFY=1 \
ci/testnet-sanity.sh testnet-solana-com ec2 us-west-1a ok=true
#ci/testnet-sanity.sh testnet-solana-com gce us-east1-c if [[ -n $EC2_NODE_COUNT ]]; then
NO_LEDGER_VERIFY=1 \
ci/testnet-sanity.sh testnet-solana-com ec2 "${EC2_ZONES[0]}" || ok=false
elif [[ -n $GCE_NODE_COUNT ]]; then
NO_LEDGER_VERIFY=1 \
ci/testnet-sanity.sh testnet-solana-com gce "${GCE_ZONES[0]}" || ok=false
else
echo "Error: no EC2 or GCE nodes"
ok=false
fi
$ok
) )
;; ;;
testnet-perf) testnet-perf)
@ -301,31 +294,14 @@ deploy() {
testnet-beta) testnet-beta)
( (
set -x set -x
NO_VALIDATOR_SANITY=1 \
if [[ -n $EC2_NODE_COUNT ]]; then ci/testnet-deploy.sh -p beta-testnet-solana-com -C ec2 -z us-west-1a \
if [[ -n $GCE_NODE_COUNT ]] || [[ -n $skipStart ]]; then -t "$CHANNEL_OR_TAG" -n 3 -c 0 -u -P -a eipalloc-0f286cf8a0771ce35 \
maybeSkipStart="skip" -b \
fi
# shellcheck disable=SC2068
ci/testnet-deploy.sh -p beta-testnet-solana-com -C ec2 ${EC2_ZONE_ARGS[@]} \
-t "$CHANNEL_OR_TAG" -n "$EC2_NODE_COUNT" -c 0 -u -P -a eipalloc-0f286cf8a0771ce35 \
${skipCreate:+-r} \
${maybeSkipStart:+-s} \
${maybeStop:+-S} \
${maybeDelete:+-D}
fi
if [[ -n $GCE_NODE_COUNT ]]; then
# shellcheck disable=SC2068
ci/testnet-deploy.sh -p beta-testnet-solana-com -C gce ${GCE_ZONE_ARGS[@]} \
-t "$CHANNEL_OR_TAG" -n "$GCE_NODE_COUNT" -c 0 -P \
${skipCreate:+-r} \ ${skipCreate:+-r} \
${skipStart:+-s} \ ${skipStart:+-s} \
${maybeStop:+-S} \ ${maybeStop:+-S} \
${maybeDelete:+-D} \ ${maybeDelete:+-D}
${EC2_NODE_COUNT:+-x}
fi
) )
;; ;;
testnet-beta-perf) testnet-beta-perf)
@ -346,14 +322,29 @@ deploy() {
testnet) testnet)
( (
set -x set -x
NO_VALIDATOR_SANITY=1 \
ci/testnet-deploy.sh -p testnet-solana-com -C ec2 -z us-west-1a \ if [[ -n $GCE_NODE_COUNT ]] || [[ -n $skipStart ]]; then
-t "$CHANNEL_OR_TAG" -n 3 -c 0 -u -P -a eipalloc-0fa502bf95f6f18b2 \ maybeSkipStart="skip"
-b \ fi
# shellcheck disable=SC2068
ci/testnet-deploy.sh -p testnet-solana-com -C ec2 ${EC2_ZONE_ARGS[@]} \
-t "$CHANNEL_OR_TAG" -n "$EC2_NODE_COUNT" -c 0 -u -P -a eipalloc-0fa502bf95f6f18b2 \
${skipCreate:+-r} \
${maybeSkipStart:+-s} \
${maybeStop:+-S} \
${maybeDelete:+-D}
if [[ -n $GCE_NODE_COUNT ]]; then
# shellcheck disable=SC2068
ci/testnet-deploy.sh -p testnet-solana-com -C gce ${GCE_ZONE_ARGS[@]} \
-t "$CHANNEL_OR_TAG" -n "$GCE_NODE_COUNT" -c 0 -P \
${skipCreate:+-r} \ ${skipCreate:+-r} \
${skipStart:+-s} \ ${skipStart:+-s} \
${maybeStop:+-S} \ ${maybeStop:+-S} \
${maybeDelete:+-D} ${maybeDelete:+-D} \
${EC2_NODE_COUNT:+-x}
fi
) )
;; ;;
testnet-perf) testnet-perf)