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

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

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