| 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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 root_pipeline = TryJobPipeline( | 112 root_pipeline = TryJobPipeline( |
| 113 master_name, builder_name, build_number, 'rev1', 'rev2', ['rev2'], | 113 master_name, builder_name, build_number, 'rev1', 'rev2', ['rev2'], |
| 114 TryJobType.COMPILE, []) | 114 TryJobType.COMPILE, []) |
| 115 root_pipeline.start() | 115 root_pipeline.start() |
| 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 'review_url': 'url_2', | 122 'url': 'url_2', |
| 123 'repo_name': 'chromium' | 123 'repo_name': 'chromium' |
| 124 } | 124 } |
| 125 | 125 |
| 126 expected_try_job_results = [ | 126 expected_try_job_results = [ |
| 127 { | 127 { |
| 128 'report': { | 128 'report': { |
| 129 'result': { | 129 'result': { |
| 130 'rev1': 'passed', | 130 'rev1': 'passed', |
| 131 'rev2': 'failed' | 131 'rev2': 'failed' |
| 132 }, | 132 }, |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 build_number = 1 | 168 build_number = 1 |
| 169 | 169 |
| 170 root_pipeline = TryJobPipeline( | 170 root_pipeline = TryJobPipeline( |
| 171 master_name, builder_name, build_number, 'rev1', 'rev2', ['rev2'], | 171 master_name, builder_name, build_number, 'rev1', 'rev2', ['rev2'], |
| 172 TryJobType.COMPILE, []) | 172 TryJobType.COMPILE, []) |
| 173 root_pipeline._LogUnexpectedAbort(True) | 173 root_pipeline._LogUnexpectedAbort(True) |
| 174 | 174 |
| 175 try_job = WfTryJob.Get(master_name, builder_name, build_number) | 175 try_job = WfTryJob.Get(master_name, builder_name, build_number) |
| 176 | 176 |
| 177 self.assertIsNone(try_job) | 177 self.assertIsNone(try_job) |
| OLD | NEW |