| 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 logging | 5 import logging |
| 6 | 6 |
| 7 from common import chrome_dependency_fetcher | 7 from common import chrome_dependency_fetcher |
| 8 from common.http_client_appengine import HttpClientAppengine | 8 from common.http_client_appengine import HttpClientAppengine |
| 9 from common.pipeline_wrapper import BasePipeline | 9 from common.pipeline_wrapper import BasePipeline |
| 10 from lib.gitiles import gitiles_repository | 10 from libs.gitiles import gitiles_repository |
| 11 | 11 |
| 12 | 12 |
| 13 def _GetOSPlatformName(master_name, builder_name): # pragma: no cover | 13 def _GetOSPlatformName(master_name, builder_name): # pragma: no cover |
| 14 """Returns the OS platform name based on the master and builder.""" | 14 """Returns the OS platform name based on the master and builder.""" |
| 15 # TODO: make buildbot yield OS platform name as a build property and use it. | 15 # TODO: make buildbot yield OS platform name as a build property and use it. |
| 16 # The code below is just a workaround. | 16 # The code below is just a workaround. |
| 17 builder_name = builder_name.lower() | 17 builder_name = builder_name.lower() |
| 18 if master_name == 'chromium.win': | 18 if master_name == 'chromium.win': |
| 19 return 'win' | 19 return 'win' |
| 20 elif master_name == 'chromium.linux': | 20 elif master_name == 'chromium.linux': |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 return {'deps': {}, 'deps_rolls': {}} | 135 return {'deps': {}, 'deps_rolls': {}} |
| 136 | 136 |
| 137 chromium_revision = failure_info['chromium_revision'] | 137 chromium_revision = failure_info['chromium_revision'] |
| 138 os_platform = _GetOSPlatformName( | 138 os_platform = _GetOSPlatformName( |
| 139 failure_info['master_name'], failure_info['builder_name']) | 139 failure_info['master_name'], failure_info['builder_name']) |
| 140 | 140 |
| 141 return { | 141 return { |
| 142 'deps': _GetDependencies(chromium_revision, os_platform), | 142 'deps': _GetDependencies(chromium_revision, os_platform), |
| 143 'deps_rolls': _DetectDependencyRolls(change_logs, os_platform) | 143 'deps_rolls': _DetectDependencyRolls(change_logs, os_platform) |
| 144 } | 144 } |
| OLD | NEW |