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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 52
53 # If True, add cbuildbot flag: '--clobber'. 53 # If True, add cbuildbot flag: '--clobber'.
54 clobber = Single(bool, empty_val=CBB_CLOBBER), 54 clobber = Single(bool, empty_val=CBB_CLOBBER),
55 55
56 # The (optional) configuration repository to use. 56 # The (optional) configuration repository to use.
57 config_repo = Single(basestring), 57 config_repo = Single(basestring),
58 58
59 # This disables Chromite bootstrapping by omitting the explicit "--branch" 59 # This disables Chromite bootstrapping by omitting the explicit "--branch"
60 # argument. 60 # argument.
61 disable_bootstrap = Single(bool), 61 disable_bootstrap = Single(bool),
62
63 # Whether this Chromite version supports warm cache.
64 # https://chromium-review.googlesource.com/#/c/348011
65 supports_repo_cache = Single(bool),
62 ), 66 ),
63 67
64 # A list of branches whose Chromite version is "old". Old Chromite 68 # A list of branches whose Chromite version is "old". Old Chromite
65 # buildbot commands reside in the "buildbot" subdirectory of the Chromite 69 # buildbot commands reside in the "buildbot" subdirectory of the Chromite
66 # repository instead of the "bin". 70 # repository instead of the "bin".
67 old_chromite_branches = Set(basestring), 71 old_chromite_branches = Set(basestring),
68 72
69 # A list of branches whose builders should not use a shared buildroot. 73 # A list of branches whose builders should not use a shared buildroot.
70 non_shared_root_branches = Set(basestring), 74 non_shared_root_branches = Set(basestring),
71 75
72 # A list of branches whose builders checkout Chrome from SVN instead of Git. 76 # A list of branches whose builders checkout Chrome from SVN instead of Git.
73 chrome_svn_branches = Set(basestring), 77 chrome_svn_branches = Set(basestring),
78
79 # Directory where a warm repo cache is stored. If set, and if the current
80 # build supports a warm cache, this will be used to bootstrap the Chromite
81 # checkout.
82 repo_cache_dir = Single(basestring)
74 ) 83 )
75 84
76 config_ctx = config_item_context(BaseConfig) 85 config_ctx = config_item_context(BaseConfig)
77 86
78 87
79 @config_ctx() 88 @config_ctx()
80 def base(c): 89 def base(c):
81 c.repositories['tryjob'] = [] 90 c.repositories['tryjob'] = []
82 c.repositories['chromium'] = [] 91 c.repositories['chromium'] = []
83 c.repositories['cros_manifest'] = [] 92 c.repositories['cros_manifest'] = []
93 c.repo_cache_dir = '/var/cache/chrome-infra/ccompute-setup/cros-internal'
84 94
85 c.old_chromite_branches.update(( 95 c.old_chromite_branches.update((
86 'firmware-uboot_v2-1299.B', 96 'firmware-uboot_v2-1299.B',
87 'factory-1412.B', 97 'factory-1412.B',
88 )) 98 ))
89 c.non_shared_root_branches.update(c.old_chromite_branches) 99 c.non_shared_root_branches.update(c.old_chromite_branches)
90 c.non_shared_root_branches.update(( 100 c.non_shared_root_branches.update((
91 'factory-2305.B', 101 'factory-2305.B',
92 )) 102 ))
93 c.chrome_svn_branches.update(( 103 c.chrome_svn_branches.update((
(...skipping 24 matching lines...) Expand all
118 128
119 @config_ctx(group='master', includes=['external']) 129 @config_ctx(group='master', includes=['external'])
120 def master_chromiumos_chromium(c): 130 def master_chromiumos_chromium(c):
121 c.use_chrome_version = True 131 c.use_chrome_version = True
122 c.cbb.builddir = 'shared_external' 132 c.cbb.builddir = 'shared_external'
123 133
124 134
125 @config_ctx(group='master', includes=['external']) 135 @config_ctx(group='master', includes=['external'])
126 def master_chromiumos(c): 136 def master_chromiumos(c):
127 c.cbb.builddir = 'external_master' 137 c.cbb.builddir = 'external_master'
138 c.cbb.supports_repo_cache = True
128 139
129 @config_ctx() 140 @config_ctx()
130 def chromiumos_paladin(c): 141 def chromiumos_paladin(c):
131 c.read_cros_manifest = True 142 c.read_cros_manifest = True
132 143
133 @config_ctx(group='master', includes=['external']) 144 @config_ctx(group='master', includes=['external'])
134 def chromiumos_tryserver(c): 145 def chromiumos_tryserver(c):
135 c.cbb.disable_bootstrap = True 146 c.cbb.disable_bootstrap = True
136 147
137 @config_ctx() 148 @config_ctx()
138 def chromiumos_coverage_test(c): 149 def chromiumos_coverage_test(c):
139 c.use_chrome_version = True 150 c.use_chrome_version = True
140 c.read_cros_manifest = True 151 c.read_cros_manifest = True
141 c.cbb.chrome_rev = 'stable' 152 c.cbb.chrome_rev = 'stable'
OLDNEW
« 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