Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 255 ['vm%d-m4' % i for i in range(666, 671)] + | 255 ['vm%d-m4' % i for i in range(666, 671)] + |
| 256 ['build%d-a4' % i for i in range(100, 140)], | 256 ['build%d-a4' % i for i in range(100, 140)], |
| 257 } | 257 } |
| 258 ENABLED_SLAVES.update(internal_data.get('ENABLED_SLAVES', {})) | 258 ENABLED_SLAVES.update(internal_data.get('ENABLED_SLAVES', {})) |
| 259 | 259 |
| 260 # Disabled filters get run AFTER enabled filters, so for example if a builder | 260 # Disabled filters get run AFTER enabled filters, so for example if a builder |
| 261 # config is enabled, but a bot on that builder is disabled, that bot will | 261 # config is enabled, but a bot on that builder is disabled, that bot will |
| 262 # be disabled. | 262 # be disabled. |
| 263 DISABLED_BUILDERS = { | 263 DISABLED_BUILDERS = { |
| 264 'chromium.fyi': [ | 264 'chromium.fyi': [ |
| 265 'Chromium Linux Codesearch', | |
| 266 'ChromiumOS Codesearch', | |
| 267 # ClusterFuzz relies on svn revisions to do bisection checks. | 265 # ClusterFuzz relies on svn revisions to do bisection checks. |
| 268 # crbug.com/377963 | 266 # crbug.com/377963 |
| 269 'Win SyzyASAN LKGR', | 267 'Win SyzyASAN LKGR', |
| 270 ], | 268 ], |
| 271 'chromium.webkit': [ | 269 'chromium.webkit': [ |
| 272 # We don't know how to deal with the DEPS builder yet. | 270 # We don't know how to deal with the DEPS builder yet. |
| 273 'WebKit Win Builder (deps)', | 271 'WebKit Win Builder (deps)', |
| 274 'WebKit XP (deps)', | 272 'WebKit XP (deps)', |
| 275 'WebKit Mac Builder (deps)', | 273 'WebKit Mac Builder (deps)', |
| 276 'WebKit Mac10.6 (deps)', | 274 'WebKit Mac10.6 (deps)', |
| (...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 561 parsed_path = parsed_url.path | 559 parsed_path = parsed_url.path |
| 562 | 560 |
| 563 # Rewrite SVN urls into Git urls. | 561 # Rewrite SVN urls into Git urls. |
| 564 buildspec_m = re.match(BUILDSPEC_RE, parsed_path) | 562 buildspec_m = re.match(BUILDSPEC_RE, parsed_path) |
| 565 if first_solution and buildspec_m: | 563 if first_solution and buildspec_m: |
| 566 solution['url'] = GIT_BUILDSPEC_PATH | 564 solution['url'] = GIT_BUILDSPEC_PATH |
| 567 buildspec_name = buildspec_m.group(1) | 565 buildspec_name = buildspec_m.group(1) |
| 568 solution['deps_file'] = path.join('build', buildspec_name, '.DEPS.git') | 566 solution['deps_file'] = path.join('build', buildspec_name, '.DEPS.git') |
| 569 elif parsed_path in RECOGNIZED_PATHS: | 567 elif parsed_path in RECOGNIZED_PATHS: |
| 570 solution['url'] = RECOGNIZED_PATHS[parsed_path] | 568 solution['url'] = RECOGNIZED_PATHS[parsed_path] |
| 569 elif parsed_url.scheme == 'https' and 'googlesource' in parsed_url.netloc: | |
|
zty
2014/07/29 18:05:05
What is this for?
Ryan Tseng
2014/07/29 18:16:55
So there are 4 conditions:
1. If the url is a buil
| |
| 570 pass | |
| 571 else: | 571 else: |
| 572 warnings.append('path %r not recognized' % parsed_path) | 572 warnings.append('path %r not recognized' % parsed_path) |
| 573 print 'Warning: %s' % (warnings[-1],) | 573 print 'Warning: %s' % (warnings[-1],) |
| 574 | 574 |
| 575 # Point .DEPS.git is the git version of the DEPS file. | 575 # Point .DEPS.git is the git version of the DEPS file. |
| 576 if not FLAG_DAY and not buildspec_name: | 576 if not FLAG_DAY and not buildspec_name: |
| 577 solution['deps_file'] = '.DEPS.git' | 577 solution['deps_file'] = '.DEPS.git' |
| 578 | 578 |
| 579 if first_solution: | 579 if first_solution: |
| 580 root = parsed_path | 580 root = parsed_path |
| (...skipping 1088 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1669 thr = upload_telemetry(prefix='end', unix_time=time.time(), | 1669 thr = upload_telemetry(prefix='end', unix_time=time.time(), |
| 1670 **telemetry_info) | 1670 **telemetry_info) |
| 1671 all_threads.append(thr) | 1671 all_threads.append(thr) |
| 1672 # Sort of wait for all telemetry threads to finish. | 1672 # Sort of wait for all telemetry threads to finish. |
| 1673 for thr in all_threads: | 1673 for thr in all_threads: |
| 1674 thr.join(5) | 1674 thr.join(5) |
| 1675 | 1675 |
| 1676 | 1676 |
| 1677 if __name__ == '__main__': | 1677 if __name__ == '__main__': |
| 1678 sys.exit(main()) | 1678 sys.exit(main()) |
| OLD | NEW |