testnet-edge/testnet-beta now update while preserving the ledger (#5979)

* Check if an update is current before deploying it again

* Add (new) update command to deploy testnet updates

* Add --deploy-if-newer flag to permit conditional net updates
This commit is contained in:
Michael Vines
2019-09-19 12:03:47 -07:00
committed by GitHub
parent 9917ece826
commit fee5c6c057
5 changed files with 68 additions and 39 deletions

View File

@@ -219,6 +219,7 @@ sanity() {
NO_INSTALL_CHECK=1 \
NO_VALIDATOR_SANITY=1 \
ci/testnet-sanity.sh edge-testnet-solana-com gce us-west1-b
time net/net.sh restart --skip-setup --deploy-if-newer -t "$CHANNEL_OR_TAG"
)
;;
testnet-edge-perf)
@@ -235,6 +236,7 @@ sanity() {
NO_INSTALL_CHECK=1 \
NO_VALIDATOR_SANITY=1 \
ci/testnet-sanity.sh beta-testnet-solana-com gce us-west1-b
time net/net.sh restart --skip-setup --deploy-if-newer -t "$CHANNEL_OR_TAG"
)
;;
testnet-beta-perf)
@@ -376,6 +378,7 @@ deploy() {
${skipStart:+-s} \
${maybeStop:+-S} \
${maybeDelete:+-D}
time net/net.sh update -t "$CHANNEL_OR_TAG" --platform\ {linux,osx,windows}
)
;;
testnet-perf)
@@ -405,7 +408,6 @@ deploy() {
NO_VALIDATOR_SANITY=1 \
ci/testnet-deploy.sh -p demo-testnet-solana-com -C gce ${GCE_ZONE_ARGS[@]} \
-t "$CHANNEL_OR_TAG" -n "$GCE_NODE_COUNT" -c 0 -P -u -f \
--skip-deploy-update \
--skip-remote-log-retrieval \
-a demo-testnet-solana-com \
${skipCreate:+-e} \
@@ -418,7 +420,6 @@ deploy() {
NO_VALIDATOR_SANITY=1 \
ci/testnet-deploy.sh -p demo-testnet-solana-com2 -C gce ${GCE_LOW_QUOTA_ZONE_ARGS[@]} \
-t "$CHANNEL_OR_TAG" -n "$GCE_LOW_QUOTA_NODE_COUNT" -c 0 -P -f -x \
--skip-deploy-update \
--skip-remote-log-retrieval \
${skipCreate:+-e} \
${skipStart:+-s} \
@@ -540,8 +541,7 @@ deploy() {
${maybeInternalNodesLamports} \
${maybeExternalAccountsFile} \
${maybeLamports} \
${maybeAdditionalDisk} \
--skip-deploy-update
${maybeAdditionalDisk}
)
;;
*)