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

Unified Diff: scripts/slave/recipe_modules/chromite/config.py

Issue 2019593003: chromite recipe: Add warm cache flag support. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Better config option name. Created 4 years, 6 months 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 side-by-side diff with in-line comments
Download patch
Index: scripts/slave/recipe_modules/chromite/config.py
diff --git a/scripts/slave/recipe_modules/chromite/config.py b/scripts/slave/recipe_modules/chromite/config.py
index fdb83016bead3e91984a692152dfa693136ddb66..14a924bdd3b73fcb772690262954e01f825dcea2 100644
--- a/scripts/slave/recipe_modules/chromite/config.py
+++ b/scripts/slave/recipe_modules/chromite/config.py
@@ -59,6 +59,10 @@ def BaseConfig(CBB_CONFIG=None, CBB_BRANCH=None, CBB_BUILD_NUMBER=None,
# This disables Chromite bootstrapping by omitting the explicit "--branch"
# argument.
disable_bootstrap = Single(bool),
+
+ # Whether this Chromite version supports warm cache.
+ # https://chromium-review.googlesource.com/#/c/348011
+ supports_repo_cache = Single(bool),
),
# A list of branches whose Chromite version is "old". Old Chromite
@@ -71,6 +75,11 @@ def BaseConfig(CBB_CONFIG=None, CBB_BRANCH=None, CBB_BUILD_NUMBER=None,
# A list of branches whose builders checkout Chrome from SVN instead of Git.
chrome_svn_branches = Set(basestring),
+
+ # Directory where a warm repo cache is stored. If set, and if the current
+ # build supports a warm cache, this will be used to bootstrap the Chromite
+ # checkout.
+ repo_cache_dir = Single(basestring)
)
config_ctx = config_item_context(BaseConfig)
@@ -81,6 +90,7 @@ def base(c):
c.repositories['tryjob'] = []
c.repositories['chromium'] = []
c.repositories['cros_manifest'] = []
+ c.repo_cache_dir = '/var/cache/chrome-infra/ccompute-setup/cros-internal'
c.old_chromite_branches.update((
'firmware-uboot_v2-1299.B',
@@ -125,6 +135,7 @@ def master_chromiumos_chromium(c):
@config_ctx(group='master', includes=['external'])
def master_chromiumos(c):
c.cbb.builddir = 'external_master'
+ c.cbb.supports_repo_cache = True
@config_ctx()
def chromiumos_paladin(c):
« no previous file with comments | « scripts/slave/recipe_modules/chromite/api.py ('k') | scripts/slave/recipes/cros/cbuildbot.expected/chromiumos_coverage.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698