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

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: set args properly, and do the other bots too 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 api.python("gclient runhooks wrapper", api.path["build"].join("scripts", 57 api.python("gclient runhooks wrapper", api.path["build"].join("scripts",
61 "slave", "runhooks_wrapper.py"), env=env) 58 "slave", "runhooks_wrapper.py"), env=env)
62 # cleanup_temp step 59 # cleanup_temp step
63 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", "Linux32",
jbudorick 2016/07/22 02:58:31 I guess this is ok in the short term, but it shoul
samuong 2016/07/22 03:52:22 Done.
64 "//out/Default"])
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.path["build"].join("scripts", "slave",
66 "compile.py"), args=['--target', 'Release', 67 "compile.py"), args=['--target', 'Default',
67 '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'))])
68 # annotated_steps step 72 # annotated_steps step
69 api.python("annotated_steps", api.path["build"].join("scripts", "slave", 73 api.python("annotated_steps", api.path["build"].join("scripts", "slave",
70 "chromium", "chromedriver_buildbot_run.py"), 74 "chromium", "chromedriver_buildbot_run.py"),
71 args=['--build-properties=%s' % api.json.dumps(build_properties, 75 args=['--build-properties=%s' % api.json.dumps(build_properties,
72 separators=(',', ':')), '--factory-properties={"annotated_script":'+\ 76 separators=(',', ':')), '--factory-properties={"annotated_script":'+\
73 '"chromedriver_buildbot_run.py","blink_config":"chromium",'+\ 77 '"chromedriver_buildbot_run.py","blink_config":"chromium",'+\
74 '"gclient_env":{"CHROMIUM_GYP_SYNTAX_CHECK":"1",'+\ 78 '"gclient_env":{"DEPOT_TOOLS_UPDATE":"0","LANDMINES_VERBOSE":'+\
75 '"DEPOT_TOOLS_UPDATE"'':"0","GYP_DEFINES":"branding=Chrome '+\
76 'buildtype=Official component=static_library","LANDMINES_VERBOSE":'+\
77 '"1"},"needs_webdriver_java_tests":true,"use_xvfb_on_linux":true}'], 79 '"1"},"needs_webdriver_java_tests":true,"use_xvfb_on_linux":true}'],
78 allow_subannotations=True) 80 allow_subannotations=True)
79 81
80 82
81 def Mac_10_6_steps(api): 83 def Mac_10_6_steps(api):
82 # update scripts step; implicitly run by recipe engine. 84 # update scripts step; implicitly run by recipe engine.
83 # bot_update step 85 # bot_update step
84 src_cfg = api.gclient.make_config(GIT_MODE=True) 86 src_cfg = api.gclient.make_config(GIT_MODE=True)
85 soln = src_cfg.solutions.add() 87 soln = src_cfg.solutions.add()
86 soln.name = "src" 88 soln.name = "src"
(...skipping 24 matching lines...) Expand all
111 src_cfg.got_revision_mapping.update({'src': 'got_revision', 113 src_cfg.got_revision_mapping.update({'src': 'got_revision',
112 'src/third_party/WebKit': 'got_webkit_revision', 114 'src/third_party/WebKit': 'got_webkit_revision',
113 'src/tools/swarming_client': 'got_swarming_client_revision', 115 'src/tools/swarming_client': 'got_swarming_client_revision',
114 'src/v8': 'got_v8_revision'}) 116 'src/v8': 'got_v8_revision'})
115 api.gclient.c = src_cfg 117 api.gclient.c = src_cfg
116 result = api.bot_update.ensure_checkout(force=True) 118 result = api.bot_update.ensure_checkout(force=True)
117 build_properties = api.properties.legacy() 119 build_properties = api.properties.legacy()
118 build_properties.update(result.json.output.get('properties', {})) 120 build_properties.update(result.json.output.get('properties', {}))
119 # gclient update step; made unnecessary by bot_update 121 # gclient update step; made unnecessary by bot_update
120 # gclient runhooks wrapper step 122 # gclient runhooks wrapper step
121 env = {'CHROMIUM_GYP_SYNTAX_CHECK': '1', 'LANDMINES_VERBOSE': '1', 123 env = {'LANDMINES_VERBOSE': '1', 'DEPOT_TOOLS_UPDATE': '0'}
122 '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.path["build"].join("scripts",
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()
128 # meta build step
129 api.python("meta build", api.path["checkout"].join("tools", "mb", "mb.py"),
130 args=["gen", "-m", "chromium.chromedriver", "-b", "Mac 10.6",
131 "//out/Default"])
127 # chromedriver compile.py step 132 # chromedriver compile.py step
128 api.python("compile", api.path["build"].join("scripts", "slave", 133 api.python("compile", api.path["build"].join("scripts", "slave",
129 "compile.py"), args=['--target', 'Release', 134 "compile.py"), args=['--target', 'Default',
130 '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'))])
131 # annotated_steps step 139 # annotated_steps step
132 api.python("annotated_steps", api.path["build"].join("scripts", "slave", 140 api.python("annotated_steps", api.path["build"].join("scripts", "slave",
133 "chromium", "chromedriver_buildbot_run.py"), 141 "chromium", "chromedriver_buildbot_run.py"),
134 args=['--build-properties=%s' % api.json.dumps(build_properties, 142 args=['--build-properties=%s' % api.json.dumps(build_properties,
135 separators=(',', ':')), '--factory-properties={"annotated_script":"c'+\ 143 separators=(',', ':')), '--factory-properties={"annotated_script":"c'+\
136 'hromedriver_buildbot_run.py","blink_config":"chromium","gclient_e'+\ 144 'hromedriver_buildbot_run.py","blink_config":"chromium","gclient_e'+\
137 'nv":{"CHROMIUM_GYP_SYNTAX_CHECK":"1","DEPOT_TOOLS_UPDATE":"0","GYP'+\ 145 'nv":{"DEPOT_TOOLS_UPDATE":"0","LANDMINES_VERBOSE":"1"},"ne'+\
138 '_DEFINES":" component=static_library","LANDMINES_VERBOSE":"1"},"ne'+\
139 'eds_webdriver_java_tests":true}'], allow_subannotations=True) 146 'eds_webdriver_java_tests":true}'], allow_subannotations=True)
140 147
141 148
142 def Win7_steps(api): 149 def Win7_steps(api):
143 # update scripts step; implicitly run by recipe engine. 150 # update scripts step; implicitly run by recipe engine.
144 # taskkill step 151 # taskkill step
145 api.python("taskkill", api.path["build"].join("scripts", "slave", 152 api.python("taskkill", api.path["build"].join("scripts", "slave",
146 "kill_processes.py")) 153 "kill_processes.py"))
147 # bot_update step 154 # bot_update step
148 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
175 src_cfg.got_revision_mapping.update({'src': 'got_revision', 182 src_cfg.got_revision_mapping.update({'src': 'got_revision',
176 'src/third_party/WebKit': 'got_webkit_revision', 183 'src/third_party/WebKit': 'got_webkit_revision',
177 'src/tools/swarming_client': 'got_swarming_client_revision', 184 'src/tools/swarming_client': 'got_swarming_client_revision',
178 'src/v8': 'got_v8_revision'}) 185 'src/v8': 'got_v8_revision'})
179 api.gclient.c = src_cfg 186 api.gclient.c = src_cfg
180 result = api.bot_update.ensure_checkout(force=True) 187 result = api.bot_update.ensure_checkout(force=True)
181 build_properties = api.properties.legacy() 188 build_properties = api.properties.legacy()
182 build_properties.update(result.json.output.get('properties', {})) 189 build_properties.update(result.json.output.get('properties', {}))
183 # gclient update step; made unnecessary by bot_update 190 # gclient update step; made unnecessary by bot_update
184 # gclient runhooks wrapper step 191 # gclient runhooks wrapper step
185 env = {'CHROMIUM_GYP_SYNTAX_CHECK': '1', 'LANDMINES_VERBOSE': '1', 192 env = {'LANDMINES_VERBOSE': '1', 'DEPOT_TOOLS_UPDATE': '0'}
186 'DEPOT_TOOLS_UPDATE': '0','GYP_DEFINES': ' component=static_library'}
187 api.python("gclient runhooks wrapper", api.path["build"].join("scripts", 193 api.python("gclient runhooks wrapper", api.path["build"].join("scripts",
188 "slave", "runhooks_wrapper.py"), env=env) 194 "slave", "runhooks_wrapper.py"), env=env)
189 # cleanup_temp step 195 # cleanup_temp step
190 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", "Win7",
200 "//out/Default"])
191 # chromedriver compile.py step 201 # chromedriver compile.py step
192 api.step("compile", ["python_slave", api.path["build"].join("scripts", 202 api.step("compile", ["python_slave", api.path["build"].join("scripts",
193 "slave", "compile.py"), '--target', 'Release', 203 "slave", "compile.py"), '--target', 'Default',
194 'chromium_builder_chromedriver']) 204 'chromedriver', 'chromedriver_tests', 'chromedriver_unittests'])
195 # annotated_steps step 205 # annotated_steps step
196 api.step("annotated_steps", ["python_slave", api.path["build"].join("scripts", 206 api.step("annotated_steps", ["python_slave", api.path["build"].join("scripts",
197 "slave", "chromium", "chromedriver_buildbot_run.py"), 207 "slave", "chromium", "chromedriver_buildbot_run.py"),
198 '--build-properties=%s' % api.json.dumps(build_properties, 208 '--build-properties=%s' % api.json.dumps(build_properties,
199 separators=(',', ':')), '--factory-properties={"annotated_script":"chro'+\ 209 separators=(',', ':')), '--factory-properties={"annotated_script":"chro'+\
200 'medriver_buildbot_run.py","blink_config":"chromium","gclient_env":'+\ 210 'medriver_buildbot_run.py","blink_config":"chromium","gclient_env":'+\
201 '{"CHROMIUM_GYP_SYNTAX_CHECK":"1","DEPOT_TOOLS_UPDATE":"0","GYP_DEF'+\ 211 '{"DEPOT_TOOLS_UPDATE":"0","LANDMINES_VERBOSE":"1"},"needs_'+\
202 'INES":" component=static_library","LANDMINES_VERBOSE":"1"},"needs_'+\
203 'webdriver_java_tests":true}'], allow_subannotations=True) 212 'webdriver_java_tests":true}'], allow_subannotations=True)
204 213
205 214
206 def Linux_steps(api): 215 def Linux_steps(api):
207 # update scripts step; implicitly run by recipe engine. 216 # update scripts step; implicitly run by recipe engine.
208 # bot_update step 217 # bot_update step
209 src_cfg = api.gclient.make_config(GIT_MODE=True) 218 src_cfg = api.gclient.make_config(GIT_MODE=True)
210 soln = src_cfg.solutions.add() 219 soln = src_cfg.solutions.add()
211 soln.name = "src" 220 soln.name = "src"
212 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
236 src_cfg.got_revision_mapping.update({'src': 'got_revision', 245 src_cfg.got_revision_mapping.update({'src': 'got_revision',
237 'src/third_party/WebKit': 'got_webkit_revision', 246 'src/third_party/WebKit': 'got_webkit_revision',
238 'src/tools/swarming_client': 'got_swarming_client_revision', 247 'src/tools/swarming_client': 'got_swarming_client_revision',
239 'src/v8': 'got_v8_revision'}) 248 'src/v8': 'got_v8_revision'})
240 api.gclient.c = src_cfg 249 api.gclient.c = src_cfg
241 result = api.bot_update.ensure_checkout(force=True) 250 result = api.bot_update.ensure_checkout(force=True)
242 build_properties = api.properties.legacy() 251 build_properties = api.properties.legacy()
243 build_properties.update(result.json.output.get('properties', {})) 252 build_properties.update(result.json.output.get('properties', {}))
244 # gclient update step; made unnecessary by bot_update 253 # gclient update step; made unnecessary by bot_update
245 # gclient runhooks wrapper step 254 # gclient runhooks wrapper step
246 env = {'CHROMIUM_GYP_SYNTAX_CHECK': '1', 'LANDMINES_VERBOSE': '1', 255 env = {'LANDMINES_VERBOSE': '1', 'DEPOT_TOOLS_UPDATE': '0'}
247 'DEPOT_TOOLS_UPDATE': '0', 'GYP_DEFINES':
248 'branding=Chrome buildtype=Official component=static_library'}
249 api.python("gclient runhooks wrapper", api.path["build"].join("scripts", 256 api.python("gclient runhooks wrapper", api.path["build"].join("scripts",
250 "slave", "runhooks_wrapper.py"), env=env) 257 "slave", "runhooks_wrapper.py"), env=env)
251 # cleanup_temp step 258 # cleanup_temp step
252 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", "Linux",
263 "//out/Default"])
253 # chromedriver compile.py step 264 # chromedriver compile.py step
254 api.python("compile", api.path["build"].join("scripts", "slave", 265 api.python("compile", api.path["build"].join("scripts", "slave",
255 "compile.py"), args=['--target', 'Release', 266 "compile.py"), args=['--target', 'Default',
256 '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'))])
257 # annotated_steps step 271 # annotated_steps step
258 api.python("annotated_steps", api.path["build"].join("scripts", "slave", 272 api.python("annotated_steps", api.path["build"].join("scripts", "slave",
259 "chromium", "chromedriver_buildbot_run.py"), 273 "chromium", "chromedriver_buildbot_run.py"),
260 args=['--build-properties=%s' % api.json.dumps(build_properties, 274 args=['--build-properties=%s' % api.json.dumps(build_properties,
261 separators=(',', ':')), '--factory-properties={"annotated_script":"chro'+\ 275 separators=(',', ':')), '--factory-properties={"annotated_script":"chro'+\
262 'medriver_buildbot_run.py","blink_config":"chromium","gclient_env":'+\ 276 'medriver_buildbot_run.py","blink_config":"chromium","gclient_env":'+\
263 '{"CHROMIUM_GYP_SYNTAX_CHECK":"1","DEPOT_TOOLS_UPDATE":"0","GYP_DEF'+\ 277 '{"DEPOT_TOOLS_UPDATE":"0","LANDMINES_VERBOSE":"1"},"needs_webdrive'+\
264 'INES":"branding=Chrome buildtype=Official component=static_library'+\ 278 'r_java_tests":true,"use_xvfb_on_linux":true}'],
265 '","LANDMINES_VERBOSE":"1"},"needs_webdriver_java_tests":true,"use_'+\ 279 allow_subannotations=True)
266 'xvfb_on_linux":true}'], allow_subannotations=True)
267 280
268 281
269 dispatch_directory = { 282 dispatch_directory = {
270 'Linux32': Linux32_steps, 283 'Linux32': Linux32_steps,
271 'Mac 10.6': Mac_10_6_steps, 284 'Mac 10.6': Mac_10_6_steps,
272 'Win7': Win7_steps, 285 'Win7': Win7_steps,
273 'Linux': Linux_steps, 286 'Linux': Linux_steps,
274 } 287 }
275 288
276 289
(...skipping 22 matching lines...) Expand all
299 yield (api.test('Linux') + 312 yield (api.test('Linux') +
300 api.properties(mastername='chromium.chromedriver') + 313 api.properties(mastername='chromium.chromedriver') +
301 api.properties(buildername='Linux') + 314 api.properties(buildername='Linux') +
302 api.properties(slavename='TestSlave') 315 api.properties(slavename='TestSlave')
303 ) 316 )
304 yield (api.test('builder_not_in_dispatch_directory') + 317 yield (api.test('builder_not_in_dispatch_directory') +
305 api.properties(mastername='chromium.chromedriver') + 318 api.properties(mastername='chromium.chromedriver') +
306 api.properties(buildername='nonexistent_builder') + 319 api.properties(buildername='nonexistent_builder') +
307 api.properties(slavename='TestSlave') 320 api.properties(slavename='TestSlave')
308 ) 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