| OLD | NEW |
| 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', |
| 11 'recipe_engine/path', | 11 'recipe_engine/path', |
| 12 'recipe_engine/platform', | 12 'recipe_engine/platform', |
| 13 'recipe_engine/properties', | 13 'recipe_engine/properties', |
| 14 'recipe_engine/python', | 14 'recipe_engine/python', |
| 15 'recipe_engine/raw_io', | 15 'recipe_engine/raw_io', |
| 16 'recipe_engine/step', | 16 'recipe_engine/step', |
| 17 ] | 17 ] |
| 18 | 18 |
| 19 | 19 |
| 20 def linux_builder_steps(api): | 20 def linux_builder_steps(api): |
| 21 build_properties = api.properties.legacy() | 21 build_properties = api.properties.legacy() |
| 22 # checkout DrMemory step | 22 # checkout DrMemory step |
| 23 src_cfg = api.gclient.make_config(GIT_MODE=True) | 23 src_cfg = api.gclient.make_config() |
| 24 soln = src_cfg.solutions.add() | 24 soln = src_cfg.solutions.add() |
| 25 soln.name = "drmemory" | 25 soln.name = "drmemory" |
| 26 soln.url = "https://github.com/DynamoRIO/drmemory.git" | 26 soln.url = "https://github.com/DynamoRIO/drmemory.git" |
| 27 soln.custom_deps = {"drmemory/dynamorio": | 27 soln.custom_deps = {"drmemory/dynamorio": |
| 28 "https://github.com/DynamoRIO/dynamorio.git", | 28 "https://github.com/DynamoRIO/dynamorio.git", |
| 29 "tools/buildbot": | 29 "tools/buildbot": |
| 30 "https://github.com/DynamoRIO/buildbot.git"} | 30 "https://github.com/DynamoRIO/buildbot.git"} |
| 31 api.gclient.c = src_cfg | 31 api.gclient.c = src_cfg |
| 32 result = api.bot_update.ensure_checkout(force=True) | 32 result = api.bot_update.ensure_checkout(force=True) |
| 33 build_properties.update(result.json.output.get("properties", {})) | 33 build_properties.update(result.json.output.get("properties", {})) |
| 34 # get buildnumber step; no longer needed | 34 # get buildnumber step; no longer needed |
| 35 # Package DrMemory step | 35 # Package DrMemory step |
| 36 api.step("Package Dr. Memory", | 36 api.step("Package Dr. Memory", |
| 37 ["ctest", "-VV", "-S", | 37 ["ctest", "-VV", "-S", |
| 38 str(api.path["checkout"].join("package.cmake")) + ",build=0x" + | 38 str(api.path["checkout"].join("package.cmake")) + ",build=0x" + |
| 39 build_properties["got_revision"][:7] + ";drmem_only"]) | 39 build_properties["got_revision"][:7] + ";drmem_only"]) |
| 40 # find package file step; no longer necessary | 40 # find package file step; no longer necessary |
| 41 # upload drmemory build step | 41 # upload drmemory build step |
| 42 api.gsutil.upload("DrMemory-Linux-*" + build_properties["got_revision"][ | 42 api.gsutil.upload("DrMemory-Linux-*" + build_properties["got_revision"][ |
| 43 :7] + ".tar.gz", "chromium-drmemory-builds", "builds/") | 43 :7] + ".tar.gz", "chromium-drmemory-builds", "builds/") |
| 44 | 44 |
| 45 | 45 |
| 46 def linux_lucid_x64_drm_steps(api): | 46 def linux_lucid_x64_drm_steps(api): |
| 47 build_properties = api.properties.legacy() | 47 build_properties = api.properties.legacy() |
| 48 # checkout DrMemory step | 48 # checkout DrMemory step |
| 49 src_cfg = api.gclient.make_config(GIT_MODE=True) | 49 src_cfg = api.gclient.make_config() |
| 50 soln = src_cfg.solutions.add() | 50 soln = src_cfg.solutions.add() |
| 51 soln.name = "drmemory" | 51 soln.name = "drmemory" |
| 52 soln.url = "https://github.com/DynamoRIO/drmemory.git" | 52 soln.url = "https://github.com/DynamoRIO/drmemory.git" |
| 53 soln.custom_deps = {"drmemory/dynamorio": | 53 soln.custom_deps = {"drmemory/dynamorio": |
| 54 "https://github.com/DynamoRIO/dynamorio.git", | 54 "https://github.com/DynamoRIO/dynamorio.git", |
| 55 "tools/buildbot": | 55 "tools/buildbot": |
| 56 "https://github.com/DynamoRIO/buildbot.git"} | 56 "https://github.com/DynamoRIO/buildbot.git"} |
| 57 api.gclient.c = src_cfg | 57 api.gclient.c = src_cfg |
| 58 result = api.bot_update.ensure_checkout(force=True) | 58 result = api.bot_update.ensure_checkout(force=True) |
| 59 build_properties.update(result.json.output.get("properties", {})) | 59 build_properties.update(result.json.output.get("properties", {})) |
| (...skipping 21 matching lines...) Expand all Loading... |
| 81 # upload drmemory test logs step | 81 # upload drmemory test logs step |
| 82 api.gsutil.upload("testlogs_r" + build_properties["got_revision"] + "_b" + | 82 api.gsutil.upload("testlogs_r" + build_properties["got_revision"] + "_b" + |
| 83 str(api.properties[ | 83 str(api.properties[ |
| 84 "buildnumber"]) + ".7z", "chromium-drmemory-builds", | 84 "buildnumber"]) + ".7z", "chromium-drmemory-builds", |
| 85 "testlogs/from_%s" % api.properties["buildername"]) | 85 "testlogs/from_%s" % api.properties["buildername"]) |
| 86 | 86 |
| 87 | 87 |
| 88 def win_vista_x64_drm_steps(api): | 88 def win_vista_x64_drm_steps(api): |
| 89 build_properties = api.properties.legacy() | 89 build_properties = api.properties.legacy() |
| 90 # checkout DrMemory step | 90 # checkout DrMemory step |
| 91 src_cfg = api.gclient.make_config(GIT_MODE=True) | 91 src_cfg = api.gclient.make_config() |
| 92 soln = src_cfg.solutions.add() | 92 soln = src_cfg.solutions.add() |
| 93 soln.name = "drmemory" | 93 soln.name = "drmemory" |
| 94 soln.url = "https://github.com/DynamoRIO/drmemory.git" | 94 soln.url = "https://github.com/DynamoRIO/drmemory.git" |
| 95 soln.custom_deps = {"drmemory/dynamorio": | 95 soln.custom_deps = {"drmemory/dynamorio": |
| 96 "https://github.com/DynamoRIO/dynamorio.git", | 96 "https://github.com/DynamoRIO/dynamorio.git", |
| 97 "tools/buildbot": | 97 "tools/buildbot": |
| 98 "https://github.com/DynamoRIO/buildbot.git"} | 98 "https://github.com/DynamoRIO/buildbot.git"} |
| 99 api.gclient.c = src_cfg | 99 api.gclient.c = src_cfg |
| 100 result = api.bot_update.ensure_checkout(force=True) | 100 result = api.bot_update.ensure_checkout(force=True) |
| 101 build_properties.update(result.json.output.get("properties", {})) | 101 build_properties.update(result.json.output.get("properties", {})) |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 228 # upload drmemory test logs step | 228 # upload drmemory test logs step |
| 229 api.gsutil.upload("testlogs_r" + build_properties["got_revision"] + "_b" + | 229 api.gsutil.upload("testlogs_r" + build_properties["got_revision"] + "_b" + |
| 230 str(api.properties[ | 230 str(api.properties[ |
| 231 "buildnumber"]) + ".7z", "chromium-drmemory-builds", | 231 "buildnumber"]) + ".7z", "chromium-drmemory-builds", |
| 232 "testlogs/from_%s" % api.properties["buildername"]) | 232 "testlogs/from_%s" % api.properties["buildername"]) |
| 233 | 233 |
| 234 | 234 |
| 235 def mac_mavericks_x64_DR_steps(api): | 235 def mac_mavericks_x64_DR_steps(api): |
| 236 build_properties = api.properties.legacy() | 236 build_properties = api.properties.legacy() |
| 237 # checkout DynamiRIO step | 237 # checkout DynamiRIO step |
| 238 src_cfg = api.gclient.make_config(GIT_MODE=True) | 238 src_cfg = api.gclient.make_config() |
| 239 soln = src_cfg.solutions.add() | 239 soln = src_cfg.solutions.add() |
| 240 soln.name = "dynamorio" | 240 soln.name = "dynamorio" |
| 241 soln.url = "https://github.com/DynamoRIO/dynamorio.git" | 241 soln.url = "https://github.com/DynamoRIO/dynamorio.git" |
| 242 api.gclient.c = src_cfg | 242 api.gclient.c = src_cfg |
| 243 result = api.bot_update.ensure_checkout(force=True) | 243 result = api.bot_update.ensure_checkout(force=True) |
| 244 build_properties.update(result.json.output.get("properties", {})) | 244 build_properties.update(result.json.output.get("properties", {})) |
| 245 # pre-commit suite step | 245 # pre-commit suite step |
| 246 api.step("pre-commit suite", | 246 api.step("pre-commit suite", |
| 247 ['ctest', '--timeout', '120', '-VV', '-S', api.path[ | 247 ['ctest', '--timeout', '120', '-VV', '-S', api.path[ |
| 248 "checkout"].join("suite", "runsuite.cmake")], | 248 "checkout"].join("suite", "runsuite.cmake")], |
| 249 cwd=api.path["slave_build"], | 249 cwd=api.path["slave_build"], |
| 250 ok_ret="all") | 250 ok_ret="all") |
| 251 | 251 |
| 252 | 252 |
| 253 def linux_cr_builder_steps(api): | 253 def linux_cr_builder_steps(api): |
| 254 build_properties = api.properties.legacy() | 254 build_properties = api.properties.legacy() |
| 255 # update scripts step; implicitly run by recipe engine. | 255 # update scripts step; implicitly run by recipe engine. |
| 256 # bot_update step | 256 # bot_update step |
| 257 src_cfg = api.gclient.make_config(GIT_MODE=True) | 257 src_cfg = api.gclient.make_config() |
| 258 soln = src_cfg.solutions.add() | 258 soln = src_cfg.solutions.add() |
| 259 soln.name = "src" | 259 soln.name = "src" |
| 260 soln.url = "https://chromium.googlesource.com/chromium/src.git" | 260 soln.url = "https://chromium.googlesource.com/chromium/src.git" |
| 261 soln.custom_deps = {'src/third_party/WebKit/LayoutTests': None} | 261 soln.custom_deps = {'src/third_party/WebKit/LayoutTests': None} |
| 262 soln.custom_vars = {'webkit_trunk': 'http://src.chromium.org/blink/trunk', | 262 soln.custom_vars = {'webkit_trunk': 'http://src.chromium.org/blink/trunk', |
| 263 'googlecode_url': 'http://%s.googlecode.com/svn', | 263 'googlecode_url': 'http://%s.googlecode.com/svn', |
| 264 'nacl_trunk': | 264 'nacl_trunk': |
| 265 'http://src.chromium.org/native_client/trunk', | 265 'http://src.chromium.org/native_client/trunk', |
| 266 'sourceforge_url': | 266 'sourceforge_url': |
| 267 'https://svn.code.sf.net/p/%(repo)s/code', | 267 'https://svn.code.sf.net/p/%(repo)s/code', |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 300 'net_unittests', 'printing_unittests', 'remoting_unittests', | 300 'net_unittests', 'printing_unittests', 'remoting_unittests', |
| 301 'sql_unittests', 'unit_tests', 'url_unittests'] | 301 'sql_unittests', 'unit_tests', 'url_unittests'] |
| 302 api.python("compile", | 302 api.python("compile", |
| 303 api.path["build"].join("scripts", "slave", "compile.py"), | 303 api.path["build"].join("scripts", "slave", "compile.py"), |
| 304 args=args) | 304 args=args) |
| 305 | 305 |
| 306 | 306 |
| 307 def mac_builder_DR_steps(api): | 307 def mac_builder_DR_steps(api): |
| 308 build_properties = api.properties.legacy() | 308 build_properties = api.properties.legacy() |
| 309 # checkout DynamiRIO step | 309 # checkout DynamiRIO step |
| 310 src_cfg = api.gclient.make_config(GIT_MODE=True) | 310 src_cfg = api.gclient.make_config() |
| 311 soln = src_cfg.solutions.add() | 311 soln = src_cfg.solutions.add() |
| 312 soln.name = "dynamorio" | 312 soln.name = "dynamorio" |
| 313 soln.url = "https://github.com/DynamoRIO/dynamorio.git" | 313 soln.url = "https://github.com/DynamoRIO/dynamorio.git" |
| 314 api.gclient.c = src_cfg | 314 api.gclient.c = src_cfg |
| 315 result = api.bot_update.ensure_checkout(force=True) | 315 result = api.bot_update.ensure_checkout(force=True) |
| 316 build_properties.update(result.json.output.get("properties", {})) | 316 build_properties.update(result.json.output.get("properties", {})) |
| 317 # get buildnumber step; no longer needed | 317 # get buildnumber step; no longer needed |
| 318 # Package DynamoRIO step | 318 # Package DynamoRIO step |
| 319 api.step("Package DynamoRIO", | 319 api.step("Package DynamoRIO", |
| 320 ["ctest", "-VV", "-S", | 320 ["ctest", "-VV", "-S", |
| 321 str(api.path["checkout"].join("make", "package.cmake")) + | 321 str(api.path["checkout"].join("make", "package.cmake")) + |
| 322 ",build=0x" + build_properties["revision"][:7]]) | 322 ",build=0x" + build_properties["revision"][:7]]) |
| 323 # find package file step; no longer necessary | 323 # find package file step; no longer necessary |
| 324 # upload dynamorio package | 324 # upload dynamorio package |
| 325 api.gsutil.upload("DynamoRIO-MacOS-*" + build_properties["got_revision"][ | 325 api.gsutil.upload("DynamoRIO-MacOS-*" + build_properties["got_revision"][ |
| 326 :7] + ".tar.gz", "chromium-dynamorio", "builds/") | 326 :7] + ".tar.gz", "chromium-dynamorio", "builds/") |
| 327 | 327 |
| 328 | 328 |
| 329 def win_xp_drm_steps(api): | 329 def win_xp_drm_steps(api): |
| 330 build_properties = api.properties.legacy() | 330 build_properties = api.properties.legacy() |
| 331 # checkout DrMemory step | 331 # checkout DrMemory step |
| 332 src_cfg = api.gclient.make_config(GIT_MODE=True) | 332 src_cfg = api.gclient.make_config() |
| 333 soln = src_cfg.solutions.add() | 333 soln = src_cfg.solutions.add() |
| 334 soln.name = "drmemory" | 334 soln.name = "drmemory" |
| 335 soln.url = "https://github.com/DynamoRIO/drmemory.git" | 335 soln.url = "https://github.com/DynamoRIO/drmemory.git" |
| 336 soln.custom_deps = {"drmemory/dynamorio": | 336 soln.custom_deps = {"drmemory/dynamorio": |
| 337 "https://github.com/DynamoRIO/dynamorio.git", | 337 "https://github.com/DynamoRIO/dynamorio.git", |
| 338 "tools/buildbot": | 338 "tools/buildbot": |
| 339 "https://github.com/DynamoRIO/buildbot.git"} | 339 "https://github.com/DynamoRIO/buildbot.git"} |
| 340 api.gclient.c = src_cfg | 340 api.gclient.c = src_cfg |
| 341 result = api.bot_update.ensure_checkout(force=True) | 341 result = api.bot_update.ensure_checkout(force=True) |
| 342 build_properties.update(result.json.output.get("properties", {})) | 342 build_properties.update(result.json.output.get("properties", {})) |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 469 # upload drmemory test logs step | 469 # upload drmemory test logs step |
| 470 api.gsutil.upload("testlogs_r" + build_properties["got_revision"] + "_b" + | 470 api.gsutil.upload("testlogs_r" + build_properties["got_revision"] + "_b" + |
| 471 str(api.properties[ | 471 str(api.properties[ |
| 472 "buildnumber"]) + ".7z", "chromium-drmemory-builds", | 472 "buildnumber"]) + ".7z", "chromium-drmemory-builds", |
| 473 "testlogs/from_%s" % api.properties["buildername"]) | 473 "testlogs/from_%s" % api.properties["buildername"]) |
| 474 | 474 |
| 475 | 475 |
| 476 def mac_mavericks_x64_drm_steps(api): | 476 def mac_mavericks_x64_drm_steps(api): |
| 477 build_properties = api.properties.legacy() | 477 build_properties = api.properties.legacy() |
| 478 # checkout DrMemory step | 478 # checkout DrMemory step |
| 479 src_cfg = api.gclient.make_config(GIT_MODE=True) | 479 src_cfg = api.gclient.make_config() |
| 480 soln = src_cfg.solutions.add() | 480 soln = src_cfg.solutions.add() |
| 481 soln.name = "drmemory" | 481 soln.name = "drmemory" |
| 482 soln.url = "https://github.com/DynamoRIO/drmemory.git" | 482 soln.url = "https://github.com/DynamoRIO/drmemory.git" |
| 483 soln.custom_deps = {"drmemory/dynamorio": | 483 soln.custom_deps = {"drmemory/dynamorio": |
| 484 "https://github.com/DynamoRIO/dynamorio.git", | 484 "https://github.com/DynamoRIO/dynamorio.git", |
| 485 "tools/buildbot": | 485 "tools/buildbot": |
| 486 "https://github.com/DynamoRIO/buildbot.git"} | 486 "https://github.com/DynamoRIO/buildbot.git"} |
| 487 api.gclient.c = src_cfg | 487 api.gclient.c = src_cfg |
| 488 result = api.bot_update.ensure_checkout(force=True) | 488 result = api.bot_update.ensure_checkout(force=True) |
| 489 build_properties.update(result.json.output.get("properties", {})) | 489 build_properties.update(result.json.output.get("properties", {})) |
| (...skipping 17 matching lines...) Expand all Loading... |
| 507 # upload drmemory test logs step | 507 # upload drmemory test logs step |
| 508 api.gsutil.upload("testlogs_r" + build_properties["got_revision"] + "_b" + | 508 api.gsutil.upload("testlogs_r" + build_properties["got_revision"] + "_b" + |
| 509 str(api.properties[ | 509 str(api.properties[ |
| 510 "buildnumber"]) + ".7z", "chromium-drmemory-builds", | 510 "buildnumber"]) + ".7z", "chromium-drmemory-builds", |
| 511 "testlogs/from_%s" % api.properties["buildername"]) | 511 "testlogs/from_%s" % api.properties["buildername"]) |
| 512 | 512 |
| 513 | 513 |
| 514 def linux_cr_steps(api): | 514 def linux_cr_steps(api): |
| 515 build_properties = api.properties.legacy() | 515 build_properties = api.properties.legacy() |
| 516 # checkout DynamiRIO step | 516 # checkout DynamiRIO step |
| 517 src_cfg = api.gclient.make_config(GIT_MODE=True) | 517 src_cfg = api.gclient.make_config() |
| 518 soln = src_cfg.solutions.add() | 518 soln = src_cfg.solutions.add() |
| 519 soln.name = "dynamorio" | 519 soln.name = "dynamorio" |
| 520 soln.url = "https://github.com/DynamoRIO/dynamorio.git" | 520 soln.url = "https://github.com/DynamoRIO/dynamorio.git" |
| 521 api.gclient.c = src_cfg | 521 api.gclient.c = src_cfg |
| 522 result = api.bot_update.ensure_checkout(force=True) | 522 result = api.bot_update.ensure_checkout(force=True) |
| 523 build_properties.update(result.json.output.get("properties", {})) | 523 build_properties.update(result.json.output.get("properties", {})) |
| 524 # Make the build directory step | 524 # Make the build directory step |
| 525 api.file.makedirs("makedirs", api.path["slave_build"].join("dynamorio")) | 525 api.file.makedirs("makedirs", api.path["slave_build"].join("dynamorio")) |
| 526 api.file.makedirs("makedirs", api.path["slave_build"].join("dynamorio", | 526 api.file.makedirs("makedirs", api.path["slave_build"].join("dynamorio", |
| 527 "build")) | 527 "build")) |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 652 | 652 |
| 653 | 653 |
| 654 def win8_cr_builder_steps(api): | 654 def win8_cr_builder_steps(api): |
| 655 build_properties = api.properties.legacy() | 655 build_properties = api.properties.legacy() |
| 656 # svnkill step; not necessary in recipes | 656 # svnkill step; not necessary in recipes |
| 657 # update scripts step; implicitly run by recipe engine. | 657 # update scripts step; implicitly run by recipe engine. |
| 658 # taskkill step | 658 # taskkill step |
| 659 api.python("taskkill", api.path["build"].join("scripts", "slave", | 659 api.python("taskkill", api.path["build"].join("scripts", "slave", |
| 660 "kill_processes.py")) | 660 "kill_processes.py")) |
| 661 # bot_update step | 661 # bot_update step |
| 662 src_cfg = api.gclient.make_config(GIT_MODE=True) | 662 src_cfg = api.gclient.make_config() |
| 663 soln = src_cfg.solutions.add() | 663 soln = src_cfg.solutions.add() |
| 664 soln.name = "src" | 664 soln.name = "src" |
| 665 soln.url = "https://chromium.googlesource.com/chromium/src.git" | 665 soln.url = "https://chromium.googlesource.com/chromium/src.git" |
| 666 soln.custom_deps = {'src/third_party/WebKit/LayoutTests': None} | 666 soln.custom_deps = {'src/third_party/WebKit/LayoutTests': None} |
| 667 soln.custom_vars = {'webkit_trunk': 'http://src.chromium.org/blink/trunk', | 667 soln.custom_vars = {'webkit_trunk': 'http://src.chromium.org/blink/trunk', |
| 668 'googlecode_url': 'http://%s.googlecode.com/svn', | 668 'googlecode_url': 'http://%s.googlecode.com/svn', |
| 669 'nacl_trunk': | 669 'nacl_trunk': |
| 670 'http://src.chromium.org/native_client/trunk', | 670 'http://src.chromium.org/native_client/trunk', |
| 671 'sourceforge_url': | 671 'sourceforge_url': |
| 672 'https://svn.code.sf.net/p/%(repo)s/code', | 672 'https://svn.code.sf.net/p/%(repo)s/code', |
| (...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 887 "Chromium 'unit' tests", | 887 "Chromium 'unit' tests", |
| 888 ['..\\..\\win7-cr-builder\\build\\src\\tools\\valgrind\\chrome_tests.bat', | 888 ['..\\..\\win7-cr-builder\\build\\src\\tools\\valgrind\\chrome_tests.bat', |
| 889 '-t', 'unit', '--tool', 'drmemory_light', '--keep_logs'], | 889 '-t', 'unit', '--tool', 'drmemory_light', '--keep_logs'], |
| 890 env={'DRMEMORY_COMMAND': 'unpacked/bin/drmemory.exe'}, | 890 env={'DRMEMORY_COMMAND': 'unpacked/bin/drmemory.exe'}, |
| 891 cwd=api.path["slave_build"]) | 891 cwd=api.path["slave_build"]) |
| 892 | 892 |
| 893 | 893 |
| 894 def win_8_x64_drm_steps(api): | 894 def win_8_x64_drm_steps(api): |
| 895 build_properties = api.properties.legacy() | 895 build_properties = api.properties.legacy() |
| 896 # checkout DrMemory step | 896 # checkout DrMemory step |
| 897 src_cfg = api.gclient.make_config(GIT_MODE=True) | 897 src_cfg = api.gclient.make_config() |
| 898 soln = src_cfg.solutions.add() | 898 soln = src_cfg.solutions.add() |
| 899 soln.name = "drmemory" | 899 soln.name = "drmemory" |
| 900 soln.url = "https://github.com/DynamoRIO/drmemory.git" | 900 soln.url = "https://github.com/DynamoRIO/drmemory.git" |
| 901 soln.custom_deps = {"drmemory/dynamorio": | 901 soln.custom_deps = {"drmemory/dynamorio": |
| 902 "https://github.com/DynamoRIO/dynamorio.git", | 902 "https://github.com/DynamoRIO/dynamorio.git", |
| 903 "tools/buildbot": | 903 "tools/buildbot": |
| 904 "https://github.com/DynamoRIO/buildbot.git"} | 904 "https://github.com/DynamoRIO/buildbot.git"} |
| 905 api.gclient.c = src_cfg | 905 api.gclient.c = src_cfg |
| 906 result = api.bot_update.ensure_checkout(force=True) | 906 result = api.bot_update.ensure_checkout(force=True) |
| 907 build_properties.update(result.json.output.get("properties", {})) | 907 build_properties.update(result.json.output.get("properties", {})) |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1039 | 1039 |
| 1040 | 1040 |
| 1041 def win7_cr_builder_steps(api): | 1041 def win7_cr_builder_steps(api): |
| 1042 build_properties = api.properties.legacy() | 1042 build_properties = api.properties.legacy() |
| 1043 # svnkill step; not necessary in recipes | 1043 # svnkill step; not necessary in recipes |
| 1044 # update scripts step; implicitly run by recipe engine. | 1044 # update scripts step; implicitly run by recipe engine. |
| 1045 # taskkill step | 1045 # taskkill step |
| 1046 api.python("taskkill", api.path["build"].join("scripts", "slave", | 1046 api.python("taskkill", api.path["build"].join("scripts", "slave", |
| 1047 "kill_processes.py")) | 1047 "kill_processes.py")) |
| 1048 # bot_update step | 1048 # bot_update step |
| 1049 src_cfg = api.gclient.make_config(GIT_MODE=True) | 1049 src_cfg = api.gclient.make_config() |
| 1050 soln = src_cfg.solutions.add() | 1050 soln = src_cfg.solutions.add() |
| 1051 soln.name = "src" | 1051 soln.name = "src" |
| 1052 soln.url = "https://chromium.googlesource.com/chromium/src.git" | 1052 soln.url = "https://chromium.googlesource.com/chromium/src.git" |
| 1053 soln.custom_deps = {'src/third_party/WebKit/LayoutTests': None} | 1053 soln.custom_deps = {'src/third_party/WebKit/LayoutTests': None} |
| 1054 soln.custom_vars = {'webkit_trunk': 'http://src.chromium.org/blink/trunk', | 1054 soln.custom_vars = {'webkit_trunk': 'http://src.chromium.org/blink/trunk', |
| 1055 'googlecode_url': 'http://%s.googlecode.com/svn', | 1055 'googlecode_url': 'http://%s.googlecode.com/svn', |
| 1056 'nacl_trunk': | 1056 'nacl_trunk': |
| 1057 'http://src.chromium.org/native_client/trunk', | 1057 'http://src.chromium.org/native_client/trunk', |
| 1058 'sourceforge_url': | 1058 'sourceforge_url': |
| 1059 'https://svn.code.sf.net/p/%(repo)s/code', | 1059 'https://svn.code.sf.net/p/%(repo)s/code', |
| (...skipping 26 matching lines...) Expand all Loading... |
| 1086 api.chromium.cleanup_temp() | 1086 api.chromium.cleanup_temp() |
| 1087 # compile.py step | 1087 # compile.py step |
| 1088 args = ['--target', 'Debug', 'chromium_builder_dbg_drmemory_win'] | 1088 args = ['--target', 'Debug', 'chromium_builder_dbg_drmemory_win'] |
| 1089 api.step("compile", ["python_slave", api.path["build"].join( | 1089 api.step("compile", ["python_slave", api.path["build"].join( |
| 1090 "scripts", "slave", "compile.py")] + args) | 1090 "scripts", "slave", "compile.py")] + args) |
| 1091 | 1091 |
| 1092 | 1092 |
| 1093 def win_7_x64_drm_steps(api): | 1093 def win_7_x64_drm_steps(api): |
| 1094 build_properties = api.properties.legacy() | 1094 build_properties = api.properties.legacy() |
| 1095 # checkout DrMemory step | 1095 # checkout DrMemory step |
| 1096 src_cfg = api.gclient.make_config(GIT_MODE=True) | 1096 src_cfg = api.gclient.make_config() |
| 1097 soln = src_cfg.solutions.add() | 1097 soln = src_cfg.solutions.add() |
| 1098 soln.name = "drmemory" | 1098 soln.name = "drmemory" |
| 1099 soln.url = "https://github.com/DynamoRIO/drmemory.git" | 1099 soln.url = "https://github.com/DynamoRIO/drmemory.git" |
| 1100 soln.custom_deps = {"drmemory/dynamorio": | 1100 soln.custom_deps = {"drmemory/dynamorio": |
| 1101 "https://github.com/DynamoRIO/dynamorio.git", | 1101 "https://github.com/DynamoRIO/dynamorio.git", |
| 1102 "tools/buildbot": | 1102 "tools/buildbot": |
| 1103 "https://github.com/DynamoRIO/buildbot.git"} | 1103 "https://github.com/DynamoRIO/buildbot.git"} |
| 1104 api.gclient.c = src_cfg | 1104 api.gclient.c = src_cfg |
| 1105 result = api.bot_update.ensure_checkout(force=True) | 1105 result = api.bot_update.ensure_checkout(force=True) |
| 1106 build_properties.update(result.json.output.get("properties", {})) | 1106 build_properties.update(result.json.output.get("properties", {})) |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1233 # upload drmemory test logs step | 1233 # upload drmemory test logs step |
| 1234 api.gsutil.upload("testlogs_r" + build_properties["got_revision"] + "_b" + | 1234 api.gsutil.upload("testlogs_r" + build_properties["got_revision"] + "_b" + |
| 1235 str(api.properties[ | 1235 str(api.properties[ |
| 1236 "buildnumber"]) + ".7z", "chromium-drmemory-builds", | 1236 "buildnumber"]) + ".7z", "chromium-drmemory-builds", |
| 1237 "testlogs/from_%s" % api.properties["buildername"]) | 1237 "testlogs/from_%s" % api.properties["buildername"]) |
| 1238 | 1238 |
| 1239 | 1239 |
| 1240 def mac_builder_steps(api): | 1240 def mac_builder_steps(api): |
| 1241 build_properties = api.properties.legacy() | 1241 build_properties = api.properties.legacy() |
| 1242 # checkout DrMemory step | 1242 # checkout DrMemory step |
| 1243 src_cfg = api.gclient.make_config(GIT_MODE=True) | 1243 src_cfg = api.gclient.make_config() |
| 1244 soln = src_cfg.solutions.add() | 1244 soln = src_cfg.solutions.add() |
| 1245 soln.name = "drmemory" | 1245 soln.name = "drmemory" |
| 1246 soln.url = "https://github.com/DynamoRIO/drmemory.git" | 1246 soln.url = "https://github.com/DynamoRIO/drmemory.git" |
| 1247 soln.custom_deps = {"drmemory/dynamorio": | 1247 soln.custom_deps = {"drmemory/dynamorio": |
| 1248 "https://github.com/DynamoRIO/dynamorio.git", | 1248 "https://github.com/DynamoRIO/dynamorio.git", |
| 1249 "tools/buildbot": | 1249 "tools/buildbot": |
| 1250 "https://github.com/DynamoRIO/buildbot.git"} | 1250 "https://github.com/DynamoRIO/buildbot.git"} |
| 1251 api.gclient.c = src_cfg | 1251 api.gclient.c = src_cfg |
| 1252 result = api.bot_update.ensure_checkout(force=True) | 1252 result = api.bot_update.ensure_checkout(force=True) |
| 1253 build_properties.update(result.json.output.get("properties", {})) | 1253 build_properties.update(result.json.output.get("properties", {})) |
| 1254 # get buildnumber step; no longer needed | 1254 # get buildnumber step; no longer needed |
| 1255 # Package DrMemory step | 1255 # Package DrMemory step |
| 1256 api.step("Package Dr. Memory", | 1256 api.step("Package Dr. Memory", |
| 1257 ["ctest", "-VV", "-S", | 1257 ["ctest", "-VV", "-S", |
| 1258 str(api.path["checkout"].join("package.cmake")) + ",build=0x" + | 1258 str(api.path["checkout"].join("package.cmake")) + ",build=0x" + |
| 1259 build_properties["got_revision"][:7] + ";drmem_only"]) | 1259 build_properties["got_revision"][:7] + ";drmem_only"]) |
| 1260 # find package file step; no longer necessary | 1260 # find package file step; no longer necessary |
| 1261 # upload drmemory build step | 1261 # upload drmemory build step |
| 1262 api.gsutil.upload("DrMemory-MacOS-*" + build_properties["got_revision"][ | 1262 api.gsutil.upload("DrMemory-MacOS-*" + build_properties["got_revision"][ |
| 1263 :7] + ".tar.gz", "chromium-drmemory-builds", "builds/") | 1263 :7] + ".tar.gz", "chromium-drmemory-builds", "builds/") |
| 1264 | 1264 |
| 1265 | 1265 |
| 1266 def win_builder_steps(api): | 1266 def win_builder_steps(api): |
| 1267 build_properties = api.properties.legacy() | 1267 build_properties = api.properties.legacy() |
| 1268 # checkout DrMemory step | 1268 # checkout DrMemory step |
| 1269 src_cfg = api.gclient.make_config(GIT_MODE=True) | 1269 src_cfg = api.gclient.make_config() |
| 1270 soln = src_cfg.solutions.add() | 1270 soln = src_cfg.solutions.add() |
| 1271 soln.name = "drmemory" | 1271 soln.name = "drmemory" |
| 1272 soln.url = "https://github.com/DynamoRIO/drmemory.git" | 1272 soln.url = "https://github.com/DynamoRIO/drmemory.git" |
| 1273 soln.custom_deps = {"drmemory/dynamorio": | 1273 soln.custom_deps = {"drmemory/dynamorio": |
| 1274 "https://github.com/DynamoRIO/dynamorio.git", | 1274 "https://github.com/DynamoRIO/dynamorio.git", |
| 1275 "tools/buildbot": | 1275 "tools/buildbot": |
| 1276 "https://github.com/DynamoRIO/buildbot.git"} | 1276 "https://github.com/DynamoRIO/buildbot.git"} |
| 1277 api.gclient.c = src_cfg | 1277 api.gclient.c = src_cfg |
| 1278 result = api.bot_update.ensure_checkout(force=True) | 1278 result = api.bot_update.ensure_checkout(force=True) |
| 1279 build_properties.update(result.json.output.get("properties", {})) | 1279 build_properties.update(result.json.output.get("properties", {})) |
| (...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1613 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")) |
| 1614 ) | 1614 ) |
| 1615 | 1615 |
| 1616 yield (api.test('builder_not_in_dispatch_directory') | 1616 yield (api.test('builder_not_in_dispatch_directory') |
| 1617 + api.properties( | 1617 + api.properties( |
| 1618 mastername='client.drmemory', | 1618 mastername='client.drmemory', |
| 1619 buildername='nonexistent_builder', | 1619 buildername='nonexistent_builder', |
| 1620 slavename='TestSlave', | 1620 slavename='TestSlave', |
| 1621 ) | 1621 ) |
| 1622 ) | 1622 ) |
| OLD | NEW |