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

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

Issue 2047383002: Give autogen bots on client.drmemory 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
« no previous file with comments | « no previous file | scripts/slave/recipes/client.drmemory.recipe_autogen.expected/linux_cr_builder_clobber.json » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 'file',
10 'gsutil', 10 'gsutil',
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 'https://svn.code.sf.net/p/%(repo)s/code', 267 'https://svn.code.sf.net/p/%(repo)s/code',
268 'llvm_url': 'http://llvm.org/svn/llvm-project'} 268 'llvm_url': 'http://llvm.org/svn/llvm-project'}
269 src_cfg.got_revision_mapping.update( 269 src_cfg.got_revision_mapping.update(
270 {'src': 'got_revision', 270 {'src': 'got_revision',
271 'src/third_party/WebKit': 'got_webkit_revision', 271 'src/third_party/WebKit': 'got_webkit_revision',
272 'src/tools/swarming_client': 'got_swarming_client_revision', 272 'src/tools/swarming_client': 'got_swarming_client_revision',
273 'src/v8': 'got_v8_revision'}) 273 'src/v8': 'got_v8_revision'})
274 api.gclient.c = src_cfg 274 api.gclient.c = src_cfg
275 result = api.bot_update.ensure_checkout(force=True) 275 result = api.bot_update.ensure_checkout(force=True)
276 build_properties.update(result.json.output.get("properties", {})) 276 build_properties.update(result.json.output.get("properties", {}))
277
278 # clobber before runhooks
279 if 'clobber' in api.properties:
280 api.file.rmtree('clobber', api.path['checkout'].join('out', 'Release'))
281
277 # gclient revert step; made unnecessary by bot_update 282 # gclient revert step; made unnecessary by bot_update
278 # gclient update step; made unnecessary by bot_update 283 # gclient update step; made unnecessary by bot_update
279 # gclient runhooks wrapper step 284 # gclient runhooks wrapper step
280 env = {'CHROMIUM_GYP_SYNTAX_CHECK': '1', 285 env = {'CHROMIUM_GYP_SYNTAX_CHECK': '1',
281 'GYP_GENERATORS': 'ninja', 286 'GYP_GENERATORS': 'ninja',
282 'DEPOT_TOOLS_UPDATE': '0', 287 'DEPOT_TOOLS_UPDATE': '0',
283 'GYP_DEFINES': 'build_for_tool=drmemory component=shared_library', 288 'GYP_DEFINES': 'build_for_tool=drmemory component=shared_library',
284 'LANDMINES_VERBOSE': '1'} 289 'LANDMINES_VERBOSE': '1'}
285 api.python("gclient runhooks wrapper", 290 api.python("gclient runhooks wrapper",
286 api.path["build"].join("scripts", "slave", 291 api.path["build"].join("scripts", "slave",
287 "runhooks_wrapper.py"), 292 "runhooks_wrapper.py"),
288 env=env) 293 env=env)
289 # cleanup_temp step 294 # cleanup_temp step
290 api.chromium.cleanup_temp() 295 api.chromium.cleanup_temp()
291 # compile.py step 296 # compile.py step
292 args = ['--target', 'Release', '--build-tool=ninja', '--compiler=goma', 297 args = ['--target', 'Release', '--build-tool=ninja', '--compiler=goma',
293 'content_shell', 'base_unittests', 'browser_tests', 298 'content_shell', 'base_unittests', 'browser_tests',
294 'crypto_unittests', 'ipc_tests', 'media_unittests', 299 'crypto_unittests', 'ipc_tests', 'media_unittests',
295 'net_unittests', 'printing_unittests', 'remoting_unittests', 300 'net_unittests', 'printing_unittests', 'remoting_unittests',
296 'sql_unittests', 'unit_tests', 'url_unittests'] 301 'sql_unittests', 'unit_tests', 'url_unittests']
297 if 'clobber' in api.properties:
298 args.append("--clobber")
299 api.python("compile", 302 api.python("compile",
300 api.path["build"].join("scripts", "slave", "compile.py"), 303 api.path["build"].join("scripts", "slave", "compile.py"),
301 args=args) 304 args=args)
302 305
303 306
304 def mac_builder_DR_steps(api): 307 def mac_builder_DR_steps(api):
305 build_properties = api.properties.legacy() 308 build_properties = api.properties.legacy()
306 # checkout DynamiRIO step 309 # checkout DynamiRIO step
307 src_cfg = api.gclient.make_config(GIT_MODE=True) 310 src_cfg = api.gclient.make_config(GIT_MODE=True)
308 soln = src_cfg.solutions.add() 311 soln = src_cfg.solutions.add()
(...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after
669 'https://svn.code.sf.net/p/%(repo)s/code', 672 'https://svn.code.sf.net/p/%(repo)s/code',
670 'llvm_url': 'http://llvm.org/svn/llvm-project'} 673 'llvm_url': 'http://llvm.org/svn/llvm-project'}
671 src_cfg.got_revision_mapping.update( 674 src_cfg.got_revision_mapping.update(
672 {'src': 'got_revision', 675 {'src': 'got_revision',
673 'src/third_party/WebKit': 'got_webkit_revision', 676 'src/third_party/WebKit': 'got_webkit_revision',
674 'src/tools/swarming_client': 'got_swarming_client_revision', 677 'src/tools/swarming_client': 'got_swarming_client_revision',
675 'src/v8': 'got_v8_revision'}) 678 'src/v8': 'got_v8_revision'})
676 api.gclient.c = src_cfg 679 api.gclient.c = src_cfg
677 result = api.bot_update.ensure_checkout(force=True) 680 result = api.bot_update.ensure_checkout(force=True)
678 build_properties.update(result.json.output.get("properties", {})) 681 build_properties.update(result.json.output.get("properties", {}))
682
683 # clobber before runhooks
684 if 'clobber' in api.properties:
685 api.file.rmtree('clobber', api.path['checkout'].join('out', 'Debug'))
686
679 # gclient revert step; made unnecessary by bot_update 687 # gclient revert step; made unnecessary by bot_update
680 # gclient update step; made unnecessary by bot_update 688 # gclient update step; made unnecessary by bot_update
681 # gclient runhooks wrapper step 689 # gclient runhooks wrapper step
682 env = {'CHROMIUM_GYP_SYNTAX_CHECK': '1', 690 env = {'CHROMIUM_GYP_SYNTAX_CHECK': '1',
683 'LANDMINES_VERBOSE': '1', 691 'LANDMINES_VERBOSE': '1',
684 'DEPOT_TOOLS_UPDATE': '0', 692 'DEPOT_TOOLS_UPDATE': '0',
685 'GYP_DEFINES': 'build_for_tool=drmemory component=shared_library'} 693 'GYP_DEFINES': 'build_for_tool=drmemory component=shared_library'}
686 api.python("gclient runhooks wrapper", 694 api.python("gclient runhooks wrapper",
687 api.path["build"].join("scripts", "slave", 695 api.path["build"].join("scripts", "slave",
688 "runhooks_wrapper.py"), 696 "runhooks_wrapper.py"),
689 env=env) 697 env=env)
690 # cleanup_temp step 698 # cleanup_temp step
691 api.chromium.cleanup_temp() 699 api.chromium.cleanup_temp()
692 # compile.py step 700 # compile.py step
693 args = ['--solution', 'all.sln', '--project', 701 args = ['--target', 'Debug', 'chromium_builder_dbg_drmemory_win']
694 'chromium_builder_dbg_drmemory_win', '--target', 'Debug']
695 if 'clobber' in api.properties:
696 args.append("--clobber")
697 api.step("compile", ["python_slave", api.path["build"].join( 702 api.step("compile", ["python_slave", api.path["build"].join(
698 "scripts", "slave", "compile.py")] + args) 703 "scripts", "slave", "compile.py")] + args)
699 704
700 705
701 def win8_cr_steps(api): 706 def win8_cr_steps(api):
702 build_properties = api.properties.legacy() 707 build_properties = api.properties.legacy()
703 # Download build step 708 # Download build step
704 api.gsutil.download("chromium-drmemory-builds", 709 api.gsutil.download("chromium-drmemory-builds",
705 "drmemory-windows-latest-sfx.exe", 710 "drmemory-windows-latest-sfx.exe",
706 "drm-sfx.exe", 711 "drm-sfx.exe",
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after
1054 'https://svn.code.sf.net/p/%(repo)s/code', 1059 'https://svn.code.sf.net/p/%(repo)s/code',
1055 'llvm_url': 'http://llvm.org/svn/llvm-project'} 1060 'llvm_url': 'http://llvm.org/svn/llvm-project'}
1056 src_cfg.got_revision_mapping.update( 1061 src_cfg.got_revision_mapping.update(
1057 {'src': 'got_revision', 1062 {'src': 'got_revision',
1058 'src/third_party/WebKit': 'got_webkit_revision', 1063 'src/third_party/WebKit': 'got_webkit_revision',
1059 'src/tools/swarming_client': 'got_swarming_client_revision', 1064 'src/tools/swarming_client': 'got_swarming_client_revision',
1060 'src/v8': 'got_v8_revision'}) 1065 'src/v8': 'got_v8_revision'})
1061 api.gclient.c = src_cfg 1066 api.gclient.c = src_cfg
1062 result = api.bot_update.ensure_checkout(force=True) 1067 result = api.bot_update.ensure_checkout(force=True)
1063 build_properties.update(result.json.output.get("properties", {})) 1068 build_properties.update(result.json.output.get("properties", {}))
1069
1070 # clobber before runhooks
1071 if 'clobber' in api.properties:
1072 api.file.rmtree('clobber', api.path['checkout'].join('out', 'Debug'))
1073
1064 # gclient revert step; made unnecessary by bot_update 1074 # gclient revert step; made unnecessary by bot_update
1065 # gclient update step; made unnecessary by bot_update 1075 # gclient update step; made unnecessary by bot_update
1066 # gclient runhooks wrapper step 1076 # gclient runhooks wrapper step
1067 env = {'CHROMIUM_GYP_SYNTAX_CHECK': '1', 1077 env = {'CHROMIUM_GYP_SYNTAX_CHECK': '1',
1068 'LANDMINES_VERBOSE': '1', 1078 'LANDMINES_VERBOSE': '1',
1069 'DEPOT_TOOLS_UPDATE': '0', 1079 'DEPOT_TOOLS_UPDATE': '0',
1070 'GYP_DEFINES': 'build_for_tool=drmemory component=shared_library'} 1080 'GYP_DEFINES': 'build_for_tool=drmemory component=shared_library'}
1071 api.python("gclient runhooks wrapper", 1081 api.python("gclient runhooks wrapper",
1072 api.path["build"].join("scripts", "slave", 1082 api.path["build"].join("scripts", "slave",
1073 "runhooks_wrapper.py"), 1083 "runhooks_wrapper.py"),
1074 env=env) 1084 env=env)
1075 # cleanup_temp step 1085 # cleanup_temp step
1076 api.chromium.cleanup_temp() 1086 api.chromium.cleanup_temp()
1077 # compile.py step 1087 # compile.py step
1078 args = ['--solution', 'all.sln', '--project', 1088 args = ['--target', 'Debug', 'chromium_builder_dbg_drmemory_win']
1079 'chromium_builder_dbg_drmemory_win', '--target', 'Debug']
1080 if 'clobber' in api.properties:
1081 args.append("--clobber")
1082 api.step("compile", ["python_slave", api.path["build"].join( 1089 api.step("compile", ["python_slave", api.path["build"].join(
1083 "scripts", "slave", "compile.py")] + args) 1090 "scripts", "slave", "compile.py")] + args)
1084 1091
1085 1092
1086 def win_7_x64_drm_steps(api): 1093 def win_7_x64_drm_steps(api):
1087 build_properties = api.properties.legacy() 1094 build_properties = api.properties.legacy()
1088 # checkout DrMemory step 1095 # checkout DrMemory step
1089 src_cfg = api.gclient.make_config(GIT_MODE=True) 1096 src_cfg = api.gclient.make_config(GIT_MODE=True)
1090 soln = src_cfg.solutions.add() 1097 soln = src_cfg.solutions.add()
1091 soln.name = "drmemory" 1098 soln.name = "drmemory"
(...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after
1606 stdout=api.raw_io.output("DrMemory-Windows-1.2.3-0x1234567.zip")) 1613 stdout=api.raw_io.output("DrMemory-Windows-1.2.3-0x1234567.zip"))
1607 ) 1614 )
1608 1615
1609 yield (api.test('builder_not_in_dispatch_directory') 1616 yield (api.test('builder_not_in_dispatch_directory')
1610 + api.properties( 1617 + api.properties(
1611 mastername='client.drmemory', 1618 mastername='client.drmemory',
1612 buildername='nonexistent_builder', 1619 buildername='nonexistent_builder',
1613 slavename='TestSlave', 1620 slavename='TestSlave',
1614 ) 1621 )
1615 ) 1622 )
OLDNEW
« no previous file with comments | « no previous file | scripts/slave/recipes/client.drmemory.recipe_autogen.expected/linux_cr_builder_clobber.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698