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', |
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 'trigger', | 15 'trigger', |
15 ] | 16 ] |
16 | 17 |
17 | 18 |
18 def Windows_Tests__DrMemory__steps(api): | 19 def Windows_Tests__DrMemory__steps(api): |
19 build_properties = api.properties.legacy() | 20 build_properties = api.properties.legacy() |
20 # svnkill step; not necessary in recipes | 21 # svnkill step; not necessary in recipes |
21 # update scripts step; implicitly run by recipe engine. | 22 # update scripts step; implicitly run by recipe engine. |
22 # taskkill step | 23 # taskkill step |
23 api.python("taskkill", api.path["build"].join("scripts", "slave", | 24 api.python("taskkill", api.infra_paths['build'].join("scripts", "slave", |
24 "kill_processes.py")) | 25 "kill_processes.py")) |
25 # bot_update step | 26 # bot_update step |
26 src_cfg = api.gclient.make_config(GIT_MODE=True) | 27 src_cfg = api.gclient.make_config(GIT_MODE=True) |
27 soln = src_cfg.solutions.add() | 28 soln = src_cfg.solutions.add() |
28 soln.name = "src" | 29 soln.name = "src" |
29 soln.url = "https://chromium.googlesource.com/chromium/src.git" | 30 soln.url = "https://chromium.googlesource.com/chromium/src.git" |
30 soln.custom_deps = {'src/third_party/WebKit/LayoutTests': None} | 31 soln.custom_deps = {'src/third_party/WebKit/LayoutTests': None} |
31 soln.custom_vars = {'webkit_trunk': 'http://src.chromium.org/blink/trunk', | 32 soln.custom_vars = {'webkit_trunk': 'http://src.chromium.org/blink/trunk', |
32 'googlecode_url': 'http://%s.googlecode.com/svn', | 33 'googlecode_url': 'http://%s.googlecode.com/svn', |
33 'nacl_trunk': | 34 'nacl_trunk': |
(...skipping 11 matching lines...) Expand all Loading... |
45 build_properties.update(result.json.output.get("properties", {})) | 46 build_properties.update(result.json.output.get("properties", {})) |
46 # gclient revert step; made unnecessary by bot_update | 47 # gclient revert step; made unnecessary by bot_update |
47 # gclient update step; made unnecessary by bot_update | 48 # gclient update step; made unnecessary by bot_update |
48 # gclient runhooks wrapper step | 49 # gclient runhooks wrapper step |
49 env = {'CHROMIUM_GYP_SYNTAX_CHECK': '1', | 50 env = {'CHROMIUM_GYP_SYNTAX_CHECK': '1', |
50 'GYP_CHROMIUM_NO_ACTION': '1', | 51 'GYP_CHROMIUM_NO_ACTION': '1', |
51 'LANDMINES_VERBOSE': '1', | 52 'LANDMINES_VERBOSE': '1', |
52 'DEPOT_TOOLS_UPDATE': '0', | 53 'DEPOT_TOOLS_UPDATE': '0', |
53 'GYP_DEFINES': ' component=static_library'} | 54 'GYP_DEFINES': ' component=static_library'} |
54 api.python("gclient runhooks wrapper", | 55 api.python("gclient runhooks wrapper", |
55 api.path["build"].join("scripts", "slave", | 56 api.infra_paths['build'].join("scripts", "slave", |
56 "runhooks_wrapper.py"), | 57 "runhooks_wrapper.py"), |
57 env=env) | 58 env=env) |
58 # cleanup_temp step | 59 # cleanup_temp step |
59 api.chromium.cleanup_temp() | 60 api.chromium.cleanup_temp() |
60 # extract build step | 61 # extract build step |
61 api.python( | 62 api.python( |
62 "extract build", | 63 "extract build", |
63 api.path["build"].join("scripts", "slave", "extract_build.py"), | 64 api.infra_paths['build'].join("scripts", "slave", "extract_build.py"), |
64 args=["--target", "Release", "--build-archive-url", build_properties[ | 65 args=["--target", "Release", "--build-archive-url", build_properties[ |
65 "parent_build_archive_url"], '--build-properties=%s' % | 66 "parent_build_archive_url"], '--build-properties=%s' % |
66 api.json.dumps(build_properties, | 67 api.json.dumps(build_properties, |
67 separators=(',', ':'))]) | 68 separators=(',', ':'))]) |
68 with api.step.defer_results(): | 69 with api.step.defer_results(): |
69 # runtest step | 70 # runtest step |
70 api.python( | 71 api.python( |
71 "memory test: webkit", | 72 "memory test: webkit", |
72 api.path["build"].join("scripts", "slave", "runtest.py"), | 73 api.infra_paths['build'].join("scripts", "slave", "runtest.py"), |
73 args= | 74 args= |
74 ['--run-shell-script', '--target', 'Release', | 75 ['--run-shell-script', '--target', 'Release', |
75 "--build-properties=%s" % | 76 "--build-properties=%s" % |
76 api.json.dumps(build_properties, | 77 api.json.dumps(build_properties, |
77 separators=(',', ':')), | 78 separators=(',', ':')), |
78 '--factory-properties={"blink_config":"chromium","gclient_env":'+\ | 79 '--factory-properties={"blink_config":"chromium","gclient_env":'+\ |
79 '{"CHROMIUM_GYP_SYNTAX_CHECK":"1","DEPOT_TOOLS_UPDATE":"0",'+\ | 80 '{"CHROMIUM_GYP_SYNTAX_CHECK":"1","DEPOT_TOOLS_UPDATE":"0",'+\ |
80 '"GYP_CHROMIUM_NO_ACTION":"1","GYP_DEFINES":'+\ | 81 '"GYP_CHROMIUM_NO_ACTION":"1","GYP_DEFINES":'+\ |
81 '" component=static_library","LANDMINES_VERBOSE":"1"},'+\ | 82 '" component=static_library","LANDMINES_VERBOSE":"1"},'+\ |
82 '"halt_on_missing_build":true}', | 83 '"halt_on_missing_build":true}', |
83 '--annotate=gtest', '--test-type', 'memory test: webkit', | 84 '--annotate=gtest', '--test-type', 'memory test: webkit', |
84 '--pass-build-dir', '--pass-target', | 85 '--pass-build-dir', '--pass-target', |
85 r'../../../src\tools\valgrind\chrome_tests.bat', '--test', 'webkit', | 86 r'../../../src\tools\valgrind\chrome_tests.bat', '--test', 'webkit', |
86 '--tool', 'drmemory_light']) | 87 '--tool', 'drmemory_light']) |
87 # runtest step | 88 # runtest step |
88 api.python( | 89 api.python( |
89 "memory test: webkit", | 90 "memory test: webkit", |
90 api.path["build"].join("scripts", "slave", "runtest.py"), | 91 api.infra_paths['build'].join("scripts", "slave", "runtest.py"), |
91 args= | 92 args= |
92 ['--run-shell-script', '--target', 'Release', | 93 ['--run-shell-script', '--target', 'Release', |
93 "--build-properties=%s" % | 94 "--build-properties=%s" % |
94 api.json.dumps(build_properties, | 95 api.json.dumps(build_properties, |
95 separators=(',', ':')), | 96 separators=(',', ':')), |
96 '--factory-properties={"blink_config":"chromium","gclient_env":'+\ | 97 '--factory-properties={"blink_config":"chromium","gclient_env":'+\ |
97 '{"CHROMIUM_GYP_SYNTAX_CHECK":"1","DEPOT_TOOLS_UPDATE":"0",'+\ | 98 '{"CHROMIUM_GYP_SYNTAX_CHECK":"1","DEPOT_TOOLS_UPDATE":"0",'+\ |
98 '"GYP_CHROMIUM_NO_ACTION":"1","GYP_DEFINES":'+\ | 99 '"GYP_CHROMIUM_NO_ACTION":"1","GYP_DEFINES":'+\ |
99 '" component=static_library","LANDMINES_VERBOSE":"1"},'+\ | 100 '" component=static_library","LANDMINES_VERBOSE":"1"},'+\ |
100 '"halt_on_missing_build":true}', | 101 '"halt_on_missing_build":true}', |
101 '--annotate=gtest', '--test-type', 'memory test: webkit', | 102 '--annotate=gtest', '--test-type', 'memory test: webkit', |
102 '--pass-build-dir', '--pass-target', | 103 '--pass-build-dir', '--pass-target', |
103 r'../../../src\tools\valgrind\chrome_tests.bat', '--test', 'webkit', | 104 r'../../../src\tools\valgrind\chrome_tests.bat', '--test', 'webkit', |
104 '--tool', 'drmemory_full']) | 105 '--tool', 'drmemory_full']) |
105 | 106 |
106 | 107 |
107 def Windows_Browser__DrMemory_light___1__steps(api): | 108 def Windows_Browser__DrMemory_light___1__steps(api): |
108 build_properties = api.properties.legacy() | 109 build_properties = api.properties.legacy() |
109 # svnkill step; not necessary in recipes | 110 # svnkill step; not necessary in recipes |
110 # update scripts step; implicitly run by recipe engine. | 111 # update scripts step; implicitly run by recipe engine. |
111 # taskkill step | 112 # taskkill step |
112 api.python("taskkill", api.path["build"].join("scripts", "slave", | 113 api.python("taskkill", api.infra_paths['build'].join("scripts", "slave", |
113 "kill_processes.py")) | 114 "kill_processes.py")) |
114 # bot_update step | 115 # bot_update step |
115 src_cfg = api.gclient.make_config(GIT_MODE=True) | 116 src_cfg = api.gclient.make_config(GIT_MODE=True) |
116 soln = src_cfg.solutions.add() | 117 soln = src_cfg.solutions.add() |
117 soln.name = "src" | 118 soln.name = "src" |
118 soln.url = "https://chromium.googlesource.com/chromium/src.git" | 119 soln.url = "https://chromium.googlesource.com/chromium/src.git" |
119 soln.custom_deps = {'src/third_party/WebKit/LayoutTests': None} | 120 soln.custom_deps = {'src/third_party/WebKit/LayoutTests': None} |
120 soln.custom_vars = {'webkit_trunk': 'http://src.chromium.org/blink/trunk', | 121 soln.custom_vars = {'webkit_trunk': 'http://src.chromium.org/blink/trunk', |
121 'googlecode_url': 'http://%s.googlecode.com/svn', | 122 'googlecode_url': 'http://%s.googlecode.com/svn', |
122 'nacl_trunk': | 123 'nacl_trunk': |
(...skipping 11 matching lines...) Expand all Loading... |
134 build_properties.update(result.json.output.get("properties", {})) | 135 build_properties.update(result.json.output.get("properties", {})) |
135 # gclient revert step; made unnecessary by bot_update | 136 # gclient revert step; made unnecessary by bot_update |
136 # gclient update step; made unnecessary by bot_update | 137 # gclient update step; made unnecessary by bot_update |
137 # gclient runhooks wrapper step | 138 # gclient runhooks wrapper step |
138 env = {'CHROMIUM_GYP_SYNTAX_CHECK': '1', | 139 env = {'CHROMIUM_GYP_SYNTAX_CHECK': '1', |
139 'GYP_CHROMIUM_NO_ACTION': '1', | 140 'GYP_CHROMIUM_NO_ACTION': '1', |
140 'LANDMINES_VERBOSE': '1', | 141 'LANDMINES_VERBOSE': '1', |
141 'DEPOT_TOOLS_UPDATE': '0', | 142 'DEPOT_TOOLS_UPDATE': '0', |
142 'GYP_DEFINES': ' component=static_library'} | 143 'GYP_DEFINES': ' component=static_library'} |
143 api.python("gclient runhooks wrapper", | 144 api.python("gclient runhooks wrapper", |
144 api.path["build"].join("scripts", "slave", | 145 api.infra_paths['build'].join("scripts", "slave", |
145 "runhooks_wrapper.py"), | 146 "runhooks_wrapper.py"), |
146 env=env) | 147 env=env) |
147 # cleanup_temp step | 148 # cleanup_temp step |
148 api.chromium.cleanup_temp() | 149 api.chromium.cleanup_temp() |
149 # extract build step | 150 # extract build step |
150 api.python( | 151 api.python( |
151 "extract build", | 152 "extract build", |
152 api.path["build"].join("scripts", "slave", "extract_build.py"), | 153 api.infra_paths['build'].join("scripts", "slave", "extract_build.py"), |
153 args=["--target", "Release", "--build-archive-url", build_properties[ | 154 args=["--target", "Release", "--build-archive-url", build_properties[ |
154 "parent_build_archive_url"], '--build-properties=%s' % | 155 "parent_build_archive_url"], '--build-properties=%s' % |
155 api.json.dumps(build_properties, | 156 api.json.dumps(build_properties, |
156 separators=(',', ':'))]) | 157 separators=(',', ':'))]) |
157 # runtest step | 158 # runtest step |
158 api.python( | 159 api.python( |
159 "memory test: browser_tests", | 160 "memory test: browser_tests", |
160 api.path["build"].join("scripts", "slave", "runtest.py"), | 161 api.infra_paths['build'].join("scripts", "slave", "runtest.py"), |
161 args= | 162 args= |
162 ['--run-shell-script', '--target', 'Release', "--build-properties=%s" % | 163 ['--run-shell-script', '--target', 'Release', "--build-properties=%s" % |
163 api.json.dumps(build_properties, | 164 api.json.dumps(build_properties, |
164 separators=(',', ':')), | 165 separators=(',', ':')), |
165 '--factory-properties={"blink_config":"chromium","gclient_env":'+\ | 166 '--factory-properties={"blink_config":"chromium","gclient_env":'+\ |
166 '{"CHROMIUM_GYP_SYNTAX_CHECK":"1","DEPOT_TOOLS_UPDATE":"0",'+\ | 167 '{"CHROMIUM_GYP_SYNTAX_CHECK":"1","DEPOT_TOOLS_UPDATE":"0",'+\ |
167 '"GYP_CHROMIUM_NO_ACTION":"1","GYP_DEFINES":'+\ | 168 '"GYP_CHROMIUM_NO_ACTION":"1","GYP_DEFINES":'+\ |
168 '" component=static_library","LANDMINES_VERBOSE":"1"},'+\ | 169 '" component=static_library","LANDMINES_VERBOSE":"1"},'+\ |
169 '"halt_on_missing_build":true,"retry_failed":false}', | 170 '"halt_on_missing_build":true,"retry_failed":false}', |
170 '--annotate=gtest', '--test-type', | 171 '--annotate=gtest', '--test-type', |
171 'memory test: browser_tests_1_of_2', '--pass-build-dir', | 172 'memory test: browser_tests_1_of_2', '--pass-build-dir', |
172 '--pass-target', '--shard-index', '1', '--total-shards', '2', | 173 '--pass-target', '--shard-index', '1', '--total-shards', '2', |
173 r'../../../src\tools\valgrind\chrome_tests.bat', '--test', | 174 r'../../../src\tools\valgrind\chrome_tests.bat', '--test', |
174 'browser_tests', '--tool', 'drmemory_light']) | 175 'browser_tests', '--tool', 'drmemory_light']) |
175 | 176 |
176 | 177 |
177 def Windows_Builder__DrMemory__steps(api): | 178 def Windows_Builder__DrMemory__steps(api): |
178 build_properties = api.properties.legacy() | 179 build_properties = api.properties.legacy() |
179 # svnkill step; not necessary in recipes | 180 # svnkill step; not necessary in recipes |
180 # update scripts step; implicitly run by recipe engine. | 181 # update scripts step; implicitly run by recipe engine. |
181 # taskkill step | 182 # taskkill step |
182 api.python("taskkill", api.path["build"].join("scripts", "slave", | 183 api.python("taskkill", api.infra_paths['build'].join("scripts", "slave", |
183 "kill_processes.py")) | 184 "kill_processes.py")) |
184 # bot_update step | 185 # bot_update step |
185 src_cfg = api.gclient.make_config(GIT_MODE=True) | 186 src_cfg = api.gclient.make_config(GIT_MODE=True) |
186 soln = src_cfg.solutions.add() | 187 soln = src_cfg.solutions.add() |
187 soln.name = "src" | 188 soln.name = "src" |
188 soln.url = "https://chromium.googlesource.com/chromium/src.git" | 189 soln.url = "https://chromium.googlesource.com/chromium/src.git" |
189 soln.custom_deps = {'src/third_party/WebKit/LayoutTests': None} | 190 soln.custom_deps = {'src/third_party/WebKit/LayoutTests': None} |
190 soln.custom_vars = {'webkit_trunk': 'http://src.chromium.org/blink/trunk', | 191 soln.custom_vars = {'webkit_trunk': 'http://src.chromium.org/blink/trunk', |
191 'googlecode_url': 'http://%s.googlecode.com/svn', | 192 'googlecode_url': 'http://%s.googlecode.com/svn', |
192 'nacl_trunk': | 193 'nacl_trunk': |
(...skipping 11 matching lines...) Expand all Loading... |
204 build_properties.update(result.json.output.get("properties", {})) | 205 build_properties.update(result.json.output.get("properties", {})) |
205 # gclient revert step; made unnecessary by bot_update | 206 # gclient revert step; made unnecessary by bot_update |
206 # gclient update step; made unnecessary by bot_update | 207 # gclient update step; made unnecessary by bot_update |
207 # gclient runhooks wrapper step | 208 # gclient runhooks wrapper step |
208 env = {'CHROMIUM_GYP_SYNTAX_CHECK': '1', | 209 env = {'CHROMIUM_GYP_SYNTAX_CHECK': '1', |
209 'GYP_GENERATORS': 'ninja', | 210 'GYP_GENERATORS': 'ninja', |
210 'DEPOT_TOOLS_UPDATE': '0', | 211 'DEPOT_TOOLS_UPDATE': '0', |
211 'GYP_DEFINES': 'build_for_tool=drmemory component=shared_library', | 212 'GYP_DEFINES': 'build_for_tool=drmemory component=shared_library', |
212 'LANDMINES_VERBOSE': '1'} | 213 'LANDMINES_VERBOSE': '1'} |
213 api.python("gclient runhooks wrapper", | 214 api.python("gclient runhooks wrapper", |
214 api.path["build"].join("scripts", "slave", | 215 api.infra_paths['build'].join("scripts", "slave", |
215 "runhooks_wrapper.py"), | 216 "runhooks_wrapper.py"), |
216 env=env) | 217 env=env) |
217 # cleanup_temp step | 218 # cleanup_temp step |
218 api.chromium.cleanup_temp() | 219 api.chromium.cleanup_temp() |
219 # compile.py step | 220 # compile.py step |
220 args = ['--solution', 'out.sln', '--target', 'Release', | 221 args = ['--solution', 'out.sln', '--target', 'Release', |
221 '--build-tool=ninja', '--', 'chromium_builder_dbg_drmemory_win'] | 222 '--build-tool=ninja', '--', 'chromium_builder_dbg_drmemory_win'] |
222 if "clobber" in api.properties: | 223 if "clobber" in api.properties: |
223 args.append("--clobber") | 224 args.append("--clobber") |
224 api.python("compile", | 225 api.python("compile", |
225 api.path["build"].join("scripts", "slave", "compile.py"), | 226 api.infra_paths['build'].join("scripts", "slave", "compile.py"), |
226 args=args) | 227 args=args) |
227 # zip_build step | 228 # zip_build step |
228 step_result = api.python( | 229 step_result = api.python( |
229 "zip build", | 230 "zip build", |
230 api.path["build"].join("scripts", "slave", "zip_build.py"), | 231 api.infra_paths['build'].join("scripts", "slave", "zip_build.py"), |
231 args= | 232 args= |
232 ["--json-urls", api.json.output(), | 233 ["--json-urls", api.json.output(), |
233 "--target", "Release", '--build-url', | 234 "--target", "Release", '--build-url', |
234 'gs://chromium-build-transfer/drm-cr', '--build-properties=%s' % | 235 'gs://chromium-build-transfer/drm-cr', '--build-properties=%s' % |
235 api.json.dumps(build_properties, | 236 api.json.dumps(build_properties, |
236 separators=(',', ':')), | 237 separators=(',', ':')), |
237 '--factory-properties={"blink_config":"chromium","build_url":'+\ | 238 '--factory-properties={"blink_config":"chromium","build_url":'+\ |
238 '"gs://chromium-build-transfer/drm-cr","gclient_env":'+\ | 239 '"gs://chromium-build-transfer/drm-cr","gclient_env":'+\ |
239 '{"CHROMIUM_GYP_SYNTAX_CHECK":"1","DEPOT_TOOLS_UPDATE":"0"'+\ | 240 '{"CHROMIUM_GYP_SYNTAX_CHECK":"1","DEPOT_TOOLS_UPDATE":"0"'+\ |
240 ',"GYP_DEFINES":'+\ | 241 ',"GYP_DEFINES":'+\ |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
361 "root": build_properties.get("root", ""), }}, | 362 "root": build_properties.get("root", ""), }}, |
362 ] | 363 ] |
363 api.trigger(*trigger_spec) | 364 api.trigger(*trigger_spec) |
364 | 365 |
365 | 366 |
366 def Windows_Browser__DrMemory_light___2__steps(api): | 367 def Windows_Browser__DrMemory_light___2__steps(api): |
367 build_properties = api.properties.legacy() | 368 build_properties = api.properties.legacy() |
368 # svnkill step; not necessary in recipes | 369 # svnkill step; not necessary in recipes |
369 # update scripts step; implicitly run by recipe engine. | 370 # update scripts step; implicitly run by recipe engine. |
370 # taskkill step | 371 # taskkill step |
371 api.python("taskkill", api.path["build"].join("scripts", "slave", | 372 api.python("taskkill", api.infra_paths['build'].join("scripts", "slave", |
372 "kill_processes.py")) | 373 "kill_processes.py")) |
373 # bot_update step | 374 # bot_update step |
374 src_cfg = api.gclient.make_config(GIT_MODE=True) | 375 src_cfg = api.gclient.make_config(GIT_MODE=True) |
375 soln = src_cfg.solutions.add() | 376 soln = src_cfg.solutions.add() |
376 soln.name = "src" | 377 soln.name = "src" |
377 soln.url = "https://chromium.googlesource.com/chromium/src.git" | 378 soln.url = "https://chromium.googlesource.com/chromium/src.git" |
378 soln.custom_deps = {'src/third_party/WebKit/LayoutTests': None} | 379 soln.custom_deps = {'src/third_party/WebKit/LayoutTests': None} |
379 soln.custom_vars = {'webkit_trunk': 'http://src.chromium.org/blink/trunk', | 380 soln.custom_vars = {'webkit_trunk': 'http://src.chromium.org/blink/trunk', |
380 'googlecode_url': 'http://%s.googlecode.com/svn', | 381 'googlecode_url': 'http://%s.googlecode.com/svn', |
381 'nacl_trunk': | 382 'nacl_trunk': |
(...skipping 11 matching lines...) Expand all Loading... |
393 build_properties.update(result.json.output.get("properties", {})) | 394 build_properties.update(result.json.output.get("properties", {})) |
394 # gclient revert step; made unnecessary by bot_update | 395 # gclient revert step; made unnecessary by bot_update |
395 # gclient update step; made unnecessary by bot_update | 396 # gclient update step; made unnecessary by bot_update |
396 # gclient runhooks wrapper step | 397 # gclient runhooks wrapper step |
397 env = {'CHROMIUM_GYP_SYNTAX_CHECK': '1', | 398 env = {'CHROMIUM_GYP_SYNTAX_CHECK': '1', |
398 'GYP_CHROMIUM_NO_ACTION': '1', | 399 'GYP_CHROMIUM_NO_ACTION': '1', |
399 'LANDMINES_VERBOSE': '1', | 400 'LANDMINES_VERBOSE': '1', |
400 'DEPOT_TOOLS_UPDATE': '0', | 401 'DEPOT_TOOLS_UPDATE': '0', |
401 'GYP_DEFINES': ' component=static_library'} | 402 'GYP_DEFINES': ' component=static_library'} |
402 api.python("gclient runhooks wrapper", | 403 api.python("gclient runhooks wrapper", |
403 api.path["build"].join("scripts", "slave", | 404 api.infra_paths['build'].join("scripts", "slave", |
404 "runhooks_wrapper.py"), | 405 "runhooks_wrapper.py"), |
405 env=env) | 406 env=env) |
406 # cleanup_temp step | 407 # cleanup_temp step |
407 api.chromium.cleanup_temp() | 408 api.chromium.cleanup_temp() |
408 # extract build step | 409 # extract build step |
409 api.python( | 410 api.python( |
410 "extract build", | 411 "extract build", |
411 api.path["build"].join("scripts", "slave", "extract_build.py"), | 412 api.infra_paths['build'].join("scripts", "slave", "extract_build.py"), |
412 args=["--target", "Release", "--build-archive-url", build_properties[ | 413 args=["--target", "Release", "--build-archive-url", build_properties[ |
413 "parent_build_archive_url"], '--build-properties=%s' % | 414 "parent_build_archive_url"], '--build-properties=%s' % |
414 api.json.dumps(build_properties, | 415 api.json.dumps(build_properties, |
415 separators=(',', ':'))]) | 416 separators=(',', ':'))]) |
416 # runtest step | 417 # runtest step |
417 api.python( | 418 api.python( |
418 "memory test: browser_tests", | 419 "memory test: browser_tests", |
419 api.path["build"].join("scripts", "slave", "runtest.py"), | 420 api.infra_paths['build'].join("scripts", "slave", "runtest.py"), |
420 args= | 421 args= |
421 ['--run-shell-script', '--target', 'Release', "--build-properties=%s" % | 422 ['--run-shell-script', '--target', 'Release', "--build-properties=%s" % |
422 api.json.dumps(build_properties, | 423 api.json.dumps(build_properties, |
423 separators=(',', ':')), | 424 separators=(',', ':')), |
424 '--factory-properties={"blink_config":"chromium","gclient_env":'+\ | 425 '--factory-properties={"blink_config":"chromium","gclient_env":'+\ |
425 '{"CHROMIUM_GYP_SYNTAX_CHECK":"1","DEPOT_TOOLS_UPDATE":"0",'+\ | 426 '{"CHROMIUM_GYP_SYNTAX_CHECK":"1","DEPOT_TOOLS_UPDATE":"0",'+\ |
426 '"GYP_CHROMIUM_NO_ACTION":"1","GYP_DEFINES":'+\ | 427 '"GYP_CHROMIUM_NO_ACTION":"1","GYP_DEFINES":'+\ |
427 '" component=static_library","LANDMINES_VERBOSE":"1"},'+\ | 428 '" component=static_library","LANDMINES_VERBOSE":"1"},'+\ |
428 '"halt_on_missing_build":true,"retry_failed":false}', | 429 '"halt_on_missing_build":true,"retry_failed":false}', |
429 '--annotate=gtest', '--test-type', | 430 '--annotate=gtest', '--test-type', |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
497 api.properties(got_revision='123456789abcdef') + | 498 api.properties(got_revision='123456789abcdef') + |
498 api.properties(buildnumber='42') + | 499 api.properties(buildnumber='42') + |
499 api.properties(parent_build_archive_url='abc') + | 500 api.properties(parent_build_archive_url='abc') + |
500 api.properties(slavename='TestSlave') | 501 api.properties(slavename='TestSlave') |
501 ) | 502 ) |
502 yield (api.test('builder_not_in_dispatch_directory') + | 503 yield (api.test('builder_not_in_dispatch_directory') + |
503 api.properties(mastername='chromium.fyi') + | 504 api.properties(mastername='chromium.fyi') + |
504 api.properties(buildername='nonexistent_builder') + | 505 api.properties(buildername='nonexistent_builder') + |
505 api.properties(slavename='TestSlave') | 506 api.properties(slavename='TestSlave') |
506 ) | 507 ) |
OLD | NEW |