| 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 522 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 533 ] | 533 ] |
| 534 verifiers = [ | 534 verifiers = [ |
| 535 presubmit_check.PresubmitCheckVerifier(context_obj), | 535 presubmit_check.PresubmitCheckVerifier(context_obj), |
| 536 tree_status.TreeStatusVerifier( | 536 tree_status.TreeStatusVerifier( |
| 537 'https://skia-tree-status.appspot.com') | 537 'https://skia-tree-status.appspot.com') |
| 538 ] | 538 ] |
| 539 | 539 |
| 540 if not no_try: | 540 if not no_try: |
| 541 # TODO(skia-infrastructure-team): Use skia.org instead of the below when it | 541 # TODO(skia-infrastructure-team): Use skia.org instead of the below when it |
| 542 # is ready. | 542 # is ready. |
| 543 try_server_url = 'http://skiabot-master.pogerlabs.com:10117/' | 543 try_server_url = 'http://108.170.219.164:10117/' |
| 544 | 544 |
| 545 # Get the required build steps and builder names from the try server. | 545 # Get the required build steps and builder names from the try server. |
| 546 compile_required_build_steps = json.load( | 546 compile_required_build_steps = json.load( |
| 547 urllib2.urlopen( | 547 urllib2.urlopen( |
| 548 try_server_url + 'json/cq_required_steps'))['cq_required_steps'] | 548 try_server_url + 'json/cq_required_steps'))['cq_required_steps'] |
| 549 builder_names = list( | 549 builder_names = list( |
| 550 json.load(urllib2.urlopen(try_server_url + 'json/cqtrybots'))) | 550 json.load(urllib2.urlopen(try_server_url + 'json/cqtrybots'))) |
| 551 | 551 |
| 552 step_verifiers = [] | 552 step_verifiers = [] |
| 553 for builder_name in builder_names: | 553 for builder_name in builder_names: |
| (...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 767 """List the projects that can be managed by the commit queue.""" | 767 """List the projects that can be managed by the commit queue.""" |
| 768 return sorted( | 768 return sorted( |
| 769 x[5:] for x in dir(sys.modules[__name__]) if x.startswith('_gen_')) | 769 x[5:] for x in dir(sys.modules[__name__]) if x.startswith('_gen_')) |
| 770 | 770 |
| 771 | 771 |
| 772 def load_project(project, user, root_dir, rietveld_obj, no_try): | 772 def load_project(project, user, root_dir, rietveld_obj, no_try): |
| 773 """Loads the specified project.""" | 773 """Loads the specified project.""" |
| 774 assert os.path.isabs(root_dir) | 774 assert os.path.isabs(root_dir) |
| 775 return getattr(sys.modules[__name__], '_gen_' + project)( | 775 return getattr(sys.modules[__name__], '_gen_' + project)( |
| 776 user, root_dir, rietveld_obj, no_try) | 776 user, root_dir, rietveld_obj, no_try) |
| OLD | NEW |