| 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 |
| 11 import urllib2 | 11 import urllib2 |
| 12 | 12 |
| 13 import find_depot_tools # pylint: disable=W0611 | 13 import find_depot_tools # pylint: disable=W0611 |
| 14 import checkout | 14 import checkout |
| 15 | 15 |
| 16 import async_push | 16 import async_push |
| 17 import context | 17 import context |
| 18 import errors | 18 import errors |
| 19 import pending_manager | 19 import pending_manager |
| 20 from post_processors import chromium_copyright | 20 from post_processors import chromium_copyright |
| 21 from verification import presubmit_check | 21 from verification import presubmit_check |
| 22 from verification import project_base | 22 from verification import project_base |
| 23 from verification import reviewer_lgtm | 23 from verification import reviewer_lgtm |
| 24 from verification import tree_status | 24 from verification import tree_status |
| 25 from verification import trigger_experimental_try_job |
| 25 from verification import try_job_steps | 26 from verification import try_job_steps |
| 26 from verification import try_job_on_rietveld | 27 from verification import try_job_on_rietveld |
| 27 from verification import try_server | 28 from verification import try_server |
| 28 | 29 |
| 29 | 30 |
| 30 ROOT_DIR = os.path.dirname(os.path.abspath(__file__)) | 31 ROOT_DIR = os.path.dirname(os.path.abspath(__file__)) |
| 31 INTERNAL_DIR = os.path.abspath( | 32 INTERNAL_DIR = os.path.abspath( |
| 32 os.path.join(ROOT_DIR, os.pardir, 'commit-queue-internal')) | 33 os.path.join(ROOT_DIR, os.pardir, 'commit-queue-internal')) |
| 33 | 34 |
| 34 # These come from commit-queue in the internal repo. | 35 # These come from commit-queue in the internal repo. |
| (...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 444 step_verifiers.append( | 445 step_verifiers.append( |
| 445 try_job_steps.TryJobTriggeredOrNormalSteps( | 446 try_job_steps.TryJobTriggeredOrNormalSteps( |
| 446 builder_name=triggered, | 447 builder_name=triggered, |
| 447 trigger_name=builder, | 448 trigger_name=builder, |
| 448 prereq_builder=prereq_builder, | 449 prereq_builder=prereq_builder, |
| 449 prereq_tests=prereq_tests, | 450 prereq_tests=prereq_tests, |
| 450 steps=builder_swarm_enabled_tests, | 451 steps=builder_swarm_enabled_tests, |
| 451 trigger_bot_steps=regular_tests, | 452 trigger_bot_steps=regular_tests, |
| 452 use_triggered_bot=False)) | 453 use_triggered_bot=False)) |
| 453 | 454 |
| 455 # Experimental recipe-based Chromium trybots. To avoid possible capacity |
| 456 # problems, only enable for a small percentage of try runs. |
| 457 verifiers.append( |
| 458 trigger_experimental_try_job.TriggerExperimentalTryJobVerifier( |
| 459 context_obj, |
| 460 percentage=0.01, |
| 461 try_job_description={ |
| 462 'linux_chromium_dbg': ['defaulttests'], |
| 463 'linux_chromium_rel': ['defaulttests'], |
| 464 'mac_chromium_dbg': ['defaulttests'], |
| 465 'mac_chromium_rel': ['defaulttests'], |
| 466 })) |
| 467 |
| 454 verifiers.append(try_job_on_rietveld.TryRunnerRietveld( | 468 verifiers.append(try_job_on_rietveld.TryRunnerRietveld( |
| 455 context_obj, | 469 context_obj, |
| 456 'http://build.chromium.org/p/tryserver.chromium/', | 470 'http://build.chromium.org/p/tryserver.chromium/', |
| 457 user, | 471 user, |
| 458 step_verifiers, | 472 step_verifiers, |
| 459 IGNORED_STEPS, | 473 IGNORED_STEPS, |
| 460 'src')) | 474 'src')) |
| 461 | 475 |
| 462 verifiers.append(tree_status.TreeStatusVerifier( | 476 verifiers.append(tree_status.TreeStatusVerifier( |
| 463 'https://chromium-status.appspot.com')) | 477 'https://chromium-status.appspot.com')) |
| (...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 745 """List the projects that can be managed by the commit queue.""" | 759 """List the projects that can be managed by the commit queue.""" |
| 746 return sorted( | 760 return sorted( |
| 747 x[5:] for x in dir(sys.modules[__name__]) if x.startswith('_gen_')) | 761 x[5:] for x in dir(sys.modules[__name__]) if x.startswith('_gen_')) |
| 748 | 762 |
| 749 | 763 |
| 750 def load_project(project, user, root_dir, rietveld_obj, no_try): | 764 def load_project(project, user, root_dir, rietveld_obj, no_try): |
| 751 """Loads the specified project.""" | 765 """Loads the specified project.""" |
| 752 assert os.path.isabs(root_dir) | 766 assert os.path.isabs(root_dir) |
| 753 return getattr(sys.modules[__name__], '_gen_' + project)( | 767 return getattr(sys.modules[__name__], '_gen_' + project)( |
| 754 user, root_dir, rietveld_obj, no_try) | 768 user, root_dir, rietveld_obj, no_try) |
| OLD | NEW |