From 449b673c4b5f9875a67275cc170992e7f5c68d4d Mon Sep 17 00:00:00 2001 From: Yihau Chen Date: Thu, 20 Oct 2022 00:20:46 +0800 Subject: [PATCH] chore: upload system performance test result to Discord (#28458) upload system performance test result to Discord --- system-test/automation_utils.sh | 46 +++++++++++++++++++ .../colo-cpu-only-perf.yml | 1 + .../colo-gpu-perf-high-txcount.yml | 1 + .../deprecated-testcases/colo-gpu-perf.yml | 1 + .../gce-gpu-perf-100-node.yml | 1 + .../partition-testcases/colo-3-partition.yml | 1 + .../colo-partition-2-1-test.yml | 1 + .../colo-partition-long-sanity-test.yml | 1 + .../colo-partition-no-superminority-test.yml | 1 + .../colo-partition-once-then-stabilize.yml | 1 + .../gce-5-node-3-partition.yml | 1 + .../gce-5-node-single-region-2-partitions.yml | 1 + .../gce-partition-once-then-stabilize.yml | 1 + .../gce-partition-recovery.yml | 1 + .../gce-partition-with-offline.yml | 1 + .../aws-cpu-only-perf-10-node.yml | 1 + .../aws-cpu-only-perf-5-node.yml | 1 + .../azure-cpu-only-perf-5-node.yml | 1 + .../colo-cpu-only-perf-4-val-1-client.yml | 1 + .../colo-gpu-perf-4-val-1-client.yml | 1 + ...o-gpu-perf-high-txcount-4-val-1-client.yml | 1 + .../gce-cpu-only-perf-10-node.yml | 1 + ...gce-cpu-only-perf-5-node-single-region.yml | 1 + .../gce-cpu-only-perf-5-node.yml | 1 + .../gce-gpu-perf-10-node-single-region.yml | 1 + .../gce-gpu-perf-10-node.yml | 1 + .../gce-gpu-perf-25-node-single-region.yml | 1 + .../gce-gpu-perf-25-node.yml | 1 + .../gce-gpu-perf-5-node-single-region.yml | 1 + .../gce-gpu-perf-5-node.yml | 1 + .../gce-gpu-perf-50-node-single-region.yml | 1 + .../gce-gpu-perf-50-node.yml | 1 + .../colo-cpu-only-quick-sanity-test.yml | 1 + .../colo-partition-sanity-test.yml | 1 + .../colo-long-duration-cpu-only-perf.yml | 1 + .../colo-long-duration-gpu-perf.yml | 1 + ...ce-perf-stability-5-node-single-region.yml | 1 + .../gce-stability-5-node.yml | 1 + .../offline_stake_colo.yml | 1 + .../offline_stake_gce.yml | 1 + system-test/testnet-automation.sh | 3 ++ 41 files changed, 88 insertions(+) diff --git a/system-test/automation_utils.sh b/system-test/automation_utils.sh index ad2d261e4c..0b4046abee 100755 --- a/system-test/automation_utils.sh +++ b/system-test/automation_utils.sh @@ -292,6 +292,52 @@ EOF "$SLACK_WEBHOOK_URL" } +function upload_results_to_discord() { + echo --- Uploading results to Discord Performance Results App + + if [[ -z $DISCORD_WEBHOOK_URL ]] ; then + echo "DISCORD_WEBHOOK_URL undefined" + exit 1 + fi + + [[ -n $BUILDKITE_MESSAGE ]] || BUILDKITE_MESSAGE="Message not defined" + + COMMIT=$(git rev-parse HEAD) + COMMIT_BUTTON_TEXT="$(echo "$COMMIT" | head -c 8)" + COMMIT_URL="https://github.com/solana-labs/solana/commit/${COMMIT}" + + if [[ -n $BUILDKITE_BUILD_URL ]] ; then + BUILD_BUTTON_TEXT="Build Kite Job" + else + BUILD_BUTTON_TEXT="Build URL not defined" + BUILDKITE_BUILD_URL="https://buildkite.com/solana-labs/" + fi + + GRAFANA_URL="https://internal-metrics.solana.com:3000/d/monitor-${CHANNEL:-edge}/cluster-telemetry-${CHANNEL:-edge}?var-testnet=${TESTNET_TAG:-testnet-automation}&from=${TESTNET_START_UNIX_MSECS:-0}&to=${TESTNET_FINISH_UNIX_MSECS:-0}" + + [[ -n $RESULT_DETAILS ]] || RESULT_DETAILS="Undefined" + SANITIZED_RESULT=${RESULT_DETAILS//$'\n'/"\n"} + + [[ -n $TEST_CONFIGURATION ]] || TEST_CONFIGURATION="Undefined" + + curl "$DISCORD_WEBHOOK_URL" \ + -X POST \ + -H "Content-Type: application/json" \ + -d @- <) | [$BUILD_BUTTON_TEXT](<$BUILDKITE_BUILD_URL>) | [Grafana](<$GRAFANA_URL>)\n\ +Test Configuration:\n\ +\`\`\`$TEST_CONFIGURATION\`\`\`\n\ +Result Details:\n\ +\`\`\`$SANITIZED_RESULT\`\`\`\n\ +" +} +EOF +} + function get_net_launch_software_version_launch_args() { declare channel="${1?}" declare artifact_basename="${2?}" diff --git a/system-test/deprecated-testcases/colo-cpu-only-perf.yml b/system-test/deprecated-testcases/colo-cpu-only-perf.yml index 67ca844532..a79560ddf8 100755 --- a/system-test/deprecated-testcases/colo-cpu-only-perf.yml +++ b/system-test/deprecated-testcases/colo-cpu-only-perf.yml @@ -3,6 +3,7 @@ steps: label: "COLO performance testnet CPU only" env: UPLOAD_RESULTS_TO_SLACK: "true" + UPLOAD_RESULTS_TO_DISCORD: "true" CLOUD_PROVIDER: "colo" TESTNET_TAG: "colo-perf-cpu-only" ENABLE_GPU: "false" diff --git a/system-test/deprecated-testcases/colo-gpu-perf-high-txcount.yml b/system-test/deprecated-testcases/colo-gpu-perf-high-txcount.yml index 87b37ec6eb..1ff020f4ea 100755 --- a/system-test/deprecated-testcases/colo-gpu-perf-high-txcount.yml +++ b/system-test/deprecated-testcases/colo-gpu-perf-high-txcount.yml @@ -3,6 +3,7 @@ steps: label: "COLO performance testnet GPU enabled - High Tx Count" env: UPLOAD_RESULTS_TO_SLACK: "true" + UPLOAD_RESULTS_TO_DISCORD: "true" CLOUD_PROVIDER: "colo" TESTNET_TAG: "colo-perf-gpu-enabled" ENABLE_GPU: "true" diff --git a/system-test/deprecated-testcases/colo-gpu-perf.yml b/system-test/deprecated-testcases/colo-gpu-perf.yml index 84d5620da8..b7ffc17896 100755 --- a/system-test/deprecated-testcases/colo-gpu-perf.yml +++ b/system-test/deprecated-testcases/colo-gpu-perf.yml @@ -3,6 +3,7 @@ steps: label: "COLO performance testnet GPU enabled" env: UPLOAD_RESULTS_TO_SLACK: "true" + UPLOAD_RESULTS_TO_DISCORD: "true" CLOUD_PROVIDER: "colo" TESTNET_TAG: "colo-perf-gpu-enabled" ENABLE_GPU: "true" diff --git a/system-test/deprecated-testcases/gce-gpu-perf-100-node.yml b/system-test/deprecated-testcases/gce-gpu-perf-100-node.yml index 077b165bc1..0fe9a1cfa7 100755 --- a/system-test/deprecated-testcases/gce-gpu-perf-100-node.yml +++ b/system-test/deprecated-testcases/gce-gpu-perf-100-node.yml @@ -3,6 +3,7 @@ steps: label: "GCE - GPU Enabled 100 Nodes" env: UPLOAD_RESULTS_TO_SLACK: "true" + UPLOAD_RESULTS_TO_DISCORD: "true" CLOUD_PROVIDER: "gce" TESTNET_TAG: "gce-perf-gpu-enabled" TEST_DURATION_SECONDS: 600 diff --git a/system-test/partition-testcases/colo-3-partition.yml b/system-test/partition-testcases/colo-3-partition.yml index a7637b53e8..2255ebb432 100755 --- a/system-test/partition-testcases/colo-3-partition.yml +++ b/system-test/partition-testcases/colo-3-partition.yml @@ -3,6 +3,7 @@ steps: label: "Colo - CPU Only - Partial Loss 3 Partitions" env: UPLOAD_RESULTS_TO_SLACK: "true" + UPLOAD_RESULTS_TO_DISCORD: "true" CLOUD_PROVIDER: "colo" TESTNET_TAG: "colo-perf-cpu-only" NUMBER_OF_VALIDATOR_NODES: 2 diff --git a/system-test/partition-testcases/colo-partition-2-1-test.yml b/system-test/partition-testcases/colo-partition-2-1-test.yml index 8a1a54a90d..ae875d92a8 100644 --- a/system-test/partition-testcases/colo-partition-2-1-test.yml +++ b/system-test/partition-testcases/colo-partition-2-1-test.yml @@ -3,6 +3,7 @@ steps: label: "Colo - CPU Only - Complete Loss 2 - 1 Partition" env: UPLOAD_RESULTS_TO_SLACK: "true" + UPLOAD_RESULTS_TO_DISCORD: "true" CLOUD_PROVIDER: "colo" TESTNET_TAG: "colo-perf-cpu-only" NUMBER_OF_VALIDATOR_NODES: 2 diff --git a/system-test/partition-testcases/colo-partition-long-sanity-test.yml b/system-test/partition-testcases/colo-partition-long-sanity-test.yml index 994ef389db..dbf82694c9 100755 --- a/system-test/partition-testcases/colo-partition-long-sanity-test.yml +++ b/system-test/partition-testcases/colo-partition-long-sanity-test.yml @@ -3,6 +3,7 @@ steps: label: "Colo - CPU Only - Partial Loss 3 Partitions" env: UPLOAD_RESULTS_TO_SLACK: "true" + UPLOAD_RESULTS_TO_DISCORD: "true" CLOUD_PROVIDER: "colo" TESTNET_TAG: "colo-perf-cpu-only" NUMBER_OF_VALIDATOR_NODES: 2 diff --git a/system-test/partition-testcases/colo-partition-no-superminority-test.yml b/system-test/partition-testcases/colo-partition-no-superminority-test.yml index 58380eca2c..a3ccb0ac7f 100644 --- a/system-test/partition-testcases/colo-partition-no-superminority-test.yml +++ b/system-test/partition-testcases/colo-partition-no-superminority-test.yml @@ -3,6 +3,7 @@ steps: label: "Colo - CPU Only - Complete Loss 4 Partitions" env: UPLOAD_RESULTS_TO_SLACK: "true" + UPLOAD_RESULTS_TO_DISCORD: "true" CLOUD_PROVIDER: "colo" TESTNET_TAG: "colo-perf-cpu-only" NUMBER_OF_VALIDATOR_NODES: 2 diff --git a/system-test/partition-testcases/colo-partition-once-then-stabilize.yml b/system-test/partition-testcases/colo-partition-once-then-stabilize.yml index 7b867e1457..0e187bcc8c 100755 --- a/system-test/partition-testcases/colo-partition-once-then-stabilize.yml +++ b/system-test/partition-testcases/colo-partition-once-then-stabilize.yml @@ -3,6 +3,7 @@ steps: label: "Colo - CPU Only - 1 minute partition then 5 minute stabilization" env: UPLOAD_RESULTS_TO_SLACK: "true" + UPLOAD_RESULTS_TO_DISCORD: "true" CLOUD_PROVIDER: "colo" TESTNET_TAG: "colo-perf-cpu-only" NUMBER_OF_VALIDATOR_NODES: 2 diff --git a/system-test/partition-testcases/gce-5-node-3-partition.yml b/system-test/partition-testcases/gce-5-node-3-partition.yml index cc72ccde32..bbae390195 100755 --- a/system-test/partition-testcases/gce-5-node-3-partition.yml +++ b/system-test/partition-testcases/gce-5-node-3-partition.yml @@ -3,6 +3,7 @@ steps: label: "GCE - CPU Only 5 Node - Partial Loss 3 Partitions" env: UPLOAD_RESULTS_TO_SLACK: "true" + UPLOAD_RESULTS_TO_DISCORD: "true" CLOUD_PROVIDER: "gce" TESTNET_TAG: "gce-perf-cpu-only" NUMBER_OF_VALIDATOR_NODES: 5 diff --git a/system-test/partition-testcases/gce-5-node-single-region-2-partitions.yml b/system-test/partition-testcases/gce-5-node-single-region-2-partitions.yml index fdc5356a80..0c62c9f8de 100755 --- a/system-test/partition-testcases/gce-5-node-single-region-2-partitions.yml +++ b/system-test/partition-testcases/gce-5-node-single-region-2-partitions.yml @@ -3,6 +3,7 @@ steps: label: "GCE - 2 even partitions with full loss" env: UPLOAD_RESULTS_TO_SLACK: "true" + UPLOAD_RESULTS_TO_DISCORD: "true" CLOUD_PROVIDER: "gce" TESTNET_TAG: "gce-perf-cpu-only" NUMBER_OF_VALIDATOR_NODES: 5 diff --git a/system-test/partition-testcases/gce-partition-once-then-stabilize.yml b/system-test/partition-testcases/gce-partition-once-then-stabilize.yml index 2a867c73bd..ec435def2c 100755 --- a/system-test/partition-testcases/gce-partition-once-then-stabilize.yml +++ b/system-test/partition-testcases/gce-partition-once-then-stabilize.yml @@ -3,6 +3,7 @@ steps: label: "GCE - CPU Only - 1 minute partition then 5 minute stabilization" env: UPLOAD_RESULTS_TO_SLACK: "true" + UPLOAD_RESULTS_TO_DISCORD: "true" CLOUD_PROVIDER: "gce" TESTNET_TAG: "gce-perf-cpu-only" NUMBER_OF_VALIDATOR_NODES: 5 diff --git a/system-test/partition-testcases/gce-partition-recovery.yml b/system-test/partition-testcases/gce-partition-recovery.yml index 2b6f0cbce9..f0c1630cb7 100755 --- a/system-test/partition-testcases/gce-partition-recovery.yml +++ b/system-test/partition-testcases/gce-partition-recovery.yml @@ -3,6 +3,7 @@ steps: label: "Partition recovery on GCE" env: UPLOAD_RESULTS_TO_SLACK: "true" + UPLOAD_RESULTS_TO_DISCORD: "true" CLOUD_PROVIDER: "gce" ENABLE_GPU: "false" NUMBER_OF_VALIDATOR_NODES: 9 diff --git a/system-test/partition-testcases/gce-partition-with-offline.yml b/system-test/partition-testcases/gce-partition-with-offline.yml index ae51c47add..982481a897 100755 --- a/system-test/partition-testcases/gce-partition-with-offline.yml +++ b/system-test/partition-testcases/gce-partition-with-offline.yml @@ -3,6 +3,7 @@ steps: label: "GCE - CPU Only 5 Node - 20% network offline with 2 partitions" env: UPLOAD_RESULTS_TO_SLACK: "true" + UPLOAD_RESULTS_TO_DISCORD: "true" CLOUD_PROVIDER: "gce" TESTNET_TAG: "gce-perf-cpu-only" NUMBER_OF_VALIDATOR_NODES: 4 diff --git a/system-test/performance-testcases/aws-cpu-only-perf-10-node.yml b/system-test/performance-testcases/aws-cpu-only-perf-10-node.yml index 5bc23ead50..bca50aa6c6 100755 --- a/system-test/performance-testcases/aws-cpu-only-perf-10-node.yml +++ b/system-test/performance-testcases/aws-cpu-only-perf-10-node.yml @@ -3,6 +3,7 @@ steps: label: "AWS - CPU Only 10 Node" env: UPLOAD_RESULTS_TO_SLACK: "true" + UPLOAD_RESULTS_TO_DISCORD: "true" CLOUD_PROVIDER: "ec2" TESTNET_TAG: "aws-perf-cpu-only" TEST_DURATION_SECONDS: 600 diff --git a/system-test/performance-testcases/aws-cpu-only-perf-5-node.yml b/system-test/performance-testcases/aws-cpu-only-perf-5-node.yml index 7085eacf7d..cc9ac48f43 100755 --- a/system-test/performance-testcases/aws-cpu-only-perf-5-node.yml +++ b/system-test/performance-testcases/aws-cpu-only-perf-5-node.yml @@ -3,6 +3,7 @@ steps: label: "AWS - CPU Only 5 Node" env: UPLOAD_RESULTS_TO_SLACK: "true" + UPLOAD_RESULTS_TO_DISCORD: "true" CLOUD_PROVIDER: "ec2" TESTNET_TAG: "aws-perf-cpu-only" TEST_DURATION_SECONDS: 600 diff --git a/system-test/performance-testcases/azure-cpu-only-perf-5-node.yml b/system-test/performance-testcases/azure-cpu-only-perf-5-node.yml index f7bcbc9afe..a8fc529cef 100755 --- a/system-test/performance-testcases/azure-cpu-only-perf-5-node.yml +++ b/system-test/performance-testcases/azure-cpu-only-perf-5-node.yml @@ -3,6 +3,7 @@ steps: label: "Azure - CPU Only 5 Node" env: UPLOAD_RESULTS_TO_SLACK: "true" + UPLOAD_RESULTS_TO_DISCORD: "true" CLOUD_PROVIDER: "azure" TESTNET_TAG: "azure-perf-cpu-only" TEST_DURATION_SECONDS: 600 diff --git a/system-test/performance-testcases/colo-cpu-only-perf-4-val-1-client.yml b/system-test/performance-testcases/colo-cpu-only-perf-4-val-1-client.yml index b79a177494..8be728fb98 100755 --- a/system-test/performance-testcases/colo-cpu-only-perf-4-val-1-client.yml +++ b/system-test/performance-testcases/colo-cpu-only-perf-4-val-1-client.yml @@ -3,6 +3,7 @@ steps: label: "COLO performance testnet CPU only (reduced validator and client count)" env: UPLOAD_RESULTS_TO_SLACK: "true" + UPLOAD_RESULTS_TO_DISCORD: "true" CLOUD_PROVIDER: "colo" TESTNET_TAG: "colo-perf-cpu-only" ENABLE_GPU: "false" diff --git a/system-test/performance-testcases/colo-gpu-perf-4-val-1-client.yml b/system-test/performance-testcases/colo-gpu-perf-4-val-1-client.yml index fec68017cf..196e8dc9bc 100755 --- a/system-test/performance-testcases/colo-gpu-perf-4-val-1-client.yml +++ b/system-test/performance-testcases/colo-gpu-perf-4-val-1-client.yml @@ -3,6 +3,7 @@ steps: label: "COLO performance testnet GPU enabled (reduced validator and client count)" env: UPLOAD_RESULTS_TO_SLACK: "true" + UPLOAD_RESULTS_TO_DISCORD: "true" CLOUD_PROVIDER: "colo" TESTNET_TAG: "colo-perf-gpu-enabled" ENABLE_GPU: "true" diff --git a/system-test/performance-testcases/colo-gpu-perf-high-txcount-4-val-1-client.yml b/system-test/performance-testcases/colo-gpu-perf-high-txcount-4-val-1-client.yml index 4686290281..933068a463 100755 --- a/system-test/performance-testcases/colo-gpu-perf-high-txcount-4-val-1-client.yml +++ b/system-test/performance-testcases/colo-gpu-perf-high-txcount-4-val-1-client.yml @@ -3,6 +3,7 @@ steps: label: "COLO performance testnet GPU enabled - High Tx Count (reduced validator and client count)" env: UPLOAD_RESULTS_TO_SLACK: "true" + UPLOAD_RESULTS_TO_DISCORD: "true" CLOUD_PROVIDER: "colo" TESTNET_TAG: "colo-perf-gpu-enabled" ENABLE_GPU: "true" diff --git a/system-test/performance-testcases/gce-cpu-only-perf-10-node.yml b/system-test/performance-testcases/gce-cpu-only-perf-10-node.yml index e08a552abc..bb8c8a795a 100755 --- a/system-test/performance-testcases/gce-cpu-only-perf-10-node.yml +++ b/system-test/performance-testcases/gce-cpu-only-perf-10-node.yml @@ -3,6 +3,7 @@ steps: label: "GCE performance testnets CPU ONLY" env: UPLOAD_RESULTS_TO_SLACK: "true" + UPLOAD_RESULTS_TO_DISCORD: "true" CLOUD_PROVIDER: "gce" TESTNET_TAG: "gce-perf-cpu-only" TEST_DURATION_SECONDS: 600 diff --git a/system-test/performance-testcases/gce-cpu-only-perf-5-node-single-region.yml b/system-test/performance-testcases/gce-cpu-only-perf-5-node-single-region.yml index 92a398387f..388ddba62f 100755 --- a/system-test/performance-testcases/gce-cpu-only-perf-5-node-single-region.yml +++ b/system-test/performance-testcases/gce-cpu-only-perf-5-node-single-region.yml @@ -3,6 +3,7 @@ steps: label: "GCE - CPU Only 5 Node Single Zone" env: UPLOAD_RESULTS_TO_SLACK: "true" + UPLOAD_RESULTS_TO_DISCORD: "true" CLOUD_PROVIDER: "gce" TESTNET_TAG: "gce-perf-cpu-only" TEST_DURATION_SECONDS: 600 diff --git a/system-test/performance-testcases/gce-cpu-only-perf-5-node.yml b/system-test/performance-testcases/gce-cpu-only-perf-5-node.yml index 20c54f189e..f0ece2fd67 100755 --- a/system-test/performance-testcases/gce-cpu-only-perf-5-node.yml +++ b/system-test/performance-testcases/gce-cpu-only-perf-5-node.yml @@ -3,6 +3,7 @@ steps: label: "GCE - CPU Only 5 Node" env: UPLOAD_RESULTS_TO_SLACK: "true" + UPLOAD_RESULTS_TO_DISCORD: "true" CLOUD_PROVIDER: "gce" TESTNET_TAG: "gce-perf-cpu-only" TEST_DURATION_SECONDS: 600 diff --git a/system-test/performance-testcases/gce-gpu-perf-10-node-single-region.yml b/system-test/performance-testcases/gce-gpu-perf-10-node-single-region.yml index 71903e6e5d..f1416a71c3 100755 --- a/system-test/performance-testcases/gce-gpu-perf-10-node-single-region.yml +++ b/system-test/performance-testcases/gce-gpu-perf-10-node-single-region.yml @@ -3,6 +3,7 @@ steps: label: "GCE - GPU Enabled 10 Nodes" env: UPLOAD_RESULTS_TO_SLACK: "true" + UPLOAD_RESULTS_TO_DISCORD: "true" CLOUD_PROVIDER: "gce" TESTNET_TAG: "gce-perf-gpu-enabled" TEST_DURATION_SECONDS: 600 diff --git a/system-test/performance-testcases/gce-gpu-perf-10-node.yml b/system-test/performance-testcases/gce-gpu-perf-10-node.yml index 9ce070c852..a158c43aab 100755 --- a/system-test/performance-testcases/gce-gpu-perf-10-node.yml +++ b/system-test/performance-testcases/gce-gpu-perf-10-node.yml @@ -3,6 +3,7 @@ steps: label: "GCE - GPU Enabled 10 Nodes" env: UPLOAD_RESULTS_TO_SLACK: "true" + UPLOAD_RESULTS_TO_DISCORD: "true" CLOUD_PROVIDER: "gce" TESTNET_TAG: "gce-perf-gpu-enabled" TEST_DURATION_SECONDS: 600 diff --git a/system-test/performance-testcases/gce-gpu-perf-25-node-single-region.yml b/system-test/performance-testcases/gce-gpu-perf-25-node-single-region.yml index 785e0a2f55..234271db92 100755 --- a/system-test/performance-testcases/gce-gpu-perf-25-node-single-region.yml +++ b/system-test/performance-testcases/gce-gpu-perf-25-node-single-region.yml @@ -3,6 +3,7 @@ steps: label: "GCE - GPU Enabled 25 Nodes" env: UPLOAD_RESULTS_TO_SLACK: "true" + UPLOAD_RESULTS_TO_DISCORD: "true" CLOUD_PROVIDER: "gce" TESTNET_TAG: "gce-perf-gpu-enabled" TEST_DURATION_SECONDS: 600 diff --git a/system-test/performance-testcases/gce-gpu-perf-25-node.yml b/system-test/performance-testcases/gce-gpu-perf-25-node.yml index d538c59bd8..8e23c5df3b 100755 --- a/system-test/performance-testcases/gce-gpu-perf-25-node.yml +++ b/system-test/performance-testcases/gce-gpu-perf-25-node.yml @@ -3,6 +3,7 @@ steps: label: "GCE - GPU Enabled 25 Nodes" env: UPLOAD_RESULTS_TO_SLACK: "true" + UPLOAD_RESULTS_TO_DISCORD: "true" CLOUD_PROVIDER: "gce" TESTNET_TAG: "gce-perf-gpu-enabled" TEST_DURATION_SECONDS: 600 diff --git a/system-test/performance-testcases/gce-gpu-perf-5-node-single-region.yml b/system-test/performance-testcases/gce-gpu-perf-5-node-single-region.yml index 1e19f62ec8..6909f5ce5e 100755 --- a/system-test/performance-testcases/gce-gpu-perf-5-node-single-region.yml +++ b/system-test/performance-testcases/gce-gpu-perf-5-node-single-region.yml @@ -3,6 +3,7 @@ steps: label: "GCE - GPU Enabled 5 Nodes" env: UPLOAD_RESULTS_TO_SLACK: "true" + UPLOAD_RESULTS_TO_DISCORD: "true" CLOUD_PROVIDER: "gce" TESTNET_TAG: "gce-perf-gpu-enabled" TEST_DURATION_SECONDS: 600 diff --git a/system-test/performance-testcases/gce-gpu-perf-5-node.yml b/system-test/performance-testcases/gce-gpu-perf-5-node.yml index 61073fe2da..e65ec69b42 100755 --- a/system-test/performance-testcases/gce-gpu-perf-5-node.yml +++ b/system-test/performance-testcases/gce-gpu-perf-5-node.yml @@ -3,6 +3,7 @@ steps: label: "GCE - GPU Enabled 5 Nodes" env: UPLOAD_RESULTS_TO_SLACK: "true" + UPLOAD_RESULTS_TO_DISCORD: "true" CLOUD_PROVIDER: "gce" TESTNET_TAG: "gce-perf-gpu-enabled" TEST_DURATION_SECONDS: 600 diff --git a/system-test/performance-testcases/gce-gpu-perf-50-node-single-region.yml b/system-test/performance-testcases/gce-gpu-perf-50-node-single-region.yml index 5d9550b0f4..f36097a25e 100755 --- a/system-test/performance-testcases/gce-gpu-perf-50-node-single-region.yml +++ b/system-test/performance-testcases/gce-gpu-perf-50-node-single-region.yml @@ -3,6 +3,7 @@ steps: label: "GCE - GPU Enabled 50 Nodes" env: UPLOAD_RESULTS_TO_SLACK: "true" + UPLOAD_RESULTS_TO_DISCORD: "true" CLOUD_PROVIDER: "gce" TESTNET_TAG: "gce-perf-gpu-enabled" TEST_DURATION_SECONDS: 600 diff --git a/system-test/performance-testcases/gce-gpu-perf-50-node.yml b/system-test/performance-testcases/gce-gpu-perf-50-node.yml index 5592412756..bec916762a 100755 --- a/system-test/performance-testcases/gce-gpu-perf-50-node.yml +++ b/system-test/performance-testcases/gce-gpu-perf-50-node.yml @@ -3,6 +3,7 @@ steps: label: "GCE - GPU Enabled 50 Nodes" env: UPLOAD_RESULTS_TO_SLACK: "true" + UPLOAD_RESULTS_TO_DISCORD: "true" CLOUD_PROVIDER: "gce" TESTNET_TAG: "gce-perf-gpu-enabled" TEST_DURATION_SECONDS: 600 diff --git a/system-test/sanity-testcases/colo-cpu-only-quick-sanity-test.yml b/system-test/sanity-testcases/colo-cpu-only-quick-sanity-test.yml index 2c49185105..12b127b2c3 100755 --- a/system-test/sanity-testcases/colo-cpu-only-quick-sanity-test.yml +++ b/system-test/sanity-testcases/colo-cpu-only-quick-sanity-test.yml @@ -3,6 +3,7 @@ steps: label: "SANITY - Short duration Colo perf sanity. 1 val, 1 client, CPU-only." env: UPLOAD_RESULTS_TO_SLACK: "true" + UPLOAD_RESULTS_TO_DISCORD: "true" CLOUD_PROVIDER: "colo" TESTNET_TAG: "colo-perf-cpu-only" ENABLE_GPU: "false" diff --git a/system-test/sanity-testcases/colo-partition-sanity-test.yml b/system-test/sanity-testcases/colo-partition-sanity-test.yml index cfb40721a1..3610dc8c13 100755 --- a/system-test/sanity-testcases/colo-partition-sanity-test.yml +++ b/system-test/sanity-testcases/colo-partition-sanity-test.yml @@ -3,6 +3,7 @@ steps: label: "SANITY TEST - Colo - CPU Only - Partial Loss 3 Partitions" env: UPLOAD_RESULTS_TO_SLACK: "true" + UPLOAD_RESULTS_TO_DISCORD: "true" CLOUD_PROVIDER: "colo" TESTNET_TAG: "colo-perf-cpu-only" NUMBER_OF_VALIDATOR_NODES: 2 diff --git a/system-test/stability-testcases/colo-long-duration-cpu-only-perf.yml b/system-test/stability-testcases/colo-long-duration-cpu-only-perf.yml index 3006a0eb74..2dc0af943f 100755 --- a/system-test/stability-testcases/colo-long-duration-cpu-only-perf.yml +++ b/system-test/stability-testcases/colo-long-duration-cpu-only-perf.yml @@ -3,6 +3,7 @@ steps: label: "COLO 1 hour performance & stability CPU only" env: UPLOAD_RESULTS_TO_SLACK: "true" + UPLOAD_RESULTS_TO_DISCORD: "true" CLOUD_PROVIDER: "colo" TESTNET_TAG: "colo-perf-cpu-only" ENABLE_GPU: "false" diff --git a/system-test/stability-testcases/colo-long-duration-gpu-perf.yml b/system-test/stability-testcases/colo-long-duration-gpu-perf.yml index 008e1a53bd..c5f0c1af52 100755 --- a/system-test/stability-testcases/colo-long-duration-gpu-perf.yml +++ b/system-test/stability-testcases/colo-long-duration-gpu-perf.yml @@ -3,6 +3,7 @@ steps: label: "COLO 1 hour performance & stability GPU enabled" env: UPLOAD_RESULTS_TO_SLACK: "true" + UPLOAD_RESULTS_TO_DISCORD: "true" CLOUD_PROVIDER: "colo" TESTNET_TAG: "colo-perf-gpu-enabled" ENABLE_GPU: "true" diff --git a/system-test/stability-testcases/gce-perf-stability-5-node-single-region.yml b/system-test/stability-testcases/gce-perf-stability-5-node-single-region.yml index 150fb2a964..1408399941 100755 --- a/system-test/stability-testcases/gce-perf-stability-5-node-single-region.yml +++ b/system-test/stability-testcases/gce-perf-stability-5-node-single-region.yml @@ -3,6 +3,7 @@ steps: label: "GCE - 1 hour perf stability" env: UPLOAD_RESULTS_TO_SLACK: "true" + UPLOAD_RESULTS_TO_DISCORD: "true" CLOUD_PROVIDER: "gce" TESTNET_TAG: "gce-perf-cpu-only" TEST_DURATION_SECONDS: 3600 diff --git a/system-test/stability-testcases/gce-stability-5-node.yml b/system-test/stability-testcases/gce-stability-5-node.yml index ff71010c6b..3302caeec6 100755 --- a/system-test/stability-testcases/gce-stability-5-node.yml +++ b/system-test/stability-testcases/gce-stability-5-node.yml @@ -3,6 +3,7 @@ steps: label: "GCE - 8 hour Stability - 5 Node" env: UPLOAD_RESULTS_TO_SLACK: "true" + UPLOAD_RESULTS_TO_DISCORD: "true" CLOUD_PROVIDER: "gce" TESTNET_TAG: "gce-stability" TEST_DURATION_SECONDS: 28800 diff --git a/system-test/stake-operations-testcases/offline_stake_colo.yml b/system-test/stake-operations-testcases/offline_stake_colo.yml index 0ed17907c4..df4737a1b6 100755 --- a/system-test/stake-operations-testcases/offline_stake_colo.yml +++ b/system-test/stake-operations-testcases/offline_stake_colo.yml @@ -3,6 +3,7 @@ steps: label: "Running Offline Stake Operations Tests on Colo" env: UPLOAD_RESULTS_TO_SLACK: "true" + UPLOAD_RESULTS_TO_DISCORD: "true" CLOUD_PROVIDER: "colo" ENABLE_GPU: "false" TEST_DURATION_SECONDS: 30 diff --git a/system-test/stake-operations-testcases/offline_stake_gce.yml b/system-test/stake-operations-testcases/offline_stake_gce.yml index 39030f073e..3efbef776f 100755 --- a/system-test/stake-operations-testcases/offline_stake_gce.yml +++ b/system-test/stake-operations-testcases/offline_stake_gce.yml @@ -3,6 +3,7 @@ steps: label: "Running Offline Stake Operations Tests on GCE" env: UPLOAD_RESULTS_TO_SLACK: "true" + UPLOAD_RESULTS_TO_DISCORD: "true" CLOUD_PROVIDER: "gce" ENABLE_GPU: "false" TEST_DURATION_SECONDS: 30 diff --git a/system-test/testnet-automation.sh b/system-test/testnet-automation.sh index 00426e18d8..ec0844679d 100755 --- a/system-test/testnet-automation.sh +++ b/system-test/testnet-automation.sh @@ -22,6 +22,9 @@ $*" upload_results_to_slack fi + if [[ "$UPLOAD_RESULTS_TO_DISCORD" = "true" ]]; then + upload_results_to_discord + fi ( execution_step "Collecting Logfiles from Nodes"