Chromium Code Reviews| 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 'depot_tools/bot_update', | 6 'depot_tools/bot_update', |
| 7 'chromium', | 7 'chromium', |
| 8 'depot_tools/gclient', | 8 'depot_tools/gclient', |
| 9 'depot_tools/infra_paths', | |
| 9 'recipe_engine/json', | 10 'recipe_engine/json', |
| 10 'recipe_engine/path', | 11 'recipe_engine/path', |
| 11 'recipe_engine/properties', | 12 'recipe_engine/properties', |
| 12 'recipe_engine/python', | 13 'recipe_engine/python', |
| 13 'recipe_engine/step', | 14 'recipe_engine/step', |
| 14 ] | 15 ] |
| 15 | 16 |
| 16 def Linux32_steps(api): | 17 def Linux32_steps(api): |
| 17 # update scripts step; implicitly run by recipe engine. | 18 # update scripts step; implicitly run by recipe engine. |
| 18 # bot_update step | 19 # bot_update step |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 50 api.gclient.c = src_cfg | 51 api.gclient.c = src_cfg |
| 51 result = api.bot_update.ensure_checkout(force=True) | 52 result = api.bot_update.ensure_checkout(force=True) |
| 52 build_properties = api.properties.legacy() | 53 build_properties = api.properties.legacy() |
| 53 build_properties.update(result.json.output.get('properties', {})) | 54 build_properties.update(result.json.output.get('properties', {})) |
| 54 # gclient update step; made unnecessary by bot_update | 55 # gclient update step; made unnecessary by bot_update |
| 55 # gclient runhooks wrapper step | 56 # gclient runhooks wrapper step |
| 56 env = {'CHROMIUM_GYP_SYNTAX_CHECK': '1', 'LANDMINES_VERBOSE': '1', | 57 env = {'CHROMIUM_GYP_SYNTAX_CHECK': '1', 'LANDMINES_VERBOSE': '1', |
| 57 'DEPOT_TOOLS_UPDATE': '0', | 58 'DEPOT_TOOLS_UPDATE': '0', |
| 58 'GYP_DEFINES': | 59 'GYP_DEFINES': |
| 59 'branding=Chrome buildtype=Official component=static_library'} | 60 'branding=Chrome buildtype=Official component=static_library'} |
| 60 api.python("gclient runhooks wrapper", api.path["build"].join("scripts", | 61 api.python("gclient runhooks wrapper", api.infra_paths['build'].join("scripts" , |
| 61 "slave", "runhooks_wrapper.py"), env=env) | 62 "slave", "runhooks_wrapper.py"), env=env) |
| 62 # cleanup_temp step | 63 # cleanup_temp step |
| 63 api.chromium.cleanup_temp() | 64 api.chromium.cleanup_temp() |
| 64 # chromedriver compile.py step | 65 # chromedriver compile.py step |
| 65 api.python("compile", api.path["build"].join("scripts", "slave", | 66 api.python("compile", api.infra_paths['build'].join("scripts", "slave", |
| 66 "compile.py"), args=['--target', 'Release', | 67 "compile.py"), args=['--target', 'Release', |
| 67 'chromium_builder_chromedriver']) | 68 'chromium_builder_chromedriver']) |
| 68 # annotated_steps step | 69 # annotated_steps step |
| 69 api.python("annotated_steps", api.path["build"].join("scripts", "slave", | 70 api.python("annotated_steps", api.infra_paths['build'].join("scripts", "slave" , |
| 70 "chromium", "chromedriver_buildbot_run.py"), | 71 "chromium", "chromedriver_buildbot_run.py"), |
| 71 args=['--build-properties=%s' % api.json.dumps(build_properties, | 72 args=['--build-properties=%s' % api.json.dumps(build_properties, |
| 72 separators=(',', ':')), '--factory-properties={"annotated_script":'+\ | 73 separators=(',', ':')), '--factory-properties={"annotated_script":'+\ |
| 73 '"chromedriver_buildbot_run.py","blink_config":"chromium",'+\ | 74 '"chromedriver_buildbot_run.py","blink_config":"chromium",'+\ |
| 74 '"gclient_env":{"CHROMIUM_GYP_SYNTAX_CHECK":"1",'+\ | 75 '"gclient_env":{"CHROMIUM_GYP_SYNTAX_CHECK":"1",'+\ |
| 75 '"DEPOT_TOOLS_UPDATE"'':"0","GYP_DEFINES":"branding=Chrome '+\ | 76 '"DEPOT_TOOLS_UPDATE"'':"0","GYP_DEFINES":"branding=Chrome '+\ |
| 76 'buildtype=Official component=static_library","LANDMINES_VERBOSE":'+\ | 77 'buildtype=Official component=static_library","LANDMINES_VERBOSE":'+\ |
| 77 '"1"},"needs_webdriver_java_tests":true,"use_xvfb_on_linux":true}'], | 78 '"1"},"needs_webdriver_java_tests":true,"use_xvfb_on_linux":true}'], |
| 78 allow_subannotations=True) | 79 allow_subannotations=True) |
| 79 | 80 |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 113 'src/tools/swarming_client': 'got_swarming_client_revision', | 114 'src/tools/swarming_client': 'got_swarming_client_revision', |
| 114 'src/v8': 'got_v8_revision'}) | 115 'src/v8': 'got_v8_revision'}) |
| 115 api.gclient.c = src_cfg | 116 api.gclient.c = src_cfg |
| 116 result = api.bot_update.ensure_checkout(force=True) | 117 result = api.bot_update.ensure_checkout(force=True) |
| 117 build_properties = api.properties.legacy() | 118 build_properties = api.properties.legacy() |
| 118 build_properties.update(result.json.output.get('properties', {})) | 119 build_properties.update(result.json.output.get('properties', {})) |
| 119 # gclient update step; made unnecessary by bot_update | 120 # gclient update step; made unnecessary by bot_update |
| 120 # gclient runhooks wrapper step | 121 # gclient runhooks wrapper step |
| 121 env = {'CHROMIUM_GYP_SYNTAX_CHECK': '1', 'LANDMINES_VERBOSE': '1', | 122 env = {'CHROMIUM_GYP_SYNTAX_CHECK': '1', 'LANDMINES_VERBOSE': '1', |
| 122 'DEPOT_TOOLS_UPDATE': '0', 'GYP_DEFINES': ' component=static_library'} | 123 'DEPOT_TOOLS_UPDATE': '0', 'GYP_DEFINES': ' component=static_library'} |
| 123 api.python("gclient runhooks wrapper", api.path["build"].join("scripts", | 124 api.python("gclient runhooks wrapper", api.infra_paths['build'].join("scripts" , |
|
Sergiy Byelozyorov
2016/04/26 14:41:05
nit: long line
| |
| 124 "slave", "runhooks_wrapper.py"), env=env) | 125 "slave", "runhooks_wrapper.py"), env=env) |
| 125 # cleanup_temp step | 126 # cleanup_temp step |
| 126 api.chromium.cleanup_temp() | 127 api.chromium.cleanup_temp() |
| 127 # chromedriver compile.py step | 128 # chromedriver compile.py step |
| 128 api.python("compile", api.path["build"].join("scripts", "slave", | 129 api.python("compile", api.infra_paths['build'].join("scripts", "slave", |
| 129 "compile.py"), args=['--target', 'Release', '--', '-project', | 130 "compile.py"), args=['--target', 'Release', '--', '-project', |
| 130 '../build/all.xcodeproj', '-target', 'chromium_builder_chromedriver']) | 131 '../build/all.xcodeproj', '-target', 'chromium_builder_chromedriver']) |
| 131 # annotated_steps step | 132 # annotated_steps step |
| 132 api.python("annotated_steps", api.path["build"].join("scripts", "slave", | 133 api.python("annotated_steps", api.infra_paths['build'].join("scripts", "slave" , |
|
Sergiy Byelozyorov
2016/04/26 14:41:06
nit: long line
| |
| 133 "chromium", "chromedriver_buildbot_run.py"), | 134 "chromium", "chromedriver_buildbot_run.py"), |
| 134 args=['--build-properties=%s' % api.json.dumps(build_properties, | 135 args=['--build-properties=%s' % api.json.dumps(build_properties, |
| 135 separators=(',', ':')), '--factory-properties={"annotated_script":"c'+\ | 136 separators=(',', ':')), '--factory-properties={"annotated_script":"c'+\ |
| 136 'hromedriver_buildbot_run.py","blink_config":"chromium","gclient_e'+\ | 137 'hromedriver_buildbot_run.py","blink_config":"chromium","gclient_e'+\ |
| 137 'nv":{"CHROMIUM_GYP_SYNTAX_CHECK":"1","DEPOT_TOOLS_UPDATE":"0","GYP'+\ | 138 'nv":{"CHROMIUM_GYP_SYNTAX_CHECK":"1","DEPOT_TOOLS_UPDATE":"0","GYP'+\ |
| 138 '_DEFINES":" component=static_library","LANDMINES_VERBOSE":"1"},"ne'+\ | 139 '_DEFINES":" component=static_library","LANDMINES_VERBOSE":"1"},"ne'+\ |
| 139 'eds_webdriver_java_tests":true}'], allow_subannotations=True) | 140 'eds_webdriver_java_tests":true}'], allow_subannotations=True) |
| 140 | 141 |
| 141 | 142 |
| 142 def Win7_steps(api): | 143 def Win7_steps(api): |
| 143 # update scripts step; implicitly run by recipe engine. | 144 # update scripts step; implicitly run by recipe engine. |
| 144 # taskkill step | 145 # taskkill step |
| 145 api.python("taskkill", api.path["build"].join("scripts", "slave", | 146 api.python("taskkill", api.infra_paths['build'].join("scripts", "slave", |
| 146 "kill_processes.py")) | 147 "kill_processes.py")) |
| 147 # bot_update step | 148 # bot_update step |
| 148 src_cfg = api.gclient.make_config(GIT_MODE=True) | 149 src_cfg = api.gclient.make_config(GIT_MODE=True) |
| 149 soln = src_cfg.solutions.add() | 150 soln = src_cfg.solutions.add() |
| 150 soln.name = "src" | 151 soln.name = "src" |
| 151 soln.url = "https://chromium.googlesource.com/chromium/src.git" | 152 soln.url = "https://chromium.googlesource.com/chromium/src.git" |
| 152 soln.custom_deps = {'src/chrome/test/chromedriver/third_party/java_tests': | 153 soln.custom_deps = {'src/chrome/test/chromedriver/third_party/java_tests': |
| 153 'https://chromium.googlesource.com/chromium/deps/webdriver'} | 154 'https://chromium.googlesource.com/chromium/deps/webdriver'} |
| 154 soln = src_cfg.solutions.add() | 155 soln = src_cfg.solutions.add() |
| 155 soln.name = "src-internal" | 156 soln.name = "src-internal" |
| (...skipping 21 matching lines...) Expand all Loading... | |
| 177 'src/tools/swarming_client': 'got_swarming_client_revision', | 178 'src/tools/swarming_client': 'got_swarming_client_revision', |
| 178 'src/v8': 'got_v8_revision'}) | 179 'src/v8': 'got_v8_revision'}) |
| 179 api.gclient.c = src_cfg | 180 api.gclient.c = src_cfg |
| 180 result = api.bot_update.ensure_checkout(force=True) | 181 result = api.bot_update.ensure_checkout(force=True) |
| 181 build_properties = api.properties.legacy() | 182 build_properties = api.properties.legacy() |
| 182 build_properties.update(result.json.output.get('properties', {})) | 183 build_properties.update(result.json.output.get('properties', {})) |
| 183 # gclient update step; made unnecessary by bot_update | 184 # gclient update step; made unnecessary by bot_update |
| 184 # gclient runhooks wrapper step | 185 # gclient runhooks wrapper step |
| 185 env = {'CHROMIUM_GYP_SYNTAX_CHECK': '1', 'LANDMINES_VERBOSE': '1', | 186 env = {'CHROMIUM_GYP_SYNTAX_CHECK': '1', 'LANDMINES_VERBOSE': '1', |
| 186 'DEPOT_TOOLS_UPDATE': '0','GYP_DEFINES': ' component=static_library'} | 187 'DEPOT_TOOLS_UPDATE': '0','GYP_DEFINES': ' component=static_library'} |
| 187 api.python("gclient runhooks wrapper", api.path["build"].join("scripts", | 188 api.python("gclient runhooks wrapper", api.infra_paths['build'].join("scripts" , |
|
Sergiy Byelozyorov
2016/04/26 14:41:05
nit: long line
| |
| 188 "slave", "runhooks_wrapper.py"), env=env) | 189 "slave", "runhooks_wrapper.py"), env=env) |
| 189 # cleanup_temp step | 190 # cleanup_temp step |
| 190 api.chromium.cleanup_temp() | 191 api.chromium.cleanup_temp() |
| 191 # chromedriver compile.py step | 192 # chromedriver compile.py step |
| 192 api.step("compile", ["python_slave", api.path["build"].join("scripts", | 193 api.step("compile", ["python_slave", api.infra_paths['build'].join("scripts", |
| 193 "slave", "compile.py"), '--solution', 'all.sln', '--project', | 194 "slave", "compile.py"), '--solution', 'all.sln', '--project', |
| 194 'chromium_builder_chromedriver', '--target', 'Release']) | 195 'chromium_builder_chromedriver', '--target', 'Release']) |
| 195 # annotated_steps step | 196 # annotated_steps step |
| 196 api.step("annotated_steps", ["python_slave", api.path["build"].join("scripts", | 197 api.step("annotated_steps", ["python_slave", api.infra_paths['build'].join("sc ripts", |
|
Sergiy Byelozyorov
2016/04/26 14:41:06
nit: long line
| |
| 197 "slave", "chromium", "chromedriver_buildbot_run.py"), | 198 "slave", "chromium", "chromedriver_buildbot_run.py"), |
| 198 '--build-properties=%s' % api.json.dumps(build_properties, | 199 '--build-properties=%s' % api.json.dumps(build_properties, |
| 199 separators=(',', ':')), '--factory-properties={"annotated_script":"chro'+\ | 200 separators=(',', ':')), '--factory-properties={"annotated_script":"chro'+\ |
| 200 'medriver_buildbot_run.py","blink_config":"chromium","gclient_env":'+\ | 201 'medriver_buildbot_run.py","blink_config":"chromium","gclient_env":'+\ |
| 201 '{"CHROMIUM_GYP_SYNTAX_CHECK":"1","DEPOT_TOOLS_UPDATE":"0","GYP_DEF'+\ | 202 '{"CHROMIUM_GYP_SYNTAX_CHECK":"1","DEPOT_TOOLS_UPDATE":"0","GYP_DEF'+\ |
| 202 'INES":" component=static_library","LANDMINES_VERBOSE":"1"},"needs_'+\ | 203 'INES":" component=static_library","LANDMINES_VERBOSE":"1"},"needs_'+\ |
| 203 'webdriver_java_tests":true}'], allow_subannotations=True) | 204 'webdriver_java_tests":true}'], allow_subannotations=True) |
| 204 | 205 |
| 205 | 206 |
| 206 def Linux_steps(api): | 207 def Linux_steps(api): |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 239 'src/v8': 'got_v8_revision'}) | 240 'src/v8': 'got_v8_revision'}) |
| 240 api.gclient.c = src_cfg | 241 api.gclient.c = src_cfg |
| 241 result = api.bot_update.ensure_checkout(force=True) | 242 result = api.bot_update.ensure_checkout(force=True) |
| 242 build_properties = api.properties.legacy() | 243 build_properties = api.properties.legacy() |
| 243 build_properties.update(result.json.output.get('properties', {})) | 244 build_properties.update(result.json.output.get('properties', {})) |
| 244 # gclient update step; made unnecessary by bot_update | 245 # gclient update step; made unnecessary by bot_update |
| 245 # gclient runhooks wrapper step | 246 # gclient runhooks wrapper step |
| 246 env = {'CHROMIUM_GYP_SYNTAX_CHECK': '1', 'LANDMINES_VERBOSE': '1', | 247 env = {'CHROMIUM_GYP_SYNTAX_CHECK': '1', 'LANDMINES_VERBOSE': '1', |
| 247 'DEPOT_TOOLS_UPDATE': '0', 'GYP_DEFINES': | 248 'DEPOT_TOOLS_UPDATE': '0', 'GYP_DEFINES': |
| 248 'branding=Chrome buildtype=Official component=static_library'} | 249 'branding=Chrome buildtype=Official component=static_library'} |
| 249 api.python("gclient runhooks wrapper", api.path["build"].join("scripts", | 250 api.python("gclient runhooks wrapper", api.infra_paths['build'].join("scripts" , |
| 250 "slave", "runhooks_wrapper.py"), env=env) | 251 "slave", "runhooks_wrapper.py"), env=env) |
| 251 # cleanup_temp step | 252 # cleanup_temp step |
| 252 api.chromium.cleanup_temp() | 253 api.chromium.cleanup_temp() |
| 253 # chromedriver compile.py step | 254 # chromedriver compile.py step |
| 254 api.python("compile", api.path["build"].join("scripts", "slave", | 255 api.python("compile", api.infra_paths['build'].join("scripts", "slave", |
| 255 "compile.py"), args=['--target', 'Release', | 256 "compile.py"), args=['--target', 'Release', |
| 256 'chromium_builder_chromedriver']) | 257 'chromium_builder_chromedriver']) |
| 257 # annotated_steps step | 258 # annotated_steps step |
| 258 api.python("annotated_steps", api.path["build"].join("scripts", "slave", | 259 api.python("annotated_steps", api.infra_paths['build'].join("scripts", "slave" , |
|
Sergiy Byelozyorov
2016/04/26 14:41:05
nit: long line
| |
| 259 "chromium", "chromedriver_buildbot_run.py"), | 260 "chromium", "chromedriver_buildbot_run.py"), |
| 260 args=['--build-properties=%s' % api.json.dumps(build_properties, | 261 args=['--build-properties=%s' % api.json.dumps(build_properties, |
| 261 separators=(',', ':')), '--factory-properties={"annotated_script":"chro'+\ | 262 separators=(',', ':')), '--factory-properties={"annotated_script":"chro'+\ |
| 262 'medriver_buildbot_run.py","blink_config":"chromium","gclient_env":'+\ | 263 'medriver_buildbot_run.py","blink_config":"chromium","gclient_env":'+\ |
| 263 '{"CHROMIUM_GYP_SYNTAX_CHECK":"1","DEPOT_TOOLS_UPDATE":"0","GYP_DEF'+\ | 264 '{"CHROMIUM_GYP_SYNTAX_CHECK":"1","DEPOT_TOOLS_UPDATE":"0","GYP_DEF'+\ |
| 264 'INES":"branding=Chrome buildtype=Official component=static_library'+\ | 265 'INES":"branding=Chrome buildtype=Official component=static_library'+\ |
| 265 '","LANDMINES_VERBOSE":"1"},"needs_webdriver_java_tests":true,"use_'+\ | 266 '","LANDMINES_VERBOSE":"1"},"needs_webdriver_java_tests":true,"use_'+\ |
| 266 'xvfb_on_linux":true}'], allow_subannotations=True) | 267 'xvfb_on_linux":true}'], allow_subannotations=True) |
| 267 | 268 |
| 268 | 269 |
| (...skipping 30 matching lines...) Expand all Loading... | |
| 299 yield (api.test('Linux') + | 300 yield (api.test('Linux') + |
| 300 api.properties(mastername='chromium.chromedriver') + | 301 api.properties(mastername='chromium.chromedriver') + |
| 301 api.properties(buildername='Linux') + | 302 api.properties(buildername='Linux') + |
| 302 api.properties(slavename='TestSlave') | 303 api.properties(slavename='TestSlave') |
| 303 ) | 304 ) |
| 304 yield (api.test('builder_not_in_dispatch_directory') + | 305 yield (api.test('builder_not_in_dispatch_directory') + |
| 305 api.properties(mastername='chromium.chromedriver') + | 306 api.properties(mastername='chromium.chromedriver') + |
| 306 api.properties(buildername='nonexistent_builder') + | 307 api.properties(buildername='nonexistent_builder') + |
| 307 api.properties(slavename='TestSlave') | 308 api.properties(slavename='TestSlave') |
| 308 ) | 309 ) |
| OLD | NEW |