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 396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
407 'unit_tests', | 407 'unit_tests', |
408 ) | 408 ) |
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 |
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
741 """List the projects that can be managed by the commit queue.""" | 741 """List the projects that can be managed by the commit queue.""" |
742 return sorted( | 742 return sorted( |
743 x[5:] for x in dir(sys.modules[__name__]) if x.startswith('_gen_')) | 743 x[5:] for x in dir(sys.modules[__name__]) if x.startswith('_gen_')) |
744 | 744 |
745 | 745 |
746 def load_project(project, user, root_dir, rietveld_obj, no_try): | 746 def load_project(project, user, root_dir, rietveld_obj, no_try): |
747 """Loads the specified project.""" | 747 """Loads the specified project.""" |
748 assert os.path.isabs(root_dir) | 748 assert os.path.isabs(root_dir) |
749 return getattr(sys.modules[__name__], '_gen_' + project)( | 749 return getattr(sys.modules[__name__], '_gen_' + project)( |
750 user, root_dir, rietveld_obj, no_try) | 750 user, root_dir, rietveld_obj, no_try) |
OLD | NEW |