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

Side by Side Diff: scripts/slave/bot_update.py

Issue 420603015: Enable bot_update for chromium codesearch (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Rebase Created 6 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 | « scripts/master/factory/chromium_factory.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 # Copyright 2014 The Chromium Authors. All rights reserved. 2 # Copyright 2014 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 # TODO(hinoka): Use logging. 6 # TODO(hinoka): Use logging.
7 7
8 import cStringIO 8 import cStringIO
9 import codecs 9 import codecs
10 import copy 10 import copy
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 ['vm%d-m4' % i for i in range(666, 671)] + 229 ['vm%d-m4' % i for i in range(666, 671)] +
230 ['build%d-a4' % i for i in range(100, 140)], 230 ['build%d-a4' % i for i in range(100, 140)],
231 } 231 }
232 ENABLED_SLAVES.update(internal_data.get('ENABLED_SLAVES', {})) 232 ENABLED_SLAVES.update(internal_data.get('ENABLED_SLAVES', {}))
233 233
234 # Disabled filters get run AFTER enabled filters, so for example if a builder 234 # Disabled filters get run AFTER enabled filters, so for example if a builder
235 # config is enabled, but a bot on that builder is disabled, that bot will 235 # config is enabled, but a bot on that builder is disabled, that bot will
236 # be disabled. 236 # be disabled.
237 DISABLED_BUILDERS = { 237 DISABLED_BUILDERS = {
238 'chromium.fyi': [ 238 'chromium.fyi': [
239 'Chromium Linux Codesearch',
240 'ChromiumOS Codesearch', 239 'ChromiumOS Codesearch',
241 ], 240 ],
242 'chromium.webkit': [ 241 'chromium.webkit': [
243 # We don't know how to deal with the DEPS builder yet. 242 # We don't know how to deal with the DEPS builder yet.
244 'WebKit Win Builder (deps)', 243 'WebKit Win Builder (deps)',
245 'WebKit XP (deps)', 244 'WebKit XP (deps)',
246 'WebKit Mac Builder (deps)', 245 'WebKit Mac Builder (deps)',
247 'WebKit Mac10.6 (deps)', 246 'WebKit Mac10.6 (deps)',
248 'WebKit Linux (deps)', 247 'WebKit Linux (deps)',
249 ], 248 ],
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
527 parsed_path = parsed_url.path 526 parsed_path = parsed_url.path
528 527
529 # Rewrite SVN urls into Git urls. 528 # Rewrite SVN urls into Git urls.
530 buildspec_m = re.match(BUILDSPEC_RE, parsed_path) 529 buildspec_m = re.match(BUILDSPEC_RE, parsed_path)
531 if first_solution and buildspec_m: 530 if first_solution and buildspec_m:
532 solution['url'] = GIT_BUILDSPEC_PATH 531 solution['url'] = GIT_BUILDSPEC_PATH
533 buildspec_name = buildspec_m.group(1) 532 buildspec_name = buildspec_m.group(1)
534 solution['deps_file'] = path.join('build', buildspec_name, '.DEPS.git') 533 solution['deps_file'] = path.join('build', buildspec_name, '.DEPS.git')
535 elif parsed_path in RECOGNIZED_PATHS: 534 elif parsed_path in RECOGNIZED_PATHS:
536 solution['url'] = RECOGNIZED_PATHS[parsed_path] 535 solution['url'] = RECOGNIZED_PATHS[parsed_path]
536 elif parsed_url.scheme == 'https' and 'googlesource' in parsed_url.netloc:
537 pass
537 else: 538 else:
538 warnings.append('path %r not recognized' % parsed_path) 539 warnings.append('path %r not recognized' % parsed_path)
539 print 'Warning: %s' % (warnings[-1],) 540 print 'Warning: %s' % (warnings[-1],)
540 541
541 # Point .DEPS.git is the git version of the DEPS file. 542 # Point .DEPS.git is the git version of the DEPS file.
542 if not FLAG_DAY and not buildspec_name: 543 if not FLAG_DAY and not buildspec_name:
543 solution['deps_file'] = '.DEPS.git' 544 solution['deps_file'] = '.DEPS.git'
544 545
545 if first_solution: 546 if first_solution:
546 root = parsed_path 547 root = parsed_path
(...skipping 1088 matching lines...) Expand 10 before | Expand all | Expand 10 after
1635 thr = upload_telemetry(prefix='end', unix_time=time.time(), 1636 thr = upload_telemetry(prefix='end', unix_time=time.time(),
1636 **telemetry_info) 1637 **telemetry_info)
1637 all_threads.append(thr) 1638 all_threads.append(thr)
1638 # Sort of wait for all telemetry threads to finish. 1639 # Sort of wait for all telemetry threads to finish.
1639 for thr in all_threads: 1640 for thr in all_threads:
1640 thr.join(5) 1641 thr.join(5)
1641 1642
1642 1643
1643 if __name__ == '__main__': 1644 if __name__ == '__main__':
1644 sys.exit(main()) 1645 sys.exit(main())
OLDNEW
« no previous file with comments | « scripts/master/factory/chromium_factory.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698