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

Side by Side Diff: scripts/slave/recipes/chromium.chromedriver.recipe_autogen.py

Issue 2171093002: Switch ChromeDriver builders from GYP to GN. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: rebase Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | scripts/slave/recipes/chromium.chromedriver.recipe_autogen.expected/Linux.json » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2016 The Chromium Authors. All rights reserved. 1 # Copyright 2016 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 DEPS = [ 5 DEPS = [
6 'depot_tools/bot_update', 6 'depot_tools/bot_update',
7 'chromium', 7 'chromium',
8 'depot_tools/gclient', 8 'depot_tools/gclient',
9 'recipe_engine/json', 9 'recipe_engine/json',
10 'recipe_engine/path', 10 'recipe_engine/path',
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 src_cfg.got_revision_mapping.update({'src': 'got_revision', 46 src_cfg.got_revision_mapping.update({'src': 'got_revision',
47 'src/third_party/WebKit': 'got_webkit_revision', 47 'src/third_party/WebKit': 'got_webkit_revision',
48 'src/tools/swarming_client': 'got_swarming_client_revision', 48 'src/tools/swarming_client': 'got_swarming_client_revision',
49 'src/v8': 'got_v8_revision'}) 49 'src/v8': 'got_v8_revision'})
50 api.gclient.c = src_cfg 50 api.gclient.c = src_cfg
51 result = api.bot_update.ensure_checkout(force=True) 51 result = api.bot_update.ensure_checkout(force=True)
52 build_properties = api.properties.legacy() 52 build_properties = api.properties.legacy()
53 build_properties.update(result.json.output.get('properties', {})) 53 build_properties.update(result.json.output.get('properties', {}))
54 # gclient update step; made unnecessary by bot_update 54 # gclient update step; made unnecessary by bot_update
55 # gclient runhooks wrapper step 55 # gclient runhooks wrapper step
56 env = {'CHROMIUM_GYP_SYNTAX_CHECK': '1', 'LANDMINES_VERBOSE': '1', 56 env = {'LANDMINES_VERBOSE': '1', 'DEPOT_TOOLS_UPDATE': '0'}
57 'DEPOT_TOOLS_UPDATE': '0',
58 'GYP_DEFINES':
59 'branding=Chrome buildtype=Official component=static_library',
60 'GYP_CHROMIUM_NO_ACTION': '0'}
61 api.python("gclient runhooks wrapper", api.path["build"].join("scripts", 57 api.python("gclient runhooks wrapper", api.path["build"].join("scripts",
62 "slave", "runhooks_wrapper.py"), env=env) 58 "slave", "runhooks_wrapper.py"), env=env)
63 # cleanup_temp step 59 # cleanup_temp step
64 api.chromium.cleanup_temp() 60 api.chromium.cleanup_temp()
61 # meta build step
62 api.python("meta build", api.path["checkout"].join("tools", "mb", "mb.py"),
63 args=["gen", "-m", "chromium.chromedriver", "-b",
64 build_properties.get('buildername'), "//out/Default"])
65 # chromedriver compile.py step 65 # chromedriver compile.py step
66 api.python("compile", api.path["build"].join("scripts", "slave", 66 api.python("compile", api.path["build"].join("scripts", "slave",
67 "compile.py"), args=['--target', 'Release', 67 "compile.py"), args=['--target', 'Default',
68 'chromium_builder_chromedriver']) 68 'chromedriver', 'chromedriver_tests', 'chromedriver_unittests'])
69 # strip binary
70 api.m.step('strip', cmd=['strip', str(api.path['checkout'].join(
71 'out', 'Default', 'chromedriver'))])
69 # annotated_steps step 72 # annotated_steps step
70 api.python("annotated_steps", api.path["build"].join("scripts", "slave", 73 api.python("annotated_steps", api.path["build"].join("scripts", "slave",
71 "chromium", "chromedriver_buildbot_run.py"), 74 "chromium", "chromedriver_buildbot_run.py"),
72 args=['--build-properties=%s' % api.json.dumps(build_properties, 75 args=['--build-properties=%s' % api.json.dumps(build_properties,
73 separators=(',', ':')), '--factory-properties={"annotated_script":'+\ 76 separators=(',', ':')), '--factory-properties={"annotated_script":'+\
74 '"chromedriver_buildbot_run.py","blink_config":"chromium",'+\ 77 '"chromedriver_buildbot_run.py","blink_config":"chromium",'+\
75 '"gclient_env":{"CHROMIUM_GYP_SYNTAX_CHECK":"1",'+\ 78 '"gclient_env":{"DEPOT_TOOLS_UPDATE":"0","LANDMINES_VERBOSE":'+\
76 '"DEPOT_TOOLS_UPDATE"'':"0","GYP_DEFINES":"branding=Chrome '+\
77 'buildtype=Official component=static_library","LANDMINES_VERBOSE":'+\
78 '"1"},"needs_webdriver_java_tests":true,"use_xvfb_on_linux":true}'], 79 '"1"},"needs_webdriver_java_tests":true,"use_xvfb_on_linux":true}'],
79 allow_subannotations=True) 80 allow_subannotations=True)
80 81
81 82
82 def Mac_10_6_steps(api): 83 def Mac_10_6_steps(api):
83 # update scripts step; implicitly run by recipe engine. 84 # update scripts step; implicitly run by recipe engine.
84 # bot_update step 85 # bot_update step
85 src_cfg = api.gclient.make_config(GIT_MODE=True) 86 src_cfg = api.gclient.make_config(GIT_MODE=True)
86 soln = src_cfg.solutions.add() 87 soln = src_cfg.solutions.add()
87 soln.name = "src" 88 soln.name = "src"
(...skipping 24 matching lines...) Expand all
112 src_cfg.got_revision_mapping.update({'src': 'got_revision', 113 src_cfg.got_revision_mapping.update({'src': 'got_revision',
113 'src/third_party/WebKit': 'got_webkit_revision', 114 'src/third_party/WebKit': 'got_webkit_revision',
114 'src/tools/swarming_client': 'got_swarming_client_revision', 115 'src/tools/swarming_client': 'got_swarming_client_revision',
115 'src/v8': 'got_v8_revision'}) 116 'src/v8': 'got_v8_revision'})
116 api.gclient.c = src_cfg 117 api.gclient.c = src_cfg
117 result = api.bot_update.ensure_checkout(force=True) 118 result = api.bot_update.ensure_checkout(force=True)
118 build_properties = api.properties.legacy() 119 build_properties = api.properties.legacy()
119 build_properties.update(result.json.output.get('properties', {})) 120 build_properties.update(result.json.output.get('properties', {}))
120 # gclient update step; made unnecessary by bot_update 121 # gclient update step; made unnecessary by bot_update
121 # gclient runhooks wrapper step 122 # gclient runhooks wrapper step
122 env = {'CHROMIUM_GYP_SYNTAX_CHECK': '1', 'LANDMINES_VERBOSE': '1', 123 env = {'LANDMINES_VERBOSE': '1', 'DEPOT_TOOLS_UPDATE': '0'}
123 'DEPOT_TOOLS_UPDATE': '0', 'GYP_DEFINES': ' component=static_library',
124 'GYP_CHROMIUM_NO_ACTION': '0'}
125 api.python("gclient runhooks wrapper", api.path["build"].join("scripts", 124 api.python("gclient runhooks wrapper", api.path["build"].join("scripts",
126 "slave", "runhooks_wrapper.py"), env=env) 125 "slave", "runhooks_wrapper.py"), env=env)
127 # cleanup_temp step 126 # cleanup_temp step
128 api.chromium.cleanup_temp() 127 api.chromium.cleanup_temp()
128 # meta build step
129 api.python("meta build", api.path["checkout"].join("tools", "mb", "mb.py"),
130 args=["gen", "-m", "chromium.chromedriver", "-b",
131 build_properties.get('buildername'), "//out/Default"])
129 # chromedriver compile.py step 132 # chromedriver compile.py step
130 api.python("compile", api.path["build"].join("scripts", "slave", 133 api.python("compile", api.path["build"].join("scripts", "slave",
131 "compile.py"), args=['--target', 'Release', 134 "compile.py"), args=['--target', 'Default',
132 'chromium_builder_chromedriver']) 135 'chromedriver', 'chromedriver_tests', 'chromedriver_unittests'])
136 # strip binary
137 api.m.step('strip', cmd=['strip', str(api.path['checkout'].join(
138 'out', 'Default', 'chromedriver'))])
133 # annotated_steps step 139 # annotated_steps step
134 api.python("annotated_steps", api.path["build"].join("scripts", "slave", 140 api.python("annotated_steps", api.path["build"].join("scripts", "slave",
135 "chromium", "chromedriver_buildbot_run.py"), 141 "chromium", "chromedriver_buildbot_run.py"),
136 args=['--build-properties=%s' % api.json.dumps(build_properties, 142 args=['--build-properties=%s' % api.json.dumps(build_properties,
137 separators=(',', ':')), '--factory-properties={"annotated_script":"c'+\ 143 separators=(',', ':')), '--factory-properties={"annotated_script":"c'+\
138 'hromedriver_buildbot_run.py","blink_config":"chromium","gclient_e'+\ 144 'hromedriver_buildbot_run.py","blink_config":"chromium","gclient_e'+\
139 'nv":{"CHROMIUM_GYP_SYNTAX_CHECK":"1","DEPOT_TOOLS_UPDATE":"0","GYP'+\ 145 'nv":{"DEPOT_TOOLS_UPDATE":"0","LANDMINES_VERBOSE":"1"},"ne'+\
140 '_DEFINES":" component=static_library","LANDMINES_VERBOSE":"1"},"ne'+\
141 'eds_webdriver_java_tests":true}'], allow_subannotations=True) 146 'eds_webdriver_java_tests":true}'], allow_subannotations=True)
142 147
143 148
144 def Win7_steps(api): 149 def Win7_steps(api):
145 # update scripts step; implicitly run by recipe engine. 150 # update scripts step; implicitly run by recipe engine.
146 # taskkill step 151 # taskkill step
147 api.python("taskkill", api.path["build"].join("scripts", "slave", 152 api.python("taskkill", api.path["build"].join("scripts", "slave",
148 "kill_processes.py")) 153 "kill_processes.py"))
149 # bot_update step 154 # bot_update step
150 src_cfg = api.gclient.make_config(GIT_MODE=True) 155 src_cfg = api.gclient.make_config(GIT_MODE=True)
(...skipping 26 matching lines...) Expand all
177 src_cfg.got_revision_mapping.update({'src': 'got_revision', 182 src_cfg.got_revision_mapping.update({'src': 'got_revision',
178 'src/third_party/WebKit': 'got_webkit_revision', 183 'src/third_party/WebKit': 'got_webkit_revision',
179 'src/tools/swarming_client': 'got_swarming_client_revision', 184 'src/tools/swarming_client': 'got_swarming_client_revision',
180 'src/v8': 'got_v8_revision'}) 185 'src/v8': 'got_v8_revision'})
181 api.gclient.c = src_cfg 186 api.gclient.c = src_cfg
182 result = api.bot_update.ensure_checkout(force=True) 187 result = api.bot_update.ensure_checkout(force=True)
183 build_properties = api.properties.legacy() 188 build_properties = api.properties.legacy()
184 build_properties.update(result.json.output.get('properties', {})) 189 build_properties.update(result.json.output.get('properties', {}))
185 # gclient update step; made unnecessary by bot_update 190 # gclient update step; made unnecessary by bot_update
186 # gclient runhooks wrapper step 191 # gclient runhooks wrapper step
187 env = {'CHROMIUM_GYP_SYNTAX_CHECK': '1', 'LANDMINES_VERBOSE': '1', 192 env = {'LANDMINES_VERBOSE': '1', 'DEPOT_TOOLS_UPDATE': '0'}
188 'DEPOT_TOOLS_UPDATE': '0','GYP_DEFINES': ' component=static_library',
189 'GYP_CHROMIUM_NO_ACTION': '0'}
190 api.python("gclient runhooks wrapper", api.path["build"].join("scripts", 193 api.python("gclient runhooks wrapper", api.path["build"].join("scripts",
191 "slave", "runhooks_wrapper.py"), env=env) 194 "slave", "runhooks_wrapper.py"), env=env)
192 # cleanup_temp step 195 # cleanup_temp step
193 api.chromium.cleanup_temp() 196 api.chromium.cleanup_temp()
197 # meta build step
198 api.python("meta build", api.path["checkout"].join("tools", "mb", "mb.py"),
199 args=["gen", "-m", "chromium.chromedriver", "-b",
200 build_properties.get('buildername'), "//out/Default"])
194 # chromedriver compile.py step 201 # chromedriver compile.py step
195 api.step("compile", ["python_slave", api.path["build"].join("scripts", 202 api.step("compile", ["python_slave", api.path["build"].join("scripts",
196 "slave", "compile.py"), '--target', 'Release', 203 "slave", "compile.py"), '--target', 'Default',
197 'chromium_builder_chromedriver']) 204 'chromedriver', 'chromedriver_tests', 'chromedriver_unittests'])
198 # annotated_steps step 205 # annotated_steps step
199 api.step("annotated_steps", ["python_slave", api.path["build"].join("scripts", 206 api.step("annotated_steps", ["python_slave", api.path["build"].join("scripts",
200 "slave", "chromium", "chromedriver_buildbot_run.py"), 207 "slave", "chromium", "chromedriver_buildbot_run.py"),
201 '--build-properties=%s' % api.json.dumps(build_properties, 208 '--build-properties=%s' % api.json.dumps(build_properties,
202 separators=(',', ':')), '--factory-properties={"annotated_script":"chro'+\ 209 separators=(',', ':')), '--factory-properties={"annotated_script":"chro'+\
203 'medriver_buildbot_run.py","blink_config":"chromium","gclient_env":'+\ 210 'medriver_buildbot_run.py","blink_config":"chromium","gclient_env":'+\
204 '{"CHROMIUM_GYP_SYNTAX_CHECK":"1","DEPOT_TOOLS_UPDATE":"0","GYP_DEF'+\ 211 '{"DEPOT_TOOLS_UPDATE":"0","LANDMINES_VERBOSE":"1"},"needs_'+\
205 'INES":" component=static_library","LANDMINES_VERBOSE":"1"},"needs_'+\
206 'webdriver_java_tests":true}'], allow_subannotations=True) 212 'webdriver_java_tests":true}'], allow_subannotations=True)
207 213
208 214
209 def Linux_steps(api): 215 def Linux_steps(api):
210 # update scripts step; implicitly run by recipe engine. 216 # update scripts step; implicitly run by recipe engine.
211 # bot_update step 217 # bot_update step
212 src_cfg = api.gclient.make_config(GIT_MODE=True) 218 src_cfg = api.gclient.make_config(GIT_MODE=True)
213 soln = src_cfg.solutions.add() 219 soln = src_cfg.solutions.add()
214 soln.name = "src" 220 soln.name = "src"
215 soln.url = "https://chromium.googlesource.com/chromium/src.git" 221 soln.url = "https://chromium.googlesource.com/chromium/src.git"
(...skipping 23 matching lines...) Expand all
239 src_cfg.got_revision_mapping.update({'src': 'got_revision', 245 src_cfg.got_revision_mapping.update({'src': 'got_revision',
240 'src/third_party/WebKit': 'got_webkit_revision', 246 'src/third_party/WebKit': 'got_webkit_revision',
241 'src/tools/swarming_client': 'got_swarming_client_revision', 247 'src/tools/swarming_client': 'got_swarming_client_revision',
242 'src/v8': 'got_v8_revision'}) 248 'src/v8': 'got_v8_revision'})
243 api.gclient.c = src_cfg 249 api.gclient.c = src_cfg
244 result = api.bot_update.ensure_checkout(force=True) 250 result = api.bot_update.ensure_checkout(force=True)
245 build_properties = api.properties.legacy() 251 build_properties = api.properties.legacy()
246 build_properties.update(result.json.output.get('properties', {})) 252 build_properties.update(result.json.output.get('properties', {}))
247 # gclient update step; made unnecessary by bot_update 253 # gclient update step; made unnecessary by bot_update
248 # gclient runhooks wrapper step 254 # gclient runhooks wrapper step
249 env = {'CHROMIUM_GYP_SYNTAX_CHECK': '1', 'LANDMINES_VERBOSE': '1', 255 env = {'LANDMINES_VERBOSE': '1', 'DEPOT_TOOLS_UPDATE': '0'}
250 'DEPOT_TOOLS_UPDATE': '0', 'GYP_DEFINES':
251 'branding=Chrome buildtype=Official component=static_library',
252 'GYP_CHROMIUM_NO_ACTION': '0'}
253 api.python("gclient runhooks wrapper", api.path["build"].join("scripts", 256 api.python("gclient runhooks wrapper", api.path["build"].join("scripts",
254 "slave", "runhooks_wrapper.py"), env=env) 257 "slave", "runhooks_wrapper.py"), env=env)
255 # cleanup_temp step 258 # cleanup_temp step
256 api.chromium.cleanup_temp() 259 api.chromium.cleanup_temp()
260 # meta build step
261 api.python("meta build", api.path["checkout"].join("tools", "mb", "mb.py"),
262 args=["gen", "-m", "chromium.chromedriver", "-b",
263 build_properties.get('buildername'), "//out/Default"])
257 # chromedriver compile.py step 264 # chromedriver compile.py step
258 api.python("compile", api.path["build"].join("scripts", "slave", 265 api.python("compile", api.path["build"].join("scripts", "slave",
259 "compile.py"), args=['--target', 'Release', 266 "compile.py"), args=['--target', 'Default',
260 'chromium_builder_chromedriver']) 267 'chromedriver', 'chromedriver_tests', 'chromedriver_unittests'])
268 # strip binary
269 api.m.step('strip', cmd=['strip', str(api.path['checkout'].join(
270 'out', 'Default', 'chromedriver'))])
261 # annotated_steps step 271 # annotated_steps step
262 api.python("annotated_steps", api.path["build"].join("scripts", "slave", 272 api.python("annotated_steps", api.path["build"].join("scripts", "slave",
263 "chromium", "chromedriver_buildbot_run.py"), 273 "chromium", "chromedriver_buildbot_run.py"),
264 args=['--build-properties=%s' % api.json.dumps(build_properties, 274 args=['--build-properties=%s' % api.json.dumps(build_properties,
265 separators=(',', ':')), '--factory-properties={"annotated_script":"chro'+\ 275 separators=(',', ':')), '--factory-properties={"annotated_script":"chro'+\
266 'medriver_buildbot_run.py","blink_config":"chromium","gclient_env":'+\ 276 'medriver_buildbot_run.py","blink_config":"chromium","gclient_env":'+\
267 '{"CHROMIUM_GYP_SYNTAX_CHECK":"1","DEPOT_TOOLS_UPDATE":"0","GYP_DEF'+\ 277 '{"DEPOT_TOOLS_UPDATE":"0","LANDMINES_VERBOSE":"1"},"needs_webdrive'+\
268 'INES":"branding=Chrome buildtype=Official component=static_library'+\ 278 'r_java_tests":true,"use_xvfb_on_linux":true}'],
269 '","LANDMINES_VERBOSE":"1"},"needs_webdriver_java_tests":true,"use_'+\ 279 allow_subannotations=True)
270 'xvfb_on_linux":true}'], allow_subannotations=True)
271 280
272 281
273 dispatch_directory = { 282 dispatch_directory = {
274 'Linux32': Linux32_steps, 283 'Linux32': Linux32_steps,
275 'Mac 10.6': Mac_10_6_steps, 284 'Mac 10.6': Mac_10_6_steps,
276 'Win7': Win7_steps, 285 'Win7': Win7_steps,
277 'Linux': Linux_steps, 286 'Linux': Linux_steps,
278 } 287 }
279 288
280 289
(...skipping 22 matching lines...) Expand all
303 yield (api.test('Linux') + 312 yield (api.test('Linux') +
304 api.properties(mastername='chromium.chromedriver') + 313 api.properties(mastername='chromium.chromedriver') +
305 api.properties(buildername='Linux') + 314 api.properties(buildername='Linux') +
306 api.properties(slavename='TestSlave') 315 api.properties(slavename='TestSlave')
307 ) 316 )
308 yield (api.test('builder_not_in_dispatch_directory') + 317 yield (api.test('builder_not_in_dispatch_directory') +
309 api.properties(mastername='chromium.chromedriver') + 318 api.properties(mastername='chromium.chromedriver') +
310 api.properties(buildername='nonexistent_builder') + 319 api.properties(buildername='nonexistent_builder') +
311 api.properties(slavename='TestSlave') 320 api.properties(slavename='TestSlave')
312 ) 321 )
OLDNEW
« no previous file with comments | « no previous file | scripts/slave/recipes/chromium.chromedriver.recipe_autogen.expected/Linux.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698