| 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 import json | 5 import json |
| 6 | 6 |
| 7 from common.git_repository import GitRepository | 7 from common.git_repository import GitRepository |
| 8 from common.pipeline_wrapper import pipeline_handlers | 8 from common.pipeline_wrapper import pipeline_handlers |
| 9 from common.waterfall import buildbucket_client | 9 from common.waterfall import buildbucket_client |
| 10 from model import analysis_status | 10 from model import analysis_status |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 self.execute_queued_tasks() | 116 self.execute_queued_tasks() |
| 117 | 117 |
| 118 try_job = WfTryJob.Get(master_name, builder_name, build_number) | 118 try_job = WfTryJob.Get(master_name, builder_name, build_number) |
| 119 expected_suspected_cl = { | 119 expected_suspected_cl = { |
| 120 'revision': 'rev2', | 120 'revision': 'rev2', |
| 121 'commit_position': '2', | 121 'commit_position': '2', |
| 122 'url': 'url_2', | 122 'url': 'url_2', |
| 123 'repo_name': 'chromium' | 123 'repo_name': 'chromium' |
| 124 } | 124 } |
| 125 | 125 |
| 126 analysis = WfAnalysis.Get(master_name, builder_name, build_number) |
| 126 expected_try_job_results = [ | 127 expected_try_job_results = [ |
| 127 { | 128 { |
| 128 'report': { | 129 'report': { |
| 129 'result': { | 130 'result': { |
| 130 'rev1': 'passed', | 131 'rev1': 'passed', |
| 131 'rev2': 'failed' | 132 'rev2': 'failed' |
| 132 }, | 133 }, |
| 133 'metadata': { | 134 'metadata': { |
| 134 'regression_range_size': 2 | 135 'regression_range_size': 2 |
| 135 } | 136 } |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 build_number = 1 | 169 build_number = 1 |
| 169 | 170 |
| 170 root_pipeline = TryJobPipeline( | 171 root_pipeline = TryJobPipeline( |
| 171 master_name, builder_name, build_number, 'rev1', 'rev2', ['rev2'], | 172 master_name, builder_name, build_number, 'rev1', 'rev2', ['rev2'], |
| 172 TryJobType.COMPILE, []) | 173 TryJobType.COMPILE, []) |
| 173 root_pipeline._LogUnexpectedAbort(True) | 174 root_pipeline._LogUnexpectedAbort(True) |
| 174 | 175 |
| 175 try_job = WfTryJob.Get(master_name, builder_name, build_number) | 176 try_job = WfTryJob.Get(master_name, builder_name, build_number) |
| 176 | 177 |
| 177 self.assertIsNone(try_job) | 178 self.assertIsNone(try_job) |
| OLD | NEW |