Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2426)

Unified Diff: appengine/findit/waterfall/detect_first_failure_pipeline.py

Issue 2027333002: [Findit] don't included skipped or unknown tests in swarming tasks into failed tests. (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: . Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: appengine/findit/waterfall/detect_first_failure_pipeline.py
diff --git a/appengine/findit/waterfall/detect_first_failure_pipeline.py b/appengine/findit/waterfall/detect_first_failure_pipeline.py
index a6dd42e025edc92e68057099ee4417dc7493aa35..aea944cac8570c2fd6107cc73ccd5e2f01358b24 100644
--- a/appengine/findit/waterfall/detect_first_failure_pipeline.py
+++ b/appengine/findit/waterfall/detect_first_failure_pipeline.py
@@ -18,6 +18,7 @@ from waterfall import swarming_util
_MAX_BUILDS_TO_CHECK = 20
+_NON_FAILURE_STATUS = ['SUCCESS', 'SKIPPED', 'UNKNOWN']
class DetectFirstFailurePipeline(BasePipeline):
@@ -181,8 +182,9 @@ class DetectFirstFailurePipeline(BasePipeline):
for test_name in iteration.keys():
is_reliable_failure = True
- if any(test['status'] == 'SUCCESS' for test in iteration[test_name]):
- # Ignore the test if any of the attempts were 'SUCCESS'.
+ if (any(test['status'] in _NON_FAILURE_STATUS
+ for test in iteration[test_name])):
+ # Ignore the test if any of the attempts didn't fail.
stgao 2016/06/03 06:59:40 Please add explanation why skipped test should be
chanli 2016/06/06 22:41:29 Done.
is_reliable_failure = False
if is_reliable_failure:

Powered by Google App Engine
This is Rietveld 408576698