| OLD | NEW |
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 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 """Utility classes to generate and manage a BuildFactory to be passed to a | 5 """Utility classes to generate and manage a BuildFactory to be passed to a |
| 6 builder dictionary as the 'factory' member, for each builder in c['builders']. | 6 builder dictionary as the 'factory' member, for each builder in c['builders']. |
| 7 | 7 |
| 8 Specifically creates a base BuildFactory that will execute a gclient checkout | 8 Specifically creates a base BuildFactory that will execute a gclient checkout |
| 9 first.""" | 9 first.""" |
| 10 | 10 |
| (...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 gclient_deps = factory_properties.get('gclient_deps', None) | 190 gclient_deps = factory_properties.get('gclient_deps', None) |
| 191 | 191 |
| 192 if gclient_deps == 'ios': | 192 if gclient_deps == 'ios': |
| 193 gclient_spec += ';target_os = [\'ios\'];target_os_only = True' | 193 gclient_spec += ';target_os = [\'ios\'];target_os_only = True' |
| 194 | 194 |
| 195 # Force the build checkout to be at some revision. This may or may not | 195 # Force the build checkout to be at some revision. This may or may not |
| 196 # activate depending on its own criteria, but the expectation is that if | 196 # activate depending on its own criteria, but the expectation is that if |
| 197 # this does activate, it will emit a BOT_UPDATED file in the build/ | 197 # this does activate, it will emit a BOT_UPDATED file in the build/ |
| 198 # directory to signal to the other gclient update steps to no-op. | 198 # directory to signal to the other gclient update steps to no-op. |
| 199 code_review_site = config.Master.Master4.code_review_site | 199 code_review_site = config.Master.Master4.code_review_site |
| 200 factory_cmd_obj.AddBotUpdateStep(env, gclient_spec, code_review_site) | 200 factory_cmd_obj.AddBotUpdateStep(env, gclient_spec, self._revision_mapping, |
| 201 server=code_review_site) |
| 201 | 202 |
| 202 | 203 |
| 203 # svn timeout is 2 min; we allow 5 | 204 # svn timeout is 2 min; we allow 5 |
| 204 timeout = factory_properties.get('gclient_timeout') | 205 timeout = factory_properties.get('gclient_timeout') |
| 205 if official_release or factory_properties.get('nuke_and_pave'): | 206 if official_release or factory_properties.get('nuke_and_pave'): |
| 206 no_gclient_branch = factory_properties.get('no_gclient_branch', False) | 207 no_gclient_branch = factory_properties.get('no_gclient_branch', False) |
| 207 factory_cmd_obj.AddClobberTreeStep(gclient_spec, env, timeout, | 208 factory_cmd_obj.AddClobberTreeStep(gclient_spec, env, timeout, |
| 208 gclient_deps=gclient_deps, gclient_nohooks=self._nohooks_on_update, | 209 gclient_deps=gclient_deps, gclient_nohooks=self._nohooks_on_update, |
| 209 no_gclient_branch=no_gclient_branch) | 210 no_gclient_branch=no_gclient_branch) |
| 210 else: | 211 else: |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 358 | 359 |
| 359 if slave_type in ('AnnotatedTrybot', 'CrosTrybot', 'Trybot', 'Bisect', | 360 if slave_type in ('AnnotatedTrybot', 'CrosTrybot', 'Trybot', 'Bisect', |
| 360 'TrybotTester', 'TrybotBuilder'): | 361 'TrybotTester', 'TrybotBuilder'): |
| 361 factory_cmd_obj.AddApplyIssueStep( | 362 factory_cmd_obj.AddApplyIssueStep( |
| 362 timeout=timeout, | 363 timeout=timeout, |
| 363 server=config.Master.Master4.code_review_site, | 364 server=config.Master.Master4.code_review_site, |
| 364 revision_mapping=self._revision_mapping) | 365 revision_mapping=self._revision_mapping) |
| 365 | 366 |
| 366 if not self._nohooks_on_update: | 367 if not self._nohooks_on_update: |
| 367 factory_cmd_obj.AddRunHooksStep(env=env, timeout=timeout) | 368 factory_cmd_obj.AddRunHooksStep(env=env, timeout=timeout) |
| OLD | NEW |