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]/android_sdk/android-sdk/platform-tools/adb", | |
60 "root" | |
61 ], | |
62 "env": { | |
63 "BUILDTYPE": "Release", | |
64 "CHROME_HEADLESS": "1", | |
65 "SKIA_OUT": "[SLAVE_BUILD]/out" | |
66 }, | |
67 "name": "adb root", | |
68 "stdout": "/path/to/tmp/" | |
69 }, | |
70 { | |
71 "cmd": [ | |
72 "sleep", | |
73 "10" | |
74 ], | |
75 "env": { | |
76 "BUILDTYPE": "Release", | |
77 "CHROME_HEADLESS": "1", | |
78 "SKIA_OUT": "[SLAVE_BUILD]/out" | |
79 }, | |
80 "name": "wait" | |
81 }, | |
82 { | |
83 "cmd": [ | |
84 "[SLAVE_BUILD]/skia/platform_tools/android/bin/adb_wait_for_device" | |
85 ], | |
86 "env": { | |
87 "ANDROID_HOME": "[SLAVE_BUILD]/android_sdk/android-sdk", | |
88 "ANDROID_SDK_ROOT": "[SLAVE_BUILD]/android_sdk/android-sdk", | |
89 "BUILDTYPE": "Release", | |
90 "CHROME_HEADLESS": "1", | |
91 "SKIA_ANDROID_VERBOSE_SETUP": "1", | |
92 "SKIA_OUT": "[SLAVE_BUILD]/out" | |
93 }, | |
94 "name": "wait for device (2)" | |
95 }, | |
96 { | |
97 "cmd": [ | |
98 "[SLAVE_BUILD]/skia/platform_tools/android/bin/adb_wait_for_charge" | |
99 ], | |
100 "env": { | |
101 "ANDROID_HOME": "[SLAVE_BUILD]/android_sdk/android-sdk", | |
102 "ANDROID_SDK_ROOT": "[SLAVE_BUILD]/android_sdk/android-sdk", | |
103 "BUILDTYPE": "Release", | |
104 "CHROME_HEADLESS": "1", | |
105 "SKIA_ANDROID_VERBOSE_SETUP": "1", | |
106 "SKIA_OUT": "[SLAVE_BUILD]/out" | |
107 }, | |
108 "name": "wait for charge (2)" | |
109 }, | |
110 { | |
111 "cmd": [ | |
112 "[SLAVE_BUILD]/skia/platform_tools/android/bin/android_kill_skia", | |
113 "--verbose" | |
114 ], | |
115 "env": { | |
116 "ANDROID_HOME": "[SLAVE_BUILD]/android_sdk/android-sdk", | |
117 "ANDROID_SDK_ROOT": "[SLAVE_BUILD]/android_sdk/android-sdk", | |
118 "BUILDTYPE": "Release", | |
119 "CHROME_HEADLESS": "1", | |
120 "SKIA_ANDROID_VERBOSE_SETUP": "1", | |
121 "SKIA_OUT": "[SLAVE_BUILD]/out" | |
122 }, | |
123 "name": "kill skia" | |
124 }, | |
125 { | |
126 "cmd": [ | |
127 "[SLAVE_BUILD]/android_sdk/android-sdk/platform-tools/adb", | |
128 "shell", | |
129 "stop" | |
130 ], | |
131 "env": { | |
132 "BUILDTYPE": "Release", | |
133 "CHROME_HEADLESS": "1", | |
134 "SKIA_OUT": "[SLAVE_BUILD]/out" | |
135 }, | |
136 "name": "stop shell" | |
137 }, | |
138 { | |
139 "cmd": [ | |
140 "[SLAVE_BUILD]/android_sdk/android-sdk/platform-tools/adb", | |
141 "shell", | |
142 "dumpsys", | |
143 "batteryproperties" | |
144 ], | |
145 "env": { | |
146 "BUILDTYPE": "Release", | |
147 "CHROME_HEADLESS": "1", | |
148 "SKIA_OUT": "[SLAVE_BUILD]/out" | |
149 }, | |
150 "name": "starting battery stats" | |
151 }, | |
152 { | |
153 "cmd": [ | |
154 "[SLAVE_BUILD]/android_sdk/android-sdk/platform-tools/adb", | |
155 "shell", | |
156 "cat", | |
157 "/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor" | |
158 ], | |
159 "env": { | |
160 "BUILDTYPE": "Release", | |
161 "CHROME_HEADLESS": "1", | |
162 "SKIA_OUT": "[SLAVE_BUILD]/out" | |
163 }, | |
164 "name": "cat scaling_governor" | |
165 }, | |
166 { | |
167 "cmd": [ | |
168 "[SLAVE_BUILD]/android_sdk/android-sdk/platform-tools/adb", | |
169 "shell", | |
170 "cat", | |
171 "/sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq" | |
172 ], | |
173 "env": { | |
174 "BUILDTYPE": "Release", | |
175 "CHROME_HEADLESS": "1", | |
176 "SKIA_OUT": "[SLAVE_BUILD]/out" | |
177 }, | |
178 "name": "cat cpu_freq" | |
179 }, | |
180 { | |
181 "cmd": [ | |
182 "[SLAVE_BUILD]/skia/platform_tools/android/bin/adb_push_if_needed", | |
183 "--verbose", | |
184 "[SLAVE_BUILD]/skia/resources", | |
185 "/storage/emulated/legacy/skiabot/skia_resources" | |
186 ], | |
187 "env": { | |
188 "ANDROID_HOME": "[SLAVE_BUILD]/android_sdk/android-sdk", | |
189 "ANDROID_SDK_ROOT": "[SLAVE_BUILD]/android_sdk/android-sdk", | |
190 "BUILDTYPE": "Release", | |
191 "CHROME_HEADLESS": "1", | |
192 "SKIA_ANDROID_VERBOSE_SETUP": "1", | |
193 "SKIA_OUT": "[SLAVE_BUILD]/out" | |
194 }, | |
195 "name": "push resources" | |
196 }, | |
197 { | |
198 "cmd": [ | |
199 "python", | |
200 "-u", | |
201 "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n", | |
202 "[SLAVE_BUILD]/skia/infra/bots/assets/skp/VERSION", | |
203 "/path/to/tmp/" | |
204 ], | |
205 "name": "Get downloaded SKP VERSION" | |
206 }, | |
207 { | |
208 "cmd": [ | |
209 "python", | |
210 "-u", | |
211 "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n", | |
212 "42", | |
213 "[SLAVE_BUILD]/tmp/SKP_VERSION" | |
214 ], | |
215 "name": "write SKP_VERSION" | |
216 }, | |
217 { | |
218 "cmd": [ | |
219 "[SLAVE_BUILD]/android_sdk/android-sdk/platform-tools/adb", | |
220 "shell", | |
221 "cat", | |
222 "/storage/emulated/legacy/skiabot/skia_tmp_dir/SKP_VERSION" | |
223 ], | |
224 "env": { | |
225 "BUILDTYPE": "Release", | |
226 "CHROME_HEADLESS": "1", | |
227 "SKIA_OUT": "[SLAVE_BUILD]/out" | |
228 }, | |
229 "name": "read SKP_VERSION", | |
230 "stdout": "/path/to/tmp/" | |
231 }, | |
232 { | |
233 "cmd": [ | |
234 "python", | |
235 "-u", | |
236 "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n", | |
237 "[SLAVE_BUILD]/skia/infra/bots/assets/skimage/VERSION", | |
238 "/path/to/tmp/" | |
239 ], | |
240 "name": "Get downloaded skimage VERSION" | |
241 }, | |
242 { | |
243 "cmd": [ | |
244 "python", | |
245 "-u", | |
246 "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n", | |
247 "42", | |
248 "[SLAVE_BUILD]/tmp/SK_IMAGE_VERSION" | |
249 ], | |
250 "name": "write SK_IMAGE_VERSION" | |
251 }, | |
252 { | |
253 "cmd": [ | |
254 "[SLAVE_BUILD]/android_sdk/android-sdk/platform-tools/adb", | |
255 "shell", | |
256 "cat", | |
257 "/storage/emulated/legacy/skiabot/skia_tmp_dir/SK_IMAGE_VERSION" | |
258 ], | |
259 "env": { | |
260 "BUILDTYPE": "Release", | |
261 "CHROME_HEADLESS": "1", | |
262 "SKIA_OUT": "[SLAVE_BUILD]/out" | |
263 }, | |
264 "name": "read SK_IMAGE_VERSION", | |
265 "stdout": "/path/to/tmp/" | |
266 }, | |
267 { | |
268 "cmd": [ | |
269 "python", | |
270 "-u", | |
271 "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n", | |
272 "[SLAVE_BUILD]/skia/infra/bots/assets/svg/VERSION", | |
273 "/path/to/tmp/" | |
274 ], | |
275 "name": "Get downloaded SVG VERSION" | |
276 }, | |
277 { | |
278 "cmd": [ | |
279 "python", | |
280 "-u", | |
281 "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n", | |
282 "42", | |
283 "[SLAVE_BUILD]/tmp/SVG_VERSION" | |
284 ], | |
285 "name": "write SVG_VERSION" | |
286 }, | |
287 { | |
288 "cmd": [ | |
289 "[SLAVE_BUILD]/android_sdk/android-sdk/platform-tools/adb", | |
290 "shell", | |
291 "cat", | |
292 "/storage/emulated/legacy/skiabot/skia_tmp_dir/SVG_VERSION" | |
293 ], | |
294 "env": { | |
295 "BUILDTYPE": "Release", | |
296 "CHROME_HEADLESS": "1", | |
297 "SKIA_OUT": "[SLAVE_BUILD]/out" | |
298 }, | |
299 "name": "read SVG_VERSION", | |
300 "stdout": "/path/to/tmp/" | |
301 }, | |
302 { | |
303 "cmd": [ | |
304 "[SLAVE_BUILD]/android_sdk/android-sdk/platform-tools/adb", | |
305 "shell", | |
306 "rm", | |
307 "-r", | |
308 "/storage/emulated/legacy/skiabot/skia_perf" | |
309 ], | |
310 "env": { | |
311 "BUILDTYPE": "Release", | |
312 "CHROME_HEADLESS": "1", | |
313 "SKIA_OUT": "[SLAVE_BUILD]/out" | |
314 }, | |
315 "name": "rmdir skia_perf" | |
316 }, | |
317 { | |
318 "cmd": [ | |
319 "[SLAVE_BUILD]/android_sdk/android-sdk/platform-tools/adb", | |
320 "shell", | |
321 "if", | |
322 "[", | |
323 "-e", | |
324 "/storage/emulated/legacy/skiabot/skia_perf", | |
325 "];", | |
326 "then", | |
327 "echo", | |
328 "FILE_EXISTS;", | |
329 "fi" | |
330 ], | |
331 "env": { | |
332 "BUILDTYPE": "Release", | |
333 "CHROME_HEADLESS": "1", | |
334 "SKIA_OUT": "[SLAVE_BUILD]/out" | |
335 }, | |
336 "name": "exists skia_perf", | |
337 "stdout": "/path/to/tmp/" | |
338 }, | |
339 { | |
340 "cmd": [ | |
341 "[SLAVE_BUILD]/android_sdk/android-sdk/platform-tools/adb", | |
342 "shell", | |
343 "mkdir", | |
344 "-p", | |
345 "/storage/emulated/legacy/skiabot/skia_perf" | |
346 ], | |
347 "env": { | |
348 "BUILDTYPE": "Release", | |
349 "CHROME_HEADLESS": "1", | |
350 "SKIA_OUT": "[SLAVE_BUILD]/out" | |
351 }, | |
352 "name": "mkdir skia_perf" | |
353 }, | |
354 { | |
355 "cmd": [ | |
356 "[SLAVE_BUILD]/skia/platform_tools/android/bin/android_run_skia", | |
357 "--verbose", | |
358 "--logcat", | |
359 "-d", | |
360 "arm_v7_neon", | |
361 "-t", | |
362 "Release", | |
363 "nanobench", | |
364 "--undefok", | |
365 "-i", | |
366 "/storage/emulated/legacy/skiabot/skia_resources", | |
367 "--skps", | |
368 "/storage/emulated/legacy/skiabot/skia_skp/skps", | |
369 "--images", | |
370 "/storage/emulated/legacy/skiabot/skia_images/nanobench", | |
371 "--nocpu", | |
372 "--pre_log", | |
373 "--images", | |
374 "--gpuStatsDump", | |
375 "true", | |
376 "--useThermalManager", | |
377 "1,1,10,1000", | |
378 "--scales", | |
379 "1.0", | |
380 "1.1", | |
381 "--config", | |
382 "8888", | |
383 "gpu", | |
384 "nonrendering", | |
385 "angle", | |
386 "hwui", | |
387 "f16", | |
388 "srgb", | |
389 "msaa4", | |
390 "nvpr4", | |
391 "nvprdit4", | |
392 "--match", | |
393 "~blurroundrect", | |
394 "~patch_grid", | |
395 "~desk_carsvg", | |
396 "~inc0.gif", | |
397 "~inc1.gif", | |
398 "~incInterlaced.gif", | |
399 "~inc0.jpg", | |
400 "~incGray.jpg", | |
401 "~inc0.wbmp", | |
402 "~inc1.wbmp", | |
403 "~inc0.webp", | |
404 "~inc1.webp", | |
405 "~inc0.ico", | |
406 "~inc1.ico", | |
407 "~inc0.png", | |
408 "~inc1.png", | |
409 "~inc2.png", | |
410 "~inc12.png", | |
411 "~inc13.png", | |
412 "~inc14.png", | |
413 "~inc0.webp", | |
414 "~inc1.webp", | |
415 "--outResultsFile", | |
416 "/storage/emulated/legacy/skiabot/skia_perf/nanobench_abc123.json", | |
417 "--properties", | |
418 "gitHash", | |
419 "abc123", | |
420 "build_number", | |
421 "5", | |
422 "--key", | |
423 "arch", | |
424 "Arm7", | |
425 "compiler", | |
426 "GCC", | |
427 "cpu_or_gpu", | |
428 "GPU", | |
429 "cpu_or_gpu_value", | |
430 "Tegra3", | |
431 "model", | |
432 "Nexus7", | |
433 "os", | |
434 "Android" | |
435 ], | |
436 "env": { | |
437 "ANDROID_HOME": "[SLAVE_BUILD]/android_sdk/android-sdk", | |
438 "ANDROID_SDK_ROOT": "[SLAVE_BUILD]/android_sdk/android-sdk", | |
439 "BUILDTYPE": "Release", | |
440 "CHROME_HEADLESS": "1", | |
441 "SKIA_ANDROID_VERBOSE_SETUP": "1", | |
442 "SKIA_OUT": "[SLAVE_BUILD]/out" | |
443 }, | |
444 "name": "nanobench" | |
445 }, | |
446 { | |
447 "cmd": [ | |
448 "python", | |
449 "-u", | |
450 "\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", | |
451 "[CUSTOM_[SWARM_OUT_DIR]]/perfdata/Perf-Android-GCC-Nexus7-GPU-Tegra3-Arm7
-Release/data", | |
452 "511" | |
453 ], | |
454 "name": "makedirs perf_dir", | |
455 "~followup_annotations": [ | |
456 "@@@STEP_LOG_LINE@python.inline@@@@", | |
457 "@@@STEP_LOG_LINE@python.inline@import sys, os@@@", | |
458 "@@@STEP_LOG_LINE@python.inline@path = sys.argv[1]@@@", | |
459 "@@@STEP_LOG_LINE@python.inline@mode = int(sys.argv[2])@@@", | |
460 "@@@STEP_LOG_LINE@python.inline@if not os.path.isdir(path):@@@", | |
461 "@@@STEP_LOG_LINE@python.inline@ if os.path.exists(path):@@@", | |
462 "@@@STEP_LOG_LINE@python.inline@ print \"%s exists but is not a dir\" %
path@@@", | |
463 "@@@STEP_LOG_LINE@python.inline@ sys.exit(1)@@@", | |
464 "@@@STEP_LOG_LINE@python.inline@ os.makedirs(path, mode)@@@", | |
465 "@@@STEP_LOG_END@python.inline@@@" | |
466 ] | |
467 }, | |
468 { | |
469 "cmd": [ | |
470 "[SLAVE_BUILD]/skia/platform_tools/android/bin/adb_pull_if_needed", | |
471 "--verbose", | |
472 "/storage/emulated/legacy/skiabot/skia_perf", | |
473 "[CUSTOM_[SWARM_OUT_DIR]]/perfdata/Perf-Android-GCC-Nexus7-GPU-Tegra3-Arm7
-Release/data" | |
474 ], | |
475 "env": { | |
476 "ANDROID_HOME": "[SLAVE_BUILD]/android_sdk/android-sdk", | |
477 "ANDROID_SDK_ROOT": "[SLAVE_BUILD]/android_sdk/android-sdk", | |
478 "BUILDTYPE": "Release", | |
479 "CHROME_HEADLESS": "1", | |
480 "SKIA_ANDROID_VERBOSE_SETUP": "1", | |
481 "SKIA_OUT": "[SLAVE_BUILD]/out" | |
482 }, | |
483 "name": "pull skia_perf" | |
484 }, | |
485 { | |
486 "cmd": [ | |
487 "[SLAVE_BUILD]/android_sdk/android-sdk/platform-tools/adb", | |
488 "shell", | |
489 "dumpsys", | |
490 "batteryproperties" | |
491 ], | |
492 "env": { | |
493 "BUILDTYPE": "Release", | |
494 "CHROME_HEADLESS": "1", | |
495 "SKIA_OUT": "[SLAVE_BUILD]/out" | |
496 }, | |
497 "name": "final battery stats" | |
498 }, | |
499 { | |
500 "cmd": [ | |
501 "[SLAVE_BUILD]/android_sdk/android-sdk/platform-tools/adb", | |
502 "reboot" | |
503 ], | |
504 "env": { | |
505 "BUILDTYPE": "Release", | |
506 "CHROME_HEADLESS": "1", | |
507 "SKIA_OUT": "[SLAVE_BUILD]/out" | |
508 }, | |
509 "name": "reboot" | |
510 }, | |
511 { | |
512 "cmd": [ | |
513 "sleep", | |
514 "10" | |
515 ], | |
516 "env": { | |
517 "BUILDTYPE": "Release", | |
518 "CHROME_HEADLESS": "1", | |
519 "SKIA_OUT": "[SLAVE_BUILD]/out" | |
520 }, | |
521 "name": "wait for reboot" | |
522 }, | |
523 { | |
524 "cmd": [ | |
525 "[SLAVE_BUILD]/skia/platform_tools/android/bin/adb_wait_for_device" | |
526 ], | |
527 "env": { | |
528 "ANDROID_HOME": "[SLAVE_BUILD]/android_sdk/android-sdk", | |
529 "ANDROID_SDK_ROOT": "[SLAVE_BUILD]/android_sdk/android-sdk", | |
530 "BUILDTYPE": "Release", | |
531 "CHROME_HEADLESS": "1", | |
532 "SKIA_ANDROID_VERBOSE_SETUP": "1", | |
533 "SKIA_OUT": "[SLAVE_BUILD]/out" | |
534 }, | |
535 "name": "wait for device (3)" | |
536 }, | |
537 { | |
538 "cmd": [ | |
539 "[SLAVE_BUILD]/skia/platform_tools/android/bin/adb_wait_for_charge" | |
540 ], | |
541 "env": { | |
542 "ANDROID_HOME": "[SLAVE_BUILD]/android_sdk/android-sdk", | |
543 "ANDROID_SDK_ROOT": "[SLAVE_BUILD]/android_sdk/android-sdk", | |
544 "BUILDTYPE": "Release", | |
545 "CHROME_HEADLESS": "1", | |
546 "SKIA_ANDROID_VERBOSE_SETUP": "1", | |
547 "SKIA_OUT": "[SLAVE_BUILD]/out" | |
548 }, | |
549 "name": "wait for charge (3)" | |
550 }, | |
551 { | |
552 "cmd": [ | |
553 "[SLAVE_BUILD]/android_sdk/android-sdk/platform-tools/adb", | |
554 "kill-server" | |
555 ], | |
556 "env": { | |
557 "BUILDTYPE": "Release", | |
558 "CHROME_HEADLESS": "1", | |
559 "SKIA_OUT": "[SLAVE_BUILD]/out" | |
560 }, | |
561 "name": "kill-server" | |
562 }, | |
563 { | |
564 "name": "$result", | |
565 "recipe_result": null, | |
566 "status_code": 0 | |
567 } | |
568 ] | |
OLD | NEW |