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

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

Issue 19931004: [Android Buildbot] Make flakiness dashboard server configurable. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix indentation Created 7 years, 4 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
11 import pipes 11 import pipes
12 import re 12 import re
13 import subprocess 13 import subprocess
14 import sys 14 import sys
15 15
16 import bb_utils 16 import bb_utils
17 17
18 sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
19 from pylib import constants
20
21
18 _BotConfig = collections.namedtuple( 22 _BotConfig = collections.namedtuple(
19 'BotConfig', ['bot_id', 'host_obj', 'test_obj']) 23 'BotConfig', ['bot_id', 'host_obj', 'test_obj'])
20 24
21 HostConfig = collections.namedtuple( 25 HostConfig = collections.namedtuple(
22 'HostConfig', 26 'HostConfig',
23 ['script', 'host_steps', 'extra_args', 'extra_gyp_defines', 'target_arch']) 27 ['script', 'host_steps', 'extra_args', 'extra_gyp_defines', 'target_arch'])
24 28
25 TestConfig = collections.namedtuple('Tests', ['script', 'tests', 'extra_args']) 29 TestConfig = collections.namedtuple('Tests', ['script', 'tests', 'extra_args'])
26 30
27 31
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 commands.append(run_test_cmd) 108 commands.append(run_test_cmd)
105 return commands 109 return commands
106 110
107 111
108 def GetBotStepMap(): 112 def GetBotStepMap():
109 compile_step = ['compile'] 113 compile_step = ['compile']
110 std_host_tests = ['check_webview_licenses', 'findbugs'] 114 std_host_tests = ['check_webview_licenses', 'findbugs']
111 std_build_steps = ['compile', 'zip_build'] 115 std_build_steps = ['compile', 'zip_build']
112 std_test_steps = ['extract_build'] 116 std_test_steps = ['extract_build']
113 std_tests = ['ui', 'unit'] 117 std_tests = ['ui', 'unit']
114 flakiness_server = '--upload-to-flakiness-server' 118 flakiness_server = (
119 '--flakiness-server=%s' % constants.UPSTREAM_FLAKINESS_SERVER)
115 experimental = ['--experimental'] 120 experimental = ['--experimental']
116 121
117 B = BotConfig 122 B = BotConfig
118 H = (lambda steps, extra_args=None, extra_gyp=None, target_arch=None : 123 H = (lambda steps, extra_args=None, extra_gyp=None, target_arch=None :
119 HostConfig('build/android/buildbot/bb_host_steps.py', steps, extra_args, 124 HostConfig('build/android/buildbot/bb_host_steps.py', steps, extra_args,
120 extra_gyp, target_arch)) 125 extra_gyp, target_arch))
121 T = (lambda tests, extra_args=None : 126 T = (lambda tests, extra_args=None :
122 TestConfig('build/android/buildbot/bb_device_steps.py', tests, 127 TestConfig('build/android/buildbot/bb_device_steps.py', tests,
123 extra_args)) 128 extra_args))
124 129
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 for command in commands: 262 for command in commands:
258 print 'Will run: ', bb_utils.CommandToString(command) 263 print 'Will run: ', bb_utils.CommandToString(command)
259 print 264 print
260 265
261 env = GetEnvironment(bot_config.host_obj, options.testing) 266 env = GetEnvironment(bot_config.host_obj, options.testing)
262 return RunBotCommands(options, commands, env) 267 return RunBotCommands(options, commands, env)
263 268
264 269
265 if __name__ == '__main__': 270 if __name__ == '__main__':
266 sys.exit(main(sys.argv)) 271 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