Skip to content

Commit

Permalink
Add TEST_TYPE parameter to each testcase
Browse files Browse the repository at this point in the history
  • Loading branch information
danpaul000 committed Mar 17, 2020
1 parent e6cc249 commit 3a3bddf
Show file tree
Hide file tree
Showing 30 changed files with 31 additions and 1 deletion.
1 change: 1 addition & 0 deletions system-test/deprecated-testcases/colo-cpu-only-perf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@ steps:
NUMBER_OF_CLIENT_NODES: 2
CLIENT_OPTIONS: "bench-tps=2=--tx_count 20000 --thread-batch-sleep-ms 250"
ADDITIONAL_FLAGS: ""
TEST_TYPE: "fixed_duration"
agents:
- "queue=colo-deploy"
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@ steps:
NUMBER_OF_CLIENT_NODES: 2
CLIENT_OPTIONS: "bench-tps=2=--tx_count 30000 --thread-batch-sleep-ms 250"
ADDITIONAL_FLAGS: ""
TEST_TYPE: "fixed_duration"
agents:
- "queue=colo-deploy"
1 change: 1 addition & 0 deletions system-test/deprecated-testcases/colo-gpu-perf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@ steps:
NUMBER_OF_CLIENT_NODES: 2
CLIENT_OPTIONS: "bench-tps=2=--tx_count 20000 --thread-batch-sleep-ms 250"
ADDITIONAL_FLAGS: ""
TEST_TYPE: "fixed_duration"
agents:
- "queue=colo-deploy"
1 change: 1 addition & 0 deletions system-test/deprecated-testcases/gce-gpu-perf-100-node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,6 @@ steps:
ALLOW_BOOT_FAILURES: "true"
USE_PUBLIC_IP_ADDRESSES: "true"
ADDITIONAL_FLAGS: "--dedicated"
TEST_TYPE: "fixed_duration"
agents:
- "queue=gce-deploy"
1 change: 1 addition & 0 deletions system-test/partition-testcases/colo-3-partition.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,6 @@ steps:
PARTITION_ACTIVE_DURATION: 30
PARTITION_INACTIVE_DURATION: 30
PARTITION_ITERATION_COUNT: 5
TEST_TYPE: "partition"
agents:
- "queue=colo-deploy"
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,6 @@ steps:
PARTITION_ACTIVE_DURATION: 60
PARTITION_INACTIVE_DURATION: 60
PARTITION_ITERATION_COUNT: 10
TEST_TYPE: "partition"
agents:
- "queue=colo-deploy"
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,6 @@ steps:
PARTITION_ACTIVE_DURATION: 60
PARTITION_INACTIVE_DURATION: 300
PARTITION_ITERATION_COUNT: 1
TEST_TYPE: "partition"
agents:
- "queue=colo-deploy"
1 change: 1 addition & 0 deletions system-test/partition-testcases/gce-5-node-3-partition.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,6 @@ steps:
PARTITION_ACTIVE_DURATION: 30
PARTITION_INACTIVE_DURATION: 30
PARTITION_ITERATION_COUNT: 5
TEST_TYPE: "partition"
agents:
- "queue=testnet-deploy"
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,6 @@ steps:
PARTITION_ACTIVE_DURATION: 60
PARTITION_INACTIVE_DURATION: 300
PARTITION_ITERATION_COUNT: 5
TEST_TYPE: "partition"
agents:
- "queue=gce-deploy"
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,6 @@ steps:
PARTITION_ACTIVE_DURATION: 60
PARTITION_INACTIVE_DURATION: 300
PARTITION_ITERATION_COUNT: 1
TEST_TYPE: "partition"
agents:
- "queue=gce-deploy"
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,6 @@ steps:
TESTNET_ZONES: "us-west-1a,us-west-1c,us-east-1a,eu-west-1a"
USE_PUBLIC_IP_ADDRESSES: "true"
ADDITIONAL_FLAGS: ""
TEST_TYPE: "fixed_duration"
agents:
- "queue=aws-deploy"
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,6 @@ steps:
TESTNET_ZONES: "us-west-1a,us-west-1c,us-east-1a,eu-west-1a"
USE_PUBLIC_IP_ADDRESSES: "true"
ADDITIONAL_FLAGS: ""
TEST_TYPE: "fixed_duration"
agents:
- "queue=aws-deploy"
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@ steps:
TESTNET_ZONES: "westus"
USE_PUBLIC_IP_ADDRESSES: "true"
ADDITIONAL_FLAGS: ""
TEST_TYPE: "fixed_duration"
agents:
- "queue=azure-deploy"
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@ steps:
NUMBER_OF_CLIENT_NODES: 1
CLIENT_OPTIONS: "bench-tps=1=--tx_count 40000 --thread-batch-sleep-ms 250"
ADDITIONAL_FLAGS: ""
TEST_TYPE: "fixed_duration"
agents:
- "queue=colo-deploy"
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@ steps:
NUMBER_OF_CLIENT_NODES: 1
CLIENT_OPTIONS: "bench-tps=1=--tx_count 40000 --thread-batch-sleep-ms 250"
ADDITIONAL_FLAGS: ""
TEST_TYPE: "fixed_duration"
agents:
- "queue=colo-deploy"
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@ steps:
NUMBER_OF_CLIENT_NODES: 1
CLIENT_OPTIONS: "bench-tps=1=--tx_count 60000 --thread-batch-sleep-ms 250"
ADDITIONAL_FLAGS: ""
TEST_TYPE: "fixed_duration"
agents:
- "queue=colo-deploy"
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@ steps:
TESTNET_ZONES: "us-west1-a,us-west1-b,us-central1-a,europe-west4-a"
USE_PUBLIC_IP_ADDRESSES: "true"
ADDITIONAL_FLAGS: "--dedicated"
TEST_TYPE: "fixed_duration"
agents:
- "queue=gce-deploy"
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@ steps:
TESTNET_ZONES: "us-west1-a,us-west1-b,us-central1-a,europe-west4-a"
USE_PUBLIC_IP_ADDRESSES: "true"
ADDITIONAL_FLAGS: "--dedicated"
TEST_TYPE: "fixed_duration"
agents:
- "queue=gce-deploy"
1 change: 1 addition & 0 deletions system-test/performance-testcases/gce-gpu-perf-10-node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@ steps:
TESTNET_ZONES: "us-west1-a,us-west1-b,us-central1-a,europe-west4-a"
USE_PUBLIC_IP_ADDRESSES: "true"
ADDITIONAL_FLAGS: "--dedicated"
TEST_TYPE: "fixed_duration"
agents:
- "queue=gce-deploy"
1 change: 1 addition & 0 deletions system-test/performance-testcases/gce-gpu-perf-25-node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@ steps:
TESTNET_ZONES: "us-west1-a,us-west1-b,us-central1-a,europe-west4-a"
USE_PUBLIC_IP_ADDRESSES: "true"
ADDITIONAL_FLAGS: "--dedicated"
TEST_TYPE: "fixed_duration"
agents:
- "queue=gce-deploy"
1 change: 1 addition & 0 deletions system-test/performance-testcases/gce-gpu-perf-5-node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@ steps:
TESTNET_ZONES: "us-west1-a,us-west1-b,us-central1-a,europe-west4-a"
USE_PUBLIC_IP_ADDRESSES: "true"
ADDITIONAL_FLAGS: "--dedicated"
TEST_TYPE: "fixed_duration"
agents:
- "queue=gce-deploy"
1 change: 1 addition & 0 deletions system-test/performance-testcases/gce-gpu-perf-50-node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,6 @@ steps:
ALLOW_BOOT_FAILURES: "true"
USE_PUBLIC_IP_ADDRESSES: "true"
ADDITIONAL_FLAGS: "--dedicated"
TEST_TYPE: "fixed_duration"
agents:
- "queue=gce-deploy"
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@ steps:
CLIENT_OPTIONS: "bench-tps=1=--tx_count 40000 --thread-batch-sleep-ms 250"
ADDITIONAL_FLAGS: ""
BOOTSTRAP_VALIDATOR_MAX_STAKE_THRESHOLD: 100
TEST_TYPE: "fixed_duration"
agents:
- "queue=colo-deploy"
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,6 @@ steps:
PARTITION_INACTIVE_DURATION: 30
PARTITION_ITERATION_COUNT: 2
BOOTSTRAP_VALIDATOR_MAX_STAKE_THRESHOLD: 100
TEST_TYPE: "partition"
agents:
- "queue=colo-deploy"
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@ steps:
NUMBER_OF_CLIENT_NODES: 1
CLIENT_OPTIONS: "bench-tps=1=--tx_count 30000 --thread-batch-sleep-ms 250"
ADDITIONAL_FLAGS: ""
TEST_TYPE: "fixed_duration"
agents:
- "queue=colo-deploy"
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@ steps:
NUMBER_OF_CLIENT_NODES: 1
CLIENT_OPTIONS: "bench-tps=1=--tx_count 30000 --thread-batch-sleep-ms 250"
ADDITIONAL_FLAGS: ""
TEST_TYPE: "fixed_duration"
agents:
- "queue=colo-deploy"
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@ steps:
TESTNET_ZONES: "us-west1-a"
USE_PUBLIC_IP_ADDRESSES: "false"
ADDITIONAL_FLAGS: "--dedicated"
TEST_TYPE: "fixed_duration"
agents:
- "queue=gce-deploy"
1 change: 1 addition & 0 deletions system-test/stability-testcases/gce-stability-5-node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@ steps:
TESTNET_ZONES: "us-west1-a,us-west1-b,us-central1-a,europe-west4-a"
USE_PUBLIC_IP_ADDRESSES: "true"
ADDITIONAL_FLAGS: "--dedicated"
TEST_TYPE: "fixed_duration"
agents:
- "queue=stability-deploy"
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ steps:
NUMBER_OF_CLIENT_NODES: 0
ADDITIONAL_FLAGS: ""
BOOTSTRAP_VALIDATOR_MAX_STAKE_THRESHOLD: 100
SKIP_PERF_RESULTS: "true"
TEST_TYPE: "script"
CUSTOM_SCRIPT: "system-test/stake-operations-testcases/stake_test_automation.sh"
agents:
Expand Down
3 changes: 2 additions & 1 deletion system-test/testnet-automation.sh
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ function launch_testnet() {
SLOTS_PER_SECOND="$(bc <<< "scale=3; ($END_SLOT - $START_SLOT)/($SLOT_COUNT_END_SECONDS - $SLOT_COUNT_START_SECONDS)")"
execution_step "Average slot rate: $SLOTS_PER_SECOND slots/second over $((SLOT_COUNT_END_SECONDS - SLOT_COUNT_START_SECONDS)) seconds"

[[ -n $SKIP_PERF_RESULTS ]] || collect_performance_statistics
[[ "$SKIP_PERF_RESULTS" = "false" ]] || collect_performance_statistics

echo "slots_per_second: $SLOTS_PER_SECOND" >>"$RESULT_FILE"

Expand All @@ -201,6 +201,7 @@ execution_step "Initialize Environment"
[[ -n $TESTNET_TAG ]] || TESTNET_TAG=testnet-automation
[[ -n $INFLUX_HOST ]] || INFLUX_HOST=https://metrics.solana.com:8086
[[ -n $BOOTSTRAP_VALIDATOR_MAX_STAKE_THRESHOLD ]] || BOOTSTRAP_VALIDATOR_MAX_STAKE_THRESHOLD=66
[[ -n $SKIP_PERF_RESULTS ]] || SKIP_PERF_RESULTS=false

if [[ -z $NUMBER_OF_VALIDATOR_NODES ]]; then
echo NUMBER_OF_VALIDATOR_NODES not defined
Expand Down

0 comments on commit 3a3bddf

Please sign in to comment.