Add Azure testnet to automation (#6911)

* Add Azure testnet to automation
This commit is contained in:
Dan Albert 2019-11-14 09:14:53 -05:00 committed by GitHub
parent 43e2301e2c
commit f27c11ccd8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 43 additions and 1 deletions

View File

@ -222,8 +222,8 @@ cloud_CreateInstances() {
--tags testnet
--image UbuntuLTS
--size "$machineType"
--ssh-key-values "$(cat "${sshPrivateKey}".pub)"
--location "$zone"
--generate-ssh-keys
--nsg "$nsgName"
)

View File

@ -0,0 +1,19 @@
steps:
- command: "system-test/testnet-performance/testnet-automation.sh"
label: "Azure - CPU Only 5 Node"
env:
UPLOAD_RESULTS_TO_SLACK: "true"
CLOUD_PROVIDER: "azure"
TESTNET_TAG: "azure-perf-cpu-only"
RAMP_UP_TIME: 0
TEST_DURATION_SECONDS: 600
NUMBER_OF_VALIDATOR_NODES: 5
ENABLE_GPU: "false"
VALIDATOR_NODE_MACHINE_TYPE: "Standard_D16s_v3"
NUMBER_OF_CLIENT_NODES: 2
CLIENT_OPTIONS: "bench-tps=2=--tx_count 15000 --thread-batch-sleep-ms 250"
TESTNET_ZONES: "westus"
USE_PUBLIC_IP_ADDRESSES: "true"
ADDITIONAL_FLAGS: ""
agents:
- "queue=testnet-deploy"

View File

@ -108,6 +108,19 @@ EOF
label: "Delete Testnet"
agents:
- "queue=testnet-deploy"
EOF
) | buildkite-agent pipeline upload
;;
azure)
(
cat <<EOF
- wait: ~
continue_on_failure: true
- command: "net/azure.sh delete -p ${TESTNET_TAG}"
label: "Delete Testnet"
agents:
- "queue=testnet-deploy"
EOF
) | buildkite-agent pipeline upload
;;
@ -163,6 +176,16 @@ function launchTestnet() {
${TESTNET_CLOUD_ZONES[@]/#/"-z "} \
${ADDITIONAL_FLAGS[@]/#/" "}
;;
azure)
# shellcheck disable=SC2068
# shellcheck disable=SC2086
net/azure.sh create \
-n "$NUMBER_OF_VALIDATOR_NODES" -c "$NUMBER_OF_CLIENT_NODES" \
$maybeCustomMachineType "$VALIDATOR_NODE_MACHINE_TYPE" $maybeEnableGpu \
-p "$TESTNET_TAG" $maybeCreateAllowBootFailures $maybePublicIpAddresses \
${TESTNET_CLOUD_ZONES[@]/#/"-z "} \
${ADDITIONAL_FLAGS[@]/#/" "}
;;
colo)
# shellcheck disable=SC2068
# shellcheck disable=SC2086