| OLD | NEW |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 from google.appengine.ext import ndb | 5 from google.appengine.ext import ndb |
| 6 | 6 |
| 7 from common.waterfall import failure_type | 7 from common.waterfall import failure_type |
| 8 from lib import time_util | 8 from libs import time_util |
| 9 from model import analysis_approach_type | 9 from model import analysis_approach_type |
| 10 from model.wf_suspected_cl import WfSuspectedCL | 10 from model.wf_suspected_cl import WfSuspectedCL |
| 11 from waterfall import build_util | 11 from waterfall import build_util |
| 12 | 12 |
| 13 | 13 |
| 14 def GetCLInfo(cl_info_str): | 14 def GetCLInfo(cl_info_str): |
| 15 """Gets CL's repo_name and revision.""" | 15 """Gets CL's repo_name and revision.""" |
| 16 return cl_info_str.split('/') | 16 return cl_info_str.split('/') |
| 17 | 17 |
| 18 | 18 |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 cl_from_analyzed_build = cl_from_first_failed_build | 134 cl_from_analyzed_build = cl_from_first_failed_build |
| 135 | 135 |
| 136 confidence = GetSuspectedCLConfidenceScore( | 136 confidence = GetSuspectedCLConfidenceScore( |
| 137 confidences, cl_from_analyzed_build) | 137 confidences, cl_from_analyzed_build) |
| 138 approach = ( | 138 approach = ( |
| 139 analysis_approach_type.TRY_JOB if analysis_approach_type.TRY_JOB in | 139 analysis_approach_type.TRY_JOB if analysis_approach_type.TRY_JOB in |
| 140 cl_from_analyzed_build['approaches'] else | 140 cl_from_analyzed_build['approaches'] else |
| 141 analysis_approach_type.HEURISTIC) | 141 analysis_approach_type.HEURISTIC) |
| 142 | 142 |
| 143 return confidence, approach | 143 return confidence, approach |
| OLD | NEW |