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

Side by Side Diff: scripts/slave/recipes/client.nacl.sdk.recipe_autogen.py

Issue 2047963003: Give autogen bots on chromium.fyi and client.nacl.sdk a separate clobber step (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build@master
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
OLDNEW
1 # Copyright 2016 The Chromium Authors. All rights reserved. 1 # Copyright 2016 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 DEPS = [ 5 DEPS = [
6 'chromium', 6 'chromium',
7 'depot_tools/bot_update', 7 'depot_tools/bot_update',
8 'depot_tools/gclient', 8 'depot_tools/gclient',
9 'file',
9 'recipe_engine/json', 10 'recipe_engine/json',
10 'recipe_engine/path', 11 'recipe_engine/path',
11 'recipe_engine/properties', 12 'recipe_engine/properties',
12 'recipe_engine/python', 13 'recipe_engine/python',
13 'recipe_engine/step', 14 'recipe_engine/step',
14 ] 15 ]
15 16
16 17
17 def linux_sdk_multi_steps(api): 18 def linux_sdk_multi_steps(api):
18 build_properties = api.properties.legacy() 19 build_properties = api.properties.legacy()
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 'src/data/autodiscovery': None} 55 'src/data/autodiscovery': None}
55 soln.custom_vars = {} 56 soln.custom_vars = {}
56 src_cfg.got_revision_mapping.update( 57 src_cfg.got_revision_mapping.update(
57 {'src': 'got_revision', 58 {'src': 'got_revision',
58 'src/third_party/WebKit': 'got_webkit_revision', 59 'src/third_party/WebKit': 'got_webkit_revision',
59 'src/tools/swarming_client': 'got_swarming_client_revision', 60 'src/tools/swarming_client': 'got_swarming_client_revision',
60 'src/v8': 'got_v8_revision'}) 61 'src/v8': 'got_v8_revision'})
61 api.gclient.c = src_cfg 62 api.gclient.c = src_cfg
62 result = api.bot_update.ensure_checkout(force=True) 63 result = api.bot_update.ensure_checkout(force=True)
63 build_properties.update(result.json.output.get("properties", {})) 64 build_properties.update(result.json.output.get("properties", {}))
65
66 # clobber before runhooks
67 api.file.rmtree('clobber', api.path['checkout'].join('out', 'Release'))
68
64 # gclient revert step; made unnecessary by bot_update 69 # gclient revert step; made unnecessary by bot_update
65 # gclient update step; made unnecessary by bot_update 70 # gclient update step; made unnecessary by bot_update
66 # gclient runhooks wrapper step 71 # gclient runhooks wrapper step
67 env = {'CHROMIUM_GYP_SYNTAX_CHECK': '1', 72 env = {'CHROMIUM_GYP_SYNTAX_CHECK': '1',
68 'LANDMINES_VERBOSE': '1', 73 'LANDMINES_VERBOSE': '1',
69 'DEPOT_TOOLS_UPDATE': '0', 74 'DEPOT_TOOLS_UPDATE': '0',
70 'GYP_DEFINES': 'fastbuild=1 component=static_library'} 75 'GYP_DEFINES': 'fastbuild=1 component=static_library'}
71 api.python("gclient runhooks wrapper", 76 api.python("gclient runhooks wrapper",
72 api.path["build"].join("scripts", "slave", 77 api.path["build"].join("scripts", "slave",
73 "runhooks_wrapper.py"), 78 "runhooks_wrapper.py"),
74 env=env) 79 env=env)
75 # cleanup_temp step 80 # cleanup_temp step
76 api.chromium.cleanup_temp() 81 api.chromium.cleanup_temp()
77 # compile.py step 82 # compile.py step
78 args = ['--target', 'Release', '--clobber', '--compiler=goma', 83 args = ['--target', 'Release', '--compiler=goma',
79 'chromium_builder_nacl_sdk'] 84 'chromium_builder_nacl_sdk']
80 api.python("compile", 85 api.python("compile",
81 api.path["build"].join("scripts", "slave", "compile.py"), 86 api.path["build"].join("scripts", "slave", "compile.py"),
82 args=args) 87 args=args)
83 # annotated_steps step 88 # annotated_steps step
84 api.python( 89 api.python(
85 "annotated_steps", 90 "annotated_steps",
86 api.path["build"].join("scripts", "slave", "chromium", 91 api.path["build"].join("scripts", "slave", "chromium",
87 "nacl_sdk_buildbot_run.py"), 92 "nacl_sdk_buildbot_run.py"),
88 args= 93 args=
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 'src/data/autodiscovery': None} 143 'src/data/autodiscovery': None}
139 soln.custom_vars = {} 144 soln.custom_vars = {}
140 src_cfg.got_revision_mapping.update( 145 src_cfg.got_revision_mapping.update(
141 {'src': 'got_revision', 146 {'src': 'got_revision',
142 'src/third_party/WebKit': 'got_webkit_revision', 147 'src/third_party/WebKit': 'got_webkit_revision',
143 'src/tools/swarming_client': 'got_swarming_client_revision', 148 'src/tools/swarming_client': 'got_swarming_client_revision',
144 'src/v8': 'got_v8_revision'}) 149 'src/v8': 'got_v8_revision'})
145 api.gclient.c = src_cfg 150 api.gclient.c = src_cfg
146 result = api.bot_update.ensure_checkout(force=True) 151 result = api.bot_update.ensure_checkout(force=True)
147 build_properties.update(result.json.output.get("properties", {})) 152 build_properties.update(result.json.output.get("properties", {}))
153
154 # clobber before runhooks
155 api.file.rmtree('clobber', api.path['checkout'].join('out', 'Release'))
156
148 # gclient revert step; made unnecessary by bot_update 157 # gclient revert step; made unnecessary by bot_update
149 # gclient update step; made unnecessary by bot_update 158 # gclient update step; made unnecessary by bot_update
150 # gclient runhooks wrapper step 159 # gclient runhooks wrapper step
151 env = {'CHROMIUM_GYP_SYNTAX_CHECK': '1', 160 env = {'CHROMIUM_GYP_SYNTAX_CHECK': '1',
152 'GYP_GENERATORS': 'ninja', 161 'GYP_GENERATORS': 'ninja',
153 'DEPOT_TOOLS_UPDATE': '0', 162 'DEPOT_TOOLS_UPDATE': '0',
154 'GYP_DEFINES': 'fastbuild=1 component=static_library', 163 'GYP_DEFINES': 'fastbuild=1 component=static_library',
155 'LANDMINES_VERBOSE': '1'} 164 'LANDMINES_VERBOSE': '1'}
156 api.python("gclient runhooks wrapper", 165 api.python("gclient runhooks wrapper",
157 api.path["build"].join("scripts", "slave", 166 api.path["build"].join("scripts", "slave",
158 "runhooks_wrapper.py"), 167 "runhooks_wrapper.py"),
159 env=env) 168 env=env)
160 # cleanup_temp step 169 # cleanup_temp step
161 api.chromium.cleanup_temp() 170 api.chromium.cleanup_temp()
162 # compile.py step 171 # compile.py step
163 args = ['--target', 'Release', '--clobber', '--build-tool=ninja', 172 args = ['--target', 'Release', '--build-tool=ninja',
164 '--compiler=goma-clang', '--', 'chromium_builder_nacl_sdk'] 173 '--compiler=goma-clang', '--', 'chromium_builder_nacl_sdk']
165 api.python("compile", 174 api.python("compile",
166 api.path["build"].join("scripts", "slave", "compile.py"), 175 api.path["build"].join("scripts", "slave", "compile.py"),
167 args=args) 176 args=args)
168 # annotated_steps step 177 # annotated_steps step
169 api.python( 178 api.python(
170 "annotated_steps", 179 "annotated_steps",
171 api.path["build"].join("scripts", "slave", "chromium", 180 api.path["build"].join("scripts", "slave", "chromium",
172 "nacl_sdk_buildbot_run.py"), 181 "nacl_sdk_buildbot_run.py"),
173 args= 182 args=
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 'src/data/autodiscovery': None} 236 'src/data/autodiscovery': None}
228 soln.custom_vars = {} 237 soln.custom_vars = {}
229 src_cfg.got_revision_mapping.update( 238 src_cfg.got_revision_mapping.update(
230 {'src': 'got_revision', 239 {'src': 'got_revision',
231 'src/third_party/WebKit': 'got_webkit_revision', 240 'src/third_party/WebKit': 'got_webkit_revision',
232 'src/tools/swarming_client': 'got_swarming_client_revision', 241 'src/tools/swarming_client': 'got_swarming_client_revision',
233 'src/v8': 'got_v8_revision'}) 242 'src/v8': 'got_v8_revision'})
234 api.gclient.c = src_cfg 243 api.gclient.c = src_cfg
235 result = api.bot_update.ensure_checkout(force=True) 244 result = api.bot_update.ensure_checkout(force=True)
236 build_properties.update(result.json.output.get("properties", {})) 245 build_properties.update(result.json.output.get("properties", {}))
246
247 # clobber before runhooks
248 api.file.rmtree('clobber', api.path['checkout'].join('out', 'Release'))
249
237 # gclient revert step; made unnecessary by bot_update 250 # gclient revert step; made unnecessary by bot_update
238 # gclient update step; made unnecessary by bot_update 251 # gclient update step; made unnecessary by bot_update
239 # gclient runhooks wrapper step 252 # gclient runhooks wrapper step
240 env = {'CHROMIUM_GYP_SYNTAX_CHECK': '1', 253 env = {'CHROMIUM_GYP_SYNTAX_CHECK': '1',
241 'LANDMINES_VERBOSE': '1', 254 'LANDMINES_VERBOSE': '1',
242 'DEPOT_TOOLS_UPDATE': '0', 255 'DEPOT_TOOLS_UPDATE': '0',
243 'GYP_DEFINES': 'fastbuild=1 component=static_library'} 256 'GYP_DEFINES': 'fastbuild=1 component=static_library'}
244 api.python("gclient runhooks wrapper", 257 api.python("gclient runhooks wrapper",
245 api.path["build"].join("scripts", "slave", 258 api.path["build"].join("scripts", "slave",
246 "runhooks_wrapper.py"), 259 "runhooks_wrapper.py"),
247 env=env) 260 env=env)
248 # cleanup_temp step 261 # cleanup_temp step
249 api.chromium.cleanup_temp() 262 api.chromium.cleanup_temp()
250 # compile.py step 263 # compile.py step
251 args = ['--solution', 'all.sln', '--project', 'chromium_builder_nacl_sdk', 264 args = ['--target', 'Release', '--compiler=goma',
252 '--target', 'Release', '--clobber', '--compiler=goma'] 265 'chromium_builder_nacl_sdk']
253 api.python("compile", 266 api.python("compile",
254 api.path["build"].join("scripts", "slave", "compile.py"), 267 api.path["build"].join("scripts", "slave", "compile.py"),
255 args=args) 268 args=args)
256 # annotated_steps step 269 # annotated_steps step
257 api.python( 270 api.python(
258 "annotated_steps", 271 "annotated_steps",
259 api.path["build"].join("scripts", "slave", "chromium", 272 api.path["build"].join("scripts", "slave", "chromium",
260 "nacl_sdk_buildbot_run.py"), 273 "nacl_sdk_buildbot_run.py"),
261 args= 274 args=
262 ['--build-properties=%s' % api.json.dumps(build_properties, 275 ['--build-properties=%s' % api.json.dumps(build_properties,
(...skipping 23 matching lines...) Expand all
286 'sourceforge_url': 'svn://svn.chromium.org/%(repo)s', 299 'sourceforge_url': 'svn://svn.chromium.org/%(repo)s',
287 'svn_url': 'svn://svn.chromium.org'} 300 'svn_url': 'svn://svn.chromium.org'}
288 src_cfg.got_revision_mapping.update( 301 src_cfg.got_revision_mapping.update(
289 {'src': 'got_revision', 302 {'src': 'got_revision',
290 'src/third_party/WebKit': 'got_webkit_revision', 303 'src/third_party/WebKit': 'got_webkit_revision',
291 'src/tools/swarming_client': 'got_swarming_client_revision', 304 'src/tools/swarming_client': 'got_swarming_client_revision',
292 'src/v8': 'got_v8_revision'}) 305 'src/v8': 'got_v8_revision'})
293 api.gclient.c = src_cfg 306 api.gclient.c = src_cfg
294 result = api.bot_update.ensure_checkout(force=True) 307 result = api.bot_update.ensure_checkout(force=True)
295 build_properties.update(result.json.output.get("properties", {})) 308 build_properties.update(result.json.output.get("properties", {}))
309
310 # clobber before runhooks
311 api.file.rmtree('clobber', api.path['checkout'].join('out', 'Release'))
312
296 # unnamed step; null converted 313 # unnamed step; null converted
297 # gclient runhooks wrapper step 314 # gclient runhooks wrapper step
298 env = {'CHROMIUM_GYP_SYNTAX_CHECK': '1', 315 env = {'CHROMIUM_GYP_SYNTAX_CHECK': '1',
299 'LANDMINES_VERBOSE': '1', 316 'LANDMINES_VERBOSE': '1',
300 'DEPOT_TOOLS_UPDATE': '0', 317 'DEPOT_TOOLS_UPDATE': '0',
301 'GYP_DEFINES': 'fastbuild=1 component=static_library'} 318 'GYP_DEFINES': 'fastbuild=1 component=static_library'}
302 api.python("gclient runhooks wrapper", 319 api.python("gclient runhooks wrapper",
303 api.path["build"].join("scripts", "slave", 320 api.path["build"].join("scripts", "slave",
304 "runhooks_wrapper.py"), 321 "runhooks_wrapper.py"),
305 env=env) 322 env=env)
306 # cleanup_temp step 323 # cleanup_temp step
307 api.chromium.cleanup_temp() 324 api.chromium.cleanup_temp()
308 # compile.py step 325 # compile.py step
309 args = ['--target', 'Release', '--clobber', '--compiler=goma', 326 args = ['--target', 'Release', '--compiler=goma',
310 'chromium_builder_tests'] 327 'chromium_builder_tests']
311 api.python("compile", 328 api.python("compile",
312 api.path["build"].join("scripts", "slave", "compile.py"), 329 api.path["build"].join("scripts", "slave", "compile.py"),
313 args=args) 330 args=args)
314 # annotated_steps step 331 # annotated_steps step
315 api.python( 332 api.python(
316 "annotated_steps", 333 "annotated_steps",
317 api.path["build"].join("scripts", "slave", "chromium", 334 api.path["build"].join("scripts", "slave", "chromium",
318 "nacl_sdk_buildbot_run.py"), 335 "nacl_sdk_buildbot_run.py"),
319 args= 336 args=
(...skipping 28 matching lines...) Expand all
348 'sourceforge_url': 'svn://svn.chromium.org/%(repo)s', 365 'sourceforge_url': 'svn://svn.chromium.org/%(repo)s',
349 'svn_url': 'svn://svn.chromium.org'} 366 'svn_url': 'svn://svn.chromium.org'}
350 src_cfg.got_revision_mapping.update( 367 src_cfg.got_revision_mapping.update(
351 {'src': 'got_revision', 368 {'src': 'got_revision',
352 'src/third_party/WebKit': 'got_webkit_revision', 369 'src/third_party/WebKit': 'got_webkit_revision',
353 'src/tools/swarming_client': 'got_swarming_client_revision', 370 'src/tools/swarming_client': 'got_swarming_client_revision',
354 'src/v8': 'got_v8_revision'}) 371 'src/v8': 'got_v8_revision'})
355 api.gclient.c = src_cfg 372 api.gclient.c = src_cfg
356 result = api.bot_update.ensure_checkout(force=True) 373 result = api.bot_update.ensure_checkout(force=True)
357 build_properties.update(result.json.output.get("properties", {})) 374 build_properties.update(result.json.output.get("properties", {}))
375
376 # clobber before runhooks
377 api.file.rmtree('clobber', api.path['checkout'].join('out', 'Release'))
378
358 # unnamed step; null converted 379 # unnamed step; null converted
359 # gclient runhooks wrapper step 380 # gclient runhooks wrapper step
360 env = {'CHROMIUM_GYP_SYNTAX_CHECK': '1', 381 env = {'CHROMIUM_GYP_SYNTAX_CHECK': '1',
361 'LANDMINES_VERBOSE': '1', 382 'LANDMINES_VERBOSE': '1',
362 'DEPOT_TOOLS_UPDATE': '0', 383 'DEPOT_TOOLS_UPDATE': '0',
363 'GYP_DEFINES': 'fastbuild=1 component=static_library'} 384 'GYP_DEFINES': 'fastbuild=1 component=static_library'}
364 api.python("gclient runhooks wrapper", 385 api.python("gclient runhooks wrapper",
365 api.path["build"].join("scripts", "slave", 386 api.path["build"].join("scripts", "slave",
366 "runhooks_wrapper.py"), 387 "runhooks_wrapper.py"),
367 env=env) 388 env=env)
368 # cleanup_temp step 389 # cleanup_temp step
369 api.chromium.cleanup_temp() 390 api.chromium.cleanup_temp()
370 # compile.py step 391 # compile.py step
371 args = ['--solution', 'all.sln', '--project', 'chromium_builder_tests', 392 args = ['--target', 'Release', '--compiler=goma',
372 '--target', 'Release', '--clobber', '--compiler=goma'] 393 'chromium_builder_tests',]
373 api.python("compile", 394 api.python("compile",
374 api.path["build"].join("scripts", "slave", "compile.py"), 395 api.path["build"].join("scripts", "slave", "compile.py"),
375 args=args) 396 args=args)
376 # annotated_steps step 397 # annotated_steps step
377 api.python( 398 api.python(
378 "annotated_steps", 399 "annotated_steps",
379 api.path["build"].join("scripts", "slave", "chromium", 400 api.path["build"].join("scripts", "slave", "chromium",
380 "nacl_sdk_buildbot_run.py"), 401 "nacl_sdk_buildbot_run.py"),
381 args= 402 args=
382 ['--build-properties=%s' % api.json.dumps(build_properties, 403 ['--build-properties=%s' % api.json.dumps(build_properties,
(...skipping 23 matching lines...) Expand all
406 'sourceforge_url': 'svn://svn.chromium.org/%(repo)s', 427 'sourceforge_url': 'svn://svn.chromium.org/%(repo)s',
407 'svn_url': 'svn://svn.chromium.org'} 428 'svn_url': 'svn://svn.chromium.org'}
408 src_cfg.got_revision_mapping.update( 429 src_cfg.got_revision_mapping.update(
409 {'src': 'got_revision', 430 {'src': 'got_revision',
410 'src/third_party/WebKit': 'got_webkit_revision', 431 'src/third_party/WebKit': 'got_webkit_revision',
411 'src/tools/swarming_client': 'got_swarming_client_revision', 432 'src/tools/swarming_client': 'got_swarming_client_revision',
412 'src/v8': 'got_v8_revision'}) 433 'src/v8': 'got_v8_revision'})
413 api.gclient.c = src_cfg 434 api.gclient.c = src_cfg
414 result = api.bot_update.ensure_checkout(force=True) 435 result = api.bot_update.ensure_checkout(force=True)
415 build_properties.update(result.json.output.get("properties", {})) 436 build_properties.update(result.json.output.get("properties", {}))
437
438 # clobber before runhooks
439 api.file.rmtree('clobber', api.path['checkout'].join('out', 'Release'))
440
416 # unnamed step; null converted 441 # unnamed step; null converted
417 # gclient runhooks wrapper step 442 # gclient runhooks wrapper step
418 env = {'LANDMINES_VERBOSE': '1', 443 env = {'LANDMINES_VERBOSE': '1',
419 'GYP_GENERATORS': 'ninja', 444 'GYP_GENERATORS': 'ninja',
420 'DEPOT_TOOLS_UPDATE': '0', 445 'DEPOT_TOOLS_UPDATE': '0',
421 'GYP_DEFINES': 'fastbuild=1 component=static_library', 446 'GYP_DEFINES': 'fastbuild=1 component=static_library',
422 'CHROMIUM_GYP_SYNTAX_CHECK': '1'} 447 'CHROMIUM_GYP_SYNTAX_CHECK': '1'}
423 api.python("gclient runhooks wrapper", 448 api.python("gclient runhooks wrapper",
424 api.path["build"].join("scripts", "slave", 449 api.path["build"].join("scripts", "slave",
425 "runhooks_wrapper.py"), 450 "runhooks_wrapper.py"),
426 env=env) 451 env=env)
427 # cleanup_temp step 452 # cleanup_temp step
428 api.chromium.cleanup_temp() 453 api.chromium.cleanup_temp()
429 # compile.py step 454 # compile.py step
430 args = ['--target', 'Release', '--clobber', '--build-tool=ninja', 455 args = ['--target', 'Release', '--build-tool=ninja',
431 '--compiler=goma-clang', '--', 'chromium_builder_tests'] 456 '--compiler=goma-clang', '--', 'chromium_builder_tests']
432 api.python("compile", 457 api.python("compile",
433 api.path["build"].join("scripts", "slave", "compile.py"), 458 api.path["build"].join("scripts", "slave", "compile.py"),
434 args=args) 459 args=args)
435 # annotated_steps step 460 # annotated_steps step
436 api.python( 461 api.python(
437 "annotated_steps", 462 "annotated_steps",
438 api.path["build"].join("scripts", "slave", "chromium", 463 api.path["build"].join("scripts", "slave", "chromium",
439 "nacl_sdk_buildbot_run.py"), 464 "nacl_sdk_buildbot_run.py"),
440 args= 465 args=
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
508 yield (api.test('mac_sdk_multirel') + api.properties( 533 yield (api.test('mac_sdk_multirel') + api.properties(
509 mastername='client.nacl.sdk') + api.properties( 534 mastername='client.nacl.sdk') + api.properties(
510 buildername='mac-sdk-multirel') + 535 buildername='mac-sdk-multirel') +
511 api.properties(revision='123456789abcdef') + api.properties( 536 api.properties(revision='123456789abcdef') + api.properties(
512 got_revision='123456789abcdef') + api.properties( 537 got_revision='123456789abcdef') + api.properties(
513 buildnumber='42') + api.properties(slavename='TestSlave')) 538 buildnumber='42') + api.properties(slavename='TestSlave'))
514 yield (api.test('builder_not_in_dispatch_directory') + api.properties( 539 yield (api.test('builder_not_in_dispatch_directory') + api.properties(
515 mastername='client.nacl.sdk') + api.properties( 540 mastername='client.nacl.sdk') + api.properties(
516 buildername='nonexistent_builder') + api.properties( 541 buildername='nonexistent_builder') + api.properties(
517 slavename='TestSlave')) 542 slavename='TestSlave'))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698