aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2017-09-14 14:57:55 -0700
committerGravatar GitHub <noreply@github.com>2017-09-14 14:57:55 -0700
commitc3aba91be94d336a27f945a644233bc244f22e2b (patch)
tree22ee3bb0a4fc2bf37c53cbfbc94b11b5c96c1e3d /tools
parentfd2ef56c815d0811e8e9c5406520dccc83df7a64 (diff)
parentf7617bb8f6bd4b6993d6cf5bf70a14a5819f5fd6 (diff)
Merge pull request #12542 from ctiller/rtstat
Really use measured CPU costs (with a small delta) for run_tests
Diffstat (limited to 'tools')
-rwxr-xr-xtools/run_tests/run_tests.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/tools/run_tests/run_tests.py b/tools/run_tests/run_tests.py
index b66c5f7f71..591a0bebbd 100755
--- a/tools/run_tests/run_tests.py
+++ b/tools/run_tests/run_tests.py
@@ -80,7 +80,7 @@ def get_bqtest_data(limit=None):
SELECT
filtered_test_name,
SUM(result != 'PASSED' AND result != 'SKIPPED') > 0 as flaky,
- MAX(cpu_measured) as cpu
+ MAX(cpu_measured) + 0.01 as cpu
FROM (
SELECT
REGEXP_REPLACE(test_name, r'/\d+', '') AS filtered_test_name,
@@ -92,9 +92,7 @@ SELECT
AND platform = '"""+platform_string()+"""'
AND NOT REGEXP_MATCH(job_name, '.*portability.*') )
GROUP BY
- filtered_test_name
-HAVING
- flaky OR cpu > 0"""
+ filtered_test_name"""
if limit:
query += " limit {}".format(limit)
query_job = big_query_utils.sync_query_job(bq, 'grpc-testing', query)