Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(920)

Side by Side Diff: scripts/slave/recipes/catapult.py

Issue 2319853002: Remove ignored bot_update "force" parameter. (Closed)
Patch Set: rebase Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 DEPS = [ 5 DEPS = [
6 'chromium', 6 'chromium',
7 'depot_tools/bot_update', 7 'depot_tools/bot_update',
8 'depot_tools/gclient', 8 'depot_tools/gclient',
9 'gitiles', 9 'gitiles',
10 'recipe_engine/generator_script', 10 'recipe_engine/generator_script',
11 'recipe_engine/path', 11 'recipe_engine/path',
12 'recipe_engine/platform', 12 'recipe_engine/platform',
13 'recipe_engine/properties', 13 'recipe_engine/properties',
14 'recipe_engine/python', 14 'recipe_engine/python',
15 ] 15 ]
16 16
17 from recipe_engine.recipe_api import Property 17 from recipe_engine.recipe_api import Property
18 18
19 PROPERTIES = { 19 PROPERTIES = {
20 'platform': Property(default=None, kind=str), 20 'platform': Property(default=None, kind=str),
21 } 21 }
22 22
23 23
24 def _CheckoutSteps(api): 24 def _CheckoutSteps(api):
25 """Checks out the catapult repo (and any dependencies) using gclient.""" 25 """Checks out the catapult repo (and any dependencies) using gclient."""
26 api.gclient.set_config('catapult') 26 api.gclient.set_config('catapult')
27 api.bot_update.ensure_checkout(force=True) 27 api.bot_update.ensure_checkout()
28 api.gclient.runhooks() 28 api.gclient.runhooks()
29 29
30 30
31 def _FetchAppEngineSDKSteps(api): 31 def _FetchAppEngineSDKSteps(api):
32 """Fetches the App Engine SDK and returns its path. 32 """Fetches the App Engine SDK and returns its path.
33 33
34 This uses a downloader script in the infra repo to download a script 34 This uses a downloader script in the infra repo to download a script
35 which is then used to download and unpack the SDK itself. 35 which is then used to download and unpack the SDK itself.
36 """ 36 """
37 script_content = api.gitiles.download_file( 37 script_content = api.gitiles.download_file(
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 slavename='android_slave', 101 slavename='android_slave',
102 platform='android') + 102 platform='android') +
103 api.step_data('Fetch SDK downloader', 103 api.step_data('Fetch SDK downloader',
104 api.gitiles.make_encoded_file( 104 api.gitiles.make_encoded_file(
105 '"<simulated contents of get_appengine.py>"')) + 105 '"<simulated contents of get_appengine.py>"')) +
106 api.generator_script( 106 api.generator_script(
107 'build_steps.py', 107 'build_steps.py',
108 {'name': 'Dashboard Tests', 'cmd': ['run_py_tests', '--no-hooks']}, 108 {'name': 'Dashboard Tests', 'cmd': ['run_py_tests', '--no-hooks']},
109 ) 109 )
110 ) 110 )
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698