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

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

Issue 1718093003: [Android] Limit the targets built on the android chromium.perf builders. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: Created 4 years, 10 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
« no previous file with comments | « no previous file | scripts/slave/recipes/android/builder.expected/full_chromium_perf_Android_Builder.json » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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',
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 'gclient_apply_config': ['android', 'perf'], 63 'gclient_apply_config': ['android', 'perf'],
64 'kwargs': { 64 'kwargs': {
65 'BUILD_CONFIG': 'Release', 65 'BUILD_CONFIG': 'Release',
66 }, 66 },
67 'upload': { 67 'upload': {
68 'bucket': 'chrome-perf', 68 'bucket': 'chrome-perf',
69 'path': lambda api: ('android_perf_rel/full-build-linux_%s.zip' 69 'path': lambda api: ('android_perf_rel/full-build-linux_%s.zip'
70 % api.properties['revision']), 70 % api.properties['revision']),
71 }, 71 },
72 'run_mb': True, 72 'run_mb': True,
73 'targets': [
74 'android_tools',
75 'cc_perftests',
76 'chrome_public_apk',
77 'gpu_perftests',
78 ],
73 }, 79 },
74 'Android arm64 Builder': { 80 'Android arm64 Builder': {
75 'recipe_config': 'arm64_builder_rel_mb', 81 'recipe_config': 'arm64_builder_rel_mb',
76 'gclient_apply_config': ['android', 'perf'], 82 'gclient_apply_config': ['android', 'perf'],
77 'kwargs': { 83 'kwargs': {
78 'BUILD_CONFIG': 'Release', 84 'BUILD_CONFIG': 'Release',
79 }, 85 },
80 'upload': { 86 'upload': {
81 'bucket': 'chrome-perf', 87 'bucket': 'chrome-perf',
82 'path': lambda api: ( 88 'path': lambda api: (
83 'android_perf_rel_arm64/full-build-linux_%s.zip' 89 'android_perf_rel_arm64/full-build-linux_%s.zip'
84 % api.properties['revision']), 90 % api.properties['revision']),
85 }, 91 },
86 'run_mb': True, 92 'run_mb': True,
93 'targets': [
94 'android_tools',
95 'cc_perftests',
96 'chrome_public_apk',
97 'gpu_perftests',
98 ],
87 } 99 }
88 }, 100 },
89 'tryserver.chromium.perf': { 101 'tryserver.chromium.perf': {
90 'android_perf_bisect_builder': { 102 'android_perf_bisect_builder': {
91 'recipe_config': 'perf', 103 'recipe_config': 'perf',
92 'gclient_apply_config': ['android', 'perf'], 104 'gclient_apply_config': ['android', 'perf'],
93 'kwargs': { 105 'kwargs': {
94 'BUILD_CONFIG': 'Release', 106 'BUILD_CONFIG': 'Release',
95 }, 107 },
96 # Perf bisect builders uses custom file names for binaries with 108 # Perf bisect builders uses custom file names for binaries with
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 api.chromium_android.clean_local_files() 188 api.chromium_android.clean_local_files()
177 189
178 api.chromium.runhooks() 190 api.chromium.runhooks()
179 191
180 if bot_config.get('run_mb'): 192 if bot_config.get('run_mb'):
181 api.chromium.run_mb(mastername, buildername, use_goma=True) 193 api.chromium.run_mb(mastername, buildername, use_goma=True)
182 194
183 if bot_config.get('check_licenses'): 195 if bot_config.get('check_licenses'):
184 with bot_config['check_licenses'](): 196 with bot_config['check_licenses']():
185 droid.check_webview_licenses() 197 droid.check_webview_licenses()
186 api.chromium.compile() 198 api.chromium.compile(bot_config.get('targets'))
187 199
188 upload_config = bot_config.get('upload') 200 upload_config = bot_config.get('upload')
189 if upload_config: 201 if upload_config:
190 droid.upload_build(upload_config['bucket'], 202 droid.upload_build(upload_config['bucket'],
191 upload_config['path'](api)) 203 upload_config['path'](api))
192 204
193 upload_config = bot_config.get('zip_and_upload') 205 upload_config = bot_config.get('zip_and_upload')
194 if upload_config: 206 if upload_config:
195 droid.zip_and_upload_build(upload_config['bucket']) 207 droid.zip_and_upload_build(upload_config['bucket'])
196 208
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 '_'.join(_sanitize_nonalpha(step) for step in steps))) + 241 '_'.join(_sanitize_nonalpha(step) for step in steps))) +
230 props(mastername=mastername, buildername=buildername) + 242 props(mastername=mastername, buildername=buildername) +
231 reduce(lambda a, b: a + b, 243 reduce(lambda a, b: a + b,
232 (api.step_data(step, retcode=1) for step in steps)) 244 (api.step_data(step, retcode=1) for step in steps))
233 ) 245 )
234 246
235 yield step_failure(mastername='chromium.android', 247 yield step_failure(mastername='chromium.android',
236 buildername='Android x64 Builder (dbg)', 248 buildername='Android x64 Builder (dbg)',
237 steps=['check licenses']) 249 steps=['check licenses'])
238 250
OLDNEW
« no previous file with comments | « no previous file | scripts/slave/recipes/android/builder.expected/full_chromium_perf_Android_Builder.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698