OLD | NEW |
| (Empty) |
1 [ | |
2 { | |
3 "cmd": [ | |
4 "python", | |
5 "-u", | |
6 "RECIPE_MODULE[depot_tools::bot_update]/resources/bot_update.py", | |
7 "--master", | |
8 "chromium.linux", | |
9 "--builder", | |
10 "Android Tests", | |
11 "--slave", | |
12 "TestSlavename", | |
13 "--spec", | |
14 "cache_dir = '[GIT_CACHE]'\nsolutions = [{'custom_vars': {'googlecode_url'
: 'svn://svn-mirror.golo.chromium.org/%s', 'nacl_trunk': 'svn://svn-mirror.golo.
chromium.org/native_client/trunk', 'sourceforge_url': 'svn://svn-mirror.golo.chr
omium.org/%(repo)s', 'webkit_trunk': 'svn://svn-mirror.golo.chromium.org/blink/t
runk'}, 'deps_file': 'DEPS', 'managed': True, 'name': 'src', 'url': 'svn://svn-m
irror.golo.chromium.org/chrome/trunk/src'}]\ntarget_os = ['android']", | |
15 "--root", | |
16 "src", | |
17 "--revision_mapping_file", | |
18 "{\"src\": \"got_revision\", \"src/buildtools\": \"got_buildtools_revision
\", \"src/native_client\": \"got_nacl_revision\", \"src/third_party/angle\": \"g
ot_angle_revision\", \"src/third_party/webrtc\": \"got_webrtc_revision\", \"src/
tools/swarming_client\": \"got_swarming_client_revision\", \"src/v8\": \"got_v8_
revision\"}", | |
19 "--git-cache-dir", | |
20 "[GIT_CACHE]", | |
21 "--output_json", | |
22 "/path/to/tmp/json", | |
23 "--revision", | |
24 "src@HEAD", | |
25 "--force", | |
26 "--output_manifest" | |
27 ], | |
28 "env": { | |
29 "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]" | |
30 }, | |
31 "name": "bot_update", | |
32 "~followup_annotations": [ | |
33 "@@@STEP_TEXT@Some step text@@@", | |
34 "@@@STEP_LOG_LINE@json.output@{@@@", | |
35 "@@@STEP_LOG_LINE@json.output@ \"did_run\": true, @@@", | |
36 "@@@STEP_LOG_LINE@json.output@ \"fixed_revisions\": {@@@", | |
37 "@@@STEP_LOG_LINE@json.output@ \"src\": \"HEAD\"@@@", | |
38 "@@@STEP_LOG_LINE@json.output@ }, @@@", | |
39 "@@@STEP_LOG_LINE@json.output@ \"manifest\": {@@@", | |
40 "@@@STEP_LOG_LINE@json.output@ \"src\": {@@@", | |
41 "@@@STEP_LOG_LINE@json.output@ \"repository\": \"https://fake.org/src
.git\", @@@", | |
42 "@@@STEP_LOG_LINE@json.output@ \"revision\": \"f27fede2220bcd326aee3e
86ddfd4ebd0fe58cb9\"@@@", | |
43 "@@@STEP_LOG_LINE@json.output@ }, @@@", | |
44 "@@@STEP_LOG_LINE@json.output@ \"src/buildtools\": {@@@", | |
45 "@@@STEP_LOG_LINE@json.output@ \"repository\": \"https://fake.org/src
/buildtools.git\", @@@", | |
46 "@@@STEP_LOG_LINE@json.output@ \"revision\": \"f0319a328b280987691635
3cb994259692140934\"@@@", | |
47 "@@@STEP_LOG_LINE@json.output@ }, @@@", | |
48 "@@@STEP_LOG_LINE@json.output@ \"src/native_client\": {@@@", | |
49 "@@@STEP_LOG_LINE@json.output@ \"repository\": \"https://fake.org/src
/native_client.git\", @@@", | |
50 "@@@STEP_LOG_LINE@json.output@ \"revision\": \"d998e125e8253980d76e26
9b7982aeeefc1b9b50\"@@@", | |
51 "@@@STEP_LOG_LINE@json.output@ }, @@@", | |
52 "@@@STEP_LOG_LINE@json.output@ \"src/third_party/angle\": {@@@", | |
53 "@@@STEP_LOG_LINE@json.output@ \"repository\": \"https://fake.org/src
/third_party/angle.git\", @@@", | |
54 "@@@STEP_LOG_LINE@json.output@ \"revision\": \"fac9503c46405f77757b9a
728eb85b8d7bc6080c\"@@@", | |
55 "@@@STEP_LOG_LINE@json.output@ }, @@@", | |
56 "@@@STEP_LOG_LINE@json.output@ \"src/third_party/webrtc\": {@@@", | |
57 "@@@STEP_LOG_LINE@json.output@ \"repository\": \"https://fake.org/src
/third_party/webrtc.git\", @@@", | |
58 "@@@STEP_LOG_LINE@json.output@ \"revision\": \"0f90628433546e61d92685
96da93418c623137f4\"@@@", | |
59 "@@@STEP_LOG_LINE@json.output@ }, @@@", | |
60 "@@@STEP_LOG_LINE@json.output@ \"src/tools/swarming_client\": {@@@", | |
61 "@@@STEP_LOG_LINE@json.output@ \"repository\": \"https://fake.org/src
/tools/swarming_client.git\", @@@", | |
62 "@@@STEP_LOG_LINE@json.output@ \"revision\": \"a0ee5d99f1d4b38ddaa4c7
59c837980b63b99566\"@@@", | |
63 "@@@STEP_LOG_LINE@json.output@ }, @@@", | |
64 "@@@STEP_LOG_LINE@json.output@ \"src/v8\": {@@@", | |
65 "@@@STEP_LOG_LINE@json.output@ \"repository\": \"https://fake.org/src
/v8.git\", @@@", | |
66 "@@@STEP_LOG_LINE@json.output@ \"revision\": \"801ada225ddc271c132c3a
35f03975671d43e399\"@@@", | |
67 "@@@STEP_LOG_LINE@json.output@ }@@@", | |
68 "@@@STEP_LOG_LINE@json.output@ }, @@@", | |
69 "@@@STEP_LOG_LINE@json.output@ \"patch_failure\": false, @@@", | |
70 "@@@STEP_LOG_LINE@json.output@ \"patch_root\": \"src\", @@@", | |
71 "@@@STEP_LOG_LINE@json.output@ \"properties\": {@@@", | |
72 "@@@STEP_LOG_LINE@json.output@ \"got_angle_revision\": \"fac9503c46405f
77757b9a728eb85b8d7bc6080c\", @@@", | |
73 "@@@STEP_LOG_LINE@json.output@ \"got_angle_revision_cp\": \"refs/heads/
master@{#297276}\", @@@", | |
74 "@@@STEP_LOG_LINE@json.output@ \"got_buildtools_revision\": \"f0319a328
b2809876916353cb994259692140934\", @@@", | |
75 "@@@STEP_LOG_LINE@json.output@ \"got_buildtools_revision_cp\": \"refs/h
eads/master@{#182578}\", @@@", | |
76 "@@@STEP_LOG_LINE@json.output@ \"got_nacl_revision\": \"d998e125e825398
0d76e269b7982aeeefc1b9b50\", @@@", | |
77 "@@@STEP_LOG_LINE@json.output@ \"got_nacl_revision_cp\": \"refs/heads/m
aster@{#274981}\", @@@", | |
78 "@@@STEP_LOG_LINE@json.output@ \"got_revision\": \"f27fede2220bcd326aee
3e86ddfd4ebd0fe58cb9\", @@@", | |
79 "@@@STEP_LOG_LINE@json.output@ \"got_revision_cp\": \"refs/heads/master
@{#170242}\", @@@", | |
80 "@@@STEP_LOG_LINE@json.output@ \"got_swarming_client_revision\": \"a0ee
5d99f1d4b38ddaa4c759c837980b63b99566\", @@@", | |
81 "@@@STEP_LOG_LINE@json.output@ \"got_swarming_client_revision_cp\": \"r
efs/heads/master@{#276089}\", @@@", | |
82 "@@@STEP_LOG_LINE@json.output@ \"got_v8_revision\": \"801ada225ddc271c1
32c3a35f03975671d43e399\", @@@", | |
83 "@@@STEP_LOG_LINE@json.output@ \"got_v8_revision_cp\": \"refs/heads/mas
ter@{#43426}\", @@@", | |
84 "@@@STEP_LOG_LINE@json.output@ \"got_webrtc_revision\": \"0f90628433546
e61d9268596da93418c623137f4\", @@@", | |
85 "@@@STEP_LOG_LINE@json.output@ \"got_webrtc_revision_cp\": \"refs/heads
/master@{#120644}\"@@@", | |
86 "@@@STEP_LOG_LINE@json.output@ }, @@@", | |
87 "@@@STEP_LOG_LINE@json.output@ \"root\": \"src\", @@@", | |
88 "@@@STEP_LOG_LINE@json.output@ \"step_text\": \"Some step text\"@@@", | |
89 "@@@STEP_LOG_LINE@json.output@}@@@", | |
90 "@@@STEP_LOG_END@json.output@@@", | |
91 "@@@SET_BUILD_PROPERTY@got_nacl_revision@\"d998e125e8253980d76e269b7982aee
efc1b9b50\"@@@", | |
92 "@@@SET_BUILD_PROPERTY@got_swarming_client_revision@\"a0ee5d99f1d4b38ddaa4
c759c837980b63b99566\"@@@", | |
93 "@@@SET_BUILD_PROPERTY@got_buildtools_revision_cp@\"refs/heads/master@{#18
2578}\"@@@", | |
94 "@@@SET_BUILD_PROPERTY@got_webrtc_revision@\"0f90628433546e61d9268596da934
18c623137f4\"@@@", | |
95 "@@@SET_BUILD_PROPERTY@got_revision@\"f27fede2220bcd326aee3e86ddfd4ebd0fe5
8cb9\"@@@", | |
96 "@@@SET_BUILD_PROPERTY@got_nacl_revision_cp@\"refs/heads/master@{#274981}\
"@@@", | |
97 "@@@SET_BUILD_PROPERTY@got_angle_revision@\"fac9503c46405f77757b9a728eb85b
8d7bc6080c\"@@@", | |
98 "@@@SET_BUILD_PROPERTY@got_v8_revision@\"801ada225ddc271c132c3a35f03975671
d43e399\"@@@", | |
99 "@@@SET_BUILD_PROPERTY@got_v8_revision_cp@\"refs/heads/master@{#43426}\"@@
@", | |
100 "@@@SET_BUILD_PROPERTY@got_swarming_client_revision_cp@\"refs/heads/master
@{#276089}\"@@@", | |
101 "@@@SET_BUILD_PROPERTY@got_webrtc_revision_cp@\"refs/heads/master@{#120644
}\"@@@", | |
102 "@@@SET_BUILD_PROPERTY@got_revision_cp@\"refs/heads/master@{#170242}\"@@@"
, | |
103 "@@@SET_BUILD_PROPERTY@got_angle_revision_cp@\"refs/heads/master@{#297276}
\"@@@", | |
104 "@@@SET_BUILD_PROPERTY@got_buildtools_revision@\"f0319a328b2809876916353cb
994259692140934\"@@@" | |
105 ] | |
106 }, | |
107 { | |
108 "cmd": [], | |
109 "name": "ensure_goma" | |
110 }, | |
111 { | |
112 "cmd": [ | |
113 "python", | |
114 "-u", | |
115 "RECIPE_MODULE[build::cipd]/resources/bootstrap.py", | |
116 "--platform", | |
117 "linux-amd64", | |
118 "--dest-directory", | |
119 "[SLAVE_BUILD]/cipd", | |
120 "--json-output", | |
121 "/path/to/tmp/json" | |
122 ], | |
123 "name": "ensure_goma.install cipd", | |
124 "~followup_annotations": [ | |
125 "@@@STEP_NEST_LEVEL@1@@@", | |
126 "@@@STEP_TEXT@cipd instance_id: 40-chars-fake-of-the-package-instance_id@@
@", | |
127 "@@@STEP_LOG_LINE@json.output@{@@@", | |
128 "@@@STEP_LOG_LINE@json.output@ \"executable\": \"[SLAVE_BUILD]/cipd/cipd\
", @@@", | |
129 "@@@STEP_LOG_LINE@json.output@ \"instance_id\": \"40-chars-fake-of-the-pa
ckage-instance_id\"@@@", | |
130 "@@@STEP_LOG_LINE@json.output@}@@@", | |
131 "@@@STEP_LOG_END@json.output@@@" | |
132 ] | |
133 }, | |
134 { | |
135 "cmd": [ | |
136 "[SLAVE_BUILD]/cipd/cipd", | |
137 "ensure", | |
138 "--root", | |
139 "[CACHE]/cipd/goma", | |
140 "--list", | |
141 "infra_internal/goma/client/linux-amd64 release", | |
142 "--json-output", | |
143 "/path/to/tmp/json", | |
144 "--service-account-json", | |
145 "/creds/service_accounts/service-account-goma-client.json" | |
146 ], | |
147 "name": "ensure_goma.ensure_installed", | |
148 "~followup_annotations": [ | |
149 "@@@STEP_NEST_LEVEL@1@@@", | |
150 "@@@STEP_LOG_LINE@json.output@{@@@", | |
151 "@@@STEP_LOG_LINE@json.output@ \"result\": [@@@", | |
152 "@@@STEP_LOG_LINE@json.output@ {@@@", | |
153 "@@@STEP_LOG_LINE@json.output@ \"instance_id\": \"resolved-instance_i
d-of-release---------\", @@@", | |
154 "@@@STEP_LOG_LINE@json.output@ \"package\": \"infra_internal/goma/cli
ent/linux-amd64\"@@@", | |
155 "@@@STEP_LOG_LINE@json.output@ }@@@", | |
156 "@@@STEP_LOG_LINE@json.output@ ]@@@", | |
157 "@@@STEP_LOG_LINE@json.output@}@@@", | |
158 "@@@STEP_LOG_END@json.output@@@" | |
159 ] | |
160 }, | |
161 { | |
162 "cmd": [ | |
163 "python", | |
164 "-u", | |
165 "[SLAVE_BUILD]/src/tools/swarming_client/swarming.py", | |
166 "--version" | |
167 ], | |
168 "name": "swarming.py --version", | |
169 "stdout": "/path/to/tmp/", | |
170 "~followup_annotations": [ | |
171 "@@@STEP_TEXT@0.8.6@@@" | |
172 ] | |
173 }, | |
174 { | |
175 "cmd": [ | |
176 "python", | |
177 "-u", | |
178 "RECIPE_PACKAGE_REPO[depot_tools]/gclient.py", | |
179 "runhooks" | |
180 ], | |
181 "cwd": "[SLAVE_BUILD]/src", | |
182 "env": { | |
183 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account
-goma-client.json", | |
184 "GYP_CHROMIUM_NO_ACTION": "1", | |
185 "GYP_CROSSCOMPILE": "1", | |
186 "GYP_DEFINES": "OS=android component=static_library fastbuild=1 gomadir='[
CACHE]/cipd/goma' target_arch=arm test_isolation_mode=prepare use_goma=1", | |
187 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S
LAVE_BUILD]/src/build/android:%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]" | |
188 }, | |
189 "name": "gclient runhooks" | |
190 }, | |
191 { | |
192 "cmd": [ | |
193 "python", | |
194 "-u", | |
195 "[SLAVE_BUILD]/src/testing/scripts/get_compile_targets.py", | |
196 "--output", | |
197 "/path/to/tmp/json", | |
198 "--", | |
199 "--build-config-fs", | |
200 "Release", | |
201 "--use-src-side-runtest-py", | |
202 "--paths", | |
203 "{\"checkout\": \"[SLAVE_BUILD]/src\", \"runit.py\": \"RECIPE_PACKAGE_REPO
[build]/scripts/tools/runit.py\", \"runtest.py\": \"RECIPE_PACKAGE_REPO[build]/s
cripts/slave/runtest.py\"}", | |
204 "--properties", | |
205 "{\"buildername\": \"Android Tests\", \"buildnumber\": 571, \"mastername\"
: \"chromium.linux\", \"slavename\": \"TestSlavename\", \"target_platform\": \"a
ndroid\"}" | |
206 ], | |
207 "name": "get compile targets for scripts", | |
208 "~followup_annotations": [ | |
209 "@@@STEP_LOG_LINE@json.output@{}@@@", | |
210 "@@@STEP_LOG_END@json.output@@@" | |
211 ] | |
212 }, | |
213 { | |
214 "cmd": [ | |
215 "python", | |
216 "-u", | |
217 "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n", | |
218 "[SLAVE_BUILD]/src/testing/buildbot/chromium.linux.json", | |
219 "/path/to/tmp/json" | |
220 ], | |
221 "name": "read test spec (chromium.linux.json)", | |
222 "~followup_annotations": [ | |
223 "@@@STEP_TEXT@path: [SLAVE_BUILD]/src/testing/buildbot/chromium.linux.json
@@@", | |
224 "@@@STEP_LOG_LINE@json.output@{@@@", | |
225 "@@@STEP_LOG_LINE@json.output@ \"Android Tests\": {@@@", | |
226 "@@@STEP_LOG_LINE@json.output@ \"gtest_tests\": [@@@", | |
227 "@@@STEP_LOG_LINE@json.output@ {@@@", | |
228 "@@@STEP_LOG_LINE@json.output@ \"override_compile_targets\": [@@@", | |
229 "@@@STEP_LOG_LINE@json.output@ \"chrome_public_test_apk\"@@@", | |
230 "@@@STEP_LOG_LINE@json.output@ ], @@@", | |
231 "@@@STEP_LOG_LINE@json.output@ \"override_isolate_target\": \"chrom
e_public_test_apk\", @@@", | |
232 "@@@STEP_LOG_LINE@json.output@ \"swarming\": {@@@", | |
233 "@@@STEP_LOG_LINE@json.output@ \"can_use_on_swarming_builders\":
true, @@@", | |
234 "@@@STEP_LOG_LINE@json.output@ \"cipd_packages\": [@@@", | |
235 "@@@STEP_LOG_LINE@json.output@ {@@@", | |
236 "@@@STEP_LOG_LINE@json.output@ \"cipd_package\": \"logdog/but
ler/linux-386\", @@@", | |
237 "@@@STEP_LOG_LINE@json.output@ \"location\": \"bin\", @@@", | |
238 "@@@STEP_LOG_LINE@json.output@ \"revision\": \"git_revision:d
eadbeef\"@@@", | |
239 "@@@STEP_LOG_LINE@json.output@ }, @@@", | |
240 "@@@STEP_LOG_LINE@json.output@ {@@@", | |
241 "@@@STEP_LOG_LINE@json.output@ \"cipd_package\": \"some/other
/package\", @@@", | |
242 "@@@STEP_LOG_LINE@json.output@ \"location\": \"bin\", @@@", | |
243 "@@@STEP_LOG_LINE@json.output@ \"revision\": \"git_revision:d
eadbeef\"@@@", | |
244 "@@@STEP_LOG_LINE@json.output@ }@@@", | |
245 "@@@STEP_LOG_LINE@json.output@ ], @@@", | |
246 "@@@STEP_LOG_LINE@json.output@ \"dimension_sets\": [@@@", | |
247 "@@@STEP_LOG_LINE@json.output@ {@@@", | |
248 "@@@STEP_LOG_LINE@json.output@ \"build.id\": \"KTU84P\", @@@"
, | |
249 "@@@STEP_LOG_LINE@json.output@ \"product.board\": \"hammerhea
d\"@@@", | |
250 "@@@STEP_LOG_LINE@json.output@ }@@@", | |
251 "@@@STEP_LOG_LINE@json.output@ ], @@@", | |
252 "@@@STEP_LOG_LINE@json.output@ \"output_links\": [@@@", | |
253 "@@@STEP_LOG_LINE@json.output@ {@@@", | |
254 "@@@STEP_LOG_LINE@json.output@ \"link\": [@@@", | |
255 "@@@STEP_LOG_LINE@json.output@ \"https://luci-logdog.appspo
t.com/v/?s\", @@@", | |
256 "@@@STEP_LOG_LINE@json.output@ \"=android%2Fswarming%2Flogc
ats%2F\", @@@", | |
257 "@@@STEP_LOG_LINE@json.output@ \"${TASK_ID}%2F%2B%2Funified
_logcats\"@@@", | |
258 "@@@STEP_LOG_LINE@json.output@ ], @@@", | |
259 "@@@STEP_LOG_LINE@json.output@ \"name\": \"shard_index:${SHAR
D_INDEX}logcats\"@@@", | |
260 "@@@STEP_LOG_LINE@json.output@ }@@@", | |
261 "@@@STEP_LOG_LINE@json.output@ ]@@@", | |
262 "@@@STEP_LOG_LINE@json.output@ }, @@@", | |
263 "@@@STEP_LOG_LINE@json.output@ \"test\": \"chrome_public_test_apk\"
@@@", | |
264 "@@@STEP_LOG_LINE@json.output@ }@@@", | |
265 "@@@STEP_LOG_LINE@json.output@ ]@@@", | |
266 "@@@STEP_LOG_LINE@json.output@ }@@@", | |
267 "@@@STEP_LOG_LINE@json.output@}@@@", | |
268 "@@@STEP_LOG_END@json.output@@@" | |
269 ] | |
270 }, | |
271 { | |
272 "cmd": [ | |
273 "python", | |
274 "-u", | |
275 "RECIPE_PACKAGE_REPO[build]/scripts/tools/runit.py", | |
276 "--show-path", | |
277 "python", | |
278 "RECIPE_PACKAGE_REPO[build]/scripts/slave/cleanup_temp.py" | |
279 ], | |
280 "name": "cleanup_temp" | |
281 }, | |
282 { | |
283 "cmd": [ | |
284 "python", | |
285 "-u", | |
286 "\nimport shutil, sys, os\nshutil.rmtree(sys.argv[1], True)\nshutil.rmtree
(sys.argv[2], True)\ntry:\n os.remove(sys.argv[3])\nexcept OSError:\n pass\nfo
r base, _dirs, files in os.walk(sys.argv[4]):\n for f in files:\n if f.endsw
ith('.pyc'):\n os.remove(os.path.join(base, f))\n", | |
287 "[SLAVE_BUILD]/src/out/Release/debug_info_dumps", | |
288 "[SLAVE_BUILD]/src/out/Release/test_logs", | |
289 "[SLAVE_BUILD]/src/out/build_product.zip", | |
290 "[SLAVE_BUILD]/src" | |
291 ], | |
292 "name": "clean local files", | |
293 "~followup_annotations": [ | |
294 "@@@STEP_LOG_LINE@python.inline@@@@", | |
295 "@@@STEP_LOG_LINE@python.inline@import shutil, sys, os@@@", | |
296 "@@@STEP_LOG_LINE@python.inline@shutil.rmtree(sys.argv[1], True)@@@", | |
297 "@@@STEP_LOG_LINE@python.inline@shutil.rmtree(sys.argv[2], True)@@@", | |
298 "@@@STEP_LOG_LINE@python.inline@try:@@@", | |
299 "@@@STEP_LOG_LINE@python.inline@ os.remove(sys.argv[3])@@@", | |
300 "@@@STEP_LOG_LINE@python.inline@except OSError:@@@", | |
301 "@@@STEP_LOG_LINE@python.inline@ pass@@@", | |
302 "@@@STEP_LOG_LINE@python.inline@for base, _dirs, files in os.walk(sys.argv
[4]):@@@", | |
303 "@@@STEP_LOG_LINE@python.inline@ for f in files:@@@", | |
304 "@@@STEP_LOG_LINE@python.inline@ if f.endswith('.pyc'):@@@", | |
305 "@@@STEP_LOG_LINE@python.inline@ os.remove(os.path.join(base, f))@@@"
, | |
306 "@@@STEP_LOG_END@python.inline@@@" | |
307 ] | |
308 }, | |
309 { | |
310 "allow_subannotations": false, | |
311 "cmd": [ | |
312 "[SLAVE_BUILD]/src/build/tree_truth.sh", | |
313 "[SLAVE_BUILD]/src", | |
314 "src" | |
315 ], | |
316 "name": "tree truth steps" | |
317 }, | |
318 { | |
319 "cmd": [ | |
320 "python", | |
321 "-u", | |
322 "\nimport os, sys\nfrom common import chromium_utils # Error? See https://
crbug.com/584783.\n\n\nif os.path.exists(sys.argv[1]):\n chromium_utils.RemoveD
irectory(sys.argv[1])\n", | |
323 "[SLAVE_BUILD]/src/out/Release" | |
324 ], | |
325 "name": "rmtree build directory", | |
326 "~followup_annotations": [ | |
327 "@@@STEP_LOG_LINE@python.inline@@@@", | |
328 "@@@STEP_LOG_LINE@python.inline@import os, sys@@@", | |
329 "@@@STEP_LOG_LINE@python.inline@from common import chromium_utils # Error?
See https://crbug.com/584783.@@@", | |
330 "@@@STEP_LOG_LINE@python.inline@@@@", | |
331 "@@@STEP_LOG_LINE@python.inline@@@@", | |
332 "@@@STEP_LOG_LINE@python.inline@if os.path.exists(sys.argv[1]):@@@", | |
333 "@@@STEP_LOG_LINE@python.inline@ chromium_utils.RemoveDirectory(sys.argv[
1])@@@", | |
334 "@@@STEP_LOG_END@python.inline@@@" | |
335 ] | |
336 }, | |
337 { | |
338 "cmd": [ | |
339 "python", | |
340 "-u", | |
341 "RECIPE_PACKAGE_REPO[build]/scripts/tools/runit.py", | |
342 "--show-path", | |
343 "python", | |
344 "RECIPE_PACKAGE_REPO[build]/scripts/slave/extract_build.py", | |
345 "--gsutil-py-path", | |
346 "RECIPE_PACKAGE_REPO[depot_tools]/gsutil.py", | |
347 "--target", | |
348 "Release", | |
349 "--src-dir", | |
350 "[SLAVE_BUILD]/src", | |
351 "--build-url", | |
352 "gs://chromium-linux-archive/chromium.linux/Android Builder/full-build-lin
ux.zip", | |
353 "--build_revision", | |
354 "f27fede2220bcd326aee3e86ddfd4ebd0fe58cb9", | |
355 "--master-name", | |
356 "chromium.linux", | |
357 "--build-number", | |
358 "571" | |
359 ], | |
360 "name": "extract build" | |
361 }, | |
362 { | |
363 "cmd": [ | |
364 "python", | |
365 "-u", | |
366 "RECIPE_MODULE[build::isolate]/resources/find_isolated_tests.py", | |
367 "--build-dir", | |
368 "[SLAVE_BUILD]/src/out/Release", | |
369 "--output-json", | |
370 "/path/to/tmp/json" | |
371 ], | |
372 "env": { | |
373 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account
-goma-client.json", | |
374 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S
LAVE_BUILD]/src/build/android:%(PATH)s" | |
375 }, | |
376 "name": "find isolated tests", | |
377 "~followup_annotations": [ | |
378 "@@@STEP_LOG_LINE@json.output@{@@@", | |
379 "@@@STEP_LOG_LINE@json.output@ \"dummy_target_1\": \"[dummy hash for dumm
y_target_1]\", @@@", | |
380 "@@@STEP_LOG_LINE@json.output@ \"dummy_target_2\": \"[dummy hash for dumm
y_target_2]\"@@@", | |
381 "@@@STEP_LOG_LINE@json.output@}@@@", | |
382 "@@@STEP_LOG_END@json.output@@@", | |
383 "@@@SET_BUILD_PROPERTY@swarm_hashes@{\"dummy_target_1\": \"[dummy hash for
dummy_target_1]\", \"dummy_target_2\": \"[dummy hash for dummy_target_2]\"}@@@" | |
384 ] | |
385 }, | |
386 { | |
387 "cmd": [ | |
388 "python", | |
389 "-u", | |
390 "RECIPE_MODULE[build::adb]/resources/list_devices.py", | |
391 "['[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools/adb', 'd
evices']", | |
392 "/path/to/tmp/json" | |
393 ], | |
394 "env": { | |
395 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account
-goma-client.json", | |
396 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S
LAVE_BUILD]/src/build/android:%(PATH)s" | |
397 }, | |
398 "name": "List adb devices", | |
399 "~followup_annotations": [ | |
400 "@@@STEP_LOG_LINE@json.output@[@@@", | |
401 "@@@STEP_LOG_LINE@json.output@ \"014E1F310401C009\"@@@", | |
402 "@@@STEP_LOG_LINE@json.output@]@@@", | |
403 "@@@STEP_LOG_END@json.output@@@" | |
404 ] | |
405 }, | |
406 { | |
407 "cmd": [ | |
408 "python", | |
409 "-u", | |
410 "\nimport subprocess\nimport sys\nadb_path = sys.argv[1]\nfor device in sy
s.argv[2:]:\n print 'Attempting to root device %s ...' % (device)\n subprocess
.check_call([adb_path, '-s', device, 'root'])\n subprocess.check_call([adb_path
, '-s', device, 'wait-for-device'])\n print 'Finished rooting device %s' % (dev
ice)\n", | |
411 "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools/adb", | |
412 "014E1F310401C009" | |
413 ], | |
414 "env": { | |
415 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account
-goma-client.json", | |
416 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S
LAVE_BUILD]/src/build/android:%(PATH)s" | |
417 }, | |
418 "name": "Root devices", | |
419 "~followup_annotations": [ | |
420 "@@@STEP_LOG_LINE@python.inline@@@@", | |
421 "@@@STEP_LOG_LINE@python.inline@import subprocess@@@", | |
422 "@@@STEP_LOG_LINE@python.inline@import sys@@@", | |
423 "@@@STEP_LOG_LINE@python.inline@adb_path = sys.argv[1]@@@", | |
424 "@@@STEP_LOG_LINE@python.inline@for device in sys.argv[2:]:@@@", | |
425 "@@@STEP_LOG_LINE@python.inline@ print 'Attempting to root device %s ...'
% (device)@@@", | |
426 "@@@STEP_LOG_LINE@python.inline@ subprocess.check_call([adb_path, '-s', d
evice, 'root'])@@@", | |
427 "@@@STEP_LOG_LINE@python.inline@ subprocess.check_call([adb_path, '-s', d
evice, 'wait-for-device'])@@@", | |
428 "@@@STEP_LOG_LINE@python.inline@ print 'Finished rooting device %s' % (de
vice)@@@", | |
429 "@@@STEP_LOG_END@python.inline@@@" | |
430 ] | |
431 }, | |
432 { | |
433 "cmd": [ | |
434 "python", | |
435 "-u", | |
436 "[SLAVE_BUILD]/src/tools/swarming_client/swarming.py", | |
437 "trigger", | |
438 "--swarming", | |
439 "https://chromium-swarm.appspot.com", | |
440 "--isolate-server", | |
441 "https://isolateserver.appspot.com", | |
442 "--priority", | |
443 "25", | |
444 "--shards", | |
445 "1", | |
446 "--task-name", | |
447 "chrome_public_test_apk/Android/cccccccccc/Android Tests/571", | |
448 "--dump-json", | |
449 "/path/to/tmp/json", | |
450 "--expiration", | |
451 "3600", | |
452 "--io-timeout", | |
453 "1200", | |
454 "--hard-timeout", | |
455 "3600", | |
456 "--dimension", | |
457 "android_devices", | |
458 "6", | |
459 "--dimension", | |
460 "build.id", | |
461 "KTU84P", | |
462 "--dimension", | |
463 "os", | |
464 "Android", | |
465 "--dimension", | |
466 "pool", | |
467 "Chrome", | |
468 "--dimension", | |
469 "product.board", | |
470 "hammerhead", | |
471 "--tag", | |
472 "buildername:Android Tests", | |
473 "--tag", | |
474 "buildnumber:571", | |
475 "--tag", | |
476 "data:cccccccccccccccccc", | |
477 "--tag", | |
478 "master:chromium.linux", | |
479 "--tag", | |
480 "name:chrome_public_test_apk", | |
481 "--tag", | |
482 "os:Android", | |
483 "--tag", | |
484 "project:chromium", | |
485 "--tag", | |
486 "purpose:CI", | |
487 "--tag", | |
488 "purpose:post-commit", | |
489 "--tag", | |
490 "slavename:TestSlavename", | |
491 "--tag", | |
492 "stepname:chrome_public_test_apk on Android", | |
493 "--idempotent", | |
494 "--cipd-package", | |
495 "bin:logdog/butler/linux-386:git_revision:deadbeef", | |
496 "--cipd-package", | |
497 "bin:some/other/package:git_revision:deadbeef", | |
498 "cccccccccccccccccc", | |
499 "--", | |
500 "--test-launcher-summary-output=${ISOLATED_OUTDIR}/output.json" | |
501 ], | |
502 "env": { | |
503 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account
-goma-client.json", | |
504 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S
LAVE_BUILD]/src/build/android:%(PATH)s" | |
505 }, | |
506 "name": "[trigger] chrome_public_test_apk on Android", | |
507 "~followup_annotations": [ | |
508 "@@@STEP_LOG_LINE@json.output@{@@@", | |
509 "@@@STEP_LOG_LINE@json.output@ \"base_task_name\": \"chrome_public_test_a
pk/Android/cccccccccc/Android Tests/571\", @@@", | |
510 "@@@STEP_LOG_LINE@json.output@ \"tasks\": {@@@", | |
511 "@@@STEP_LOG_LINE@json.output@ \"chrome_public_test_apk/Android/ccccccc
ccc/Android Tests/571\": {@@@", | |
512 "@@@STEP_LOG_LINE@json.output@ \"shard_index\": 0, @@@", | |
513 "@@@STEP_LOG_LINE@json.output@ \"task_id\": \"10000\", @@@", | |
514 "@@@STEP_LOG_LINE@json.output@ \"view_url\": \"https://chromium-swarm
.appspot.com/user/task/10000\"@@@", | |
515 "@@@STEP_LOG_LINE@json.output@ }@@@", | |
516 "@@@STEP_LOG_LINE@json.output@ }@@@", | |
517 "@@@STEP_LOG_LINE@json.output@}@@@", | |
518 "@@@STEP_LOG_END@json.output@@@", | |
519 "@@@STEP_LINK@shard #0@https://chromium-swarm.appspot.com/user/task/10000@
@@" | |
520 ] | |
521 }, | |
522 { | |
523 "allow_subannotations": true, | |
524 "cmd": [ | |
525 "python", | |
526 "-u", | |
527 "RECIPE_PACKAGE_REPO[build]/scripts/tools/runit.py", | |
528 "python", | |
529 "RECIPE_MODULE[build::swarming]/resources/collect_gtest_task.py", | |
530 "--swarming-client-dir", | |
531 "[SLAVE_BUILD]/src/tools/swarming_client", | |
532 "--temp-root-dir", | |
533 "[TMP_BASE]", | |
534 "--merged-test-output", | |
535 "/path/to/tmp/json", | |
536 "--", | |
537 "collect", | |
538 "--swarming", | |
539 "https://chromium-swarm.appspot.com", | |
540 "--decorate", | |
541 "--print-status-updates", | |
542 "--json", | |
543 "{\"base_task_name\": \"chrome_public_test_apk/Android/cccccccccc/Android
Tests/571\", \"tasks\": {\"chrome_public_test_apk/Android/cccccccccc/Android Tes
ts/571\": {\"shard_index\": 0, \"task_id\": \"10000\", \"view_url\": \"https://c
hromium-swarm.appspot.com/user/task/10000\"}}}" | |
544 ], | |
545 "env": { | |
546 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account
-goma-client.json", | |
547 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S
LAVE_BUILD]/src/build/android:%(PATH)s" | |
548 }, | |
549 "name": "chrome_public_test_apk on Android", | |
550 "~followup_annotations": [ | |
551 "@@@STEP_LINK@shard #0 isolated out@blah@@@", | |
552 "@@@STEP_LINK@shard_index:0logcats@https://luci-logdog.appspot.com/v/?s=an
droid%2Fswarming%2Flogcats%2F10000%2F%2B%2Funified_logcats@@@" | |
553 ] | |
554 }, | |
555 { | |
556 "cmd": [ | |
557 "python", | |
558 "-u", | |
559 "RECIPE_MODULE[build::test_results]/resources/upload_gtest_test_results.py
", | |
560 "--input-gtest-json", | |
561 "{\"per_iteration_data\": [{\"Test.One\": [{\"elapsed_time_ms\": 0, \"outp
ut_snippet\": \"\", \"status\": \"SUCCESS\"}], \"Test.Three\": [{\"elapsed_time_
ms\": 0, \"output_snippet\": \"\", \"status\": \"SUCCESS\"}], \"Test.Two\": [{\"
elapsed_time_ms\": 0, \"output_snippet\": \"\", \"status\": \"SUCCESS\"}]}], \"s
warming_summary\": {\"shards\": [{\"outputs_ref\": {\"view_url\": \"blah\"}}]}}"
, | |
562 "--master-name", | |
563 "chromium.linux", | |
564 "--builder-name", | |
565 "Android Tests", | |
566 "--build-number", | |
567 "571", | |
568 "--test-type", | |
569 "chrome_public_test_apk on Android", | |
570 "--test-results-server", | |
571 "test-results.appspot.com", | |
572 "--chrome-revision", | |
573 "170242" | |
574 ], | |
575 "env": { | |
576 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account
-goma-client.json", | |
577 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S
LAVE_BUILD]/src/build/android:%(PATH)s" | |
578 }, | |
579 "name": "Upload to test-results [chrome_public_test_apk on Android]" | |
580 }, | |
581 { | |
582 "cmd": [ | |
583 "python", | |
584 "-u", | |
585 "\nimport glob, os, sys\nfor report in glob.glob(sys.argv[1]):\n with ope
n(report, 'r') as f:\n for l in f.readlines():\n print l\n os.remove(re
port)\n", | |
586 "[SLAVE_BUILD]/src/out/Release/test_logs/*.log" | |
587 ], | |
588 "env": { | |
589 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account
-goma-client.json", | |
590 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S
LAVE_BUILD]/src/build/android:%(PATH)s" | |
591 }, | |
592 "name": "test_report", | |
593 "~followup_annotations": [ | |
594 "@@@STEP_LOG_LINE@python.inline@@@@", | |
595 "@@@STEP_LOG_LINE@python.inline@import glob, os, sys@@@", | |
596 "@@@STEP_LOG_LINE@python.inline@for report in glob.glob(sys.argv[1]):@@@", | |
597 "@@@STEP_LOG_LINE@python.inline@ with open(report, 'r') as f:@@@", | |
598 "@@@STEP_LOG_LINE@python.inline@ for l in f.readlines():@@@", | |
599 "@@@STEP_LOG_LINE@python.inline@ print l@@@", | |
600 "@@@STEP_LOG_LINE@python.inline@ os.remove(report)@@@", | |
601 "@@@STEP_LOG_END@python.inline@@@" | |
602 ] | |
603 }, | |
604 { | |
605 "name": "$result", | |
606 "recipe_result": null, | |
607 "status_code": 0 | |
608 } | |
609 ] | |
OLD | NEW |