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