| OLD | NEW |
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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 | 5 |
| 6 from common.pipeline_wrapper import BasePipeline | 6 from common.pipeline_wrapper import BasePipeline |
| 7 from lib import time_util | 7 from libs import time_util |
| 8 from model import analysis_approach_type | 8 from model import analysis_approach_type |
| 9 from model import analysis_status | 9 from model import analysis_status |
| 10 from model import result_status | 10 from model import result_status |
| 11 from model.wf_analysis import WfAnalysis | 11 from model.wf_analysis import WfAnalysis |
| 12 from waterfall import build_failure_analysis | 12 from waterfall import build_failure_analysis |
| 13 from waterfall import suspected_cl_util | 13 from waterfall import suspected_cl_util |
| 14 | 14 |
| 15 | 15 |
| 16 def _GetResultAnalysisStatus(analysis_result): | 16 def _GetResultAnalysisStatus(analysis_result): |
| 17 """Returns the status of the analysis result. | 17 """Returns the status of the analysis result. |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 analysis.suspected_cls = _GetSuspectedCLsWithOnlyCLInfo(suspected_cls) | 90 analysis.suspected_cls = _GetSuspectedCLsWithOnlyCLInfo(suspected_cls) |
| 91 analysis.end_time = time_util.GetUTCNow() | 91 analysis.end_time = time_util.GetUTCNow() |
| 92 analysis.put() | 92 analysis.put() |
| 93 | 93 |
| 94 # Save suspected_cls to data_store. | 94 # Save suspected_cls to data_store. |
| 95 _SaveSuspectedCLs( | 95 _SaveSuspectedCLs( |
| 96 suspected_cls, failure_info['master_name'], | 96 suspected_cls, failure_info['master_name'], |
| 97 failure_info['builder_name'], failure_info['build_number'], | 97 failure_info['builder_name'], failure_info['build_number'], |
| 98 failure_info['failure_type']) | 98 failure_info['failure_type']) |
| 99 return analysis_result | 99 return analysis_result |
| OLD | NEW |