aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/flakes
diff options
context:
space:
mode:
authorGravatar David Garcia Quintas <dgq@google.com>2017-08-11 14:01:32 -0700
committerGravatar David Garcia Quintas <dgq@google.com>2017-08-11 14:01:32 -0700
commit4721fc07169c608606cabdd905eaf69fb8cd72ab (patch)
treefd31e10739e5d509e5399d576218877d22314234 /tools/flakes
parentae392d12b84832ba603259b73f87128398342fb1 (diff)
Fixed off by one error in detect flakes script
Diffstat (limited to 'tools/flakes')
-rw-r--r--tools/flakes/detect_flakes.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/flakes/detect_flakes.py b/tools/flakes/detect_flakes.py
index c59cb18004..32899074da 100644
--- a/tools/flakes/detect_flakes.py
+++ b/tools/flakes/detect_flakes.py
@@ -57,7 +57,7 @@ SELECT
FROM
[grpc-testing:jenkins_test_results.aggregate_results]
WHERE
- timestamp >= DATE_ADD(CURRENT_DATE(), {days_lower_bound}, "DAY")
+ timestamp > DATE_ADD(CURRENT_DATE(), {days_lower_bound}, "DAY")
AND timestamp <= DATE_ADD(CURRENT_DATE(), {days_upper_bound}, "DAY")
AND NOT REGEXP_MATCH(job_name, '.*portability.*')
AND result != 'PASSED' AND result != 'SKIPPED'
@@ -76,7 +76,7 @@ ORDER BY timestamp desc
def get_new_flakes():
last_week_sans_yesterday = get_flaky_tests(-14, -1)
- last_24 = get_flaky_tests(-1, +1)
+ last_24 = get_flaky_tests(0, +1)
last_week_sans_yesterday_names = set(last_week_sans_yesterday.keys())
last_24_names = set(last_24.keys())
logging.debug('|last_week_sans_yesterday| =', len(last_week_sans_yesterday_names))