OLD | NEW |
| (Empty) |
1 [ | |
2 { | |
3 "cmd": [ | |
4 "which", | |
5 "adb" | |
6 ], | |
7 "name": "which adb", | |
8 "stdout": "/path/to/tmp/", | |
9 "~followup_annotations": [ | |
10 "step returned non-zero exit code: 1", | |
11 "@@@STEP_EXCEPTION@@@" | |
12 ] | |
13 }, | |
14 { | |
15 "cmd": [ | |
16 "[SLAVE_BUILD]/skia/platform_tools/android/bin/adb_wait_for_device" | |
17 ], | |
18 "env": { | |
19 "ANDROID_HOME": "[SLAVE_BUILD]/android_sdk/android-sdk", | |
20 "ANDROID_SDK_ROOT": "[SLAVE_BUILD]/android_sdk/android-sdk", | |
21 "BUILDTYPE": "Release", | |
22 "CHROME_HEADLESS": "1", | |
23 "SKIA_ANDROID_VERBOSE_SETUP": "1", | |
24 "SKIA_OUT": "[SLAVE_BUILD]/out" | |
25 }, | |
26 "name": "wait for device (1)" | |
27 }, | |
28 { | |
29 "cmd": [ | |
30 "[SLAVE_BUILD]/skia/platform_tools/android/bin/adb_wait_for_charge" | |
31 ], | |
32 "env": { | |
33 "ANDROID_HOME": "[SLAVE_BUILD]/android_sdk/android-sdk", | |
34 "ANDROID_SDK_ROOT": "[SLAVE_BUILD]/android_sdk/android-sdk", | |
35 "BUILDTYPE": "Release", | |
36 "CHROME_HEADLESS": "1", | |
37 "SKIA_ANDROID_VERBOSE_SETUP": "1", | |
38 "SKIA_OUT": "[SLAVE_BUILD]/out" | |
39 }, | |
40 "name": "wait for charge (1)" | |
41 }, | |
42 { | |
43 "cmd": [ | |
44 "[SLAVE_BUILD]/android_sdk/android-sdk/platform-tools/adb", | |
45 "shell", | |
46 "echo", | |
47 "$EXTERNAL_STORAGE" | |
48 ], | |
49 "env": { | |
50 "BUILDTYPE": "Release", | |
51 "CHROME_HEADLESS": "1", | |
52 "SKIA_OUT": "[SLAVE_BUILD]/out" | |
53 }, | |
54 "name": "get EXTERNAL_STORAGE dir", | |
55 "stdout": "/path/to/tmp/" | |
56 }, | |
57 { | |
58 "cmd": [ | |
59 "[SLAVE_BUILD]/skia/platform_tools/android/bin/android_kill_skia", | |
60 "--verbose" | |
61 ], | |
62 "env": { | |
63 "ANDROID_HOME": "[SLAVE_BUILD]/android_sdk/android-sdk", | |
64 "ANDROID_SDK_ROOT": "[SLAVE_BUILD]/android_sdk/android-sdk", | |
65 "BUILDTYPE": "Release", | |
66 "CHROME_HEADLESS": "1", | |
67 "SKIA_ANDROID_VERBOSE_SETUP": "1", | |
68 "SKIA_OUT": "[SLAVE_BUILD]/out" | |
69 }, | |
70 "name": "kill skia" | |
71 }, | |
72 { | |
73 "cmd": [ | |
74 "[SLAVE_BUILD]/android_sdk/android-sdk/platform-tools/adb", | |
75 "shell", | |
76 "dumpsys", | |
77 "batteryproperties" | |
78 ], | |
79 "env": { | |
80 "BUILDTYPE": "Release", | |
81 "CHROME_HEADLESS": "1", | |
82 "SKIA_OUT": "[SLAVE_BUILD]/out" | |
83 }, | |
84 "name": "starting battery stats" | |
85 }, | |
86 { | |
87 "cmd": [ | |
88 "[SLAVE_BUILD]/skia/platform_tools/android/bin/adb_push_if_needed", | |
89 "--verbose", | |
90 "[SLAVE_BUILD]/skia/resources", | |
91 "/storage/emulated/legacy/skiabot/skia_resources" | |
92 ], | |
93 "env": { | |
94 "ANDROID_HOME": "[SLAVE_BUILD]/android_sdk/android-sdk", | |
95 "ANDROID_SDK_ROOT": "[SLAVE_BUILD]/android_sdk/android-sdk", | |
96 "BUILDTYPE": "Release", | |
97 "CHROME_HEADLESS": "1", | |
98 "SKIA_ANDROID_VERBOSE_SETUP": "1", | |
99 "SKIA_OUT": "[SLAVE_BUILD]/out" | |
100 }, | |
101 "name": "push resources" | |
102 }, | |
103 { | |
104 "cmd": [ | |
105 "python", | |
106 "-u", | |
107 "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n", | |
108 "[SLAVE_BUILD]/skia/infra/bots/assets/skp/VERSION", | |
109 "/path/to/tmp/" | |
110 ], | |
111 "name": "Get downloaded SKP VERSION" | |
112 }, | |
113 { | |
114 "cmd": [ | |
115 "python", | |
116 "-u", | |
117 "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n", | |
118 "42", | |
119 "[SLAVE_BUILD]/tmp/SKP_VERSION" | |
120 ], | |
121 "name": "write SKP_VERSION" | |
122 }, | |
123 { | |
124 "cmd": [ | |
125 "[SLAVE_BUILD]/android_sdk/android-sdk/platform-tools/adb", | |
126 "shell", | |
127 "cat", | |
128 "/storage/emulated/legacy/skiabot/skia_tmp_dir/SKP_VERSION" | |
129 ], | |
130 "env": { | |
131 "BUILDTYPE": "Release", | |
132 "CHROME_HEADLESS": "1", | |
133 "SKIA_OUT": "[SLAVE_BUILD]/out" | |
134 }, | |
135 "name": "read SKP_VERSION", | |
136 "stdout": "/path/to/tmp/" | |
137 }, | |
138 { | |
139 "cmd": [ | |
140 "python", | |
141 "-u", | |
142 "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n", | |
143 "[SLAVE_BUILD]/skia/infra/bots/assets/skimage/VERSION", | |
144 "/path/to/tmp/" | |
145 ], | |
146 "name": "Get downloaded skimage VERSION" | |
147 }, | |
148 { | |
149 "cmd": [ | |
150 "python", | |
151 "-u", | |
152 "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n", | |
153 "42", | |
154 "[SLAVE_BUILD]/tmp/SK_IMAGE_VERSION" | |
155 ], | |
156 "name": "write SK_IMAGE_VERSION" | |
157 }, | |
158 { | |
159 "cmd": [ | |
160 "[SLAVE_BUILD]/android_sdk/android-sdk/platform-tools/adb", | |
161 "shell", | |
162 "cat", | |
163 "/storage/emulated/legacy/skiabot/skia_tmp_dir/SK_IMAGE_VERSION" | |
164 ], | |
165 "env": { | |
166 "BUILDTYPE": "Release", | |
167 "CHROME_HEADLESS": "1", | |
168 "SKIA_OUT": "[SLAVE_BUILD]/out" | |
169 }, | |
170 "name": "read SK_IMAGE_VERSION", | |
171 "stdout": "/path/to/tmp/" | |
172 }, | |
173 { | |
174 "cmd": [ | |
175 "python", | |
176 "-u", | |
177 "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n", | |
178 "[SLAVE_BUILD]/skia/infra/bots/assets/svg/VERSION", | |
179 "/path/to/tmp/" | |
180 ], | |
181 "name": "Get downloaded SVG VERSION" | |
182 }, | |
183 { | |
184 "cmd": [ | |
185 "python", | |
186 "-u", | |
187 "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n", | |
188 "42", | |
189 "[SLAVE_BUILD]/tmp/SVG_VERSION" | |
190 ], | |
191 "name": "write SVG_VERSION" | |
192 }, | |
193 { | |
194 "cmd": [ | |
195 "[SLAVE_BUILD]/android_sdk/android-sdk/platform-tools/adb", | |
196 "shell", | |
197 "cat", | |
198 "/storage/emulated/legacy/skiabot/skia_tmp_dir/SVG_VERSION" | |
199 ], | |
200 "env": { | |
201 "BUILDTYPE": "Release", | |
202 "CHROME_HEADLESS": "1", | |
203 "SKIA_OUT": "[SLAVE_BUILD]/out" | |
204 }, | |
205 "name": "read SVG_VERSION", | |
206 "stdout": "/path/to/tmp/" | |
207 }, | |
208 { | |
209 "cmd": [ | |
210 "[SLAVE_BUILD]/android_sdk/android-sdk/platform-tools/adb", | |
211 "shell", | |
212 "rm", | |
213 "-r", | |
214 "/storage/emulated/legacy/skiabot/skia_perf" | |
215 ], | |
216 "env": { | |
217 "BUILDTYPE": "Release", | |
218 "CHROME_HEADLESS": "1", | |
219 "SKIA_OUT": "[SLAVE_BUILD]/out" | |
220 }, | |
221 "name": "rmdir skia_perf" | |
222 }, | |
223 { | |
224 "cmd": [ | |
225 "[SLAVE_BUILD]/android_sdk/android-sdk/platform-tools/adb", | |
226 "shell", | |
227 "if", | |
228 "[", | |
229 "-e", | |
230 "/storage/emulated/legacy/skiabot/skia_perf", | |
231 "];", | |
232 "then", | |
233 "echo", | |
234 "FILE_EXISTS;", | |
235 "fi" | |
236 ], | |
237 "env": { | |
238 "BUILDTYPE": "Release", | |
239 "CHROME_HEADLESS": "1", | |
240 "SKIA_OUT": "[SLAVE_BUILD]/out" | |
241 }, | |
242 "name": "exists skia_perf", | |
243 "stdout": "/path/to/tmp/" | |
244 }, | |
245 { | |
246 "cmd": [ | |
247 "[SLAVE_BUILD]/android_sdk/android-sdk/platform-tools/adb", | |
248 "shell", | |
249 "mkdir", | |
250 "-p", | |
251 "/storage/emulated/legacy/skiabot/skia_perf" | |
252 ], | |
253 "env": { | |
254 "BUILDTYPE": "Release", | |
255 "CHROME_HEADLESS": "1", | |
256 "SKIA_OUT": "[SLAVE_BUILD]/out" | |
257 }, | |
258 "name": "mkdir skia_perf" | |
259 }, | |
260 { | |
261 "cmd": [ | |
262 "[SLAVE_BUILD]/skia/platform_tools/android/bin/android_run_skia", | |
263 "--verbose", | |
264 "--logcat", | |
265 "-d", | |
266 "arm_v7_neon", | |
267 "-t", | |
268 "Release", | |
269 "nanobench", | |
270 "--undefok", | |
271 "-i", | |
272 "/storage/emulated/legacy/skiabot/skia_resources", | |
273 "--skps", | |
274 "/storage/emulated/legacy/skiabot/skia_skp/skps", | |
275 "--images", | |
276 "/storage/emulated/legacy/skiabot/skia_images/nanobench", | |
277 "--nocpu", | |
278 "--pre_log", | |
279 "--images", | |
280 "--gpuStatsDump", | |
281 "true", | |
282 "--useThermalManager", | |
283 "1,1,10,1000", | |
284 "--scales", | |
285 "1.0", | |
286 "1.1", | |
287 "--config", | |
288 "8888", | |
289 "gpu", | |
290 "nonrendering", | |
291 "angle", | |
292 "hwui", | |
293 "f16", | |
294 "srgb", | |
295 "msaa4", | |
296 "nvpr4", | |
297 "nvprdit4", | |
298 "--match", | |
299 "~blurroundrect", | |
300 "~patch_grid", | |
301 "~desk_carsvg", | |
302 "~shapes_", | |
303 "~inc0.gif", | |
304 "~inc1.gif", | |
305 "~incInterlaced.gif", | |
306 "~inc0.jpg", | |
307 "~incGray.jpg", | |
308 "~inc0.wbmp", | |
309 "~inc1.wbmp", | |
310 "~inc0.webp", | |
311 "~inc1.webp", | |
312 "~inc0.ico", | |
313 "~inc1.ico", | |
314 "~inc0.png", | |
315 "~inc1.png", | |
316 "~inc2.png", | |
317 "~inc12.png", | |
318 "~inc13.png", | |
319 "~inc14.png", | |
320 "~inc0.webp", | |
321 "~inc1.webp", | |
322 "--outResultsFile", | |
323 "/storage/emulated/legacy/skiabot/skia_perf/nanobench_abc123.json", | |
324 "--properties", | |
325 "gitHash", | |
326 "abc123", | |
327 "build_number", | |
328 "5", | |
329 "--key", | |
330 "arch", | |
331 "Arm7", | |
332 "compiler", | |
333 "GCC", | |
334 "cpu_or_gpu", | |
335 "GPU", | |
336 "cpu_or_gpu_value", | |
337 "Mali400", | |
338 "model", | |
339 "GalaxyS3", | |
340 "os", | |
341 "Android" | |
342 ], | |
343 "env": { | |
344 "ANDROID_HOME": "[SLAVE_BUILD]/android_sdk/android-sdk", | |
345 "ANDROID_SDK_ROOT": "[SLAVE_BUILD]/android_sdk/android-sdk", | |
346 "BUILDTYPE": "Release", | |
347 "CHROME_HEADLESS": "1", | |
348 "SKIA_ANDROID_VERBOSE_SETUP": "1", | |
349 "SKIA_OUT": "[SLAVE_BUILD]/out" | |
350 }, | |
351 "name": "nanobench" | |
352 }, | |
353 { | |
354 "cmd": [ | |
355 "python", | |
356 "-u", | |
357 "\nimport sys, os\npath = sys.argv[1]\nmode = int(sys.argv[2])\nif not os.
path.isdir(path):\n if os.path.exists(path):\n print \"%s exists but is not
a dir\" % path\n sys.exit(1)\n os.makedirs(path, mode)\n", | |
358 "[CUSTOM_[SWARM_OUT_DIR]]/perfdata/Perf-Android-GCC-GalaxyS3-GPU-Mali400-A
rm7-Release/data", | |
359 "511" | |
360 ], | |
361 "name": "makedirs perf_dir", | |
362 "~followup_annotations": [ | |
363 "@@@STEP_LOG_LINE@python.inline@@@@", | |
364 "@@@STEP_LOG_LINE@python.inline@import sys, os@@@", | |
365 "@@@STEP_LOG_LINE@python.inline@path = sys.argv[1]@@@", | |
366 "@@@STEP_LOG_LINE@python.inline@mode = int(sys.argv[2])@@@", | |
367 "@@@STEP_LOG_LINE@python.inline@if not os.path.isdir(path):@@@", | |
368 "@@@STEP_LOG_LINE@python.inline@ if os.path.exists(path):@@@", | |
369 "@@@STEP_LOG_LINE@python.inline@ print \"%s exists but is not a dir\" %
path@@@", | |
370 "@@@STEP_LOG_LINE@python.inline@ sys.exit(1)@@@", | |
371 "@@@STEP_LOG_LINE@python.inline@ os.makedirs(path, mode)@@@", | |
372 "@@@STEP_LOG_END@python.inline@@@" | |
373 ] | |
374 }, | |
375 { | |
376 "cmd": [ | |
377 "[SLAVE_BUILD]/skia/platform_tools/android/bin/adb_pull_if_needed", | |
378 "--verbose", | |
379 "/storage/emulated/legacy/skiabot/skia_perf", | |
380 "[CUSTOM_[SWARM_OUT_DIR]]/perfdata/Perf-Android-GCC-GalaxyS3-GPU-Mali400-A
rm7-Release/data" | |
381 ], | |
382 "env": { | |
383 "ANDROID_HOME": "[SLAVE_BUILD]/android_sdk/android-sdk", | |
384 "ANDROID_SDK_ROOT": "[SLAVE_BUILD]/android_sdk/android-sdk", | |
385 "BUILDTYPE": "Release", | |
386 "CHROME_HEADLESS": "1", | |
387 "SKIA_ANDROID_VERBOSE_SETUP": "1", | |
388 "SKIA_OUT": "[SLAVE_BUILD]/out" | |
389 }, | |
390 "name": "pull skia_perf" | |
391 }, | |
392 { | |
393 "cmd": [ | |
394 "[SLAVE_BUILD]/android_sdk/android-sdk/platform-tools/adb", | |
395 "shell", | |
396 "dumpsys", | |
397 "batteryproperties" | |
398 ], | |
399 "env": { | |
400 "BUILDTYPE": "Release", | |
401 "CHROME_HEADLESS": "1", | |
402 "SKIA_OUT": "[SLAVE_BUILD]/out" | |
403 }, | |
404 "name": "final battery stats" | |
405 }, | |
406 { | |
407 "cmd": [ | |
408 "[SLAVE_BUILD]/android_sdk/android-sdk/platform-tools/adb", | |
409 "reboot" | |
410 ], | |
411 "env": { | |
412 "BUILDTYPE": "Release", | |
413 "CHROME_HEADLESS": "1", | |
414 "SKIA_OUT": "[SLAVE_BUILD]/out" | |
415 }, | |
416 "name": "reboot" | |
417 }, | |
418 { | |
419 "cmd": [ | |
420 "sleep", | |
421 "10" | |
422 ], | |
423 "env": { | |
424 "BUILDTYPE": "Release", | |
425 "CHROME_HEADLESS": "1", | |
426 "SKIA_OUT": "[SLAVE_BUILD]/out" | |
427 }, | |
428 "name": "wait for reboot" | |
429 }, | |
430 { | |
431 "cmd": [ | |
432 "[SLAVE_BUILD]/skia/platform_tools/android/bin/adb_wait_for_device" | |
433 ], | |
434 "env": { | |
435 "ANDROID_HOME": "[SLAVE_BUILD]/android_sdk/android-sdk", | |
436 "ANDROID_SDK_ROOT": "[SLAVE_BUILD]/android_sdk/android-sdk", | |
437 "BUILDTYPE": "Release", | |
438 "CHROME_HEADLESS": "1", | |
439 "SKIA_ANDROID_VERBOSE_SETUP": "1", | |
440 "SKIA_OUT": "[SLAVE_BUILD]/out" | |
441 }, | |
442 "name": "wait for device (2)" | |
443 }, | |
444 { | |
445 "cmd": [ | |
446 "[SLAVE_BUILD]/skia/platform_tools/android/bin/adb_wait_for_charge" | |
447 ], | |
448 "env": { | |
449 "ANDROID_HOME": "[SLAVE_BUILD]/android_sdk/android-sdk", | |
450 "ANDROID_SDK_ROOT": "[SLAVE_BUILD]/android_sdk/android-sdk", | |
451 "BUILDTYPE": "Release", | |
452 "CHROME_HEADLESS": "1", | |
453 "SKIA_ANDROID_VERBOSE_SETUP": "1", | |
454 "SKIA_OUT": "[SLAVE_BUILD]/out" | |
455 }, | |
456 "name": "wait for charge (2)" | |
457 }, | |
458 { | |
459 "cmd": [ | |
460 "[SLAVE_BUILD]/android_sdk/android-sdk/platform-tools/adb", | |
461 "kill-server" | |
462 ], | |
463 "env": { | |
464 "BUILDTYPE": "Release", | |
465 "CHROME_HEADLESS": "1", | |
466 "SKIA_OUT": "[SLAVE_BUILD]/out" | |
467 }, | |
468 "name": "kill-server" | |
469 }, | |
470 { | |
471 "name": "$result", | |
472 "recipe_result": null, | |
473 "status_code": 0 | |
474 } | |
475 ] | |
OLD | NEW |