Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(190)

Side by Side Diff: projects.py

Issue 105823014: Add Windows on Swarm usage for the Chromium CQ. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/commit-queue.git@master
Patch Set: Riiiiietveld Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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)
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698