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

Side by Side Diff: scripts/slave/recipes/infra/infra_continuous.py

Issue 2045493002: build: add path_config=kitchen to infra recipes tests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: 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 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 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 from recipe_engine.recipe_api import Property 5 from recipe_engine.recipe_api import Property
6 6
7 DEPS = [ 7 DEPS = [
8 'cipd', 8 'cipd',
9 'depot_tools/bot_update', 9 'depot_tools/bot_update',
10 'depot_tools/depot_tools',
10 'file', 11 'file',
11 'depot_tools/gclient', 12 'depot_tools/gclient',
12 'recipe_engine/json', 13 'recipe_engine/json',
13 'recipe_engine/path', 14 'recipe_engine/path',
14 'recipe_engine/platform', 15 'recipe_engine/platform',
15 'recipe_engine/properties', 16 'recipe_engine/properties',
16 'recipe_engine/python', 17 'recipe_engine/python',
17 'recipe_engine/step', 18 'recipe_engine/step',
18 ] 19 ]
19 20
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 api.file.rmcontents('clean go bin', go_bin) 65 api.file.rmcontents('clean go bin', go_bin)
65 66
66 api.python( 67 api.python(
67 'build luci-go', go_env, 68 'build luci-go', go_env,
68 ['go', 'install', 'github.com/luci/luci-go/client/cmd/...']) 69 ['go', 'install', 'github.com/luci/luci-go/client/cmd/...'])
69 70
70 files = sorted(api.file.listdir('listing go bin', go_bin)) 71 files = sorted(api.file.listdir('listing go bin', go_bin))
71 absfiles = [api.path.join(go_bin, i) for i in files] 72 absfiles = [api.path.join(go_bin, i) for i in files]
72 api.python( 73 api.python(
73 'upload go bin', 74 'upload go bin',
74 api.path['depot_tools'].join('upload_to_google_storage.py'), 75 api.depot_tools.upload_to_google_storage_path,
75 ['-b', 'chromium-luci'] + absfiles) 76 ['-b', 'chromium-luci'] + absfiles)
76 for name, abspath in zip(files, absfiles): 77 for name, abspath in zip(files, absfiles):
77 sha1 = api.file.read( 78 sha1 = api.file.read(
78 '%s sha1' % str(name), abspath + '.sha1', 79 '%s sha1' % str(name), abspath + '.sha1',
79 test_data='0123456789abcdeffedcba987654321012345678') 80 test_data='0123456789abcdeffedcba987654321012345678')
80 api.step.active_result.presentation.step_text = sha1 81 api.step.active_result.presentation.step_text = sha1
81 82
82 83
83 PROPERTIES = { 84 PROPERTIES = {
84 'mastername': Property(), 85 'mastername': Property(),
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 }, 158 },
158 'pkg_def_name': 'some_tool', 159 'pkg_def_name': 'some_tool',
159 }, 160 },
160 ], 161 ],
161 'failed': [], 162 'failed': [],
162 } 163 }
163 164
164 yield ( 165 yield (
165 api.test('infra') + 166 api.test('infra') +
166 api.properties.git_scheduled( 167 api.properties.git_scheduled(
168 path_config='kitchen',
167 buildername='infra-continuous', 169 buildername='infra-continuous',
168 buildnumber=123, 170 buildnumber=123,
169 mastername='chromium.infra', 171 mastername='chromium.infra',
170 repository='https://chromium.googlesource.com/infra/infra', 172 repository='https://chromium.googlesource.com/infra/infra',
171 ) + 173 ) +
172 api.override_step_data( 174 api.override_step_data(
173 'cipd - upload packages', api.json.output(cipd_json_output)) 175 'cipd - upload packages', api.json.output(cipd_json_output))
174 ) 176 )
175 yield ( 177 yield (
176 api.test('infra_win') + 178 api.test('infra_win') +
177 api.properties.git_scheduled( 179 api.properties.git_scheduled(
180 path_config='kitchen',
178 buildername='infra-continuous', 181 buildername='infra-continuous',
179 buildnumber=123, 182 buildnumber=123,
180 mastername='chromium.infra', 183 mastername='chromium.infra',
181 repository='https://chromium.googlesource.com/infra/infra', 184 repository='https://chromium.googlesource.com/infra/infra',
182 ) + 185 ) +
183 api.platform.name('win') 186 api.platform.name('win')
184 ) 187 )
185 yield ( 188 yield (
186 api.test('infra_internal') + 189 api.test('infra_internal') +
187 api.properties.git_scheduled( 190 api.properties.git_scheduled(
191 path_config='kitchen',
188 buildername='infra-internal-continuous', 192 buildername='infra-internal-continuous',
189 buildnumber=123, 193 buildnumber=123,
190 mastername='internal.infra', 194 mastername='internal.infra',
191 repository= 195 repository=
192 'https://chrome-internal.googlesource.com/infra/infra_internal', 196 'https://chrome-internal.googlesource.com/infra/infra_internal',
193 ) + 197 ) +
194 api.override_step_data( 198 api.override_step_data(
195 'cipd - upload packages', api.json.output(cipd_json_output)) 199 'cipd - upload packages', api.json.output(cipd_json_output))
196 ) 200 )
197 yield ( 201 yield (
198 api.test('infra-64') + 202 api.test('infra-64') +
199 api.properties.git_scheduled( 203 api.properties.git_scheduled(
204 path_config='kitchen',
200 buildername='infra-continuous-64', 205 buildername='infra-continuous-64',
201 buildnumber=123, 206 buildnumber=123,
202 mastername='chromium.infra', 207 mastername='chromium.infra',
203 repository='https://chromium.googlesource.com/infra/infra', 208 repository='https://chromium.googlesource.com/infra/infra',
204 ) 209 )
205 ) 210 )
206 211
207 yield ( 212 yield (
208 api.test('infra_swarming') + 213 api.test('infra_swarming') +
209 api.properties.git_scheduled( 214 api.properties.git_scheduled(
215 path_config='kitchen',
210 buildername='infra-continuous-32', 216 buildername='infra-continuous-32',
211 buildnumber=-1, 217 buildnumber=-1,
212 mastername='chromium.infra', 218 mastername='chromium.infra',
213 repository='https://chromium.googlesource.com/infra/infra', 219 repository='https://chromium.googlesource.com/infra/infra',
214 ) 220 )
215 ) 221 )
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698