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 443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
454 use_triggered_bot=False)) | 454 use_triggered_bot=False)) |
455 | 455 |
456 # Experimental recipe-based Chromium trybots. To avoid possible capacity | 456 # Experimental recipe-based Chromium trybots. To avoid possible capacity |
457 # problems, only enable for a small percentage of try runs. | 457 # problems, only enable for a small percentage of try runs. |
458 # Disable as emergency measure - crbug.com/334681 | 458 # Disable as emergency measure - crbug.com/334681 |
459 verifiers.append( | 459 verifiers.append( |
460 trigger_experimental_try_job.TriggerExperimentalTryJobVerifier( | 460 trigger_experimental_try_job.TriggerExperimentalTryJobVerifier( |
461 context_obj, | 461 context_obj, |
462 percentage=0.25, | 462 percentage=0.25, |
463 try_job_description={ | 463 try_job_description={ |
464 'linux_chromium_dbg': ['defaulttests'], | |
465 'linux_chromium_rel': ['defaulttests'], | 464 'linux_chromium_rel': ['defaulttests'], |
466 'mac_chromium_dbg': ['defaulttests'], | |
467 'mac_chromium_rel': ['defaulttests'], | 465 'mac_chromium_rel': ['defaulttests'], |
468 })) | 466 })) |
469 | 467 |
470 verifiers.append(try_job_on_rietveld.TryRunnerRietveld( | 468 verifiers.append(try_job_on_rietveld.TryRunnerRietveld( |
471 context_obj, | 469 context_obj, |
472 'http://build.chromium.org/p/tryserver.chromium/', | 470 'http://build.chromium.org/p/tryserver.chromium/', |
473 user, | 471 user, |
474 step_verifiers, | 472 step_verifiers, |
475 IGNORED_STEPS, | 473 IGNORED_STEPS, |
476 'src')) | 474 'src')) |
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
761 """List the projects that can be managed by the commit queue.""" | 759 """List the projects that can be managed by the commit queue.""" |
762 return sorted( | 760 return sorted( |
763 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_')) |
764 | 762 |
765 | 763 |
766 def load_project(project, user, root_dir, rietveld_obj, no_try): | 764 def load_project(project, user, root_dir, rietveld_obj, no_try): |
767 """Loads the specified project.""" | 765 """Loads the specified project.""" |
768 assert os.path.isabs(root_dir) | 766 assert os.path.isabs(root_dir) |
769 return getattr(sys.modules[__name__], '_gen_' + project)( | 767 return getattr(sys.modules[__name__], '_gen_' + project)( |
770 user, root_dir, rietveld_obj, no_try) | 768 user, root_dir, rietveld_obj, no_try) |
OLD | NEW |