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

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

Issue 11972003: [Android] Upload instrumentation results to flakiness dashboard. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed ilevy's comments Created 7 years, 11 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 json 8 import json
9 import optparse 9 import optparse
10 import os 10 import os
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 87
88 # Other waterfalls 88 # Other waterfalls
89 B('asan-builder', std_build_steps, None, None), 89 B('asan-builder', std_build_steps, None, None),
90 B('asan-tests', std_test_steps + ['bb_asan_tests_setup'], 90 B('asan-tests', std_test_steps + ['bb_asan_tests_setup'],
91 T(std_tests, ['--asan']), None), 91 T(std_tests, ['--asan']), None),
92 B('fyi-builder-dbg', 92 B('fyi-builder-dbg',
93 ['bb_check_webview_licenses', 'bb_compile', 'bb_compile_experimental', 93 ['bb_check_webview_licenses', 'bb_compile', 'bb_compile_experimental',
94 'bb_run_findbugs', 'bb_zip_build'], None, None), 94 'bb_run_findbugs', 'bb_zip_build'], None, None),
95 B('fyi-builder-rel', 95 B('fyi-builder-rel',
96 ['bb_compile', 'bb_compile_experimental', 'bb_zip_build'], None, None), 96 ['bb_compile', 'bb_compile_experimental', 'bb_zip_build'], None, None),
97 B('fyi-tests', std_test_steps, T(std_tests, ['--experimental']), None), 97 B('fyi-tests', std_test_steps,
98 T(std_tests, ['--experimental', '--upload-to-flakiness-server']), None),
98 B('perf-tests-rel', std_test_steps, T([], ['--install=ContentShell']), 99 B('perf-tests-rel', std_test_steps, T([], ['--install=ContentShell']),
99 None), 100 None),
101 B('try-fyi-tests', std_test_steps, T(std_tests, ['--experimental']),
102 None),
100 B('webkit-latest-tests', std_test_steps, T(['unit']), None), 103 B('webkit-latest-tests', std_test_steps, T(['unit']), None),
101 B('webkit-latest-webkit-tests', std_test_steps, 104 B('webkit-latest-webkit-tests', std_test_steps,
102 T(['webkit_layout', 'webkit']), None), 105 T(['webkit_layout', 'webkit']), None),
103 106
104 # Generic builder config (for substring match). 107 # Generic builder config (for substring match).
105 B('builder', std_build_steps, None, None), 108 B('builder', std_build_steps, None, None),
106 ] 109 ]
107 110
108 bot_map = dict((config.bot_id, config) for config in bot_configs) 111 bot_map = dict((config.bot_id, config) for config in bot_configs)
109 112
110 # These bots have identical configuration to ones defined earlier. 113 # These bots have identical configuration to ones defined earlier.
111 copy_map = [ 114 copy_map = [
112 ('try-builder-dbg', 'main-builder-dbg'), 115 ('try-builder-dbg', 'main-builder-dbg'),
113 ('try-tests-dbg', 'main-tests-dbg'), 116 ('try-tests-dbg', 'main-tests-dbg'),
114 ('try-clang-builder', 'main-clang-builder'), 117 ('try-clang-builder', 'main-clang-builder'),
115 ('try-fyi-builder-dbg', 'fyi-builder-dbg'), 118 ('try-fyi-builder-dbg', 'fyi-builder-dbg'),
116 ('try-fyi-tests', 'fyi-tests'),
117 ] 119 ]
118 for to_id, from_id in copy_map: 120 for to_id, from_id in copy_map:
119 assert to_id not in bot_map 121 assert to_id not in bot_map
120 # pylint: disable=W0212 122 # pylint: disable=W0212
121 bot_map[to_id] = bot_map[from_id]._replace(bot_id=to_id) 123 bot_map[to_id] = bot_map[from_id]._replace(bot_id=to_id)
122 124
123 return bot_map 125 return bot_map
124 126
125 127
126 def main(argv): 128 def main(argv):
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 continue 188 continue
187 env = dict(os.environ) 189 env = dict(os.environ)
188 env['BUILDBOT_TESTING'] = '1' 190 env['BUILDBOT_TESTING'] = '1'
189 191
190 return_code |= subprocess.call(command, cwd=CHROME_SRC, env=env) 192 return_code |= subprocess.call(command, cwd=CHROME_SRC, env=env)
191 return return_code 193 return return_code
192 194
193 195
194 if __name__ == '__main__': 196 if __name__ == '__main__':
195 sys.exit(main(sys.argv)) 197 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