-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Restructure and add cleanup utilities
- Loading branch information
1 parent
8d6acf7
commit d9f813f
Showing
4 changed files
with
92 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
- command: "tests/testnet-performance/utils.sh logs" | ||
label: "Collect logs" | ||
agents: | ||
- "queue=colo-deploy" | ||
|
||
- wait: ~ | ||
continue_on_failure: true | ||
|
||
- command: "tests/testnet-performance/utils.sh stop" | ||
label: "Stop Network software" | ||
agents: | ||
- "queue=colo-deploy" | ||
|
||
- wait: ~ | ||
continue_on_failure: true | ||
|
||
- command: "tests/testnet-performance/utils.sh delete" | ||
label: "Delete Testnet" | ||
agents: | ||
- "queue=colo-deploy" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,35 @@ | ||
CLOUD_PROVIDER: "colo" | ||
TESTNET_TAG: "colo-edge-perf-gpu-enabled" | ||
CHANNEL: edge | ||
RAMP_UP_TIME: 60 | ||
TEST_DURATION: 300 | ||
NUMBER_OF_VALIDATOR_NODES: 2 | ||
NUMBER_OF_CLIENT_NODES: 1 | ||
CLIENT_OPTIONS: "bench-tps=1=--tx_count 80000 --thread-batch-sleep-ms 1000" | ||
ADDITIONAL_FLAGS: "" | ||
|
||
steps: | ||
- command: "tests/testnet-performance/testnet-automation.sh" | ||
label: "COLO performance testnet on EDGE channel GPU ENABLED" | ||
# branches: 'master' | ||
env: | ||
CLOUD_PROVIDER: "colo" | ||
TESTNET_TAG: "colo-edge-perf-gpu-enabled" | ||
CHANNEL: edge | ||
RAMP_UP_TIME: 60 | ||
TEST_DURATION: 300 | ||
NUMBER_OF_VALIDATOR_NODES: 2 | ||
NUMBER_OF_CLIENT_NODES: 1 | ||
CLIENT_OPTIONS: "bench-tps=1=--tx_count 80000 --thread-batch-sleep-ms 1000" | ||
ADDITIONAL_FLAGS: "" | ||
agents: | ||
- "queue=colo-deploy" | ||
|
||
- wait: ~ | ||
continue_on_failure: true | ||
|
||
- command: "tests/testnet-performance/testnet-automation.sh" | ||
label: "COLO performance testnet on BETA channel GPU ENABLED" | ||
# branches: 'v0.19' | ||
env: | ||
CLOUD_PROVIDER: "colo" | ||
TESTNET_TAG: "colo-beta-perf-gpu-enabled" | ||
CHANNEL: beta | ||
RAMP_UP_TIME: 60 | ||
TEST_DURATION: 300 | ||
NUMBER_OF_VALIDATOR_NODES: 2 | ||
NUMBER_OF_CLIENT_NODES: 1 | ||
CLIENT_OPTIONS: "bench-tps=1=--tx_count 80000 --thread-batch-sleep-ms 1000" | ||
ADDITIONAL_FLAGS: "" | ||
agents: | ||
- "queue=colo-deploy" | ||
# - wait: ~ | ||
# continue_on_failure: true | ||
# | ||
# - command: "tests/testnet-performance/testnet-automation.sh" | ||
# label: "COLO performance testnet on BETA channel GPU ENABLED" | ||
## branches: 'v0.19' | ||
# env: | ||
# CLOUD_PROVIDER: "colo" | ||
# TESTNET_TAG: "colo-beta-perf-gpu-enabled" | ||
# CHANNEL: beta | ||
# RAMP_UP_TIME: 60 | ||
# TEST_DURATION: 300 | ||
# NUMBER_OF_VALIDATOR_NODES: 2 | ||
# NUMBER_OF_CLIENT_NODES: 1 | ||
# CLIENT_OPTIONS: "bench-tps=1=--tx_count 80000 --thread-batch-sleep-ms 1000" | ||
# ADDITIONAL_FLAGS: "" | ||
# agents: | ||
# - "queue=colo-deploy" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#!/usr/bin/env bash | ||
|
||
cd "$(dirname "$0")/../.." | ||
command=$1 | ||
|
||
case $command in | ||
stop) | ||
echo --- stop network software | ||
net/net.sh stop -p $TESTNET_TAG | ||
;; | ||
delete) | ||
echo --- delete testnet | ||
case $CLOUD_PROVIDER in | ||
gce) | ||
net/gce.sh delete -p $TESTNET_TAG | ||
;; | ||
colo) | ||
net/colo.sh delete -p $TESTNET_TAG | ||
;; | ||
*) | ||
echo "Error: Unsupported cloud provider: $CLOUD_PROVIDER" | ||
;; | ||
esac | ||
;; | ||
logs) | ||
echo --- collect logs from remote nodes | ||
rm -rf net/log | ||
net/net.sh logs | ||
for logfile in $(ls -A net/log) ; do | ||
new_log=net/log/"$TESTNET_TAG"_"$NUMBER_OF_VALIDATOR_NODES"-nodes_"$(basename "$logfile")" | ||
cp net/log/"$logfile" "$new_log" | ||
upload-ci-artifact "$new_log" | ||
done | ||
;; | ||
*) | ||
echo "Internal error: Unknown command: $command" | ||
exit 1 | ||
esac |