Chromium Code Reviews| 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: |