| OLD | NEW |
| 1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 2013 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 | 4 |
| 5 import os | 5 import os |
| 6 import types | 6 import types |
| 7 | 7 |
| 8 from recipe_engine.config import config_item_context, ConfigGroup | 8 from recipe_engine.config import config_item_context, ConfigGroup |
| 9 from recipe_engine.config import Dict, Single, Set | 9 from recipe_engine.config import Dict, Single, Set |
| 10 | 10 |
| 11 import DEPS | 11 import DEPS |
| 12 path_api = DEPS['path'].api | 12 path_api = DEPS['path'].api |
| 13 | 13 |
| 14 | 14 |
| 15 def BaseConfig(CBB_CONFIG=None, CBB_BRANCH=None, CBB_BUILD_NUMBER=None, | 15 def BaseConfig(CBB_CONFIG=None, CBB_BRANCH=None, CBB_BUILD_NUMBER=None, |
| 16 CBB_DEBUG=False, CBB_CLOBBER=False, **_kwargs): | 16 CBB_DEBUG=False, CBB_CLOBBER=False, CBB_BUILDBUCKET_ID=None, |
| 17 **_kwargs): |
| 17 return ConfigGroup( | 18 return ConfigGroup( |
| 18 # Base mapping of repository key to repository name. | 19 # Base mapping of repository key to repository name. |
| 19 repositories = Dict(value_type=Set(basestring)), | 20 repositories = Dict(value_type=Set(basestring)), |
| 20 | 21 |
| 21 # Checkout Chromite at this branch. "origin/" will be prepended. | 22 # Checkout Chromite at this branch. "origin/" will be prepended. |
| 22 chromite_branch = Single(basestring, empty_val=CBB_BRANCH or 'master'), | 23 chromite_branch = Single(basestring, empty_val=CBB_BRANCH or 'master'), |
| 23 | 24 |
| 24 # Should the Chrome version be supplied to cbuildbot? | 25 # Should the Chrome version be supplied to cbuildbot? |
| 25 use_chrome_version = Single(bool), | 26 use_chrome_version = Single(bool), |
| 26 | 27 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 56 # The (optional) configuration repository to use. | 57 # The (optional) configuration repository to use. |
| 57 config_repo = Single(basestring), | 58 config_repo = Single(basestring), |
| 58 | 59 |
| 59 # This disables Chromite bootstrapping by omitting the explicit "--branch" | 60 # This disables Chromite bootstrapping by omitting the explicit "--branch" |
| 60 # argument. | 61 # argument. |
| 61 disable_bootstrap = Single(bool), | 62 disable_bootstrap = Single(bool), |
| 62 | 63 |
| 63 # Whether this Chromite version supports warm cache. | 64 # Whether this Chromite version supports warm cache. |
| 64 # https://chromium-review.googlesource.com/#/c/348011 | 65 # https://chromium-review.googlesource.com/#/c/348011 |
| 65 supports_repo_cache = Single(bool), | 66 supports_repo_cache = Single(bool), |
| 67 |
| 68 # If supplied, forward to cbuildbot as '--buildbucket-id' |
| 69 buildbucket_id = Single(basestring, empty_val=CBB_BUILDBUCKET_ID) |
| 66 ), | 70 ), |
| 67 | 71 |
| 68 # A list of branches whose Chromite version is "old". Old Chromite | 72 # A list of branches whose Chromite version is "old". Old Chromite |
| 69 # buildbot commands reside in the "buildbot" subdirectory of the Chromite | 73 # buildbot commands reside in the "buildbot" subdirectory of the Chromite |
| 70 # repository instead of the "bin". | 74 # repository instead of the "bin". |
| 71 old_chromite_branches = Set(basestring), | 75 old_chromite_branches = Set(basestring), |
| 72 | 76 |
| 73 # A list of branches whose builders should not use a shared buildroot. | 77 # A list of branches whose builders should not use a shared buildroot. |
| 74 non_shared_root_branches = Set(basestring), | 78 non_shared_root_branches = Set(basestring), |
| 75 | 79 |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 | 147 |
| 144 @config_ctx(group='master', includes=['external']) | 148 @config_ctx(group='master', includes=['external']) |
| 145 def chromiumos_tryserver(c): | 149 def chromiumos_tryserver(c): |
| 146 c.cbb.disable_bootstrap = True | 150 c.cbb.disable_bootstrap = True |
| 147 | 151 |
| 148 @config_ctx() | 152 @config_ctx() |
| 149 def chromiumos_coverage_test(c): | 153 def chromiumos_coverage_test(c): |
| 150 c.use_chrome_version = True | 154 c.use_chrome_version = True |
| 151 c.read_cros_manifest = True | 155 c.read_cros_manifest = True |
| 152 c.cbb.chrome_rev = 'stable' | 156 c.cbb.chrome_rev = 'stable' |
| OLD | NEW |