| 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 'depot_tools/infra_paths', | |
| 10 'file', | 9 'file', |
| 11 'gsutil', | 10 'gsutil', |
| 12 'recipe_engine/path', | 11 'recipe_engine/path', |
| 13 'recipe_engine/properties', | 12 'recipe_engine/properties', |
| 14 'recipe_engine/python', | 13 'recipe_engine/python', |
| 15 'recipe_engine/raw_io', | 14 'recipe_engine/raw_io', |
| 16 'recipe_engine/step', | 15 'recipe_engine/step', |
| 17 ] | 16 ] |
| 18 | 17 |
| 19 | 18 |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 "https://github.com/DynamoRIO/dynamorio.git", | 95 "https://github.com/DynamoRIO/dynamorio.git", |
| 97 "tools/buildbot": | 96 "tools/buildbot": |
| 98 "https://github.com/DynamoRIO/buildbot.git"} | 97 "https://github.com/DynamoRIO/buildbot.git"} |
| 99 api.gclient.c = src_cfg | 98 api.gclient.c = src_cfg |
| 100 result = api.bot_update.ensure_checkout(force=True) | 99 result = api.bot_update.ensure_checkout(force=True) |
| 101 build_properties.update(result.json.output.get("properties", {})) | 100 build_properties.update(result.json.output.get("properties", {})) |
| 102 # clear tools directory step; null converted | 101 # clear tools directory step; null converted |
| 103 # update tools step; null converted | 102 # update tools step; null converted |
| 104 # unpack tools step; generic ShellCommand converted | 103 # unpack tools step; generic ShellCommand converted |
| 105 api.step("unpack tools", | 104 api.step("unpack tools", |
| 106 [api.infra_paths['slave_build'].join( | 105 [api.path["slave_build"].join('tools', 'buildbot', 'bot_tools', |
| 107 'tools', 'buildbot', 'bot_tools', 'unpack.bat')], | 106 'unpack.bat')], |
| 108 env={}, | 107 env={}, |
| 109 cwd=api.infra_paths[ | 108 cwd=api.path[ |
| 110 'slave_build'].join('tools', 'buildbot', 'bot_tools')) | 109 "slave_build"].join('tools', 'buildbot', 'bot_tools')) |
| 111 # windows Dr. Memory ctest step | 110 # windows Dr. Memory ctest step |
| 112 api.step("Dr. Memory ctest", | 111 api.step("Dr. Memory ctest", |
| 113 [api.infra_paths['build'].join("scripts", "slave", "drmemory", | 112 [api.path["build"].join("scripts", "slave", "drmemory", |
| 114 "build_env.bat"), 'ctest', '--timeout', | 113 "build_env.bat"), 'ctest', '--timeout', |
| 115 '60', '-VV', '-S', | 114 '60', '-VV', '-S', |
| 116 str(api.path["checkout"].join("tests", "runsuite.cmake")) + | 115 str(api.path["checkout"].join("tests", "runsuite.cmake")) + |
| 117 ",drmemory_only;long;build=" + | 116 ",drmemory_only;long;build=" + |
| 118 str(build_properties["buildnumber"])]) | 117 str(build_properties["buildnumber"])]) |
| 119 # Checkout TSan tests step | 118 # Checkout TSan tests step |
| 120 api.step("Checkout TSan tests", | 119 api.step("Checkout TSan tests", |
| 121 ['svn', 'checkout', '--force', | 120 ['svn', 'checkout', '--force', |
| 122 'http://data-race-test.googlecode.com/svn/trunk/', | 121 'http://data-race-test.googlecode.com/svn/trunk/', |
| 123 api.infra_paths['slave_build'].join("tsan")]) | 122 api.path["slave_build"].join("tsan")]) |
| 124 # Build TSan tests step | 123 # Build TSan tests step |
| 125 api.step("Build TSan Tests", | 124 api.step("Build TSan Tests", |
| 126 ['E:\\b\\build\\scripts\\slave\\drmemory\\build_env.bat', 'make', | 125 ['E:\\b\\build\\scripts\\slave\\drmemory\\build_env.bat', 'make', |
| 127 '-C', api.infra_paths['slave_build'].join("tsan", "unittest")], | 126 '-C', api.path["slave_build"].join("tsan", "unittest")], |
| 128 env={"BOTTOOLS": api.infra_paths['slave_build'].join( | 127 env={"BOTTOOLS": api.path["slave_build"].join("tools", "buildbot", |
| 129 "tools", "buildbot", "bot_tools"), | 128 "bot_tools"), |
| 130 "CYGWIN": "nodosfilewarning"}) | 129 "CYGWIN": "nodosfilewarning"}) |
| 131 # Dr. Memory TSan test step | 130 # Dr. Memory TSan test step |
| 132 api.step( | 131 api.step( |
| 133 "dbg full TSan tests", | 132 "dbg full TSan tests", |
| 134 [api.infra_paths['build'].join("scripts", "slave", "drmemory", | 133 [api.path["build"].join("scripts", "slave", "drmemory", |
| 135 "build_env.bat"), | 134 "build_env.bat"), |
| 136 'build_drmemory-dbg-32\\bin\\drmemory', '-dr_ops', | 135 'build_drmemory-dbg-32\\bin\\drmemory', '-dr_ops', |
| 137 '-msgbox_mask 0 -stderr_mask 15', '-results_to_stderr', '-batch', | 136 '-msgbox_mask 0 -stderr_mask 15', '-results_to_stderr', '-batch', |
| 138 '-suppress', api.path["checkout"].join( | 137 '-suppress', api.path["checkout"].join( |
| 139 "tests", "app_suite", "default-suppressions.txt"), "--", | 138 "tests", "app_suite", "default-suppressions.txt"), "--", |
| 140 api.infra_paths['slave_build'].join("tsan", 'unittest', 'bin', | 139 api.path["slave_build"].join("tsan", 'unittest', 'bin', |
| 141 'racecheck_unittest-windows-x86-O0.exe'), | 140 'racecheck_unittest-windows-x86-O0.exe'), |
| 142 '--gtest_filter=' | 141 '--gtest_filter=' |
| 143 '-PositiveTests.FreeVsRead:NegativeTests.WaitForMultiple*', | 142 '-PositiveTests.FreeVsRead:NegativeTests.WaitForMultiple*', |
| 144 '-147'], | 143 '-147'], |
| 145 env={"BOTTOOLS": api.infra_paths['slave_build'].join("tools", "buildbot"
, | 144 env={"BOTTOOLS": api.path["slave_build"].join("tools", "buildbot", |
| 146 "bot_tools")}) | 145 "bot_tools")}) |
| 147 # Dr. Memory TSan test step | 146 # Dr. Memory TSan test step |
| 148 api.step( | 147 api.step( |
| 149 "dbg light TSan tests", | 148 "dbg light TSan tests", |
| 150 [api.infra_paths['build'].join("scripts", "slave", "drmemory", | 149 [api.path["build"].join("scripts", "slave", "drmemory", |
| 151 "build_env.bat"), | 150 "build_env.bat"), |
| 152 'build_drmemory-dbg-32\\bin\\drmemory', '-dr_ops', | 151 'build_drmemory-dbg-32\\bin\\drmemory', '-dr_ops', |
| 153 '-msgbox_mask 0 -stderr_mask 15', '-results_to_stderr', '-batch', | 152 '-msgbox_mask 0 -stderr_mask 15', '-results_to_stderr', '-batch', |
| 154 '-suppress', api.path["checkout"].join( | 153 '-suppress', api.path["checkout"].join( |
| 155 "tests", "app_suite", "default-suppressions.txt"), "-light", "--", | 154 "tests", "app_suite", "default-suppressions.txt"), "-light", "--", |
| 156 api.infra_paths['slave_build'].join("tsan", 'unittest', 'bin', | 155 api.path["slave_build"].join("tsan", 'unittest', 'bin', |
| 157 'racecheck_unittest-windows-x86-O0.exe'), | 156 'racecheck_unittest-windows-x86-O0.exe'), |
| 158 '--gtest_filter=' | 157 '--gtest_filter=' |
| 159 '-PositiveTests.FreeVsRead:NegativeTests.WaitForMultiple*', | 158 '-PositiveTests.FreeVsRead:NegativeTests.WaitForMultiple*', |
| 160 '-147'], | 159 '-147'], |
| 161 env={"BOTTOOLS": api.infra_paths['slave_build'].join("tools", "buildbot"
, | 160 env={"BOTTOOLS": api.path["slave_build"].join("tools", "buildbot", |
| 162 "bot_tools")}) | 161 "bot_tools")}) |
| 163 # Dr. Memory TSan test step | 162 # Dr. Memory TSan test step |
| 164 api.step( | 163 api.step( |
| 165 "rel full TSan tests", | 164 "rel full TSan tests", |
| 166 [api.infra_paths['build'].join("scripts", "slave", "drmemory", | 165 [api.path["build"].join("scripts", "slave", "drmemory", |
| 167 "build_env.bat"), | 166 "build_env.bat"), |
| 168 'build_drmemory-rel-32\\bin\\drmemory', '-dr_ops', | 167 'build_drmemory-rel-32\\bin\\drmemory', '-dr_ops', |
| 169 '-msgbox_mask 0 -stderr_mask 15', '-results_to_stderr', '-batch', | 168 '-msgbox_mask 0 -stderr_mask 15', '-results_to_stderr', '-batch', |
| 170 '-suppress', api.path["checkout"].join( | 169 '-suppress', api.path["checkout"].join( |
| 171 "tests", "app_suite", "default-suppressions.txt"), "--", | 170 "tests", "app_suite", "default-suppressions.txt"), "--", |
| 172 api.infra_paths['slave_build'].join("tsan", 'unittest', 'bin', | 171 api.path["slave_build"].join("tsan", 'unittest', 'bin', |
| 173 'racecheck_unittest-windows-x86-O0.exe'), | 172 'racecheck_unittest-windows-x86-O0.exe'), |
| 174 '--gtest_filter=' | 173 '--gtest_filter=' |
| 175 '-PositiveTests.FreeVsRead:NegativeTests.WaitForMultiple*', | 174 '-PositiveTests.FreeVsRead:NegativeTests.WaitForMultiple*', |
| 176 '-147'], | 175 '-147'], |
| 177 env={"BOTTOOLS": api.infra_paths['slave_build'].join("tools", "buildbot"
, | 176 env={"BOTTOOLS": api.path["slave_build"].join("tools", "buildbot", |
| 178 "bot_tools")}) | 177 "bot_tools")}) |
| 179 # Dr. Memory TSan test step | 178 # Dr. Memory TSan test step |
| 180 api.step( | 179 api.step( |
| 181 "rel light TSan tests", | 180 "rel light TSan tests", |
| 182 [api.infra_paths['build'].join("scripts", "slave", "drmemory", | 181 [api.path["build"].join("scripts", "slave", "drmemory", |
| 183 "build_env.bat"), | 182 "build_env.bat"), |
| 184 'build_drmemory-rel-32\\bin\\drmemory', '-dr_ops', | 183 'build_drmemory-rel-32\\bin\\drmemory', '-dr_ops', |
| 185 '-msgbox_mask 0 -stderr_mask 15', '-results_to_stderr', '-batch', | 184 '-msgbox_mask 0 -stderr_mask 15', '-results_to_stderr', '-batch', |
| 186 '-suppress', api.path["checkout"].join( | 185 '-suppress', api.path["checkout"].join( |
| 187 "tests", "app_suite", "default-suppressions.txt"), "-light", "--", | 186 "tests", "app_suite", "default-suppressions.txt"), "-light", "--", |
| 188 api.infra_paths['slave_build'].join("tsan", 'unittest', 'bin', | 187 api.path["slave_build"].join("tsan", 'unittest', 'bin', |
| 189 'racecheck_unittest-windows-x86-O0.exe'), | 188 'racecheck_unittest-windows-x86-O0.exe'), |
| 190 '--gtest_filter=' | 189 '--gtest_filter=' |
| 191 '-PositiveTests.FreeVsRead:NegativeTests.WaitForMultiple*', | 190 '-PositiveTests.FreeVsRead:NegativeTests.WaitForMultiple*', |
| 192 '-147'], | 191 '-147'], |
| 193 env={"BOTTOOLS": api.infra_paths['slave_build'].join("tools", "buildbot"
, | 192 env={"BOTTOOLS": api.path["slave_build"].join("tools", "buildbot", |
| 194 "bot_tools")}) | 193 "bot_tools")}) |
| 195 # Dr. Memory TSan test step | 194 # Dr. Memory TSan test step |
| 196 api.step( | 195 api.step( |
| 197 "dbg full nosyms TSan tests", | 196 "dbg full nosyms TSan tests", |
| 198 [api.infra_paths['build'].join("scripts", "slave", "drmemory", | 197 [api.path["build"].join("scripts", "slave", "drmemory", |
| 199 "build_env.bat"), | 198 "build_env.bat"), |
| 200 'build_drmemory-dbg-32\\bin\\drmemory', '-dr_ops', | 199 'build_drmemory-dbg-32\\bin\\drmemory', '-dr_ops', |
| 201 '-msgbox_mask 0 -stderr_mask 15', '-results_to_stderr', '-batch', | 200 '-msgbox_mask 0 -stderr_mask 15', '-results_to_stderr', '-batch', |
| 202 '-suppress', api.path["checkout"].join( | 201 '-suppress', api.path["checkout"].join( |
| 203 "tests", "app_suite", "default-suppressions.txt"), "--", | 202 "tests", "app_suite", "default-suppressions.txt"), "--", |
| 204 api.infra_paths['slave_build'].join("tsan", 'unittest', 'bin', | 203 api.path["slave_build"].join("tsan", 'unittest', 'bin', |
| 205 'racecheck_unittest-windows-x86-O0.exe'), | 204 'racecheck_unittest-windows-x86-O0.exe'), |
| 206 '--gtest_filter=' | 205 '--gtest_filter=' |
| 207 '-PositiveTests.FreeVsRead:NegativeTests.WaitForMultiple*', | 206 '-PositiveTests.FreeVsRead:NegativeTests.WaitForMultiple*', |
| 208 '-147'], | 207 '-147'], |
| 209 env={"BOTTOOLS": api.infra_paths['slave_build'].join("tools", "buildbot"
, | 208 env={"BOTTOOLS": api.path["slave_build"].join("tools", "buildbot", |
| 210 "bot_tools")}) | 209 "bot_tools")}) |
| 211 # Prepare to pack test results step; null converted | 210 # Prepare to pack test results step; null converted |
| 212 # Pack test results step | 211 # Pack test results step |
| 213 api.step("Pack test results", | 212 api.step("Pack test results", |
| 214 [api.infra_paths['build'].join("scripts", "slave", "drmemory", | 213 [api.path["build"].join("scripts", "slave", "drmemory", |
| 215 "build_env.bat"),'7z', 'a', '-xr!*.pdb', | 214 "build_env.bat"),'7z', 'a', '-xr!*.pdb', |
| 216 "testlogs_r" + build_properties["got_revision"] + "_b" + | 215 "testlogs_r" + build_properties["got_revision"] + "_b" + |
| 217 str(build_properties["buildnumber"]) + ".7z", | 216 str(build_properties["buildnumber"]) + ".7z", |
| 218 'build_drmemory-dbg-32/logs', | 217 'build_drmemory-dbg-32/logs', |
| 219 'build_drmemory-dbg-32/Testing/Temporary', | 218 'build_drmemory-dbg-32/Testing/Temporary', |
| 220 'build_drmemory-rel-32/logs', | 219 'build_drmemory-rel-32/logs', |
| 221 'build_drmemory-rel-32/Testing/Temporary', | 220 'build_drmemory-rel-32/Testing/Temporary', |
| 222 'build_drmemory-dbg-64/logs', | 221 'build_drmemory-dbg-64/logs', |
| 223 'build_drmemory-dbg-64/Testing/Temporary', | 222 'build_drmemory-dbg-64/Testing/Temporary', |
| 224 'build_drmemory-rel-64/logs', | 223 'build_drmemory-rel-64/logs', |
| 225 'build_drmemory-rel-64/Testing/Temporary', 'xmlresults'], | 224 'build_drmemory-rel-64/Testing/Temporary', 'xmlresults'], |
| 226 env={"BOTTOOLS": api.infra_paths['slave_build'].join("tools", "buil
dbot", | 225 env={"BOTTOOLS": api.path["slave_build"].join("tools", "buildbot", |
| 227 "bot_tools")}) | 226 "bot_tools")}) |
| 228 # upload drmemory test logs step | 227 # upload drmemory test logs step |
| 229 api.gsutil.upload("testlogs_r" + build_properties["got_revision"] + "_b" + | 228 api.gsutil.upload("testlogs_r" + build_properties["got_revision"] + "_b" + |
| 230 str(api.properties[ | 229 str(api.properties[ |
| 231 "buildnumber"]) + ".7z", "chromium-drmemory-builds", | 230 "buildnumber"]) + ".7z", "chromium-drmemory-builds", |
| 232 "testlogs/from_%s" % api.properties["buildername"]) | 231 "testlogs/from_%s" % api.properties["buildername"]) |
| 233 | 232 |
| 234 | 233 |
| 235 def mac_mavericks_x64_DR_steps(api): | 234 def mac_mavericks_x64_DR_steps(api): |
| 236 build_properties = api.properties.legacy() | 235 build_properties = api.properties.legacy() |
| 237 # checkout DynamiRIO step | 236 # checkout DynamiRIO step |
| 238 src_cfg = api.gclient.make_config(GIT_MODE=True) | 237 src_cfg = api.gclient.make_config(GIT_MODE=True) |
| 239 soln = src_cfg.solutions.add() | 238 soln = src_cfg.solutions.add() |
| 240 soln.name = "dynamorio" | 239 soln.name = "dynamorio" |
| 241 soln.url = "https://github.com/DynamoRIO/dynamorio.git" | 240 soln.url = "https://github.com/DynamoRIO/dynamorio.git" |
| 242 api.gclient.c = src_cfg | 241 api.gclient.c = src_cfg |
| 243 result = api.bot_update.ensure_checkout(force=True) | 242 result = api.bot_update.ensure_checkout(force=True) |
| 244 build_properties.update(result.json.output.get("properties", {})) | 243 build_properties.update(result.json.output.get("properties", {})) |
| 245 # pre-commit suite step | 244 # pre-commit suite step |
| 246 api.step("pre-commit suite", | 245 api.step("pre-commit suite", |
| 247 ['ctest', '--timeout', '120', '-VV', '-S', api.path[ | 246 ['ctest', '--timeout', '120', '-VV', '-S', api.path[ |
| 248 "checkout"].join("suite", "runsuite.cmake")], | 247 "checkout"].join("suite", "runsuite.cmake")], |
| 249 cwd=api.infra_paths['slave_build'], | 248 cwd=api.path["slave_build"], |
| 250 ok_ret="all") | 249 ok_ret="all") |
| 251 | 250 |
| 252 | 251 |
| 253 def linux_cr_builder_steps(api): | 252 def linux_cr_builder_steps(api): |
| 254 build_properties = api.properties.legacy() | 253 build_properties = api.properties.legacy() |
| 255 # update scripts step; implicitly run by recipe engine. | 254 # update scripts step; implicitly run by recipe engine. |
| 256 # bot_update step | 255 # bot_update step |
| 257 src_cfg = api.gclient.make_config(GIT_MODE=True) | 256 src_cfg = api.gclient.make_config(GIT_MODE=True) |
| 258 soln = src_cfg.solutions.add() | 257 soln = src_cfg.solutions.add() |
| 259 soln.name = "src" | 258 soln.name = "src" |
| (...skipping 16 matching lines...) Expand all Loading... |
| 276 build_properties.update(result.json.output.get("properties", {})) | 275 build_properties.update(result.json.output.get("properties", {})) |
| 277 # gclient revert step; made unnecessary by bot_update | 276 # gclient revert step; made unnecessary by bot_update |
| 278 # gclient update step; made unnecessary by bot_update | 277 # gclient update step; made unnecessary by bot_update |
| 279 # gclient runhooks wrapper step | 278 # gclient runhooks wrapper step |
| 280 env = {'CHROMIUM_GYP_SYNTAX_CHECK': '1', | 279 env = {'CHROMIUM_GYP_SYNTAX_CHECK': '1', |
| 281 'GYP_GENERATORS': 'ninja', | 280 'GYP_GENERATORS': 'ninja', |
| 282 'DEPOT_TOOLS_UPDATE': '0', | 281 'DEPOT_TOOLS_UPDATE': '0', |
| 283 'GYP_DEFINES': 'build_for_tool=drmemory component=shared_library', | 282 'GYP_DEFINES': 'build_for_tool=drmemory component=shared_library', |
| 284 'LANDMINES_VERBOSE': '1'} | 283 'LANDMINES_VERBOSE': '1'} |
| 285 api.python("gclient runhooks wrapper", | 284 api.python("gclient runhooks wrapper", |
| 286 api.infra_paths['build'].join("scripts", "slave", | 285 api.path["build"].join("scripts", "slave", |
| 287 "runhooks_wrapper.py"), | 286 "runhooks_wrapper.py"), |
| 288 env=env) | 287 env=env) |
| 289 # cleanup_temp step | 288 # cleanup_temp step |
| 290 api.chromium.cleanup_temp() | 289 api.chromium.cleanup_temp() |
| 291 # compile.py step | 290 # compile.py step |
| 292 args = ['--target', 'Release', '--build-tool=ninja', '--compiler=goma', | 291 args = ['--target', 'Release', '--build-tool=ninja', '--compiler=goma', |
| 293 'content_shell', 'base_unittests', 'browser_tests', | 292 'content_shell', 'base_unittests', 'browser_tests', |
| 294 'crypto_unittests', 'ipc_tests', 'media_unittests', | 293 'crypto_unittests', 'ipc_tests', 'media_unittests', |
| 295 'net_unittests', 'printing_unittests', 'remoting_unittests', | 294 'net_unittests', 'printing_unittests', 'remoting_unittests', |
| 296 'sql_unittests', 'unit_tests', 'url_unittests'] | 295 'sql_unittests', 'unit_tests', 'url_unittests'] |
| 297 if 'clobber' in api.properties: | 296 if 'clobber' in api.properties: |
| 298 args.append("--clobber") | 297 args.append("--clobber") |
| 299 api.python("compile", | 298 api.python("compile", |
| 300 api.infra_paths['build'].join("scripts", "slave", "compile.py"), | 299 api.path["build"].join("scripts", "slave", "compile.py"), |
| 301 args=args) | 300 args=args) |
| 302 | 301 |
| 303 | 302 |
| 304 def mac_builder_DR_steps(api): | 303 def mac_builder_DR_steps(api): |
| 305 build_properties = api.properties.legacy() | 304 build_properties = api.properties.legacy() |
| 306 # checkout DynamiRIO step | 305 # checkout DynamiRIO step |
| 307 src_cfg = api.gclient.make_config(GIT_MODE=True) | 306 src_cfg = api.gclient.make_config(GIT_MODE=True) |
| 308 soln = src_cfg.solutions.add() | 307 soln = src_cfg.solutions.add() |
| 309 soln.name = "dynamorio" | 308 soln.name = "dynamorio" |
| 310 soln.url = "https://github.com/DynamoRIO/dynamorio.git" | 309 soln.url = "https://github.com/DynamoRIO/dynamorio.git" |
| (...skipping 23 matching lines...) Expand all Loading... |
| 334 "https://github.com/DynamoRIO/dynamorio.git", | 333 "https://github.com/DynamoRIO/dynamorio.git", |
| 335 "tools/buildbot": | 334 "tools/buildbot": |
| 336 "https://github.com/DynamoRIO/buildbot.git"} | 335 "https://github.com/DynamoRIO/buildbot.git"} |
| 337 api.gclient.c = src_cfg | 336 api.gclient.c = src_cfg |
| 338 result = api.bot_update.ensure_checkout(force=True) | 337 result = api.bot_update.ensure_checkout(force=True) |
| 339 build_properties.update(result.json.output.get("properties", {})) | 338 build_properties.update(result.json.output.get("properties", {})) |
| 340 # clear tools directory step; null converted | 339 # clear tools directory step; null converted |
| 341 # update tools step; null converted | 340 # update tools step; null converted |
| 342 # unpack tools step; generic ShellCommand converted | 341 # unpack tools step; generic ShellCommand converted |
| 343 api.step("unpack tools", | 342 api.step("unpack tools", |
| 344 [api.infra_paths['slave_build'].join('tools', 'buildbot', 'bot_tool
s', | 343 [api.path["slave_build"].join('tools', 'buildbot', 'bot_tools', |
| 345 'unpack.bat')], | 344 'unpack.bat')], |
| 346 env={}, | 345 env={}, |
| 347 cwd=api.infra_paths[ | 346 cwd=api.path[ |
| 348 "slave_build"].join('tools', 'buildbot', 'bot_tools')) | 347 "slave_build"].join('tools', 'buildbot', 'bot_tools')) |
| 349 # windows Dr. Memory ctest step | 348 # windows Dr. Memory ctest step |
| 350 api.step("Dr. Memory ctest", | 349 api.step("Dr. Memory ctest", |
| 351 [api.infra_paths['build'].join("scripts", "slave", "drmemory", | 350 [api.path["build"].join("scripts", "slave", "drmemory", |
| 352 "build_env.bat"), 'ctest', '--timeout', | 351 "build_env.bat"), 'ctest', '--timeout', |
| 353 '60', '-VV', '-S', | 352 '60', '-VV', '-S', |
| 354 str(api.path["checkout"].join("tests", "runsuite.cmake")) + | 353 str(api.path["checkout"].join("tests", "runsuite.cmake")) + |
| 355 ",drmemory_only;long;build=" + | 354 ",drmemory_only;long;build=" + |
| 356 str(build_properties["buildnumber"])]) | 355 str(build_properties["buildnumber"])]) |
| 357 # Checkout TSan tests step | 356 # Checkout TSan tests step |
| 358 api.step("Checkout TSan tests", | 357 api.step("Checkout TSan tests", |
| 359 ['svn', 'checkout', '--force', | 358 ['svn', 'checkout', '--force', |
| 360 'http://data-race-test.googlecode.com/svn/trunk/', | 359 'http://data-race-test.googlecode.com/svn/trunk/', |
| 361 api.infra_paths['slave_build'].join("tsan")]) | 360 api.path["slave_build"].join("tsan")]) |
| 362 # Build TSan tests step | 361 # Build TSan tests step |
| 363 api.step("Build TSan Tests", | 362 api.step("Build TSan Tests", |
| 364 ['E:\\b\\build\\scripts\\slave\\drmemory\\build_env.bat', 'make', | 363 ['E:\\b\\build\\scripts\\slave\\drmemory\\build_env.bat', 'make', |
| 365 '-C', api.infra_paths['slave_build'].join("tsan", "unittest")], | 364 '-C', api.path["slave_build"].join("tsan", "unittest")], |
| 366 env={"BOTTOOLS": api.infra_paths['slave_build'].join("tools", "buil
dbot", | 365 env={"BOTTOOLS": api.path["slave_build"].join("tools", "buildbot", |
| 367 "bot_tools"), | 366 "bot_tools"), |
| 368 "CYGWIN": "nodosfilewarning"}) | 367 "CYGWIN": "nodosfilewarning"}) |
| 369 # Dr. Memory TSan test step | 368 # Dr. Memory TSan test step |
| 370 api.step( | 369 api.step( |
| 371 "dbg full TSan tests", | 370 "dbg full TSan tests", |
| 372 [api.infra_paths['build'].join("scripts", "slave", "drmemory", | 371 [api.path["build"].join("scripts", "slave", "drmemory", |
| 373 "build_env.bat"), | 372 "build_env.bat"), |
| 374 'build_drmemory-dbg-32\\bin\\drmemory', '-dr_ops', | 373 'build_drmemory-dbg-32\\bin\\drmemory', '-dr_ops', |
| 375 '-msgbox_mask 0 -stderr_mask 15', '-results_to_stderr', '-batch', | 374 '-msgbox_mask 0 -stderr_mask 15', '-results_to_stderr', '-batch', |
| 376 '-suppress', api.path["checkout"].join( | 375 '-suppress', api.path["checkout"].join( |
| 377 "tests", "app_suite", "default-suppressions.txt"), "--", | 376 "tests", "app_suite", "default-suppressions.txt"), "--", |
| 378 api.infra_paths['slave_build'].join("tsan", 'unittest', 'bin', | 377 api.path["slave_build"].join("tsan", 'unittest', 'bin', |
| 379 'racecheck_unittest-windows-x86-O0.exe'), | 378 'racecheck_unittest-windows-x86-O0.exe'), |
| 380 '--gtest_filter=' | 379 '--gtest_filter=' |
| 381 '-PositiveTests.FreeVsRead:NegativeTests.WaitForMultiple*', | 380 '-PositiveTests.FreeVsRead:NegativeTests.WaitForMultiple*', |
| 382 '-147'], | 381 '-147'], |
| 383 env={"BOTTOOLS": api.infra_paths['slave_build'].join("tools", "buildbot"
, | 382 env={"BOTTOOLS": api.path["slave_build"].join("tools", "buildbot", |
| 384 "bot_tools")}) | 383 "bot_tools")}) |
| 385 # Dr. Memory TSan test step | 384 # Dr. Memory TSan test step |
| 386 api.step( | 385 api.step( |
| 387 "dbg light TSan tests", | 386 "dbg light TSan tests", |
| 388 [api.infra_paths['build'].join("scripts", "slave", "drmemory", | 387 [api.path["build"].join("scripts", "slave", "drmemory", |
| 389 "build_env.bat"), | 388 "build_env.bat"), |
| 390 'build_drmemory-dbg-32\\bin\\drmemory', '-dr_ops', | 389 'build_drmemory-dbg-32\\bin\\drmemory', '-dr_ops', |
| 391 '-msgbox_mask 0 -stderr_mask 15', '-results_to_stderr', '-batch', | 390 '-msgbox_mask 0 -stderr_mask 15', '-results_to_stderr', '-batch', |
| 392 '-suppress', api.path["checkout"].join( | 391 '-suppress', api.path["checkout"].join( |
| 393 "tests", "app_suite", "default-suppressions.txt"), "-light", "--", | 392 "tests", "app_suite", "default-suppressions.txt"), "-light", "--", |
| 394 api.infra_paths['slave_build'].join("tsan", 'unittest', 'bin', | 393 api.path["slave_build"].join("tsan", 'unittest', 'bin', |
| 395 'racecheck_unittest-windows-x86-O0.exe'), | 394 'racecheck_unittest-windows-x86-O0.exe'), |
| 396 '--gtest_filter=' | 395 '--gtest_filter=' |
| 397 '-PositiveTests.FreeVsRead:NegativeTests.WaitForMultiple*', | 396 '-PositiveTests.FreeVsRead:NegativeTests.WaitForMultiple*', |
| 398 '-147'], | 397 '-147'], |
| 399 env={"BOTTOOLS": api.infra_paths['slave_build'].join("tools", "buildbot"
, | 398 env={"BOTTOOLS": api.path["slave_build"].join("tools", "buildbot", |
| 400 "bot_tools")}) | 399 "bot_tools")}) |
| 401 # Dr. Memory TSan test step | 400 # Dr. Memory TSan test step |
| 402 api.step( | 401 api.step( |
| 403 "rel full TSan tests", | 402 "rel full TSan tests", |
| 404 [api.infra_paths['build'].join("scripts", "slave", "drmemory", | 403 [api.path["build"].join("scripts", "slave", "drmemory", |
| 405 "build_env.bat"), | 404 "build_env.bat"), |
| 406 'build_drmemory-rel-32\\bin\\drmemory', '-dr_ops', | 405 'build_drmemory-rel-32\\bin\\drmemory', '-dr_ops', |
| 407 '-msgbox_mask 0 -stderr_mask 15', '-results_to_stderr', '-batch', | 406 '-msgbox_mask 0 -stderr_mask 15', '-results_to_stderr', '-batch', |
| 408 '-suppress', api.path["checkout"].join( | 407 '-suppress', api.path["checkout"].join( |
| 409 "tests", "app_suite", "default-suppressions.txt"), "--", | 408 "tests", "app_suite", "default-suppressions.txt"), "--", |
| 410 api.infra_paths['slave_build'].join("tsan", 'unittest', 'bin', | 409 api.path["slave_build"].join("tsan", 'unittest', 'bin', |
| 411 'racecheck_unittest-windows-x86-O0.exe'), | 410 'racecheck_unittest-windows-x86-O0.exe'), |
| 412 '--gtest_filter=' | 411 '--gtest_filter=' |
| 413 '-PositiveTests.FreeVsRead:NegativeTests.WaitForMultiple*', | 412 '-PositiveTests.FreeVsRead:NegativeTests.WaitForMultiple*', |
| 414 '-147'], | 413 '-147'], |
| 415 env={"BOTTOOLS": api.infra_paths['slave_build'].join("tools", "buildbot"
, | 414 env={"BOTTOOLS": api.path["slave_build"].join("tools", "buildbot", |
| 416 "bot_tools")}) | 415 "bot_tools")}) |
| 417 # Dr. Memory TSan test step | 416 # Dr. Memory TSan test step |
| 418 api.step( | 417 api.step( |
| 419 "rel light TSan tests", | 418 "rel light TSan tests", |
| 420 [api.infra_paths['build'].join("scripts", "slave", "drmemory", | 419 [api.path["build"].join("scripts", "slave", "drmemory", |
| 421 "build_env.bat"), | 420 "build_env.bat"), |
| 422 'build_drmemory-rel-32\\bin\\drmemory', '-dr_ops', | 421 'build_drmemory-rel-32\\bin\\drmemory', '-dr_ops', |
| 423 '-msgbox_mask 0 -stderr_mask 15', '-results_to_stderr', '-batch', | 422 '-msgbox_mask 0 -stderr_mask 15', '-results_to_stderr', '-batch', |
| 424 '-suppress', api.path["checkout"].join( | 423 '-suppress', api.path["checkout"].join( |
| 425 "tests", "app_suite", "default-suppressions.txt"), "-light", "--", | 424 "tests", "app_suite", "default-suppressions.txt"), "-light", "--", |
| 426 api.infra_paths['slave_build'].join("tsan", 'unittest', 'bin', | 425 api.path["slave_build"].join("tsan", 'unittest', 'bin', |
| 427 'racecheck_unittest-windows-x86-O0.exe'), | 426 'racecheck_unittest-windows-x86-O0.exe'), |
| 428 '--gtest_filter=' | 427 '--gtest_filter=' |
| 429 '-PositiveTests.FreeVsRead:NegativeTests.WaitForMultiple*', | 428 '-PositiveTests.FreeVsRead:NegativeTests.WaitForMultiple*', |
| 430 '-147'], | 429 '-147'], |
| 431 env={"BOTTOOLS": api.infra_paths['slave_build'].join("tools", "buildbot"
, | 430 env={"BOTTOOLS": api.path["slave_build"].join("tools", "buildbot", |
| 432 "bot_tools")}) | 431 "bot_tools")}) |
| 433 # Dr. Memory TSan test step | 432 # Dr. Memory TSan test step |
| 434 api.step( | 433 api.step( |
| 435 "dbg full nosyms TSan tests", | 434 "dbg full nosyms TSan tests", |
| 436 [api.infra_paths['build'].join("scripts", "slave", "drmemory", | 435 [api.path["build"].join("scripts", "slave", "drmemory", |
| 437 "build_env.bat"), | 436 "build_env.bat"), |
| 438 'build_drmemory-dbg-32\\bin\\drmemory', '-dr_ops', | 437 'build_drmemory-dbg-32\\bin\\drmemory', '-dr_ops', |
| 439 '-msgbox_mask 0 -stderr_mask 15', '-results_to_stderr', '-batch', | 438 '-msgbox_mask 0 -stderr_mask 15', '-results_to_stderr', '-batch', |
| 440 '-suppress', api.path["checkout"].join( | 439 '-suppress', api.path["checkout"].join( |
| 441 "tests", "app_suite", "default-suppressions.txt"), "--", | 440 "tests", "app_suite", "default-suppressions.txt"), "--", |
| 442 api.infra_paths['slave_build'].join("tsan", 'unittest', 'bin', | 441 api.path["slave_build"].join("tsan", 'unittest', 'bin', |
| 443 'racecheck_unittest-windows-x86-O0.exe'), | 442 'racecheck_unittest-windows-x86-O0.exe'), |
| 444 '--gtest_filter=' | 443 '--gtest_filter=' |
| 445 '-PositiveTests.FreeVsRead:NegativeTests.WaitForMultiple*', | 444 '-PositiveTests.FreeVsRead:NegativeTests.WaitForMultiple*', |
| 446 '-147'], | 445 '-147'], |
| 447 env={"BOTTOOLS": api.infra_paths['slave_build'].join("tools", "buildbot"
, | 446 env={"BOTTOOLS": api.path["slave_build"].join("tools", "buildbot", |
| 448 "bot_tools")}) | 447 "bot_tools")}) |
| 449 # Prepare to pack test results step; null converted | 448 # Prepare to pack test results step; null converted |
| 450 # Pack test results step | 449 # Pack test results step |
| 451 api.step("Pack test results", | 450 api.step("Pack test results", |
| 452 [api.infra_paths['build'].join("scripts", "slave", "drmemory", | 451 [api.path["build"].join("scripts", "slave", "drmemory", |
| 453 "build_env.bat"), '7z', 'a', '-xr!*.pdb', | 452 "build_env.bat"), '7z', 'a', '-xr!*.pdb', |
| 454 "testlogs_r" + build_properties["got_revision"] + "_b" + | 453 "testlogs_r" + build_properties["got_revision"] + "_b" + |
| 455 str(build_properties["buildnumber"]) + ".7z", | 454 str(build_properties["buildnumber"]) + ".7z", |
| 456 'build_drmemory-dbg-32/logs', | 455 'build_drmemory-dbg-32/logs', |
| 457 'build_drmemory-dbg-32/Testing/Temporary', | 456 'build_drmemory-dbg-32/Testing/Temporary', |
| 458 'build_drmemory-rel-32/logs', | 457 'build_drmemory-rel-32/logs', |
| 459 'build_drmemory-rel-32/Testing/Temporary', | 458 'build_drmemory-rel-32/Testing/Temporary', |
| 460 'build_drmemory-dbg-64/logs', | 459 'build_drmemory-dbg-64/logs', |
| 461 'build_drmemory-dbg-64/Testing/Temporary', | 460 'build_drmemory-dbg-64/Testing/Temporary', |
| 462 'build_drmemory-rel-64/logs', | 461 'build_drmemory-rel-64/logs', |
| 463 'build_drmemory-rel-64/Testing/Temporary', 'xmlresults'], | 462 'build_drmemory-rel-64/Testing/Temporary', 'xmlresults'], |
| 464 env={"BOTTOOLS": api.infra_paths['slave_build'].join("tools", "buil
dbot", | 463 env={"BOTTOOLS": api.path["slave_build"].join("tools", "buildbot", |
| 465 "bot_tools")}) | 464 "bot_tools")}) |
| 466 # upload drmemory test logs step | 465 # upload drmemory test logs step |
| 467 api.gsutil.upload("testlogs_r" + build_properties["got_revision"] + "_b" + | 466 api.gsutil.upload("testlogs_r" + build_properties["got_revision"] + "_b" + |
| 468 str(api.properties[ | 467 str(api.properties[ |
| 469 "buildnumber"]) + ".7z", "chromium-drmemory-builds", | 468 "buildnumber"]) + ".7z", "chromium-drmemory-builds", |
| 470 "testlogs/from_%s" % api.properties["buildername"]) | 469 "testlogs/from_%s" % api.properties["buildername"]) |
| 471 | 470 |
| 472 | 471 |
| 473 def mac_mavericks_x64_drm_steps(api): | 472 def mac_mavericks_x64_drm_steps(api): |
| 474 build_properties = api.properties.legacy() | 473 build_properties = api.properties.legacy() |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 512 build_properties = api.properties.legacy() | 511 build_properties = api.properties.legacy() |
| 513 # checkout DynamiRIO step | 512 # checkout DynamiRIO step |
| 514 src_cfg = api.gclient.make_config(GIT_MODE=True) | 513 src_cfg = api.gclient.make_config(GIT_MODE=True) |
| 515 soln = src_cfg.solutions.add() | 514 soln = src_cfg.solutions.add() |
| 516 soln.name = "dynamorio" | 515 soln.name = "dynamorio" |
| 517 soln.url = "https://github.com/DynamoRIO/dynamorio.git" | 516 soln.url = "https://github.com/DynamoRIO/dynamorio.git" |
| 518 api.gclient.c = src_cfg | 517 api.gclient.c = src_cfg |
| 519 result = api.bot_update.ensure_checkout(force=True) | 518 result = api.bot_update.ensure_checkout(force=True) |
| 520 build_properties.update(result.json.output.get("properties", {})) | 519 build_properties.update(result.json.output.get("properties", {})) |
| 521 # Make the build directory step | 520 # Make the build directory step |
| 522 api.file.makedirs("makedirs", api.infra_paths['slave_build'].join("dynamorio
")) | 521 api.file.makedirs("makedirs", api.path["slave_build"].join("dynamorio")) |
| 523 api.file.makedirs("makedirs", api.infra_paths['slave_build'].join("dynamorio
", | 522 api.file.makedirs("makedirs", api.path["slave_build"].join("dynamorio", |
| 524 "build")) | 523 "build")) |
| 525 # Configure release DynamoRIO step; generic ShellCommand converted | 524 # Configure release DynamoRIO step; generic ShellCommand converted |
| 526 api.step("Configure release DynamoRIO", | 525 api.step("Configure release DynamoRIO", |
| 527 [ | 526 [ |
| 528 'cmake', '..', '-DDEBUG=OFF' | 527 'cmake', '..', '-DDEBUG=OFF' |
| 529 ], | 528 ], |
| 530 env={}, | 529 env={}, |
| 531 cwd=api.infra_paths['slave_build'].join('dynamorio', 'build')) | 530 cwd=api.path["slave_build"].join('dynamorio', 'build')) |
| 532 # Compile release DynamoRIO step; generic ShellCommand converted | 531 # Compile release DynamoRIO step; generic ShellCommand converted |
| 533 api.step("Compile release DynamoRIO", | 532 api.step("Compile release DynamoRIO", |
| 534 [ | 533 [ |
| 535 'make', '-j5' | 534 'make', '-j5' |
| 536 ], | 535 ], |
| 537 env={}, | 536 env={}, |
| 538 cwd=api.infra_paths['slave_build'].join('dynamorio', 'build')) | 537 cwd=api.path["slave_build"].join('dynamorio', 'build')) |
| 539 # don't follow python step; generic ShellCommand converted | 538 # don't follow python step; generic ShellCommand converted |
| 540 api.step("don't follow python", | 539 api.step("don't follow python", |
| 541 ['bin64/drconfig', '-reg', 'python', '-norun', '-v'], | 540 ['bin64/drconfig', '-reg', 'python', '-norun', '-v'], |
| 542 env={}, | 541 env={}, |
| 543 cwd=api.infra_paths['slave_build'].join('dynamorio', 'build')) | 542 cwd=api.path["slave_build"].join('dynamorio', 'build')) |
| 544 # drmemory test step | 543 # drmemory test step |
| 545 api.step("content_shell", | 544 api.step("content_shell", |
| 546 ['xvfb-run', '-a', | 545 ['xvfb-run', '-a', |
| 547 api.path["checkout"].join("build", "bin64", "drrun"), | 546 api.path["checkout"].join("build", "bin64", "drrun"), |
| 548 '-stderr_mask', '12', '--', | 547 '-stderr_mask', '12', '--', |
| 549 '../../linux-cr-builder/build/src/out/Release/content_shell', | 548 '../../linux-cr-builder/build/src/out/Release/content_shell', |
| 550 '--run-layout-test', 'file:///home/chrome-bot/bb.html'], | 549 '--run-layout-test', 'file:///home/chrome-bot/bb.html'], |
| 551 env={'CHROME_DEVEL_SANDBOX': '/opt/chromium/chrome_sandbox'}, | 550 env={'CHROME_DEVEL_SANDBOX': '/opt/chromium/chrome_sandbox'}, |
| 552 cwd=api.path["checkout"]) | 551 cwd=api.path["checkout"]) |
| 553 # drmemory test step | 552 # drmemory test step |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 646 '../../linux-cr-builder/build/src/out/Release/url_unittests'], | 645 '../../linux-cr-builder/build/src/out/Release/url_unittests'], |
| 647 env={'CHROME_DEVEL_SANDBOX': '/opt/chromium/chrome_sandbox'}, | 646 env={'CHROME_DEVEL_SANDBOX': '/opt/chromium/chrome_sandbox'}, |
| 648 cwd=api.path["checkout"]) | 647 cwd=api.path["checkout"]) |
| 649 | 648 |
| 650 | 649 |
| 651 def win8_cr_builder_steps(api): | 650 def win8_cr_builder_steps(api): |
| 652 build_properties = api.properties.legacy() | 651 build_properties = api.properties.legacy() |
| 653 # svnkill step; not necessary in recipes | 652 # svnkill step; not necessary in recipes |
| 654 # update scripts step; implicitly run by recipe engine. | 653 # update scripts step; implicitly run by recipe engine. |
| 655 # taskkill step | 654 # taskkill step |
| 656 api.python("taskkill", api.infra_paths['build'].join("scripts", "slave", | 655 api.python("taskkill", api.path["build"].join("scripts", "slave", |
| 657 "kill_processes.py")) | 656 "kill_processes.py")) |
| 658 # bot_update step | 657 # bot_update step |
| 659 src_cfg = api.gclient.make_config(GIT_MODE=True) | 658 src_cfg = api.gclient.make_config(GIT_MODE=True) |
| 660 soln = src_cfg.solutions.add() | 659 soln = src_cfg.solutions.add() |
| 661 soln.name = "src" | 660 soln.name = "src" |
| 662 soln.url = "https://chromium.googlesource.com/chromium/src.git" | 661 soln.url = "https://chromium.googlesource.com/chromium/src.git" |
| 663 soln.custom_deps = {'src/third_party/WebKit/LayoutTests': None} | 662 soln.custom_deps = {'src/third_party/WebKit/LayoutTests': None} |
| 664 soln.custom_vars = {'webkit_trunk': 'http://src.chromium.org/blink/trunk', | 663 soln.custom_vars = {'webkit_trunk': 'http://src.chromium.org/blink/trunk', |
| 665 'googlecode_url': 'http://%s.googlecode.com/svn', | 664 'googlecode_url': 'http://%s.googlecode.com/svn', |
| 666 'nacl_trunk': | 665 'nacl_trunk': |
| (...skipping 10 matching lines...) Expand all Loading... |
| 677 result = api.bot_update.ensure_checkout(force=True) | 676 result = api.bot_update.ensure_checkout(force=True) |
| 678 build_properties.update(result.json.output.get("properties", {})) | 677 build_properties.update(result.json.output.get("properties", {})) |
| 679 # gclient revert step; made unnecessary by bot_update | 678 # gclient revert step; made unnecessary by bot_update |
| 680 # gclient update step; made unnecessary by bot_update | 679 # gclient update step; made unnecessary by bot_update |
| 681 # gclient runhooks wrapper step | 680 # gclient runhooks wrapper step |
| 682 env = {'CHROMIUM_GYP_SYNTAX_CHECK': '1', | 681 env = {'CHROMIUM_GYP_SYNTAX_CHECK': '1', |
| 683 'LANDMINES_VERBOSE': '1', | 682 'LANDMINES_VERBOSE': '1', |
| 684 'DEPOT_TOOLS_UPDATE': '0', | 683 'DEPOT_TOOLS_UPDATE': '0', |
| 685 'GYP_DEFINES': 'build_for_tool=drmemory component=shared_library'} | 684 'GYP_DEFINES': 'build_for_tool=drmemory component=shared_library'} |
| 686 api.python("gclient runhooks wrapper", | 685 api.python("gclient runhooks wrapper", |
| 687 api.infra_paths['build'].join("scripts", "slave", | 686 api.path["build"].join("scripts", "slave", |
| 688 "runhooks_wrapper.py"), | 687 "runhooks_wrapper.py"), |
| 689 env=env) | 688 env=env) |
| 690 # cleanup_temp step | 689 # cleanup_temp step |
| 691 api.chromium.cleanup_temp() | 690 api.chromium.cleanup_temp() |
| 692 # compile.py step | 691 # compile.py step |
| 693 args = ['--solution', 'all.sln', '--project', | 692 args = ['--solution', 'all.sln', '--project', |
| 694 'chromium_builder_dbg_drmemory_win', '--target', 'Debug'] | 693 'chromium_builder_dbg_drmemory_win', '--target', 'Debug'] |
| 695 if 'clobber' in api.properties: | 694 if 'clobber' in api.properties: |
| 696 args.append("--clobber") | 695 args.append("--clobber") |
| 697 api.step("compile", ["python_slave", api.infra_paths['build'].join( | 696 api.step("compile", ["python_slave", api.path["build"].join( |
| 698 "scripts", "slave", "compile.py")] + args) | 697 "scripts", "slave", "compile.py")] + args) |
| 699 | 698 |
| 700 | 699 |
| 701 def win8_cr_steps(api): | 700 def win8_cr_steps(api): |
| 702 build_properties = api.properties.legacy() | 701 build_properties = api.properties.legacy() |
| 703 # Download build step | 702 # Download build step |
| 704 api.gsutil.download("chromium-drmemory-builds", | 703 api.gsutil.download("chromium-drmemory-builds", |
| 705 "drmemory-windows-latest-sfx.exe", | 704 "drmemory-windows-latest-sfx.exe", |
| 706 "drm-sfx.exe", | 705 "drm-sfx.exe", |
| 707 cwd=api.infra_paths['slave_build']) | 706 cwd=api.path["slave_build"]) |
| 708 # Unpack the build step; generic ShellCommand converted | 707 # Unpack the build step; generic ShellCommand converted |
| 709 api.step("Unpack the build", | 708 api.step("Unpack the build", |
| 710 [ | 709 [ |
| 711 'drm-sfx', '-ounpacked', '-y' | 710 'drm-sfx', '-ounpacked', '-y' |
| 712 ], | 711 ], |
| 713 env={}, | 712 env={}, |
| 714 cwd=api.infra_paths['slave_build']) | 713 cwd=api.path["slave_build"]) |
| 715 # Dr. Memory get revision step | 714 # Dr. Memory get revision step |
| 716 step_result = api.step("Get the revision number", | 715 step_result = api.step("Get the revision number", |
| 717 [ | 716 [ |
| 718 'unpacked\\bin\\drmemory', '-version' | 717 'unpacked\\bin\\drmemory', '-version' |
| 719 ], | 718 ], |
| 720 stdout=api.raw_io.output()) | 719 stdout=api.raw_io.output()) |
| 721 build_properties["got_revision"] = step_result.stdout.split()[3].\ | 720 build_properties["got_revision"] = step_result.stdout.split()[3].\ |
| 722 split(".")[2] | 721 split(".")[2] |
| 723 # Chromium 'url' tests step; generic ShellCommand converted | 722 # Chromium 'url' tests step; generic ShellCommand converted |
| 724 api.step( | 723 api.step( |
| 725 "Chromium 'url' tests", | 724 "Chromium 'url' tests", |
| 726 ['..\\..\\win8-cr-builder\\build\\src\\tools\\valgrind\\chrome_tests.bat', | 725 ['..\\..\\win8-cr-builder\\build\\src\\tools\\valgrind\\chrome_tests.bat', |
| 727 '-t', 'url', '--tool', 'drmemory_light', '--keep_logs'], | 726 '-t', 'url', '--tool', 'drmemory_light', '--keep_logs'], |
| 728 env={'DRMEMORY_COMMAND': 'unpacked/bin/drmemory.exe'}, | 727 env={'DRMEMORY_COMMAND': 'unpacked/bin/drmemory.exe'}, |
| 729 cwd=api.infra_paths['slave_build']) | 728 cwd=api.path["slave_build"]) |
| 730 # Chromium 'printing' tests step; generic ShellCommand converted | 729 # Chromium 'printing' tests step; generic ShellCommand converted |
| 731 api.step( | 730 api.step( |
| 732 "Chromium 'printing' tests", | 731 "Chromium 'printing' tests", |
| 733 ['..\\..\\win8-cr-builder\\build\\src\\tools\\valgrind\\chrome_tests.bat', | 732 ['..\\..\\win8-cr-builder\\build\\src\\tools\\valgrind\\chrome_tests.bat', |
| 734 '-t', 'printing', '--tool', 'drmemory_light', '--keep_logs'], | 733 '-t', 'printing', '--tool', 'drmemory_light', '--keep_logs'], |
| 735 env={'DRMEMORY_COMMAND': 'unpacked/bin/drmemory.exe'}, | 734 env={'DRMEMORY_COMMAND': 'unpacked/bin/drmemory.exe'}, |
| 736 cwd=api.infra_paths['slave_build']) | 735 cwd=api.path["slave_build"]) |
| 737 # Chromium 'media' tests step; generic ShellCommand converted | 736 # Chromium 'media' tests step; generic ShellCommand converted |
| 738 api.step( | 737 api.step( |
| 739 "Chromium 'media' tests", | 738 "Chromium 'media' tests", |
| 740 ['..\\..\\win8-cr-builder\\build\\src\\tools\\valgrind\\chrome_tests.bat', | 739 ['..\\..\\win8-cr-builder\\build\\src\\tools\\valgrind\\chrome_tests.bat', |
| 741 '-t', 'media', '--tool', 'drmemory_light', '--keep_logs'], | 740 '-t', 'media', '--tool', 'drmemory_light', '--keep_logs'], |
| 742 env={'DRMEMORY_COMMAND': 'unpacked/bin/drmemory.exe'}, | 741 env={'DRMEMORY_COMMAND': 'unpacked/bin/drmemory.exe'}, |
| 743 cwd=api.infra_paths['slave_build']) | 742 cwd=api.path["slave_build"]) |
| 744 # Chromium 'sql' tests step; generic ShellCommand converted | 743 # Chromium 'sql' tests step; generic ShellCommand converted |
| 745 api.step( | 744 api.step( |
| 746 "Chromium 'sql' tests", | 745 "Chromium 'sql' tests", |
| 747 ['..\\..\\win8-cr-builder\\build\\src\\tools\\valgrind\\chrome_tests.bat', | 746 ['..\\..\\win8-cr-builder\\build\\src\\tools\\valgrind\\chrome_tests.bat', |
| 748 '-t', 'sql', '--tool', 'drmemory_light', '--keep_logs'], | 747 '-t', 'sql', '--tool', 'drmemory_light', '--keep_logs'], |
| 749 env={'DRMEMORY_COMMAND': 'unpacked/bin/drmemory.exe'}, | 748 env={'DRMEMORY_COMMAND': 'unpacked/bin/drmemory.exe'}, |
| 750 cwd=api.infra_paths['slave_build']) | 749 cwd=api.path["slave_build"]) |
| 751 # Chromium 'crypto_unittests' tests step; generic ShellCommand converted | 750 # Chromium 'crypto_unittests' tests step; generic ShellCommand converted |
| 752 api.step( | 751 api.step( |
| 753 "Chromium 'crypto_unittests' tests", | 752 "Chromium 'crypto_unittests' tests", |
| 754 ['..\\..\\win8-cr-builder\\build\\src\\tools\\valgrind\\chrome_tests.bat', | 753 ['..\\..\\win8-cr-builder\\build\\src\\tools\\valgrind\\chrome_tests.bat', |
| 755 '-t', 'crypto_unittests', '--tool', 'drmemory_light', '--keep_logs'], | 754 '-t', 'crypto_unittests', '--tool', 'drmemory_light', '--keep_logs'], |
| 756 env={'DRMEMORY_COMMAND': 'unpacked/bin/drmemory.exe'}, | 755 env={'DRMEMORY_COMMAND': 'unpacked/bin/drmemory.exe'}, |
| 757 cwd=api.infra_paths['slave_build']) | 756 cwd=api.path["slave_build"]) |
| 758 # Chromium 'remoting' tests step; generic ShellCommand converted | 757 # Chromium 'remoting' tests step; generic ShellCommand converted |
| 759 api.step( | 758 api.step( |
| 760 "Chromium 'remoting' tests", | 759 "Chromium 'remoting' tests", |
| 761 ['..\\..\\win8-cr-builder\\build\\src\\tools\\valgrind\\chrome_tests.bat', | 760 ['..\\..\\win8-cr-builder\\build\\src\\tools\\valgrind\\chrome_tests.bat', |
| 762 '-t', 'remoting', '--tool', 'drmemory_light', '--keep_logs'], | 761 '-t', 'remoting', '--tool', 'drmemory_light', '--keep_logs'], |
| 763 env={'DRMEMORY_COMMAND': 'unpacked/bin/drmemory.exe'}, | 762 env={'DRMEMORY_COMMAND': 'unpacked/bin/drmemory.exe'}, |
| 764 cwd=api.infra_paths['slave_build']) | 763 cwd=api.path["slave_build"]) |
| 765 # Chromium 'ipc_tests' tests step; generic ShellCommand converted | 764 # Chromium 'ipc_tests' tests step; generic ShellCommand converted |
| 766 api.step( | 765 api.step( |
| 767 "Chromium 'ipc_tests' tests", | 766 "Chromium 'ipc_tests' tests", |
| 768 ['..\\..\\win8-cr-builder\\build\\src\\tools\\valgrind\\chrome_tests.bat', | 767 ['..\\..\\win8-cr-builder\\build\\src\\tools\\valgrind\\chrome_tests.bat', |
| 769 '-t', 'ipc_tests', '--tool', 'drmemory_light', '--keep_logs'], | 768 '-t', 'ipc_tests', '--tool', 'drmemory_light', '--keep_logs'], |
| 770 env={'DRMEMORY_COMMAND': 'unpacked/bin/drmemory.exe'}, | 769 env={'DRMEMORY_COMMAND': 'unpacked/bin/drmemory.exe'}, |
| 771 cwd=api.infra_paths['slave_build']) | 770 cwd=api.path["slave_build"]) |
| 772 # Chromium 'base_unittests' tests step; generic ShellCommand converted | 771 # Chromium 'base_unittests' tests step; generic ShellCommand converted |
| 773 api.step( | 772 api.step( |
| 774 "Chromium 'base_unittests' tests", | 773 "Chromium 'base_unittests' tests", |
| 775 ['..\\..\\win8-cr-builder\\build\\src\\tools\\valgrind\\chrome_tests.bat', | 774 ['..\\..\\win8-cr-builder\\build\\src\\tools\\valgrind\\chrome_tests.bat', |
| 776 '-t', 'base_unittests', '--tool', 'drmemory_light', '--keep_logs'], | 775 '-t', 'base_unittests', '--tool', 'drmemory_light', '--keep_logs'], |
| 777 env={'DRMEMORY_COMMAND': 'unpacked/bin/drmemory.exe'}, | 776 env={'DRMEMORY_COMMAND': 'unpacked/bin/drmemory.exe'}, |
| 778 cwd=api.infra_paths['slave_build']) | 777 cwd=api.path["slave_build"]) |
| 779 # Chromium 'net' tests step; generic ShellCommand converted | 778 # Chromium 'net' tests step; generic ShellCommand converted |
| 780 api.step( | 779 api.step( |
| 781 "Chromium 'net' tests", | 780 "Chromium 'net' tests", |
| 782 ['..\\..\\win8-cr-builder\\build\\src\\tools\\valgrind\\chrome_tests.bat', | 781 ['..\\..\\win8-cr-builder\\build\\src\\tools\\valgrind\\chrome_tests.bat', |
| 783 '-t', 'net', '--tool', 'drmemory_light', '--keep_logs'], | 782 '-t', 'net', '--tool', 'drmemory_light', '--keep_logs'], |
| 784 env={'DRMEMORY_COMMAND': 'unpacked/bin/drmemory.exe'}, | 783 env={'DRMEMORY_COMMAND': 'unpacked/bin/drmemory.exe'}, |
| 785 cwd=api.infra_paths['slave_build']) | 784 cwd=api.path["slave_build"]) |
| 786 # Chromium 'unit' tests step; generic ShellCommand converted | 785 # Chromium 'unit' tests step; generic ShellCommand converted |
| 787 api.step( | 786 api.step( |
| 788 "Chromium 'unit' tests", | 787 "Chromium 'unit' tests", |
| 789 ['..\\..\\win8-cr-builder\\build\\src\\tools\\valgrind\\chrome_tests.bat', | 788 ['..\\..\\win8-cr-builder\\build\\src\\tools\\valgrind\\chrome_tests.bat', |
| 790 '-t', 'unit', '--tool', 'drmemory_light', '--keep_logs'], | 789 '-t', 'unit', '--tool', 'drmemory_light', '--keep_logs'], |
| 791 env={'DRMEMORY_COMMAND': 'unpacked/bin/drmemory.exe'}, | 790 env={'DRMEMORY_COMMAND': 'unpacked/bin/drmemory.exe'}, |
| 792 cwd=api.infra_paths['slave_build']) | 791 cwd=api.path["slave_build"]) |
| 793 | 792 |
| 794 | 793 |
| 795 def win7_cr_steps(api): | 794 def win7_cr_steps(api): |
| 796 build_properties = api.properties.legacy() | 795 build_properties = api.properties.legacy() |
| 797 # Download build step | 796 # Download build step |
| 798 api.gsutil.download("chromium-drmemory-builds", | 797 api.gsutil.download("chromium-drmemory-builds", |
| 799 "drmemory-windows-latest-sfx.exe", | 798 "drmemory-windows-latest-sfx.exe", |
| 800 "drm-sfx.exe", | 799 "drm-sfx.exe", |
| 801 cwd=api.infra_paths['slave_build']) | 800 cwd=api.path["slave_build"]) |
| 802 # Unpack the build step; generic ShellCommand converted | 801 # Unpack the build step; generic ShellCommand converted |
| 803 api.step("Unpack the build", | 802 api.step("Unpack the build", |
| 804 [ | 803 [ |
| 805 'drm-sfx', '-ounpacked', '-y' | 804 'drm-sfx', '-ounpacked', '-y' |
| 806 ], | 805 ], |
| 807 env={}, | 806 env={}, |
| 808 cwd=api.infra_paths['slave_build']) | 807 cwd=api.path["slave_build"]) |
| 809 # Dr. Memory get revision step | 808 # Dr. Memory get revision step |
| 810 step_result = api.step("Get the revision number", | 809 step_result = api.step("Get the revision number", |
| 811 [ | 810 [ |
| 812 'unpacked\\bin\\drmemory', '-version' | 811 'unpacked\\bin\\drmemory', '-version' |
| 813 ], | 812 ], |
| 814 stdout=api.raw_io.output()) | 813 stdout=api.raw_io.output()) |
| 815 build_properties["got_revision"] = step_result.stdout.split()[3].\ | 814 build_properties["got_revision"] = step_result.stdout.split()[3].\ |
| 816 split(".")[2] | 815 split(".")[2] |
| 817 # Chromium 'url' tests step; generic ShellCommand converted | 816 # Chromium 'url' tests step; generic ShellCommand converted |
| 818 api.step( | 817 api.step( |
| 819 "Chromium 'url' tests", | 818 "Chromium 'url' tests", |
| 820 ['..\\..\\win7-cr-builder\\build\\src\\tools\\valgrind\\chrome_tests.bat', | 819 ['..\\..\\win7-cr-builder\\build\\src\\tools\\valgrind\\chrome_tests.bat', |
| 821 '-t', 'url', '--tool', 'drmemory_light', '--keep_logs'], | 820 '-t', 'url', '--tool', 'drmemory_light', '--keep_logs'], |
| 822 env={'DRMEMORY_COMMAND': 'unpacked/bin/drmemory.exe'}, | 821 env={'DRMEMORY_COMMAND': 'unpacked/bin/drmemory.exe'}, |
| 823 cwd=api.infra_paths['slave_build']) | 822 cwd=api.path["slave_build"]) |
| 824 # Chromium 'printing' tests step; generic ShellCommand converted | 823 # Chromium 'printing' tests step; generic ShellCommand converted |
| 825 api.step( | 824 api.step( |
| 826 "Chromium 'printing' tests", | 825 "Chromium 'printing' tests", |
| 827 ['..\\..\\win7-cr-builder\\build\\src\\tools\\valgrind\\chrome_tests.bat', | 826 ['..\\..\\win7-cr-builder\\build\\src\\tools\\valgrind\\chrome_tests.bat', |
| 828 '-t', 'printing', '--tool', 'drmemory_light', '--keep_logs'], | 827 '-t', 'printing', '--tool', 'drmemory_light', '--keep_logs'], |
| 829 env={'DRMEMORY_COMMAND': 'unpacked/bin/drmemory.exe'}, | 828 env={'DRMEMORY_COMMAND': 'unpacked/bin/drmemory.exe'}, |
| 830 cwd=api.infra_paths['slave_build']) | 829 cwd=api.path["slave_build"]) |
| 831 # Chromium 'media' tests step; generic ShellCommand converted | 830 # Chromium 'media' tests step; generic ShellCommand converted |
| 832 api.step( | 831 api.step( |
| 833 "Chromium 'media' tests", | 832 "Chromium 'media' tests", |
| 834 ['..\\..\\win7-cr-builder\\build\\src\\tools\\valgrind\\chrome_tests.bat', | 833 ['..\\..\\win7-cr-builder\\build\\src\\tools\\valgrind\\chrome_tests.bat', |
| 835 '-t', 'media', '--tool', 'drmemory_light', '--keep_logs'], | 834 '-t', 'media', '--tool', 'drmemory_light', '--keep_logs'], |
| 836 env={'DRMEMORY_COMMAND': 'unpacked/bin/drmemory.exe'}, | 835 env={'DRMEMORY_COMMAND': 'unpacked/bin/drmemory.exe'}, |
| 837 cwd=api.infra_paths['slave_build']) | 836 cwd=api.path["slave_build"]) |
| 838 # Chromium 'sql' tests step; generic ShellCommand converted | 837 # Chromium 'sql' tests step; generic ShellCommand converted |
| 839 api.step( | 838 api.step( |
| 840 "Chromium 'sql' tests", | 839 "Chromium 'sql' tests", |
| 841 ['..\\..\\win7-cr-builder\\build\\src\\tools\\valgrind\\chrome_tests.bat', | 840 ['..\\..\\win7-cr-builder\\build\\src\\tools\\valgrind\\chrome_tests.bat', |
| 842 '-t', 'sql', '--tool', 'drmemory_light', '--keep_logs'], | 841 '-t', 'sql', '--tool', 'drmemory_light', '--keep_logs'], |
| 843 env={'DRMEMORY_COMMAND': 'unpacked/bin/drmemory.exe'}, | 842 env={'DRMEMORY_COMMAND': 'unpacked/bin/drmemory.exe'}, |
| 844 cwd=api.infra_paths['slave_build']) | 843 cwd=api.path["slave_build"]) |
| 845 # Chromium 'crypto_unittests' tests step; generic ShellCommand converted | 844 # Chromium 'crypto_unittests' tests step; generic ShellCommand converted |
| 846 api.step( | 845 api.step( |
| 847 "Chromium 'crypto_unittests' tests", | 846 "Chromium 'crypto_unittests' tests", |
| 848 ['..\\..\\win7-cr-builder\\build\\src\\tools\\valgrind\\chrome_tests.bat', | 847 ['..\\..\\win7-cr-builder\\build\\src\\tools\\valgrind\\chrome_tests.bat', |
| 849 '-t', 'crypto_unittests', '--tool', 'drmemory_light', '--keep_logs'], | 848 '-t', 'crypto_unittests', '--tool', 'drmemory_light', '--keep_logs'], |
| 850 env={'DRMEMORY_COMMAND': 'unpacked/bin/drmemory.exe'}, | 849 env={'DRMEMORY_COMMAND': 'unpacked/bin/drmemory.exe'}, |
| 851 cwd=api.infra_paths['slave_build']) | 850 cwd=api.path["slave_build"]) |
| 852 # Chromium 'remoting' tests step; generic ShellCommand converted | 851 # Chromium 'remoting' tests step; generic ShellCommand converted |
| 853 api.step( | 852 api.step( |
| 854 "Chromium 'remoting' tests", | 853 "Chromium 'remoting' tests", |
| 855 ['..\\..\\win7-cr-builder\\build\\src\\tools\\valgrind\\chrome_tests.bat', | 854 ['..\\..\\win7-cr-builder\\build\\src\\tools\\valgrind\\chrome_tests.bat', |
| 856 '-t', 'remoting', '--tool', 'drmemory_light', '--keep_logs'], | 855 '-t', 'remoting', '--tool', 'drmemory_light', '--keep_logs'], |
| 857 env={'DRMEMORY_COMMAND': 'unpacked/bin/drmemory.exe'}, | 856 env={'DRMEMORY_COMMAND': 'unpacked/bin/drmemory.exe'}, |
| 858 cwd=api.infra_paths['slave_build']) | 857 cwd=api.path["slave_build"]) |
| 859 # Chromium 'ipc_tests' tests step; generic ShellCommand converted | 858 # Chromium 'ipc_tests' tests step; generic ShellCommand converted |
| 860 api.step( | 859 api.step( |
| 861 "Chromium 'ipc_tests' tests", | 860 "Chromium 'ipc_tests' tests", |
| 862 ['..\\..\\win7-cr-builder\\build\\src\\tools\\valgrind\\chrome_tests.bat', | 861 ['..\\..\\win7-cr-builder\\build\\src\\tools\\valgrind\\chrome_tests.bat', |
| 863 '-t', 'ipc_tests', '--tool', 'drmemory_light', '--keep_logs'], | 862 '-t', 'ipc_tests', '--tool', 'drmemory_light', '--keep_logs'], |
| 864 env={'DRMEMORY_COMMAND': 'unpacked/bin/drmemory.exe'}, | 863 env={'DRMEMORY_COMMAND': 'unpacked/bin/drmemory.exe'}, |
| 865 cwd=api.infra_paths['slave_build']) | 864 cwd=api.path["slave_build"]) |
| 866 # Chromium 'base_unittests' tests step; generic ShellCommand converted | 865 # Chromium 'base_unittests' tests step; generic ShellCommand converted |
| 867 api.step( | 866 api.step( |
| 868 "Chromium 'base_unittests' tests", | 867 "Chromium 'base_unittests' tests", |
| 869 ['..\\..\\win7-cr-builder\\build\\src\\tools\\valgrind\\chrome_tests.bat', | 868 ['..\\..\\win7-cr-builder\\build\\src\\tools\\valgrind\\chrome_tests.bat', |
| 870 '-t', 'base_unittests', '--tool', 'drmemory_light', '--keep_logs'], | 869 '-t', 'base_unittests', '--tool', 'drmemory_light', '--keep_logs'], |
| 871 env={'DRMEMORY_COMMAND': 'unpacked/bin/drmemory.exe'}, | 870 env={'DRMEMORY_COMMAND': 'unpacked/bin/drmemory.exe'}, |
| 872 cwd=api.infra_paths['slave_build']) | 871 cwd=api.path["slave_build"]) |
| 873 # Chromium 'net' tests step; generic ShellCommand converted | 872 # Chromium 'net' tests step; generic ShellCommand converted |
| 874 api.step( | 873 api.step( |
| 875 "Chromium 'net' tests", | 874 "Chromium 'net' tests", |
| 876 ['..\\..\\win7-cr-builder\\build\\src\\tools\\valgrind\\chrome_tests.bat', | 875 ['..\\..\\win7-cr-builder\\build\\src\\tools\\valgrind\\chrome_tests.bat', |
| 877 '-t', 'net', '--tool', 'drmemory_light', '--keep_logs'], | 876 '-t', 'net', '--tool', 'drmemory_light', '--keep_logs'], |
| 878 env={'DRMEMORY_COMMAND': 'unpacked/bin/drmemory.exe'}, | 877 env={'DRMEMORY_COMMAND': 'unpacked/bin/drmemory.exe'}, |
| 879 cwd=api.infra_paths['slave_build']) | 878 cwd=api.path["slave_build"]) |
| 880 # Chromium 'unit' tests step; generic ShellCommand converted | 879 # Chromium 'unit' tests step; generic ShellCommand converted |
| 881 api.step( | 880 api.step( |
| 882 "Chromium 'unit' tests", | 881 "Chromium 'unit' tests", |
| 883 ['..\\..\\win7-cr-builder\\build\\src\\tools\\valgrind\\chrome_tests.bat', | 882 ['..\\..\\win7-cr-builder\\build\\src\\tools\\valgrind\\chrome_tests.bat', |
| 884 '-t', 'unit', '--tool', 'drmemory_light', '--keep_logs'], | 883 '-t', 'unit', '--tool', 'drmemory_light', '--keep_logs'], |
| 885 env={'DRMEMORY_COMMAND': 'unpacked/bin/drmemory.exe'}, | 884 env={'DRMEMORY_COMMAND': 'unpacked/bin/drmemory.exe'}, |
| 886 cwd=api.infra_paths['slave_build']) | 885 cwd=api.path["slave_build"]) |
| 887 | 886 |
| 888 | 887 |
| 889 def win_8_x64_drm_steps(api): | 888 def win_8_x64_drm_steps(api): |
| 890 build_properties = api.properties.legacy() | 889 build_properties = api.properties.legacy() |
| 891 # checkout DrMemory step | 890 # checkout DrMemory step |
| 892 src_cfg = api.gclient.make_config(GIT_MODE=True) | 891 src_cfg = api.gclient.make_config(GIT_MODE=True) |
| 893 soln = src_cfg.solutions.add() | 892 soln = src_cfg.solutions.add() |
| 894 soln.name = "drmemory" | 893 soln.name = "drmemory" |
| 895 soln.url = "https://github.com/DynamoRIO/drmemory.git" | 894 soln.url = "https://github.com/DynamoRIO/drmemory.git" |
| 896 soln.custom_deps = {"drmemory/dynamorio": | 895 soln.custom_deps = {"drmemory/dynamorio": |
| 897 "https://github.com/DynamoRIO/dynamorio.git", | 896 "https://github.com/DynamoRIO/dynamorio.git", |
| 898 "tools/buildbot": | 897 "tools/buildbot": |
| 899 "https://github.com/DynamoRIO/buildbot.git"} | 898 "https://github.com/DynamoRIO/buildbot.git"} |
| 900 api.gclient.c = src_cfg | 899 api.gclient.c = src_cfg |
| 901 result = api.bot_update.ensure_checkout(force=True) | 900 result = api.bot_update.ensure_checkout(force=True) |
| 902 build_properties.update(result.json.output.get("properties", {})) | 901 build_properties.update(result.json.output.get("properties", {})) |
| 903 # clear tools directory step; null converted | 902 # clear tools directory step; null converted |
| 904 # update tools step; null converted | 903 # update tools step; null converted |
| 905 # unpack tools step; generic ShellCommand converted | 904 # unpack tools step; generic ShellCommand converted |
| 906 api.step("unpack tools", | 905 api.step("unpack tools", |
| 907 [api.infra_paths['slave_build'].join('tools', 'buildbot', 'bot_tool
s', | 906 [api.path["slave_build"].join('tools', 'buildbot', 'bot_tools', |
| 908 'unpack.bat')], | 907 'unpack.bat')], |
| 909 env={}, | 908 env={}, |
| 910 cwd=api.infra_paths[ | 909 cwd=api.path[ |
| 911 "slave_build"].join('tools', 'buildbot', 'bot_tools')) | 910 "slave_build"].join('tools', 'buildbot', 'bot_tools')) |
| 912 # windows Dr. Memory ctest step | 911 # windows Dr. Memory ctest step |
| 913 api.step("Dr. Memory ctest", | 912 api.step("Dr. Memory ctest", |
| 914 [api.infra_paths['build'].join("scripts", "slave", "drmemory", | 913 [api.path["build"].join("scripts", "slave", "drmemory", |
| 915 "build_env.bat"), 'ctest', '--timeout', | 914 "build_env.bat"), 'ctest', '--timeout', |
| 916 '60', '-VV', '-S', | 915 '60', '-VV', '-S', |
| 917 str(api.path["checkout"].join("tests", "runsuite.cmake")) + | 916 str(api.path["checkout"].join("tests", "runsuite.cmake")) + |
| 918 ",drmemory_only;long;build=" + | 917 ",drmemory_only;long;build=" + |
| 919 str(build_properties["buildnumber"])]) | 918 str(build_properties["buildnumber"])]) |
| 920 # Checkout TSan tests step | 919 # Checkout TSan tests step |
| 921 api.step("Checkout TSan tests", | 920 api.step("Checkout TSan tests", |
| 922 ['svn', 'checkout', '--force', | 921 ['svn', 'checkout', '--force', |
| 923 'http://data-race-test.googlecode.com/svn/trunk/', | 922 'http://data-race-test.googlecode.com/svn/trunk/', |
| 924 api.infra_paths['slave_build'].join("tsan")]) | 923 api.path["slave_build"].join("tsan")]) |
| 925 # Build TSan tests step | 924 # Build TSan tests step |
| 926 api.step("Build TSan Tests", | 925 api.step("Build TSan Tests", |
| 927 ['E:\\b\\build\\scripts\\slave\\drmemory\\build_env.bat', 'make', | 926 ['E:\\b\\build\\scripts\\slave\\drmemory\\build_env.bat', 'make', |
| 928 '-C', api.infra_paths['slave_build'].join("tsan", "unittest")], | 927 '-C', api.path["slave_build"].join("tsan", "unittest")], |
| 929 env={"BOTTOOLS": api.infra_paths['slave_build'].join("tools", "buil
dbot", | 928 env={"BOTTOOLS": api.path["slave_build"].join("tools", "buildbot", |
| 930 "bot_tools"), | 929 "bot_tools"), |
| 931 "CYGWIN": "nodosfilewarning"}) | 930 "CYGWIN": "nodosfilewarning"}) |
| 932 # Dr. Memory TSan test step | 931 # Dr. Memory TSan test step |
| 933 api.step( | 932 api.step( |
| 934 "dbg full TSan tests", | 933 "dbg full TSan tests", |
| 935 [api.infra_paths['build'].join("scripts", "slave", "drmemory", | 934 [api.path["build"].join("scripts", "slave", "drmemory", |
| 936 "build_env.bat"), | 935 "build_env.bat"), |
| 937 'build_drmemory-dbg-32\\bin\\drmemory', '-dr_ops', | 936 'build_drmemory-dbg-32\\bin\\drmemory', '-dr_ops', |
| 938 '-msgbox_mask 0 -stderr_mask 15', '-results_to_stderr', '-batch', | 937 '-msgbox_mask 0 -stderr_mask 15', '-results_to_stderr', '-batch', |
| 939 '-suppress', api.path["checkout"].join( | 938 '-suppress', api.path["checkout"].join( |
| 940 "tests", "app_suite", "default-suppressions.txt"), "--", | 939 "tests", "app_suite", "default-suppressions.txt"), "--", |
| 941 api.infra_paths['slave_build'].join("tsan", 'unittest', 'bin', | 940 api.path["slave_build"].join("tsan", 'unittest', 'bin', |
| 942 'racecheck_unittest-windows-x86-O0.exe'), | 941 'racecheck_unittest-windows-x86-O0.exe'), |
| 943 '--gtest_filter=' | 942 '--gtest_filter=' |
| 944 '-PositiveTests.FreeVsRead:NegativeTests.WaitForMultiple*', | 943 '-PositiveTests.FreeVsRead:NegativeTests.WaitForMultiple*', |
| 945 '-147'], | 944 '-147'], |
| 946 env={"BOTTOOLS": api.infra_paths['slave_build'].join("tools", "buildbot"
, | 945 env={"BOTTOOLS": api.path["slave_build"].join("tools", "buildbot", |
| 947 "bot_tools")}) | 946 "bot_tools")}) |
| 948 # Dr. Memory TSan test step | 947 # Dr. Memory TSan test step |
| 949 api.step( | 948 api.step( |
| 950 "dbg light TSan tests", | 949 "dbg light TSan tests", |
| 951 [api.infra_paths['build'].join("scripts", "slave", "drmemory", | 950 [api.path["build"].join("scripts", "slave", "drmemory", |
| 952 "build_env.bat"), | 951 "build_env.bat"), |
| 953 'build_drmemory-dbg-32\\bin\\drmemory', '-dr_ops', | 952 'build_drmemory-dbg-32\\bin\\drmemory', '-dr_ops', |
| 954 '-msgbox_mask 0 -stderr_mask 15', '-results_to_stderr', '-batch', | 953 '-msgbox_mask 0 -stderr_mask 15', '-results_to_stderr', '-batch', |
| 955 '-suppress', api.path["checkout"].join( | 954 '-suppress', api.path["checkout"].join( |
| 956 "tests", "app_suite", "default-suppressions.txt"), "-light", "--", | 955 "tests", "app_suite", "default-suppressions.txt"), "-light", "--", |
| 957 api.infra_paths['slave_build'].join("tsan", 'unittest', 'bin', | 956 api.path["slave_build"].join("tsan", 'unittest', 'bin', |
| 958 'racecheck_unittest-windows-x86-O0.exe'), | 957 'racecheck_unittest-windows-x86-O0.exe'), |
| 959 '--gtest_filter=' | 958 '--gtest_filter=' |
| 960 '-PositiveTests.FreeVsRead:NegativeTests.WaitForMultiple*', | 959 '-PositiveTests.FreeVsRead:NegativeTests.WaitForMultiple*', |
| 961 '-147'], | 960 '-147'], |
| 962 env={"BOTTOOLS": api.infra_paths['slave_build'].join("tools", "buildbot"
, | 961 env={"BOTTOOLS": api.path["slave_build"].join("tools", "buildbot", |
| 963 "bot_tools")}) | 962 "bot_tools")}) |
| 964 # Dr. Memory TSan test step | 963 # Dr. Memory TSan test step |
| 965 api.step( | 964 api.step( |
| 966 "rel full TSan tests", | 965 "rel full TSan tests", |
| 967 [api.infra_paths['build'].join("scripts", "slave", "drmemory", | 966 [api.path["build"].join("scripts", "slave", "drmemory", |
| 968 "build_env.bat"), | 967 "build_env.bat"), |
| 969 'build_drmemory-rel-32\\bin\\drmemory', '-dr_ops', | 968 'build_drmemory-rel-32\\bin\\drmemory', '-dr_ops', |
| 970 '-msgbox_mask 0 -stderr_mask 15', '-results_to_stderr', '-batch', | 969 '-msgbox_mask 0 -stderr_mask 15', '-results_to_stderr', '-batch', |
| 971 '-suppress', api.path["checkout"].join( | 970 '-suppress', api.path["checkout"].join( |
| 972 "tests", "app_suite", "default-suppressions.txt"), "--", | 971 "tests", "app_suite", "default-suppressions.txt"), "--", |
| 973 api.infra_paths['slave_build'].join("tsan", 'unittest', 'bin', | 972 api.path["slave_build"].join("tsan", 'unittest', 'bin', |
| 974 'racecheck_unittest-windows-x86-O0.exe'), | 973 'racecheck_unittest-windows-x86-O0.exe'), |
| 975 '--gtest_filter=' | 974 '--gtest_filter=' |
| 976 '-PositiveTests.FreeVsRead:NegativeTests.WaitForMultiple*', | 975 '-PositiveTests.FreeVsRead:NegativeTests.WaitForMultiple*', |
| 977 '-147'], | 976 '-147'], |
| 978 env={"BOTTOOLS": api.infra_paths['slave_build'].join("tools", "buildbot"
, | 977 env={"BOTTOOLS": api.path["slave_build"].join("tools", "buildbot", |
| 979 "bot_tools")}) | 978 "bot_tools")}) |
| 980 # Dr. Memory TSan test step | 979 # Dr. Memory TSan test step |
| 981 api.step( | 980 api.step( |
| 982 "rel light TSan tests", | 981 "rel light TSan tests", |
| 983 [api.infra_paths['build'].join("scripts", "slave", "drmemory", | 982 [api.path["build"].join("scripts", "slave", "drmemory", |
| 984 "build_env.bat"), | 983 "build_env.bat"), |
| 985 'build_drmemory-rel-32\\bin\\drmemory', '-dr_ops', | 984 'build_drmemory-rel-32\\bin\\drmemory', '-dr_ops', |
| 986 '-msgbox_mask 0 -stderr_mask 15', '-results_to_stderr', '-batch', | 985 '-msgbox_mask 0 -stderr_mask 15', '-results_to_stderr', '-batch', |
| 987 '-suppress', api.path["checkout"].join( | 986 '-suppress', api.path["checkout"].join( |
| 988 "tests", "app_suite", "default-suppressions.txt"), "-light", "--", | 987 "tests", "app_suite", "default-suppressions.txt"), "-light", "--", |
| 989 api.infra_paths['slave_build'].join("tsan", 'unittest', 'bin', | 988 api.path["slave_build"].join("tsan", 'unittest', 'bin', |
| 990 'racecheck_unittest-windows-x86-O0.exe'), | 989 'racecheck_unittest-windows-x86-O0.exe'), |
| 991 '--gtest_filter=' | 990 '--gtest_filter=' |
| 992 '-PositiveTests.FreeVsRead:NegativeTests.WaitForMultiple*', | 991 '-PositiveTests.FreeVsRead:NegativeTests.WaitForMultiple*', |
| 993 '-147'], | 992 '-147'], |
| 994 env={"BOTTOOLS": api.infra_paths['slave_build'].join("tools", "buildbot"
, | 993 env={"BOTTOOLS": api.path["slave_build"].join("tools", "buildbot", |
| 995 "bot_tools")}) | 994 "bot_tools")}) |
| 996 # Dr. Memory TSan test step | 995 # Dr. Memory TSan test step |
| 997 api.step( | 996 api.step( |
| 998 "dbg full nosyms TSan tests", | 997 "dbg full nosyms TSan tests", |
| 999 [api.infra_paths['build'].join("scripts", "slave", "drmemory", | 998 [api.path["build"].join("scripts", "slave", "drmemory", |
| 1000 "build_env.bat"), | 999 "build_env.bat"), |
| 1001 'build_drmemory-dbg-32\\bin\\drmemory', '-dr_ops', | 1000 'build_drmemory-dbg-32\\bin\\drmemory', '-dr_ops', |
| 1002 '-msgbox_mask 0 -stderr_mask 15', '-results_to_stderr', '-batch', | 1001 '-msgbox_mask 0 -stderr_mask 15', '-results_to_stderr', '-batch', |
| 1003 '-suppress', api.path["checkout"].join( | 1002 '-suppress', api.path["checkout"].join( |
| 1004 "tests", "app_suite", "default-suppressions.txt"), "--", | 1003 "tests", "app_suite", "default-suppressions.txt"), "--", |
| 1005 api.infra_paths['slave_build'].join("tsan", 'unittest', 'bin', | 1004 api.path["slave_build"].join("tsan", 'unittest', 'bin', |
| 1006 'racecheck_unittest-windows-x86-O0.exe'), | 1005 'racecheck_unittest-windows-x86-O0.exe'), |
| 1007 '--gtest_filter=' | 1006 '--gtest_filter=' |
| 1008 '-PositiveTests.FreeVsRead:NegativeTests.WaitForMultiple*', | 1007 '-PositiveTests.FreeVsRead:NegativeTests.WaitForMultiple*', |
| 1009 '-147'], | 1008 '-147'], |
| 1010 env={"BOTTOOLS": api.infra_paths['slave_build'].join("tools", "buildbot"
, | 1009 env={"BOTTOOLS": api.path["slave_build"].join("tools", "buildbot", |
| 1011 "bot_tools")}) | 1010 "bot_tools")}) |
| 1012 # Prepare to pack test results step; null converted | 1011 # Prepare to pack test results step; null converted |
| 1013 # Pack test results step | 1012 # Pack test results step |
| 1014 api.step("Pack test results", | 1013 api.step("Pack test results", |
| 1015 [api.infra_paths['build'].join("scripts", "slave", "drmemory", | 1014 [api.path["build"].join("scripts", "slave", "drmemory", |
| 1016 "build_env.bat"), '7z', 'a', '-xr!*.pdb', | 1015 "build_env.bat"), '7z', 'a', '-xr!*.pdb', |
| 1017 "testlogs_r" + build_properties["got_revision"] + "_b" + | 1016 "testlogs_r" + build_properties["got_revision"] + "_b" + |
| 1018 str(build_properties["buildnumber"]) + ".7z", | 1017 str(build_properties["buildnumber"]) + ".7z", |
| 1019 'build_drmemory-dbg-32/logs', | 1018 'build_drmemory-dbg-32/logs', |
| 1020 'build_drmemory-dbg-32/Testing/Temporary', | 1019 'build_drmemory-dbg-32/Testing/Temporary', |
| 1021 'build_drmemory-rel-32/logs', | 1020 'build_drmemory-rel-32/logs', |
| 1022 'build_drmemory-rel-32/Testing/Temporary', | 1021 'build_drmemory-rel-32/Testing/Temporary', |
| 1023 'build_drmemory-dbg-64/logs', | 1022 'build_drmemory-dbg-64/logs', |
| 1024 'build_drmemory-dbg-64/Testing/Temporary', | 1023 'build_drmemory-dbg-64/Testing/Temporary', |
| 1025 'build_drmemory-rel-64/logs', | 1024 'build_drmemory-rel-64/logs', |
| 1026 'build_drmemory-rel-64/Testing/Temporary', 'xmlresults'], | 1025 'build_drmemory-rel-64/Testing/Temporary', 'xmlresults'], |
| 1027 env={"BOTTOOLS": api.infra_paths['slave_build'].join("tools", "buil
dbot", | 1026 env={"BOTTOOLS": api.path["slave_build"].join("tools", "buildbot", |
| 1028 "bot_tools")}) | 1027 "bot_tools")}) |
| 1029 # upload drmemory test logs step | 1028 # upload drmemory test logs step |
| 1030 api.gsutil.upload("testlogs_r" + build_properties["got_revision"] + "_b" + | 1029 api.gsutil.upload("testlogs_r" + build_properties["got_revision"] + "_b" + |
| 1031 str(api.properties[ | 1030 str(api.properties[ |
| 1032 "buildnumber"]) + ".7z", "chromium-drmemory-builds", | 1031 "buildnumber"]) + ".7z", "chromium-drmemory-builds", |
| 1033 "testlogs/from_%s" % api.properties["buildername"]) | 1032 "testlogs/from_%s" % api.properties["buildername"]) |
| 1034 | 1033 |
| 1035 | 1034 |
| 1036 def win7_cr_builder_steps(api): | 1035 def win7_cr_builder_steps(api): |
| 1037 build_properties = api.properties.legacy() | 1036 build_properties = api.properties.legacy() |
| 1038 # svnkill step; not necessary in recipes | 1037 # svnkill step; not necessary in recipes |
| 1039 # update scripts step; implicitly run by recipe engine. | 1038 # update scripts step; implicitly run by recipe engine. |
| 1040 # taskkill step | 1039 # taskkill step |
| 1041 api.python("taskkill", api.infra_paths['build'].join("scripts", "slave", | 1040 api.python("taskkill", api.path["build"].join("scripts", "slave", |
| 1042 "kill_processes.py")) | 1041 "kill_processes.py")) |
| 1043 # bot_update step | 1042 # bot_update step |
| 1044 src_cfg = api.gclient.make_config(GIT_MODE=True) | 1043 src_cfg = api.gclient.make_config(GIT_MODE=True) |
| 1045 soln = src_cfg.solutions.add() | 1044 soln = src_cfg.solutions.add() |
| 1046 soln.name = "src" | 1045 soln.name = "src" |
| 1047 soln.url = "https://chromium.googlesource.com/chromium/src.git" | 1046 soln.url = "https://chromium.googlesource.com/chromium/src.git" |
| 1048 soln.custom_deps = {'src/third_party/WebKit/LayoutTests': None} | 1047 soln.custom_deps = {'src/third_party/WebKit/LayoutTests': None} |
| 1049 soln.custom_vars = {'webkit_trunk': 'http://src.chromium.org/blink/trunk', | 1048 soln.custom_vars = {'webkit_trunk': 'http://src.chromium.org/blink/trunk', |
| 1050 'googlecode_url': 'http://%s.googlecode.com/svn', | 1049 'googlecode_url': 'http://%s.googlecode.com/svn', |
| 1051 'nacl_trunk': | 1050 'nacl_trunk': |
| (...skipping 10 matching lines...) Expand all Loading... |
| 1062 result = api.bot_update.ensure_checkout(force=True) | 1061 result = api.bot_update.ensure_checkout(force=True) |
| 1063 build_properties.update(result.json.output.get("properties", {})) | 1062 build_properties.update(result.json.output.get("properties", {})) |
| 1064 # gclient revert step; made unnecessary by bot_update | 1063 # gclient revert step; made unnecessary by bot_update |
| 1065 # gclient update step; made unnecessary by bot_update | 1064 # gclient update step; made unnecessary by bot_update |
| 1066 # gclient runhooks wrapper step | 1065 # gclient runhooks wrapper step |
| 1067 env = {'CHROMIUM_GYP_SYNTAX_CHECK': '1', | 1066 env = {'CHROMIUM_GYP_SYNTAX_CHECK': '1', |
| 1068 'LANDMINES_VERBOSE': '1', | 1067 'LANDMINES_VERBOSE': '1', |
| 1069 'DEPOT_TOOLS_UPDATE': '0', | 1068 'DEPOT_TOOLS_UPDATE': '0', |
| 1070 'GYP_DEFINES': 'build_for_tool=drmemory component=shared_library'} | 1069 'GYP_DEFINES': 'build_for_tool=drmemory component=shared_library'} |
| 1071 api.python("gclient runhooks wrapper", | 1070 api.python("gclient runhooks wrapper", |
| 1072 api.infra_paths['build'].join("scripts", "slave", | 1071 api.path["build"].join("scripts", "slave", |
| 1073 "runhooks_wrapper.py"), | 1072 "runhooks_wrapper.py"), |
| 1074 env=env) | 1073 env=env) |
| 1075 # cleanup_temp step | 1074 # cleanup_temp step |
| 1076 api.chromium.cleanup_temp() | 1075 api.chromium.cleanup_temp() |
| 1077 # compile.py step | 1076 # compile.py step |
| 1078 args = ['--solution', 'all.sln', '--project', | 1077 args = ['--solution', 'all.sln', '--project', |
| 1079 'chromium_builder_dbg_drmemory_win', '--target', 'Debug'] | 1078 'chromium_builder_dbg_drmemory_win', '--target', 'Debug'] |
| 1080 if 'clobber' in api.properties: | 1079 if 'clobber' in api.properties: |
| 1081 args.append("--clobber") | 1080 args.append("--clobber") |
| 1082 api.step("compile", ["python_slave", api.infra_paths['build'].join( | 1081 api.step("compile", ["python_slave", api.path["build"].join( |
| 1083 "scripts", "slave", "compile.py")] + args) | 1082 "scripts", "slave", "compile.py")] + args) |
| 1084 | 1083 |
| 1085 | 1084 |
| 1086 def win_7_x64_drm_steps(api): | 1085 def win_7_x64_drm_steps(api): |
| 1087 build_properties = api.properties.legacy() | 1086 build_properties = api.properties.legacy() |
| 1088 # checkout DrMemory step | 1087 # checkout DrMemory step |
| 1089 src_cfg = api.gclient.make_config(GIT_MODE=True) | 1088 src_cfg = api.gclient.make_config(GIT_MODE=True) |
| 1090 soln = src_cfg.solutions.add() | 1089 soln = src_cfg.solutions.add() |
| 1091 soln.name = "drmemory" | 1090 soln.name = "drmemory" |
| 1092 soln.url = "https://github.com/DynamoRIO/drmemory.git" | 1091 soln.url = "https://github.com/DynamoRIO/drmemory.git" |
| 1093 soln.custom_deps = {"drmemory/dynamorio": | 1092 soln.custom_deps = {"drmemory/dynamorio": |
| 1094 "https://github.com/DynamoRIO/dynamorio.git", | 1093 "https://github.com/DynamoRIO/dynamorio.git", |
| 1095 "tools/buildbot": | 1094 "tools/buildbot": |
| 1096 "https://github.com/DynamoRIO/buildbot.git"} | 1095 "https://github.com/DynamoRIO/buildbot.git"} |
| 1097 api.gclient.c = src_cfg | 1096 api.gclient.c = src_cfg |
| 1098 result = api.bot_update.ensure_checkout(force=True) | 1097 result = api.bot_update.ensure_checkout(force=True) |
| 1099 build_properties.update(result.json.output.get("properties", {})) | 1098 build_properties.update(result.json.output.get("properties", {})) |
| 1100 # clear tools directory step; null converted | 1099 # clear tools directory step; null converted |
| 1101 # update tools step; null converted | 1100 # update tools step; null converted |
| 1102 # unpack tools step; generic ShellCommand converted | 1101 # unpack tools step; generic ShellCommand converted |
| 1103 api.step("unpack tools", | 1102 api.step("unpack tools", |
| 1104 [api.infra_paths['slave_build'].join('tools', 'buildbot', 'bot_tool
s', | 1103 [api.path["slave_build"].join('tools', 'buildbot', 'bot_tools', |
| 1105 'unpack.bat')], | 1104 'unpack.bat')], |
| 1106 env={}, | 1105 env={}, |
| 1107 cwd=api.infra_paths[ | 1106 cwd=api.path[ |
| 1108 "slave_build"].join('tools', 'buildbot', 'bot_tools')) | 1107 "slave_build"].join('tools', 'buildbot', 'bot_tools')) |
| 1109 # windows Dr. Memory ctest step | 1108 # windows Dr. Memory ctest step |
| 1110 api.step("Dr. Memory ctest", | 1109 api.step("Dr. Memory ctest", |
| 1111 [api.infra_paths['build'].join("scripts", "slave", "drmemory", | 1110 [api.path["build"].join("scripts", "slave", "drmemory", |
| 1112 "build_env.bat"), 'ctest', '--timeout', | 1111 "build_env.bat"), 'ctest', '--timeout', |
| 1113 '60', '-VV', '-S', | 1112 '60', '-VV', '-S', |
| 1114 str(api.path["checkout"].join("tests", "runsuite.cmake")) + | 1113 str(api.path["checkout"].join("tests", "runsuite.cmake")) + |
| 1115 ",drmemory_only;long;build=" + | 1114 ",drmemory_only;long;build=" + |
| 1116 str(build_properties["buildnumber"])]) | 1115 str(build_properties["buildnumber"])]) |
| 1117 # Checkout TSan tests step | 1116 # Checkout TSan tests step |
| 1118 api.step("Checkout TSan tests", | 1117 api.step("Checkout TSan tests", |
| 1119 ['svn', 'checkout', '--force', | 1118 ['svn', 'checkout', '--force', |
| 1120 'http://data-race-test.googlecode.com/svn/trunk/', | 1119 'http://data-race-test.googlecode.com/svn/trunk/', |
| 1121 api.infra_paths['slave_build'].join("tsan")]) | 1120 api.path["slave_build"].join("tsan")]) |
| 1122 # Build TSan tests step | 1121 # Build TSan tests step |
| 1123 api.step("Build TSan Tests", | 1122 api.step("Build TSan Tests", |
| 1124 ['E:\\b\\build\\scripts\\slave\\drmemory\\build_env.bat', 'make', | 1123 ['E:\\b\\build\\scripts\\slave\\drmemory\\build_env.bat', 'make', |
| 1125 '-C', api.infra_paths['slave_build'].join("tsan", "unittest")], | 1124 '-C', api.path["slave_build"].join("tsan", "unittest")], |
| 1126 env={"BOTTOOLS": api.infra_paths['slave_build'].join("tools", "buil
dbot", | 1125 env={"BOTTOOLS": api.path["slave_build"].join("tools", "buildbot", |
| 1127 "bot_tools"), | 1126 "bot_tools"), |
| 1128 "CYGWIN": "nodosfilewarning"}) | 1127 "CYGWIN": "nodosfilewarning"}) |
| 1129 # Dr. Memory TSan test step | 1128 # Dr. Memory TSan test step |
| 1130 api.step( | 1129 api.step( |
| 1131 "dbg full TSan tests", | 1130 "dbg full TSan tests", |
| 1132 [api.infra_paths['build'].join("scripts", "slave", "drmemory", | 1131 [api.path["build"].join("scripts", "slave", "drmemory", |
| 1133 "build_env.bat"), | 1132 "build_env.bat"), |
| 1134 'build_drmemory-dbg-32\\bin\\drmemory', '-dr_ops', | 1133 'build_drmemory-dbg-32\\bin\\drmemory', '-dr_ops', |
| 1135 '-msgbox_mask 0 -stderr_mask 15', '-results_to_stderr', '-batch', | 1134 '-msgbox_mask 0 -stderr_mask 15', '-results_to_stderr', '-batch', |
| 1136 '-suppress', api.path["checkout"].join( | 1135 '-suppress', api.path["checkout"].join( |
| 1137 "tests", "app_suite", "default-suppressions.txt"), "--", | 1136 "tests", "app_suite", "default-suppressions.txt"), "--", |
| 1138 api.infra_paths['slave_build'].join("tsan", 'unittest', 'bin', | 1137 api.path["slave_build"].join("tsan", 'unittest', 'bin', |
| 1139 'racecheck_unittest-windows-x86-O0.exe'), | 1138 'racecheck_unittest-windows-x86-O0.exe'), |
| 1140 '--gtest_filter=' | 1139 '--gtest_filter=' |
| 1141 '-PositiveTests.FreeVsRead:NegativeTests.WaitForMultiple*', | 1140 '-PositiveTests.FreeVsRead:NegativeTests.WaitForMultiple*', |
| 1142 '-147'], | 1141 '-147'], |
| 1143 env={"BOTTOOLS": api.infra_paths['slave_build'].join("tools", "buildbot"
, | 1142 env={"BOTTOOLS": api.path["slave_build"].join("tools", "buildbot", |
| 1144 "bot_tools")}) | 1143 "bot_tools")}) |
| 1145 # Dr. Memory TSan test step | 1144 # Dr. Memory TSan test step |
| 1146 api.step( | 1145 api.step( |
| 1147 "dbg light TSan tests", | 1146 "dbg light TSan tests", |
| 1148 [api.infra_paths['build'].join("scripts", "slave", "drmemory", | 1147 [api.path["build"].join("scripts", "slave", "drmemory", |
| 1149 "build_env.bat"), | 1148 "build_env.bat"), |
| 1150 'build_drmemory-dbg-32\\bin\\drmemory', '-dr_ops', | 1149 'build_drmemory-dbg-32\\bin\\drmemory', '-dr_ops', |
| 1151 '-msgbox_mask 0 -stderr_mask 15', '-results_to_stderr', '-batch', | 1150 '-msgbox_mask 0 -stderr_mask 15', '-results_to_stderr', '-batch', |
| 1152 '-suppress', api.path["checkout"].join( | 1151 '-suppress', api.path["checkout"].join( |
| 1153 "tests", "app_suite", "default-suppressions.txt"), "-light", "--", | 1152 "tests", "app_suite", "default-suppressions.txt"), "-light", "--", |
| 1154 api.infra_paths['slave_build'].join("tsan", 'unittest', 'bin', | 1153 api.path["slave_build"].join("tsan", 'unittest', 'bin', |
| 1155 'racecheck_unittest-windows-x86-O0.exe'), | 1154 'racecheck_unittest-windows-x86-O0.exe'), |
| 1156 '--gtest_filter=' | 1155 '--gtest_filter=' |
| 1157 '-PositiveTests.FreeVsRead:NegativeTests.WaitForMultiple*', | 1156 '-PositiveTests.FreeVsRead:NegativeTests.WaitForMultiple*', |
| 1158 '-147'], | 1157 '-147'], |
| 1159 env={"BOTTOOLS": api.infra_paths['slave_build'].join("tools", "buildbot"
, | 1158 env={"BOTTOOLS": api.path["slave_build"].join("tools", "buildbot", |
| 1160 "bot_tools")}) | 1159 "bot_tools")}) |
| 1161 # Dr. Memory TSan test step | 1160 # Dr. Memory TSan test step |
| 1162 api.step( | 1161 api.step( |
| 1163 "rel full TSan tests", | 1162 "rel full TSan tests", |
| 1164 [api.infra_paths['build'].join("scripts", "slave", "drmemory", | 1163 [api.path["build"].join("scripts", "slave", "drmemory", |
| 1165 "build_env.bat"), | 1164 "build_env.bat"), |
| 1166 'build_drmemory-rel-32\\bin\\drmemory', '-dr_ops', | 1165 'build_drmemory-rel-32\\bin\\drmemory', '-dr_ops', |
| 1167 '-msgbox_mask 0 -stderr_mask 15', '-results_to_stderr', '-batch', | 1166 '-msgbox_mask 0 -stderr_mask 15', '-results_to_stderr', '-batch', |
| 1168 '-suppress', api.path["checkout"].join( | 1167 '-suppress', api.path["checkout"].join( |
| 1169 "tests", "app_suite", "default-suppressions.txt"), "--", | 1168 "tests", "app_suite", "default-suppressions.txt"), "--", |
| 1170 api.infra_paths['slave_build'].join("tsan", 'unittest', 'bin', | 1169 api.path["slave_build"].join("tsan", 'unittest', 'bin', |
| 1171 'racecheck_unittest-windows-x86-O0.exe'), | 1170 'racecheck_unittest-windows-x86-O0.exe'), |
| 1172 '--gtest_filter=' | 1171 '--gtest_filter=' |
| 1173 '-PositiveTests.FreeVsRead:NegativeTests.WaitForMultiple*', | 1172 '-PositiveTests.FreeVsRead:NegativeTests.WaitForMultiple*', |
| 1174 '-147'], | 1173 '-147'], |
| 1175 env={"BOTTOOLS": api.infra_paths['slave_build'].join("tools", "buildbot"
, | 1174 env={"BOTTOOLS": api.path["slave_build"].join("tools", "buildbot", |
| 1176 "bot_tools")}) | 1175 "bot_tools")}) |
| 1177 # Dr. Memory TSan test step | 1176 # Dr. Memory TSan test step |
| 1178 api.step( | 1177 api.step( |
| 1179 "rel light TSan tests", | 1178 "rel light TSan tests", |
| 1180 [api.infra_paths['build'].join("scripts", "slave", "drmemory", | 1179 [api.path["build"].join("scripts", "slave", "drmemory", |
| 1181 "build_env.bat"), | 1180 "build_env.bat"), |
| 1182 'build_drmemory-rel-32\\bin\\drmemory', '-dr_ops', | 1181 'build_drmemory-rel-32\\bin\\drmemory', '-dr_ops', |
| 1183 '-msgbox_mask 0 -stderr_mask 15', '-results_to_stderr', '-batch', | 1182 '-msgbox_mask 0 -stderr_mask 15', '-results_to_stderr', '-batch', |
| 1184 '-suppress', api.path["checkout"].join( | 1183 '-suppress', api.path["checkout"].join( |
| 1185 "tests", "app_suite", "default-suppressions.txt"), "-light", "--", | 1184 "tests", "app_suite", "default-suppressions.txt"), "-light", "--", |
| 1186 api.infra_paths['slave_build'].join("tsan", 'unittest', 'bin', | 1185 api.path["slave_build"].join("tsan", 'unittest', 'bin', |
| 1187 'racecheck_unittest-windows-x86-O0.exe'), | 1186 'racecheck_unittest-windows-x86-O0.exe'), |
| 1188 '--gtest_filter=' | 1187 '--gtest_filter=' |
| 1189 '-PositiveTests.FreeVsRead:NegativeTests.WaitForMultiple*', | 1188 '-PositiveTests.FreeVsRead:NegativeTests.WaitForMultiple*', |
| 1190 '-147'], | 1189 '-147'], |
| 1191 env={"BOTTOOLS": api.infra_paths['slave_build'].join("tools", "buildbot"
, | 1190 env={"BOTTOOLS": api.path["slave_build"].join("tools", "buildbot", |
| 1192 "bot_tools")}) | 1191 "bot_tools")}) |
| 1193 # Dr. Memory TSan test step | 1192 # Dr. Memory TSan test step |
| 1194 api.step( | 1193 api.step( |
| 1195 "dbg full nosyms TSan tests", | 1194 "dbg full nosyms TSan tests", |
| 1196 [api.infra_paths['build'].join("scripts", "slave", "drmemory", | 1195 [api.path["build"].join("scripts", "slave", "drmemory", |
| 1197 "build_env.bat"), | 1196 "build_env.bat"), |
| 1198 'build_drmemory-dbg-32\\bin\\drmemory', '-dr_ops', | 1197 'build_drmemory-dbg-32\\bin\\drmemory', '-dr_ops', |
| 1199 '-msgbox_mask 0 -stderr_mask 15', '-results_to_stderr', '-batch', | 1198 '-msgbox_mask 0 -stderr_mask 15', '-results_to_stderr', '-batch', |
| 1200 '-suppress', api.path["checkout"].join( | 1199 '-suppress', api.path["checkout"].join( |
| 1201 "tests", "app_suite", "default-suppressions.txt"), "--", | 1200 "tests", "app_suite", "default-suppressions.txt"), "--", |
| 1202 api.infra_paths['slave_build'].join("tsan", 'unittest', 'bin', | 1201 api.path["slave_build"].join("tsan", 'unittest', 'bin', |
| 1203 'racecheck_unittest-windows-x86-O0.exe'), | 1202 'racecheck_unittest-windows-x86-O0.exe'), |
| 1204 '--gtest_filter=' | 1203 '--gtest_filter=' |
| 1205 '-PositiveTests.FreeVsRead:NegativeTests.WaitForMultiple*', | 1204 '-PositiveTests.FreeVsRead:NegativeTests.WaitForMultiple*', |
| 1206 '-147'], | 1205 '-147'], |
| 1207 env={"BOTTOOLS": api.infra_paths['slave_build'].join("tools", "buildbot"
, | 1206 env={"BOTTOOLS": api.path["slave_build"].join("tools", "buildbot", |
| 1208 "bot_tools")}) | 1207 "bot_tools")}) |
| 1209 # Prepare to pack test results step; null converted | 1208 # Prepare to pack test results step; null converted |
| 1210 # Pack test results step | 1209 # Pack test results step |
| 1211 api.step("Pack test results", | 1210 api.step("Pack test results", |
| 1212 [api.infra_paths['build'].join("scripts", "slave", "drmemory", | 1211 [api.path["build"].join("scripts", "slave", "drmemory", |
| 1213 "build_env.bat"), '7z', 'a', '-xr!*.pdb', | 1212 "build_env.bat"), '7z', 'a', '-xr!*.pdb', |
| 1214 "testlogs_r" + build_properties["got_revision"] + "_b" + | 1213 "testlogs_r" + build_properties["got_revision"] + "_b" + |
| 1215 str(build_properties["buildnumber"]) + ".7z", | 1214 str(build_properties["buildnumber"]) + ".7z", |
| 1216 'build_drmemory-dbg-32/logs', | 1215 'build_drmemory-dbg-32/logs', |
| 1217 'build_drmemory-dbg-32/Testing/Temporary', | 1216 'build_drmemory-dbg-32/Testing/Temporary', |
| 1218 'build_drmemory-rel-32/logs', | 1217 'build_drmemory-rel-32/logs', |
| 1219 'build_drmemory-rel-32/Testing/Temporary', | 1218 'build_drmemory-rel-32/Testing/Temporary', |
| 1220 'build_drmemory-dbg-64/logs', | 1219 'build_drmemory-dbg-64/logs', |
| 1221 'build_drmemory-dbg-64/Testing/Temporary', | 1220 'build_drmemory-dbg-64/Testing/Temporary', |
| 1222 'build_drmemory-rel-64/logs', | 1221 'build_drmemory-rel-64/logs', |
| 1223 'build_drmemory-rel-64/Testing/Temporary', 'xmlresults'], | 1222 'build_drmemory-rel-64/Testing/Temporary', 'xmlresults'], |
| 1224 env={"BOTTOOLS": api.infra_paths['slave_build'].join("tools", "buil
dbot", | 1223 env={"BOTTOOLS": api.path["slave_build"].join("tools", "buildbot", |
| 1225 "bot_tools")}) | 1224 "bot_tools")}) |
| 1226 # upload drmemory test logs step | 1225 # upload drmemory test logs step |
| 1227 api.gsutil.upload("testlogs_r" + build_properties["got_revision"] + "_b" + | 1226 api.gsutil.upload("testlogs_r" + build_properties["got_revision"] + "_b" + |
| 1228 str(api.properties[ | 1227 str(api.properties[ |
| 1229 "buildnumber"]) + ".7z", "chromium-drmemory-builds", | 1228 "buildnumber"]) + ".7z", "chromium-drmemory-builds", |
| 1230 "testlogs/from_%s" % api.properties["buildername"]) | 1229 "testlogs/from_%s" % api.properties["buildername"]) |
| 1231 | 1230 |
| 1232 | 1231 |
| 1233 def mac_builder_steps(api): | 1232 def mac_builder_steps(api): |
| 1234 build_properties = api.properties.legacy() | 1233 build_properties = api.properties.legacy() |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1267 "https://github.com/DynamoRIO/dynamorio.git", | 1266 "https://github.com/DynamoRIO/dynamorio.git", |
| 1268 "tools/buildbot": | 1267 "tools/buildbot": |
| 1269 "https://github.com/DynamoRIO/buildbot.git"} | 1268 "https://github.com/DynamoRIO/buildbot.git"} |
| 1270 api.gclient.c = src_cfg | 1269 api.gclient.c = src_cfg |
| 1271 result = api.bot_update.ensure_checkout(force=True) | 1270 result = api.bot_update.ensure_checkout(force=True) |
| 1272 build_properties.update(result.json.output.get("properties", {})) | 1271 build_properties.update(result.json.output.get("properties", {})) |
| 1273 # clear tools directory step; null converted | 1272 # clear tools directory step; null converted |
| 1274 # update tools step; null converted | 1273 # update tools step; null converted |
| 1275 # unpack tools step; generic ShellCommand converted | 1274 # unpack tools step; generic ShellCommand converted |
| 1276 api.step("unpack tools", | 1275 api.step("unpack tools", |
| 1277 [api.infra_paths['slave_build'].join('tools', 'buildbot', 'bot_tool
s', | 1276 [api.path["slave_build"].join('tools', 'buildbot', 'bot_tools', |
| 1278 'unpack.bat')], | 1277 'unpack.bat')], |
| 1279 env={}, | 1278 env={}, |
| 1280 cwd=api.infra_paths[ | 1279 cwd=api.path[ |
| 1281 "slave_build"].join('tools', 'buildbot', 'bot_tools')) | 1280 "slave_build"].join('tools', 'buildbot', 'bot_tools')) |
| 1282 # get buildnumber step; no longer needed | 1281 # get buildnumber step; no longer needed |
| 1283 # Package dynamorio step | 1282 # Package dynamorio step |
| 1284 api.step("Package Dr. Memory", | 1283 api.step("Package Dr. Memory", |
| 1285 [api.infra_paths['build'].join("scripts", "slave", "drmemory", | 1284 [api.path["build"].join("scripts", "slave", "drmemory", |
| 1286 "build_env.bat"), 'ctest', '-VV', '-S', | 1285 "build_env.bat"), 'ctest', '-VV', '-S', |
| 1287 str(api.path["checkout"].join("package.cmake")) + ",build=0x" + | 1286 str(api.path["checkout"].join("package.cmake")) + ",build=0x" + |
| 1288 build_properties["got_revision"][:7] + ";drmem_only"], | 1287 build_properties["got_revision"][:7] + ";drmem_only"], |
| 1289 env={"BOTTOOLS": api.infra_paths['slave_build'].join("tools", "buil
dbot", | 1288 env={"BOTTOOLS": api.path["slave_build"].join("tools", "buildbot", |
| 1290 "bot_tools")}, | 1289 "bot_tools")}, |
| 1291 cwd=api.infra_paths['slave_build']) | 1290 cwd=api.path["slave_build"]) |
| 1292 # Find package basename step | 1291 # Find package basename step |
| 1293 step_result = api.step("Find package basename", | 1292 step_result = api.step("Find package basename", |
| 1294 ["cmd.exe", "/C", "dir", "/B", | 1293 ["cmd.exe", "/C", "dir", "/B", |
| 1295 "DrMemory-Windows-*0x" + build_properties[ | 1294 "DrMemory-Windows-*0x" + build_properties[ |
| 1296 "got_revision"][:7] + ".zip"], | 1295 "got_revision"][:7] + ".zip"], |
| 1297 stdout=api.raw_io.output(), | 1296 stdout=api.raw_io.output(), |
| 1298 cwd=api.infra_paths['slave_build']) | 1297 cwd=api.path["slave_build"]) |
| 1299 basename = step_result.stdout[:-4] | 1298 basename = step_result.stdout[:-4] |
| 1300 # Delete prior sfx archive step | 1299 # Delete prior sfx archive step |
| 1301 api.file.remove("Delete prior sfx archive", | 1300 api.file.remove("Delete prior sfx archive", |
| 1302 api.infra_paths['slave_build'].join(basename + "-sfx.exe"), | 1301 api.path["slave_build"].join(basename + "-sfx.exe"), |
| 1303 ok_ret=(0,1)) | 1302 ok_ret=(0,1)) |
| 1304 # Create sfx archive step | 1303 # Create sfx archive step |
| 1305 api.step("create sfx archive", | 1304 api.step("create sfx archive", |
| 1306 [api.infra_paths['build'].join("scripts", "slave", "drmemory", | 1305 [api.path["build"].join("scripts", "slave", "drmemory", |
| 1307 "build_env.bat"), "7z", "a", "-sfx", | 1306 "build_env.bat"), "7z", "a", "-sfx", |
| 1308 basename + "-sfx.exe", | 1307 basename + "-sfx.exe", |
| 1309 "build_drmemory-debug-32\\_CPack_Packages\\Windows\\ZIP\\" + | 1308 "build_drmemory-debug-32\\_CPack_Packages\\Windows\\ZIP\\" + |
| 1310 basename + "\\*"], | 1309 basename + "\\*"], |
| 1311 cwd=api.infra_paths['slave_build'], | 1310 cwd=api.path["slave_build"], |
| 1312 env={"BOTTOOLS": api.infra_paths['slave_build'].join("tools", "buil
dbot", | 1311 env={"BOTTOOLS": api.path["slave_build"].join("tools", "buildbot", |
| 1313 "bot_tools")}) | 1312 "bot_tools")}) |
| 1314 # upload latest build step | 1313 # upload latest build step |
| 1315 api.file.copy("copy locally", | 1314 api.file.copy("copy locally", |
| 1316 api.infra_paths['slave_build'].join(basename + "-sfx.exe"), | 1315 api.path["slave_build"].join(basename + "-sfx.exe"), |
| 1317 api.infra_paths['slave_build'].join("drmemory-windows-latest-sfx.exe")) | 1316 api.path["slave_build"].join("drmemory-windows-latest-sfx.exe")) |
| 1318 api.gsutil.upload("drmemory-windows-latest-sfx.exe", | 1317 api.gsutil.upload("drmemory-windows-latest-sfx.exe", |
| 1319 "chromium-drmemory-builds", | 1318 "chromium-drmemory-builds", |
| 1320 "", | 1319 "", |
| 1321 cwd=api.infra_paths['slave_build']) | 1320 cwd=api.path["slave_build"]) |
| 1322 # upload drmemory build step | 1321 # upload drmemory build step |
| 1323 api.gsutil.upload("DrMemory-Windows-*" + build_properties["got_revision"][ | 1322 api.gsutil.upload("DrMemory-Windows-*" + build_properties["got_revision"][ |
| 1324 :7] + ".zip", "chromium-drmemory-builds", "builds/") | 1323 :7] + ".zip", "chromium-drmemory-builds", "builds/") |
| 1325 | 1324 |
| 1326 | 1325 |
| 1327 dispatch_directory = { | 1326 dispatch_directory = { |
| 1328 'linux-builder': linux_builder_steps, | 1327 'linux-builder': linux_builder_steps, |
| 1329 'linux-lucid_x64-drm': linux_lucid_x64_drm_steps, | 1328 'linux-lucid_x64-drm': linux_lucid_x64_drm_steps, |
| 1330 'win-vista_x64-drm': win_vista_x64_drm_steps, | 1329 'win-vista_x64-drm': win_vista_x64_drm_steps, |
| 1331 'mac-mavericks_x64-DR': mac_mavericks_x64_DR_steps, | 1330 'mac-mavericks_x64-DR': mac_mavericks_x64_DR_steps, |
| (...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1522 api.properties(buildnumber=42) + | 1521 api.properties(buildnumber=42) + |
| 1523 api.properties(slavename='TestSlave') + | 1522 api.properties(slavename='TestSlave') + |
| 1524 api.step_data("Find package basename", | 1523 api.step_data("Find package basename", |
| 1525 stdout=api.raw_io.output("DrMemory-Windows-1.2.3-0x1234567.zip") | 1524 stdout=api.raw_io.output("DrMemory-Windows-1.2.3-0x1234567.zip") |
| 1526 )) | 1525 )) |
| 1527 yield (api.test('builder_not_in_dispatch_directory') + | 1526 yield (api.test('builder_not_in_dispatch_directory') + |
| 1528 api.properties(mastername='client.drmemory') + | 1527 api.properties(mastername='client.drmemory') + |
| 1529 api.properties(buildername='nonexistent_builder') + | 1528 api.properties(buildername='nonexistent_builder') + |
| 1530 api.properties(slavename='TestSlave') | 1529 api.properties(slavename='TestSlave') |
| 1531 ) | 1530 ) |
| OLD | NEW |