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

Side by Side Diff: scripts/slave/recipes/android/builder.py

Issue 2164763007: [Android] Use ensure_goma in android/builder. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: Created 4 years, 5 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 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 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 from contextlib import contextmanager 5 from contextlib import contextmanager
6 from recipe_engine import recipe_api 6 from recipe_engine import recipe_api
7 from recipe_engine.types import freeze 7 from recipe_engine.types import freeze
8 8
9 DEPS = [ 9 DEPS = [
10 'chromium', 10 'chromium',
11 'chromium_android', 11 'chromium_android',
12 'depot_tools/bot_update', 12 'depot_tools/bot_update',
13 'depot_tools/gclient', 13 'depot_tools/gclient',
14 'recipe_engine/path', 14 'recipe_engine/path',
15 'recipe_engine/properties', 15 'recipe_engine/properties',
16 'recipe_engine/step', 16 'recipe_engine/step',
17 'trigger', 17 'trigger',
18 'depot_tools/tryserver', 18 'depot_tools/tryserver',
19 ] 19 ]
20 20
21 @contextmanager 21 @contextmanager
22 def FYIStep(): 22 def FYIStep():
23 try: 23 try:
24 yield 24 yield
25 except recipe_api.StepFailure: 25 except recipe_api.StepFailure:
26 pass 26 pass
27 27
28 BUILDERS = freeze({ 28 BUILDERS = freeze({
29 'chromium.android': {
eakuefner 2016/07/21 22:06:32 what's all this?
jbudorick 2016/07/21 22:38:16 backed out everything but the ensure_goma call.
30 'Android x64 Builder (dbg)': {
31 'recipe_config': 'x64_builder_mb',
32 'check_licenses': FYIStep,
33 'gclient_apply_config': ['android', 'chrome_internal'],
34 },
35 'Android x86 Builder (dbg)' : {
36 'recipe_config': 'x86_builder_mb',
37 'check_licenses': FYIStep,
38 'gclient_apply_config': ['android', 'chrome_internal'],
39 },
40 'Android MIPS Builder (dbg)': {
41 'recipe_config': 'mipsel_builder_mb',
42 'check_licenses': FYIStep,
43 'gclient_apply_config': ['android', 'chrome_internal'],
44 },
45 },
46 'chromium.perf': { 29 'chromium.perf': {
47 'Android Builder': { 30 'Android Builder': {
48 'recipe_config': 'main_builder_rel_mb', 31 'recipe_config': 'main_builder_rel_mb',
49 'gclient_apply_config': ['android', 'perf'], 32 'gclient_apply_config': ['android', 'perf'],
50 'kwargs': { 33 'kwargs': {
51 'BUILD_CONFIG': 'Release', 34 'BUILD_CONFIG': 'Release',
52 }, 35 },
53 'upload': { 36 'upload': {
54 'bucket': 'chrome-perf', 37 'bucket': 'chrome-perf',
55 'path': lambda api: ('android_perf_rel/full-build-linux_%s.zip' 38 'path': lambda api: ('android_perf_rel/full-build-linux_%s.zip'
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 # dynamically set to either: 173 # dynamically set to either:
191 # (1) 'revision' from the waterfall, or 174 # (1) 'revision' from the waterfall, or
192 # (2) 'HEAD' for forced builds with unspecified 'revision'. 175 # (2) 'HEAD' for forced builds with unspecified 'revision'.
193 component_rev = revision 176 component_rev = revision
194 dep = bot_config.get('set_component_rev') 177 dep = bot_config.get('set_component_rev')
195 api.gclient.c.revisions[dep['name']] = dep['rev_str'] % component_rev 178 api.gclient.c.revisions[dep['name']] = dep['rev_str'] % component_rev
196 179
197 api.bot_update.ensure_checkout() 180 api.bot_update.ensure_checkout()
198 api.chromium_android.clean_local_files() 181 api.chromium_android.clean_local_files()
199 182
183 api.chromium.ensure_goma()
200 api.chromium.runhooks() 184 api.chromium.runhooks()
201 185
202 if bot_config.get('run_mb'): 186 if bot_config.get('run_mb'):
203 api.chromium.run_mb(mastername, buildername, use_goma=True) 187 api.chromium.run_mb(mastername, buildername, use_goma=True)
204 188
205 if bot_config.get('check_licenses'): 189 if bot_config.get('check_licenses'):
206 with bot_config['check_licenses'](): 190 with bot_config['check_licenses']():
207 droid.check_webview_licenses() 191 droid.check_webview_licenses()
208 api.chromium.compile(bot_config.get('targets')) 192 api.chromium.compile(bot_config.get('targets'))
209 193
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 _sanitize_nonalpha(buildername))) + 227 _sanitize_nonalpha(buildername))) +
244 api.properties.generic(buildername=buildername, 228 api.properties.generic(buildername=buildername,
245 repository='svn://svn.chromium.org/chrome/trunk/src', 229 repository='svn://svn.chromium.org/chrome/trunk/src',
246 buildnumber=257, 230 buildnumber=257,
247 mastername=mastername, 231 mastername=mastername,
248 issue='8675309', 232 issue='8675309',
249 patchset='1', 233 patchset='1',
250 revision='267739', 234 revision='267739',
251 got_revision='267739')) 235 got_revision='267739'))
252 236
253 def step_failure(mastername, buildername, steps, tryserver=False):
eakuefner 2016/07/21 22:06:33 ?
254 props = api.properties.tryserver if tryserver else api.properties.generic
255 return (
256 api.test('%s_%s_fail_%s' % (
257 _sanitize_nonalpha(mastername),
258 _sanitize_nonalpha(buildername),
259 '_'.join(_sanitize_nonalpha(step) for step in steps))) +
260 props(mastername=mastername, buildername=buildername) +
261 reduce(lambda a, b: a + b,
262 (api.step_data(step, retcode=1) for step in steps))
263 )
264
265 yield step_failure(mastername='chromium.android',
266 buildername='Android x64 Builder (dbg)',
267 steps=['check licenses'])
268
OLDNEW
« no previous file with comments | « no previous file | scripts/slave/recipes/android/builder.expected/chromium_android_Android_x64_Builder__dbg__fail_check_licenses.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698