From 0d9783c7461d744edb8d66013a0958e6fe0431f4 Mon Sep 17 00:00:00 2001 From: steviez Date: Mon, 8 May 2023 10:37:23 -0500 Subject: [PATCH] Update queried metric to determine tps in system tests (#31531) The test report is querying a metric that has been removed for being too noisy. So, update the query to use a metric that we report once per slot. --- system-test/automation_utils.sh | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/system-test/automation_utils.sh b/system-test/automation_utils.sh index 0b4046abee..3211ab978e 100755 --- a/system-test/automation_utils.sh +++ b/system-test/automation_utils.sh @@ -127,22 +127,23 @@ function get_validator_confirmation_time { function collect_performance_statistics { execution_step "Collect performance statistics about run" + # total_transactions will be 0 when the node is leader, so exclude those declare q_mean_tps=' SELECT ROUND(MEAN("median_sum")) as "mean_tps" FROM ( - SELECT MEDIAN(sum_count) AS "median_sum" FROM ( - SELECT SUM("count") AS "sum_count" - FROM "'$TESTNET_TAG'"."autogen"."bank-process_transactions" - WHERE time > now() - '"$TEST_DURATION_SECONDS"'s AND count > 0 + SELECT MEDIAN(sum_total_transactions) AS "median_sum" FROM ( + SELECT SUM("total_transactions") AS "sum_total_transactions" + FROM "'$TESTNET_TAG'"."autogen"."replay-slot-stats" + WHERE time > now() - '"$TEST_DURATION_SECONDS"'s AND total_transactions > 0 GROUP BY time(1s), host_id) GROUP BY time(1s) )' declare q_max_tps=' SELECT MAX("median_sum") as "max_tps" FROM ( - SELECT MEDIAN(sum_count) AS "median_sum" FROM ( - SELECT SUM("count") AS "sum_count" - FROM "'$TESTNET_TAG'"."autogen"."bank-process_transactions" - WHERE time > now() - '"$TEST_DURATION_SECONDS"'s AND count > 0 + SELECT MEDIAN(sum_total_transactions) AS "median_sum" FROM ( + SELECT SUM("total_transactions") AS "sum_total_transactions" + FROM "'$TESTNET_TAG'"."autogen"."replay-slot-stats" + WHERE time > now() - '"$TEST_DURATION_SECONDS"'s AND total_transactions > 0 GROUP BY time(1s), host_id) GROUP BY time(1s) )'