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, self._revision_mapping, | 200 factory_cmd_obj.AddBotUpdateStep(env, gclient_spec, code_review_site) |
201 server=code_review_site) | |
202 | 201 |
203 | 202 |
204 # svn timeout is 2 min; we allow 5 | 203 # svn timeout is 2 min; we allow 5 |
205 timeout = factory_properties.get('gclient_timeout') | 204 timeout = factory_properties.get('gclient_timeout') |
206 if official_release or factory_properties.get('nuke_and_pave'): | 205 if official_release or factory_properties.get('nuke_and_pave'): |
207 no_gclient_branch = factory_properties.get('no_gclient_branch', False) | 206 no_gclient_branch = factory_properties.get('no_gclient_branch', False) |
208 factory_cmd_obj.AddClobberTreeStep(gclient_spec, env, timeout, | 207 factory_cmd_obj.AddClobberTreeStep(gclient_spec, env, timeout, |
209 gclient_deps=gclient_deps, gclient_nohooks=self._nohooks_on_update, | 208 gclient_deps=gclient_deps, gclient_nohooks=self._nohooks_on_update, |
210 no_gclient_branch=no_gclient_branch) | 209 no_gclient_branch=no_gclient_branch) |
211 else: | 210 else: |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
359 | 358 |
360 if slave_type in ('AnnotatedTrybot', 'CrosTrybot', 'Trybot', 'Bisect', | 359 if slave_type in ('AnnotatedTrybot', 'CrosTrybot', 'Trybot', 'Bisect', |
361 'TrybotTester', 'TrybotBuilder'): | 360 'TrybotTester', 'TrybotBuilder'): |
362 factory_cmd_obj.AddApplyIssueStep( | 361 factory_cmd_obj.AddApplyIssueStep( |
363 timeout=timeout, | 362 timeout=timeout, |
364 server=config.Master.Master4.code_review_site, | 363 server=config.Master.Master4.code_review_site, |
365 revision_mapping=self._revision_mapping) | 364 revision_mapping=self._revision_mapping) |
366 | 365 |
367 if not self._nohooks_on_update: | 366 if not self._nohooks_on_update: |
368 factory_cmd_obj.AddRunHooksStep(env=env, timeout=timeout) | 367 factory_cmd_obj.AddRunHooksStep(env=env, timeout=timeout) |
OLD | NEW |