Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 """Define the supported projects.""" | 4 """Define the supported projects.""" |
| 5 | 5 |
| 6 import json | 6 import json |
| 7 import logging | 7 import logging |
| 8 import os | 8 import os |
| 9 import re | 9 import re |
| 10 import sys | 10 import sys |
| (...skipping 487 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 498 tree_status.TreeStatusVerifier( | 498 tree_status.TreeStatusVerifier( |
| 499 'https://skia-tree-status.appspot.com') | 499 'https://skia-tree-status.appspot.com') |
| 500 ] | 500 ] |
| 501 | 501 |
| 502 if not no_try: | 502 if not no_try: |
| 503 # TODO(rmistry): This should instead be a URL that does not change. | 503 # TODO(rmistry): This should instead be a URL that does not change. |
| 504 try_server_url = 'http://173.255.115.253:10117/' | 504 try_server_url = 'http://173.255.115.253:10117/' |
| 505 compile_required_build_steps = [ | 505 compile_required_build_steps = [ |
| 506 'BuildBench', | 506 'BuildBench', |
| 507 'BuildGm', | 507 'BuildGm', |
| 508 'BuildMost', | 508 'BuildEverything', |
| 509 'BuildSkiaLib', | 509 'BuildSkiaLib', |
| 510 'BuildTests', | 510 'BuildTests', |
| 511 'BuildTools', | 511 'BuildTools', |
| 512 ] | 512 ] |
| 513 | 513 |
| 514 # Get the required build steps and builder names from the try server. | 514 # Get the required build steps and builder names from the try server. |
| 515 compile_required_build_steps = json.load( | 515 # compile_required_build_steps = json.load( |
|
rmistry
2013/08/27 16:22:11
Commenting this out because changing this on Skia'
agable
2013/08/27 16:33:36
This is broken because the urlopen is hanging? Sit
rmistry
2013/08/27 16:40:18
This is because the steps returned at that url are
agable
2013/08/27 16:42:56
It was hanging and timing out for me. Now it works
| |
| 516 urllib2.urlopen( | 516 # urllib2.urlopen( |
| 517 try_server_url + 'json/cq_required_steps'))['cq_required_steps'] | 517 # try_server_url + 'json/cq_required_steps'))['cq_required_steps'] |
| 518 builder_names = list( | 518 builder_names = list( |
| 519 json.load(urllib2.urlopen(try_server_url + 'json/cqtrybots'))) | 519 json.load(urllib2.urlopen(try_server_url + 'json/cqtrybots'))) |
| 520 | 520 |
| 521 step_verifiers = [] | 521 step_verifiers = [] |
| 522 for builder_name in builder_names: | 522 for builder_name in builder_names: |
| 523 step_verifiers.append( | 523 step_verifiers.append( |
| 524 try_job_steps.TryJobSteps( | 524 try_job_steps.TryJobSteps( |
| 525 builder_name=builder_name, | 525 builder_name=builder_name, |
| 526 steps=compile_required_build_steps)) | 526 steps=compile_required_build_steps)) |
| 527 verifiers.append(try_job_on_rietveld.TryRunnerRietveld( | 527 verifiers.append(try_job_on_rietveld.TryRunnerRietveld( |
| (...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 735 """List the projects that can be managed by the commit queue.""" | 735 """List the projects that can be managed by the commit queue.""" |
| 736 return sorted( | 736 return sorted( |
| 737 x[5:] for x in dir(sys.modules[__name__]) if x.startswith('_gen_')) | 737 x[5:] for x in dir(sys.modules[__name__]) if x.startswith('_gen_')) |
| 738 | 738 |
| 739 | 739 |
| 740 def load_project(project, user, root_dir, rietveld_obj, no_try): | 740 def load_project(project, user, root_dir, rietveld_obj, no_try): |
| 741 """Loads the specified project.""" | 741 """Loads the specified project.""" |
| 742 assert os.path.isabs(root_dir) | 742 assert os.path.isabs(root_dir) |
| 743 return getattr(sys.modules[__name__], '_gen_' + project)( | 743 return getattr(sys.modules[__name__], '_gen_' + project)( |
| 744 user, root_dir, rietveld_obj, no_try) | 744 user, root_dir, rietveld_obj, no_try) |
| OLD | NEW |