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

Side by Side Diff: build/android/buildbot/bb_run_bot.py

Issue 235573010: Add telemetry tests to Android tester. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Split suites and put in alphabetic order. Created 6 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « build/android/buildbot/bb_device_steps.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # 2 #
3 # Copyright (c) 2013 The Chromium Authors. All rights reserved. 3 # Copyright (c) 2013 The Chromium Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 import collections 7 import collections
8 import copy 8 import copy
9 import json 9 import json
10 import os 10 import os
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 commands.append(run_test_cmd) 112 commands.append(run_test_cmd)
113 return commands 113 return commands
114 114
115 115
116 def GetBotStepMap(): 116 def GetBotStepMap():
117 compile_step = ['compile'] 117 compile_step = ['compile']
118 std_host_tests = ['check_webview_licenses', 'findbugs'] 118 std_host_tests = ['check_webview_licenses', 'findbugs']
119 std_build_steps = ['compile', 'zip_build'] 119 std_build_steps = ['compile', 'zip_build']
120 std_test_steps = ['extract_build'] 120 std_test_steps = ['extract_build']
121 std_tests = ['ui', 'unit'] 121 std_tests = ['ui', 'unit']
122 telemetry_tests = ['telemetry_unittests', 'telemetry_perf_unittests']
122 flakiness_server = ( 123 flakiness_server = (
123 '--flakiness-server=%s' % constants.UPSTREAM_FLAKINESS_SERVER) 124 '--flakiness-server=%s' % constants.UPSTREAM_FLAKINESS_SERVER)
124 experimental = ['--experimental'] 125 experimental = ['--experimental']
125 126
126 B = BotConfig 127 B = BotConfig
127 H = (lambda steps, extra_args=None, extra_gyp=None, target_arch=None : 128 H = (lambda steps, extra_args=None, extra_gyp=None, target_arch=None :
128 HostConfig('build/android/buildbot/bb_host_steps.py', steps, extra_args, 129 HostConfig('build/android/buildbot/bb_host_steps.py', steps, extra_args,
129 extra_gyp, target_arch)) 130 extra_gyp, target_arch))
130 T = (lambda tests, extra_args=None : 131 T = (lambda tests, extra_args=None :
131 TestConfig('build/android/buildbot/bb_device_steps.py', tests, 132 TestConfig('build/android/buildbot/bb_device_steps.py', tests,
132 extra_args)) 133 extra_args))
133 134
134 bot_configs = [ 135 bot_configs = [
135 # Main builders 136 # Main builders
136 B('main-builder-dbg', H(std_build_steps + std_host_tests)), 137 B('main-builder-dbg', H(std_build_steps + std_host_tests)),
137 B('main-builder-rel', H(std_build_steps)), 138 B('main-builder-rel', H(std_build_steps)),
138 B('main-clang-builder', 139 B('main-clang-builder',
139 H(compile_step, extra_gyp='clang=1 component=shared_library')), 140 H(compile_step, extra_gyp='clang=1 component=shared_library')),
140 B('main-clobber', H(compile_step)), 141 B('main-clobber', H(compile_step)),
141 B('main-tests', H(std_test_steps), T(std_tests, [flakiness_server])), 142 B('main-tests', H(std_test_steps), T(std_tests + telemetry_tests,
143 [flakiness_server])),
142 144
143 # Other waterfalls 145 # Other waterfalls
144 B('asan-builder-tests', H(compile_step, 146 B('asan-builder-tests', H(compile_step,
145 extra_gyp='asan=1 component=shared_library'), 147 extra_gyp='asan=1 component=shared_library'),
146 T(std_tests, ['--asan', '--asan-symbolize'])), 148 T(std_tests, ['--asan', '--asan-symbolize'])),
147 B('blink-try-builder', H(compile_step)), 149 B('blink-try-builder', H(compile_step)),
148 B('chromedriver-fyi-tests-dbg', H(std_test_steps), 150 B('chromedriver-fyi-tests-dbg', H(std_test_steps),
149 T(['chromedriver'], ['--install=ChromeShell'])), 151 T(['chromedriver'], ['--install=ChromeShell'])),
150 B('fyi-x86-builder-dbg', 152 B('fyi-x86-builder-dbg',
151 H(compile_step + std_host_tests, experimental, target_arch='x86')), 153 H(compile_step + std_host_tests, experimental, target_arch='x86')),
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 bot_map = dict((config.bot_id, config) for config in bot_configs) 193 bot_map = dict((config.bot_id, config) for config in bot_configs)
192 194
193 # These bots have identical configuration to ones defined earlier. 195 # These bots have identical configuration to ones defined earlier.
194 copy_map = [ 196 copy_map = [
195 ('lkgr-clobber', 'main-clobber'), 197 ('lkgr-clobber', 'main-clobber'),
196 ('try-builder-dbg', 'main-builder-dbg'), 198 ('try-builder-dbg', 'main-builder-dbg'),
197 ('try-builder-rel', 'main-builder-rel'), 199 ('try-builder-rel', 'main-builder-rel'),
198 ('try-clang-builder', 'main-clang-builder'), 200 ('try-clang-builder', 'main-clang-builder'),
199 ('try-fyi-builder-dbg', 'fyi-builder-dbg'), 201 ('try-fyi-builder-dbg', 'fyi-builder-dbg'),
200 ('try-x86-builder-dbg', 'x86-builder-dbg'), 202 ('try-x86-builder-dbg', 'x86-builder-dbg'),
201 ('try-tests', 'main-tests'), 203 ('try-tests', 'main-tests'),
navabi 2014/04/12 16:43:38 I lied. This will also run on the try bots trigger
202 ('try-fyi-tests', 'fyi-tests'), 204 ('try-fyi-tests', 'fyi-tests'),
203 ('webkit-latest-tests', 'main-tests'), 205 ('webkit-latest-tests', 'main-tests'),
204 ] 206 ]
205 for to_id, from_id in copy_map: 207 for to_id, from_id in copy_map:
206 assert to_id not in bot_map 208 assert to_id not in bot_map
207 # pylint: disable=W0212 209 # pylint: disable=W0212
208 bot_map[to_id] = copy.deepcopy(bot_map[from_id])._replace(bot_id=to_id) 210 bot_map[to_id] = copy.deepcopy(bot_map[from_id])._replace(bot_id=to_id)
209 211
210 # Trybots do not upload to flakiness dashboard. They should be otherwise 212 # Trybots do not upload to flakiness dashboard. They should be otherwise
211 # identical in configuration to their trunk building counterparts. 213 # identical in configuration to their trunk building counterparts.
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 for command in commands: 286 for command in commands:
285 print 'Will run: ', bb_utils.CommandToString(command) 287 print 'Will run: ', bb_utils.CommandToString(command)
286 print 288 print
287 289
288 env = GetEnvironment(bot_config.host_obj, options.testing) 290 env = GetEnvironment(bot_config.host_obj, options.testing)
289 return RunBotCommands(options, commands, env) 291 return RunBotCommands(options, commands, env)
290 292
291 293
292 if __name__ == '__main__': 294 if __name__ == '__main__':
293 sys.exit(main(sys.argv)) 295 sys.exit(main(sys.argv))
OLDNEW
« no previous file with comments | « build/android/buildbot/bb_device_steps.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698