aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2017-09-07 12:25:25 -0700
committerGravatar Craig Tiller <ctiller@google.com>2017-09-07 12:25:25 -0700
commit120d4fda0715b157ed3a19d2a557906dac29f4b0 (patch)
treeda05f730de133dce0eaff47980eb6b1c0640b236
parent9992bdb74ec2a39b7d8cd867ee4f3b3f96d151bb (diff)
Use max cpu_measured instead of average (for safety)
-rwxr-xr-xtools/run_tests/run_tests.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/run_tests/run_tests.py b/tools/run_tests/run_tests.py
index 6bb61c0b70..3edd28fd5e 100755
--- a/tools/run_tests/run_tests.py
+++ b/tools/run_tests/run_tests.py
@@ -78,7 +78,9 @@ def get_bqtest_data(limit=None):
bq = big_query_utils.create_big_query()
query = """
SELECT
- filtered_test_name, SUM(result != 'PASSED' AND result != 'SKIPPED') > 0 as flaky, AVG(cpu_measured) as cpu
+ filtered_test_name,
+ SUM(result != 'PASSED' AND result != 'SKIPPED') > 0 as flaky,
+ MAX(cpu_measured) as cpu
FROM (
SELECT
REGEXP_REPLACE(test_name, r'/\d+', '') AS filtered_test_name,