| 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 from common.git_repository import GitRepository | 5 from common.git_repository import GitRepository |
| 6 from common.http_client_appengine import HttpClientAppengine as HttpClient | 6 from common.http_client_appengine import HttpClientAppengine as HttpClient |
| 7 from model import wf_analysis_status | 7 from model import analysis_status |
| 8 from model.wf_try_job import WfTryJob | 8 from model.wf_try_job import WfTryJob |
| 9 from model.wf_try_job_data import WfTryJobData | 9 from model.wf_try_job_data import WfTryJobData |
| 10 from pipeline_wrapper import BasePipeline | 10 from pipeline_wrapper import BasePipeline |
| 11 from waterfall.try_job_type import TryJobType | 11 from waterfall.try_job_type import TryJobType |
| 12 | 12 |
| 13 | 13 |
| 14 GIT_REPO = GitRepository( | 14 GIT_REPO = GitRepository( |
| 15 'https://chromium.googlesource.com/chromium/src.git', HttpClient()) | 15 'https://chromium.googlesource.com/chromium/src.git', HttpClient()) |
| 16 | 16 |
| 17 | 17 |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 result_to_update = ( | 178 result_to_update = ( |
| 179 try_job_result.compile_results if | 179 try_job_result.compile_results if |
| 180 try_job_type == TryJobType.COMPILE else | 180 try_job_type == TryJobType.COMPILE else |
| 181 try_job_result.test_results) | 181 try_job_result.test_results) |
| 182 if (result_to_update and | 182 if (result_to_update and |
| 183 result_to_update[-1]['try_job_id'] == try_job_id): | 183 result_to_update[-1]['try_job_id'] == try_job_id): |
| 184 result_to_update[-1].update(result) | 184 result_to_update[-1].update(result) |
| 185 else: # pragma: no cover | 185 else: # pragma: no cover |
| 186 result_to_update.append(result) | 186 result_to_update.append(result) |
| 187 | 187 |
| 188 try_job_result.status = wf_analysis_status.ANALYZED | 188 try_job_result.status = analysis_status.COMPLETED |
| 189 try_job_result.put() | 189 try_job_result.put() |
| 190 | 190 |
| 191 return result.get('culprit') if result else None | 191 return result.get('culprit') if result else None |
| OLD | NEW |