| 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 398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 409 | 409 |
| 410 # pylint: disable=W0612 | 410 # pylint: disable=W0612 |
| 411 swarm_test_map = dict( | 411 swarm_test_map = dict( |
| 412 (test, test + '_swarm') for test in swarm_enabled_tests) | 412 (test, test + '_swarm') for test in swarm_enabled_tests) |
| 413 | 413 |
| 414 # Commenting out the items below will make the CQ not use swarm for its | 414 # Commenting out the items below will make the CQ not use swarm for its |
| 415 # execution. Uncomment to make the CQ use Swarming again. | 415 # execution. Uncomment to make the CQ use Swarming again. |
| 416 swarm_enabled_builders_and_tests = { | 416 swarm_enabled_builders_and_tests = { |
| 417 ('linux_rel', 'linux_swarm_triggered'): swarm_test_map, | 417 ('linux_rel', 'linux_swarm_triggered'): swarm_test_map, |
| 418 ('mac_rel', 'mac_swarm_triggered'): swarm_test_map, | 418 ('mac_rel', 'mac_swarm_triggered'): swarm_test_map, |
| 419 # ('win_rel', 'win_swarm_triggered'): swarm_test_map, | 419 ('win_rel', 'win_swarm_triggered'): swarm_test_map, |
| 420 } | 420 } |
| 421 | 421 |
| 422 step_verifiers += [ | 422 step_verifiers += [ |
| 423 try_job_steps.TryJobSteps( | 423 try_job_steps.TryJobSteps( |
| 424 builder_name=b, prereq_builder=prereq_builder, | 424 builder_name=b, prereq_builder=prereq_builder, |
| 425 prereq_tests=prereq_tests, steps=s) | 425 prereq_tests=prereq_tests, steps=s) |
| 426 for b, s in builders_and_tests.iteritems() | 426 for b, s in builders_and_tests.iteritems() |
| 427 if b not in swarm_enabled_builders_and_tests | 427 if b not in swarm_enabled_builders_and_tests |
| 428 ] + [ | 428 ] + [ |
| 429 try_job_steps.TryJobTriggeredSteps( | 429 try_job_steps.TryJobTriggeredSteps( |
| (...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 744 """List the projects that can be managed by the commit queue.""" | 744 """List the projects that can be managed by the commit queue.""" |
| 745 return sorted( | 745 return sorted( |
| 746 x[5:] for x in dir(sys.modules[__name__]) if x.startswith('_gen_')) | 746 x[5:] for x in dir(sys.modules[__name__]) if x.startswith('_gen_')) |
| 747 | 747 |
| 748 | 748 |
| 749 def load_project(project, user, root_dir, rietveld_obj, no_try): | 749 def load_project(project, user, root_dir, rietveld_obj, no_try): |
| 750 """Loads the specified project.""" | 750 """Loads the specified project.""" |
| 751 assert os.path.isabs(root_dir) | 751 assert os.path.isabs(root_dir) |
| 752 return getattr(sys.modules[__name__], '_gen_' + project)( | 752 return getattr(sys.modules[__name__], '_gen_' + project)( |
| 753 user, root_dir, rietveld_obj, no_try) | 753 user, root_dir, rietveld_obj, no_try) |
| OLD | NEW |