| 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 494 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 505 try_server_url = 'http://108.170.217.252:10117/' | 505 try_server_url = 'http://108.170.217.252:10117/' |
| 506 compile_required_build_steps = [ | 506 compile_required_build_steps = [ |
| 507 'BuildBench', | 507 'BuildBench', |
| 508 'BuildGm', | 508 'BuildGm', |
| 509 'BuildMost', | 509 'BuildMost', |
| 510 'BuildSkiaLib', | 510 'BuildSkiaLib', |
| 511 'BuildTests', | 511 'BuildTests', |
| 512 'BuildTools', | 512 'BuildTools', |
| 513 ] | 513 ] |
| 514 | 514 |
| 515 # Get the required build steps and builder names from the try server. |
| 516 compile_required_build_steps = json.load( |
| 517 urllib2.urlopen( |
| 518 try_server_url + 'json/cq_required_steps'))['cq_required_steps'] |
| 515 builder_names = list( | 519 builder_names = list( |
| 516 json.load(urllib2.urlopen(try_server_url + 'json/cqtrybots'))) | 520 json.load(urllib2.urlopen(try_server_url + 'json/cqtrybots'))) |
| 517 | 521 |
| 518 step_verifiers = [] | 522 step_verifiers = [] |
| 519 for builder_name in builder_names: | 523 for builder_name in builder_names: |
| 520 step_verifiers.append( | 524 step_verifiers.append( |
| 521 try_job_steps.TryJobSteps( | 525 try_job_steps.TryJobSteps( |
| 522 builder_name=builder_name, | 526 builder_name=builder_name, |
| 523 steps=compile_required_build_steps)) | 527 steps=compile_required_build_steps)) |
| 524 verifiers.append(try_job_on_rietveld.TryRunnerRietveld( | 528 verifiers.append(try_job_on_rietveld.TryRunnerRietveld( |
| (...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 732 """List the projects that can be managed by the commit queue.""" | 736 """List the projects that can be managed by the commit queue.""" |
| 733 return sorted( | 737 return sorted( |
| 734 x[5:] for x in dir(sys.modules[__name__]) if x.startswith('_gen_')) | 738 x[5:] for x in dir(sys.modules[__name__]) if x.startswith('_gen_')) |
| 735 | 739 |
| 736 | 740 |
| 737 def load_project(project, user, root_dir, rietveld_obj, no_try): | 741 def load_project(project, user, root_dir, rietveld_obj, no_try): |
| 738 """Loads the specified project.""" | 742 """Loads the specified project.""" |
| 739 assert os.path.isabs(root_dir) | 743 assert os.path.isabs(root_dir) |
| 740 return getattr(sys.modules[__name__], '_gen_' + project)( | 744 return getattr(sys.modules[__name__], '_gen_' + project)( |
| 741 user, root_dir, rietveld_obj, no_try) | 745 user, root_dir, rietveld_obj, no_try) |
| OLD | NEW |