Debian Codegraph @

infra/bots/recipe_modules/flavor/examples/full.expected/cpu_scale_failed_once.json

raw
1 [
2 {
3 "cmd": [
4 "python3",
5 "RECIPE_MODULE[skia::vars]/resources/get_env_var.py",
6 "SWARMING_BOT_ID"
7 ],
8 "name": "get swarming bot id"
9 },
10 {
11 "cmd": [
12 "python3",
13 "RECIPE_MODULE[skia::vars]/resources/get_env_var.py",
14 "SWARMING_BOT_ID"
15 ],
16 "name": "get swarming bot id (2)"
17 },
18 {
19 "cmd": [
20 "/usr/bin/adb",
21 "push",
22 "file.txt",
23 "file.txt"
24 ],
25 "cwd": "[START_DIR]/skia",
26 "env": {
27 "ADB_VENDOR_KEYS": "",
28 "CHROME_HEADLESS": "1",
29 "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
30 },
31 "infra_step": true,
32 "name": "push file.txt file.txt"
33 },
34 {
35 "cmd": [
36 "/usr/bin/adb",
37 "shell",
38 "test",
39 "-f",
40 "file.txt"
41 ],
42 "cwd": "[START_DIR]/skia",
43 "env": {
44 "ADB_VENDOR_KEYS": "",
45 "CHROME_HEADLESS": "1",
46 "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
47 },
48 "infra_step": true,
49 "name": "check if file.txt exists"
50 },
51 {
52 "cmd": [
53 "/usr/bin/adb",
54 "shell",
55 "cat",
56 "file.txt"
57 ],
58 "cwd": "[START_DIR]/skia",
59 "env": {
60 "ADB_VENDOR_KEYS": "",
61 "CHROME_HEADLESS": "1",
62 "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
63 },
64 "infra_step": true,
65 "name": "read file.txt"
66 },
67 {
68 "cmd": [
69 "python3",
70 "RECIPE_MODULE[skia::flavor]/resources/remove_file_on_device.py",
71 "/usr/bin/adb",
72 "file.txt"
73 ],
74 "env": {
75 "CHROME_HEADLESS": "1",
76 "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
77 },
78 "infra_step": true,
79 "name": "rm file.txt"
80 },
81 {
82 "cmd": [
83 "vpython3",
84 "-u",
85 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
86 "--json-output",
87 "/path/to/tmp/json",
88 "rmtree",
89 "results_dir"
90 ],
91 "infra_step": true,
92 "name": "rmtree results_dir"
93 },
94 {
95 "cmd": [
96 "vpython3",
97 "-u",
98 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
99 "--json-output",
100 "/path/to/tmp/json",
101 "ensure-directory",
102 "--mode",
103 "0o777",
104 "results_dir"
105 ],
106 "infra_step": true,
107 "name": "makedirs results_dir"
108 },
109 {
110 "cmd": [
111 "python3",
112 "RECIPE_MODULE[skia::flavor]/resources/remove_file_on_device.py",
113 "/usr/bin/adb",
114 "device_results_dir"
115 ],
116 "env": {
117 "CHROME_HEADLESS": "1",
118 "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
119 },
120 "infra_step": true,
121 "name": "rm device_results_dir"
122 },
123 {
124 "cmd": [
125 "/usr/bin/adb",
126 "shell",
127 "mkdir",
128 "-p",
129 "device_results_dir"
130 ],
131 "cwd": "[START_DIR]/skia",
132 "env": {
133 "ADB_VENDOR_KEYS": "",
134 "CHROME_HEADLESS": "1",
135 "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
136 },
137 "infra_step": true,
138 "name": "mkdir device_results_dir"
139 },
140 {
141 "cmd": [
142 "python3",
143 "RECIPE_MODULE[skia::flavor]/resources/wait_for_device.py",
144 "--adb",
145 "/usr/bin/adb"
146 ],
147 "env": {
148 "CHROME_HEADLESS": "1",
149 "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
150 },
151 "name": "wait for device",
152 "timeout": 600
153 },
154 {
155 "cmd": [
156 "/usr/bin/adb",
157 "shell",
158 "mkdir",
159 "-p",
160 "/sdcard/revenge_of_the_skiabot/resources"
161 ],
162 "cwd": "[START_DIR]/skia",
163 "env": {
164 "ADB_VENDOR_KEYS": "",
165 "CHROME_HEADLESS": "1",
166 "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
167 },
168 "infra_step": true,
169 "name": "mkdir /sdcard/revenge_of_the_skiabot/resources"
170 },
171 {
172 "cmd": [
173 "python3",
174 "RECIPE_MODULE[skia::flavor]/resources/set_cpu_scaling_governor.py",
175 "/usr/bin/adb",
176 "4",
177 "userspace"
178 ],
179 "env": {
180 "CHROME_HEADLESS": "1",
181 "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
182 },
183 "infra_step": true,
184 "name": "Set CPU 4's governor to userspace",
185 "timeout": 30
186 },
187 {
188 "cmd": [
189 "python3",
190 "RECIPE_MODULE[skia::flavor]/resources/scale_cpu.py",
191 "/usr/bin/adb",
192 "0.6",
193 "4"
194 ],
195 "env": {
196 "CHROME_HEADLESS": "1",
197 "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
198 },
199 "infra_step": true,
200 "name": "Scale CPU 4 to 0.600000",
201 "timeout": 30,
202 "~followup_annotations": [
203 "@@@STEP_EXCEPTION@@@"
204 ]
205 },
206 {
207 "cmd": [],
208 "name": "recover device after failure of 'scale cpu' (attempt 1)"
209 },
210 {
211 "cmd": [
212 "/usr/bin/adb",
213 "kill-server"
214 ],
215 "env": {
216 "CHROME_HEADLESS": "1",
217 "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
218 },
219 "infra_step": true,
220 "name": "recover device after failure of 'scale cpu' (attempt 1).adb kill-server",
221 "timeout": 30,
222 "~followup_annotations": [
223 "@@@STEP_NEST_LEVEL@1@@@"
224 ]
225 },
226 {
227 "cmd": [
228 "/usr/bin/adb",
229 "wait-for-device"
230 ],
231 "env": {
232 "CHROME_HEADLESS": "1",
233 "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
234 },
235 "infra_step": true,
236 "name": "recover device after failure of 'scale cpu' (attempt 1).wait for device",
237 "timeout": 180,
238 "~followup_annotations": [
239 "@@@STEP_NEST_LEVEL@1@@@"
240 ]
241 },
242 {
243 "cmd": [
244 "/usr/bin/adb",
245 "devices",
246 "-l"
247 ],
248 "env": {
249 "CHROME_HEADLESS": "1",
250 "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
251 },
252 "infra_step": true,
253 "name": "recover device after failure of 'scale cpu' (attempt 1).adb devices -l",
254 "timeout": 30,
255 "~followup_annotations": [
256 "@@@STEP_NEST_LEVEL@1@@@"
257 ]
258 },
259 {
260 "cmd": [],
261 "name": "recover device after failure of 'scale cpu' (attempt 1).reboot device and wait",
262 "~followup_annotations": [
263 "@@@STEP_NEST_LEVEL@1@@@"
264 ]
265 },
266 {
267 "cmd": [
268 "/usr/bin/adb",
269 "reboot"
270 ],
271 "env": {
272 "CHROME_HEADLESS": "1",
273 "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
274 },
275 "infra_step": true,
276 "name": "recover device after failure of 'scale cpu' (attempt 1).reboot device and wait.reboot device",
277 "timeout": 30,
278 "~followup_annotations": [
279 "@@@STEP_NEST_LEVEL@2@@@"
280 ]
281 },
282 {
283 "cmd": [
284 "python3",
285 "RECIPE_MODULE[skia::flavor]/resources/wait_for_device.py",
286 "--adb",
287 "/usr/bin/adb"
288 ],
289 "env": {
290 "CHROME_HEADLESS": "1",
291 "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
292 },
293 "name": "recover device after failure of 'scale cpu' (attempt 1).reboot device and wait.wait for device",
294 "timeout": 600,
295 "~followup_annotations": [
296 "@@@STEP_NEST_LEVEL@2@@@"
297 ]
298 },
299 {
300 "cmd": [
301 "/usr/bin/adb",
302 "root"
303 ],
304 "env": {
305 "CHROME_HEADLESS": "1",
306 "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
307 },
308 "name": "adb root",
309 "timeout": 180
310 },
311 {
312 "cmd": [
313 "python3",
314 "RECIPE_MODULE[skia::flavor]/resources/scale_cpu.py",
315 "/usr/bin/adb",
316 "0.6",
317 "4"
318 ],
319 "env": {
320 "CHROME_HEADLESS": "1",
321 "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
322 },
323 "infra_step": true,
324 "name": "Scale CPU 4 to 0.600000 (attempt 2)",
325 "timeout": 30
326 },
327 {
328 "cmd": [
329 "python3",
330 "RECIPE_MODULE[skia::flavor]/resources/set_cpu_online.py",
331 "/usr/bin/adb",
332 "0",
333 "0"
334 ],
335 "env": {
336 "CHROME_HEADLESS": "1",
337 "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
338 },
339 "infra_step": true,
340 "name": "Disabling CPU 0",
341 "timeout": 30
342 },
343 {
344 "cmd": [
345 "python3",
346 "RECIPE_MODULE[skia::flavor]/resources/set_cpu_online.py",
347 "/usr/bin/adb",
348 "1",
349 "0"
350 ],
351 "env": {
352 "CHROME_HEADLESS": "1",
353 "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
354 },
355 "infra_step": true,
356 "name": "Disabling CPU 1",
357 "timeout": 30
358 },
359 {
360 "cmd": [
361 "python3",
362 "RECIPE_MODULE[skia::flavor]/resources/set_cpu_online.py",
363 "/usr/bin/adb",
364 "2",
365 "0"
366 ],
367 "env": {
368 "CHROME_HEADLESS": "1",
369 "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
370 },
371 "infra_step": true,
372 "name": "Disabling CPU 2",
373 "timeout": 30
374 },
375 {
376 "cmd": [
377 "python3",
378 "RECIPE_MODULE[skia::flavor]/resources/set_cpu_online.py",
379 "/usr/bin/adb",
380 "3",
381 "0"
382 ],
383 "env": {
384 "CHROME_HEADLESS": "1",
385 "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
386 },
387 "infra_step": true,
388 "name": "Disabling CPU 3",
389 "timeout": 30
390 },
391 {
392 "cmd": [
393 "python3",
394 "RECIPE_MODULE[skia::flavor]/resources/set_gpu_scaling.py",
395 "/usr/bin/adb",
396 "600000000"
397 ],
398 "env": {
399 "CHROME_HEADLESS": "1",
400 "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
401 },
402 "infra_step": true,
403 "name": "Lock GPU to 600000000 (and other perf tweaks)",
404 "timeout": 30
405 },
406 {
407 "cmd": [
408 "/usr/bin/adb",
409 "push",
410 "[START_DIR]/build/nanobench",
411 "/data/local/tmp/"
412 ],
413 "cwd": "[START_DIR]/skia",
414 "env": {
415 "ADB_VENDOR_KEYS": "",
416 "CHROME_HEADLESS": "1",
417 "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
418 },
419 "infra_step": true,
420 "name": "push nanobench"
421 },
422 {
423 "cmd": [],
424 "name": "copy [START_DIR]/skia/resources /sdcard/revenge_of_the_skiabot/resources"
425 },
426 {
427 "cmd": [
428 "vpython3",
429 "-u",
430 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
431 "--json-output",
432 "/path/to/tmp/json",
433 "glob",
434 "[START_DIR]/skia/resources",
435 "*"
436 ],
437 "infra_step": true,
438 "name": "copy [START_DIR]/skia/resources /sdcard/revenge_of_the_skiabot/resources.ls [START_DIR]/skia/resources/*",
439 "~followup_annotations": [
440 "@@@STEP_NEST_LEVEL@1@@@",
441 "@@@STEP_LOG_LINE@glob@[START_DIR]/skia/resources/bar.jpg@@@",
442 "@@@STEP_LOG_LINE@glob@[START_DIR]/skia/resources/foo.png@@@",
443 "@@@STEP_LOG_END@glob@@@"
444 ]
445 },
446 {
447 "cmd": [
448 "/usr/bin/adb",
449 "push",
450 "[START_DIR]/skia/resources/bar.jpg",
451 "/sdcard/revenge_of_the_skiabot/resources"
452 ],
453 "cwd": "[START_DIR]/skia",
454 "env": {
455 "ADB_VENDOR_KEYS": "",
456 "CHROME_HEADLESS": "1",
457 "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
458 },
459 "infra_step": true,
460 "name": "copy [START_DIR]/skia/resources /sdcard/revenge_of_the_skiabot/resources.push [START_DIR]/skia/resources/bar.jpg /sdcard/revenge_of_the_skiabot/resources",
461 "~followup_annotations": [
462 "@@@STEP_NEST_LEVEL@1@@@"
463 ]
464 },
465 {
466 "cmd": [
467 "/usr/bin/adb",
468 "push",
469 "[START_DIR]/skia/resources/foo.png",
470 "/sdcard/revenge_of_the_skiabot/resources"
471 ],
472 "cwd": "[START_DIR]/skia",
473 "env": {
474 "ADB_VENDOR_KEYS": "",
475 "CHROME_HEADLESS": "1",
476 "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
477 },
478 "infra_step": true,
479 "name": "copy [START_DIR]/skia/resources /sdcard/revenge_of_the_skiabot/resources.push [START_DIR]/skia/resources/foo.png /sdcard/revenge_of_the_skiabot/resources",
480 "~followup_annotations": [
481 "@@@STEP_NEST_LEVEL@1@@@"
482 ]
483 },
484 {
485 "cmd": [
486 "vpython3",
487 "-u",
488 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
489 "--json-output",
490 "/path/to/tmp/json",
491 "copy",
492 "[START_DIR]/skia/infra/bots/assets/skp/VERSION",
493 "/path/to/tmp/"
494 ],
495 "infra_step": true,
496 "name": "Get skp VERSION",
497 "~followup_annotations": [
498 "@@@STEP_LOG_LINE@VERSION@42@@@",
499 "@@@STEP_LOG_END@VERSION@@@"
500 ]
501 },
502 {
503 "cmd": [
504 "vpython3",
505 "-u",
506 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
507 "--json-output",
508 "/path/to/tmp/json",
509 "copy",
510 "42",
511 "[START_DIR]/tmp/SKP_VERSION"
512 ],
513 "infra_step": true,
514 "name": "write SKP_VERSION",
515 "~followup_annotations": [
516 "@@@STEP_LOG_LINE@SKP_VERSION@42@@@",
517 "@@@STEP_LOG_END@SKP_VERSION@@@"
518 ]
519 },
520 {
521 "cmd": [
522 "/usr/bin/adb",
523 "shell",
524 "test",
525 "-f",
526 "/sdcard/revenge_of_the_skiabot/SKP_VERSION"
527 ],
528 "cwd": "[START_DIR]/skia",
529 "env": {
530 "ADB_VENDOR_KEYS": "",
531 "CHROME_HEADLESS": "1",
532 "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
533 },
534 "infra_step": true,
535 "name": "check if /sdcard/revenge_of_the_skiabot/SKP_VERSION exists"
536 },
537 {
538 "cmd": [
539 "/usr/bin/adb",
540 "shell",
541 "cat",
542 "/sdcard/revenge_of_the_skiabot/SKP_VERSION"
543 ],
544 "cwd": "[START_DIR]/skia",
545 "env": {
546 "ADB_VENDOR_KEYS": "",
547 "CHROME_HEADLESS": "1",
548 "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
549 },
550 "infra_step": true,
551 "name": "read /sdcard/revenge_of_the_skiabot/SKP_VERSION"
552 },
553 {
554 "cmd": [
555 "python3",
556 "RECIPE_MODULE[skia::flavor]/resources/remove_file_on_device.py",
557 "/usr/bin/adb",
558 "/sdcard/revenge_of_the_skiabot/SKP_VERSION"
559 ],
560 "env": {
561 "CHROME_HEADLESS": "1",
562 "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
563 },
564 "infra_step": true,
565 "name": "rm /sdcard/revenge_of_the_skiabot/SKP_VERSION"
566 },
567 {
568 "cmd": [
569 "python3",
570 "RECIPE_MODULE[skia::flavor]/resources/remove_file_on_device.py",
571 "/usr/bin/adb",
572 "/sdcard/revenge_of_the_skiabot/skps"
573 ],
574 "env": {
575 "CHROME_HEADLESS": "1",
576 "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
577 },
578 "infra_step": true,
579 "name": "rm /sdcard/revenge_of_the_skiabot/skps"
580 },
581 {
582 "cmd": [
583 "/usr/bin/adb",
584 "shell",
585 "mkdir",
586 "-p",
587 "/sdcard/revenge_of_the_skiabot/skps"
588 ],
589 "cwd": "[START_DIR]/skia",
590 "env": {
591 "ADB_VENDOR_KEYS": "",
592 "CHROME_HEADLESS": "1",
593 "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
594 },
595 "infra_step": true,
596 "name": "mkdir /sdcard/revenge_of_the_skiabot/skps"
597 },
598 {
599 "cmd": [],
600 "name": "copy [START_DIR]/skp /sdcard/revenge_of_the_skiabot/skps"
601 },
602 {
603 "cmd": [
604 "vpython3",
605 "-u",
606 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
607 "--json-output",
608 "/path/to/tmp/json",
609 "glob",
610 "[START_DIR]/skp",
611 "*"
612 ],
613 "infra_step": true,
614 "name": "copy [START_DIR]/skp /sdcard/revenge_of_the_skiabot/skps.ls [START_DIR]/skp/*",
615 "~followup_annotations": [
616 "@@@STEP_NEST_LEVEL@1@@@",
617 "@@@STEP_LOG_LINE@glob@[START_DIR]/skp/bar.jpg@@@",
618 "@@@STEP_LOG_LINE@glob@[START_DIR]/skp/foo.png@@@",
619 "@@@STEP_LOG_END@glob@@@"
620 ]
621 },
622 {
623 "cmd": [
624 "/usr/bin/adb",
625 "push",
626 "[START_DIR]/skp/bar.jpg",
627 "/sdcard/revenge_of_the_skiabot/skps"
628 ],
629 "cwd": "[START_DIR]/skia",
630 "env": {
631 "ADB_VENDOR_KEYS": "",
632 "CHROME_HEADLESS": "1",
633 "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
634 },
635 "infra_step": true,
636 "name": "copy [START_DIR]/skp /sdcard/revenge_of_the_skiabot/skps.push [START_DIR]/skp/bar.jpg /sdcard/revenge_of_the_skiabot/skps",
637 "~followup_annotations": [
638 "@@@STEP_NEST_LEVEL@1@@@"
639 ]
640 },
641 {
642 "cmd": [
643 "/usr/bin/adb",
644 "push",
645 "[START_DIR]/skp/foo.png",
646 "/sdcard/revenge_of_the_skiabot/skps"
647 ],
648 "cwd": "[START_DIR]/skia",
649 "env": {
650 "ADB_VENDOR_KEYS": "",
651 "CHROME_HEADLESS": "1",
652 "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
653 },
654 "infra_step": true,
655 "name": "copy [START_DIR]/skp /sdcard/revenge_of_the_skiabot/skps.push [START_DIR]/skp/foo.png /sdcard/revenge_of_the_skiabot/skps",
656 "~followup_annotations": [
657 "@@@STEP_NEST_LEVEL@1@@@"
658 ]
659 },
660 {
661 "cmd": [
662 "/usr/bin/adb",
663 "push",
664 "[START_DIR]/tmp/SKP_VERSION",
665 "/sdcard/revenge_of_the_skiabot/SKP_VERSION"
666 ],
667 "cwd": "[START_DIR]/skia",
668 "env": {
669 "ADB_VENDOR_KEYS": "",
670 "CHROME_HEADLESS": "1",
671 "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
672 },
673 "infra_step": true,
674 "name": "push [START_DIR]/tmp/SKP_VERSION /sdcard/revenge_of_the_skiabot/SKP_VERSION"
675 },
676 {
677 "cmd": [
678 "vpython3",
679 "-u",
680 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
681 "--json-output",
682 "/path/to/tmp/json",
683 "copy",
684 "[START_DIR]/skia/infra/bots/assets/skimage/VERSION",
685 "/path/to/tmp/"
686 ],
687 "infra_step": true,
688 "name": "Get skimage VERSION",
689 "~followup_annotations": [
690 "@@@STEP_LOG_LINE@VERSION@42@@@",
691 "@@@STEP_LOG_END@VERSION@@@"
692 ]
693 },
694 {
695 "cmd": [
696 "vpython3",
697 "-u",
698 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
699 "--json-output",
700 "/path/to/tmp/json",
701 "copy",
702 "42",
703 "[START_DIR]/tmp/SK_IMAGE_VERSION"
704 ],
705 "infra_step": true,
706 "name": "write SK_IMAGE_VERSION",
707 "~followup_annotations": [
708 "@@@STEP_LOG_LINE@SK_IMAGE_VERSION@42@@@",
709 "@@@STEP_LOG_END@SK_IMAGE_VERSION@@@"
710 ]
711 },
712 {
713 "cmd": [
714 "/usr/bin/adb",
715 "shell",
716 "test",
717 "-f",
718 "/sdcard/revenge_of_the_skiabot/SK_IMAGE_VERSION"
719 ],
720 "cwd": "[START_DIR]/skia",
721 "env": {
722 "ADB_VENDOR_KEYS": "",
723 "CHROME_HEADLESS": "1",
724 "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
725 },
726 "infra_step": true,
727 "name": "check if /sdcard/revenge_of_the_skiabot/SK_IMAGE_VERSION exists"
728 },
729 {
730 "cmd": [
731 "/usr/bin/adb",
732 "shell",
733 "cat",
734 "/sdcard/revenge_of_the_skiabot/SK_IMAGE_VERSION"
735 ],
736 "cwd": "[START_DIR]/skia",
737 "env": {
738 "ADB_VENDOR_KEYS": "",
739 "CHROME_HEADLESS": "1",
740 "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
741 },
742 "infra_step": true,
743 "name": "read /sdcard/revenge_of_the_skiabot/SK_IMAGE_VERSION"
744 },
745 {
746 "cmd": [
747 "python3",
748 "RECIPE_MODULE[skia::flavor]/resources/remove_file_on_device.py",
749 "/usr/bin/adb",
750 "/sdcard/revenge_of_the_skiabot/SK_IMAGE_VERSION"
751 ],
752 "env": {
753 "CHROME_HEADLESS": "1",
754 "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
755 },
756 "infra_step": true,
757 "name": "rm /sdcard/revenge_of_the_skiabot/SK_IMAGE_VERSION"
758 },
759 {
760 "cmd": [
761 "python3",
762 "RECIPE_MODULE[skia::flavor]/resources/remove_file_on_device.py",
763 "/usr/bin/adb",
764 "/sdcard/revenge_of_the_skiabot/images"
765 ],
766 "env": {
767 "CHROME_HEADLESS": "1",
768 "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
769 },
770 "infra_step": true,
771 "name": "rm /sdcard/revenge_of_the_skiabot/images"
772 },
773 {
774 "cmd": [
775 "/usr/bin/adb",
776 "shell",
777 "mkdir",
778 "-p",
779 "/sdcard/revenge_of_the_skiabot/images"
780 ],
781 "cwd": "[START_DIR]/skia",
782 "env": {
783 "ADB_VENDOR_KEYS": "",
784 "CHROME_HEADLESS": "1",
785 "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
786 },
787 "infra_step": true,
788 "name": "mkdir /sdcard/revenge_of_the_skiabot/images"
789 },
790 {
791 "cmd": [],
792 "name": "copy [START_DIR]/skimage /sdcard/revenge_of_the_skiabot/images"
793 },
794 {
795 "cmd": [
796 "vpython3",
797 "-u",
798 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
799 "--json-output",
800 "/path/to/tmp/json",
801 "glob",
802 "[START_DIR]/skimage",
803 "*"
804 ],
805 "infra_step": true,
806 "name": "copy [START_DIR]/skimage /sdcard/revenge_of_the_skiabot/images.ls [START_DIR]/skimage/*",
807 "~followup_annotations": [
808 "@@@STEP_NEST_LEVEL@1@@@",
809 "@@@STEP_LOG_LINE@glob@[START_DIR]/skimage/bar.jpg@@@",
810 "@@@STEP_LOG_LINE@glob@[START_DIR]/skimage/foo.png@@@",
811 "@@@STEP_LOG_END@glob@@@"
812 ]
813 },
814 {
815 "cmd": [
816 "/usr/bin/adb",
817 "push",
818 "[START_DIR]/skimage/bar.jpg",
819 "/sdcard/revenge_of_the_skiabot/images"
820 ],
821 "cwd": "[START_DIR]/skia",
822 "env": {
823 "ADB_VENDOR_KEYS": "",
824 "CHROME_HEADLESS": "1",
825 "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
826 },
827 "infra_step": true,
828 "name": "copy [START_DIR]/skimage /sdcard/revenge_of_the_skiabot/images.push [START_DIR]/skimage/bar.jpg /sdcard/revenge_of_the_skiabot/images",
829 "~followup_annotations": [
830 "@@@STEP_NEST_LEVEL@1@@@"
831 ]
832 },
833 {
834 "cmd": [
835 "/usr/bin/adb",
836 "push",
837 "[START_DIR]/skimage/foo.png",
838 "/sdcard/revenge_of_the_skiabot/images"
839 ],
840 "cwd": "[START_DIR]/skia",
841 "env": {
842 "ADB_VENDOR_KEYS": "",
843 "CHROME_HEADLESS": "1",
844 "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
845 },
846 "infra_step": true,
847 "name": "copy [START_DIR]/skimage /sdcard/revenge_of_the_skiabot/images.push [START_DIR]/skimage/foo.png /sdcard/revenge_of_the_skiabot/images",
848 "~followup_annotations": [
849 "@@@STEP_NEST_LEVEL@1@@@"
850 ]
851 },
852 {
853 "cmd": [
854 "/usr/bin/adb",
855 "push",
856 "[START_DIR]/tmp/SK_IMAGE_VERSION",
857 "/sdcard/revenge_of_the_skiabot/SK_IMAGE_VERSION"
858 ],
859 "cwd": "[START_DIR]/skia",
860 "env": {
861 "ADB_VENDOR_KEYS": "",
862 "CHROME_HEADLESS": "1",
863 "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
864 },
865 "infra_step": true,
866 "name": "push [START_DIR]/tmp/SK_IMAGE_VERSION /sdcard/revenge_of_the_skiabot/SK_IMAGE_VERSION"
867 },
868 {
869 "cmd": [
870 "vpython3",
871 "-u",
872 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
873 "--json-output",
874 "/path/to/tmp/json",
875 "copy",
876 "[START_DIR]/skia/infra/bots/assets/svg/VERSION",
877 "/path/to/tmp/"
878 ],
879 "infra_step": true,
880 "name": "Get svg VERSION",
881 "~followup_annotations": [
882 "@@@STEP_LOG_LINE@VERSION@42@@@",
883 "@@@STEP_LOG_END@VERSION@@@"
884 ]
885 },
886 {
887 "cmd": [
888 "vpython3",
889 "-u",
890 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
891 "--json-output",
892 "/path/to/tmp/json",
893 "copy",
894 "42",
895 "[START_DIR]/tmp/SVG_VERSION"
896 ],
897 "infra_step": true,
898 "name": "write SVG_VERSION",
899 "~followup_annotations": [
900 "@@@STEP_LOG_LINE@SVG_VERSION@42@@@",
901 "@@@STEP_LOG_END@SVG_VERSION@@@"
902 ]
903 },
904 {
905 "cmd": [
906 "/usr/bin/adb",
907 "shell",
908 "test",
909 "-f",
910 "/sdcard/revenge_of_the_skiabot/SVG_VERSION"
911 ],
912 "cwd": "[START_DIR]/skia",
913 "env": {
914 "ADB_VENDOR_KEYS": "",
915 "CHROME_HEADLESS": "1",
916 "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
917 },
918 "infra_step": true,
919 "name": "check if /sdcard/revenge_of_the_skiabot/SVG_VERSION exists"
920 },
921 {
922 "cmd": [
923 "/usr/bin/adb",
924 "shell",
925 "cat",
926 "/sdcard/revenge_of_the_skiabot/SVG_VERSION"
927 ],
928 "cwd": "[START_DIR]/skia",
929 "env": {
930 "ADB_VENDOR_KEYS": "",
931 "CHROME_HEADLESS": "1",
932 "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
933 },
934 "infra_step": true,
935 "name": "read /sdcard/revenge_of_the_skiabot/SVG_VERSION"
936 },
937 {
938 "cmd": [
939 "python3",
940 "RECIPE_MODULE[skia::flavor]/resources/remove_file_on_device.py",
941 "/usr/bin/adb",
942 "/sdcard/revenge_of_the_skiabot/SVG_VERSION"
943 ],
944 "env": {
945 "CHROME_HEADLESS": "1",
946 "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
947 },
948 "infra_step": true,
949 "name": "rm /sdcard/revenge_of_the_skiabot/SVG_VERSION"
950 },
951 {
952 "cmd": [
953 "python3",
954 "RECIPE_MODULE[skia::flavor]/resources/remove_file_on_device.py",
955 "/usr/bin/adb",
956 "/sdcard/revenge_of_the_skiabot/svgs"
957 ],
958 "env": {
959 "CHROME_HEADLESS": "1",
960 "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
961 },
962 "infra_step": true,
963 "name": "rm /sdcard/revenge_of_the_skiabot/svgs"
964 },
965 {
966 "cmd": [
967 "/usr/bin/adb",
968 "shell",
969 "mkdir",
970 "-p",
971 "/sdcard/revenge_of_the_skiabot/svgs"
972 ],
973 "cwd": "[START_DIR]/skia",
974 "env": {
975 "ADB_VENDOR_KEYS": "",
976 "CHROME_HEADLESS": "1",
977 "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
978 },
979 "infra_step": true,
980 "name": "mkdir /sdcard/revenge_of_the_skiabot/svgs"
981 },
982 {
983 "cmd": [],
984 "name": "copy [START_DIR]/svg /sdcard/revenge_of_the_skiabot/svgs"
985 },
986 {
987 "cmd": [
988 "vpython3",
989 "-u",
990 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
991 "--json-output",
992 "/path/to/tmp/json",
993 "glob",
994 "[START_DIR]/svg",
995 "*"
996 ],
997 "infra_step": true,
998 "name": "copy [START_DIR]/svg /sdcard/revenge_of_the_skiabot/svgs.ls [START_DIR]/svg/*",
999 "~followup_annotations": [
1000 "@@@STEP_NEST_LEVEL@1@@@",
1001 "@@@STEP_LOG_LINE@glob@[START_DIR]/svg/bar.jpg@@@",
1002 "@@@STEP_LOG_LINE@glob@[START_DIR]/svg/foo.png@@@",
1003 "@@@STEP_LOG_END@glob@@@"
1004 ]
1005 },
1006 {
1007 "cmd": [
1008 "/usr/bin/adb",
1009 "push",
1010 "[START_DIR]/svg/bar.jpg",
1011 "/sdcard/revenge_of_the_skiabot/svgs"
1012 ],
1013 "cwd": "[START_DIR]/skia",
1014 "env": {
1015 "ADB_VENDOR_KEYS": "",
1016 "CHROME_HEADLESS": "1",
1017 "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
1018 },
1019 "infra_step": true,
1020 "name": "copy [START_DIR]/svg /sdcard/revenge_of_the_skiabot/svgs.push [START_DIR]/svg/bar.jpg /sdcard/revenge_of_the_skiabot/svgs",
1021 "~followup_annotations": [
1022 "@@@STEP_NEST_LEVEL@1@@@"
1023 ]
1024 },
1025 {
1026 "cmd": [
1027 "/usr/bin/adb",
1028 "push",
1029 "[START_DIR]/svg/foo.png",
1030 "/sdcard/revenge_of_the_skiabot/svgs"
1031 ],
1032 "cwd": "[START_DIR]/skia",
1033 "env": {
1034 "ADB_VENDOR_KEYS": "",
1035 "CHROME_HEADLESS": "1",
1036 "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
1037 },
1038 "infra_step": true,
1039 "name": "copy [START_DIR]/svg /sdcard/revenge_of_the_skiabot/svgs.push [START_DIR]/svg/foo.png /sdcard/revenge_of_the_skiabot/svgs",
1040 "~followup_annotations": [
1041 "@@@STEP_NEST_LEVEL@1@@@"
1042 ]
1043 },
1044 {
1045 "cmd": [
1046 "/usr/bin/adb",
1047 "push",
1048 "[START_DIR]/tmp/SVG_VERSION",
1049 "/sdcard/revenge_of_the_skiabot/SVG_VERSION"
1050 ],
1051 "cwd": "[START_DIR]/skia",
1052 "env": {
1053 "ADB_VENDOR_KEYS": "",
1054 "CHROME_HEADLESS": "1",
1055 "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
1056 },
1057 "infra_step": true,
1058 "name": "push [START_DIR]/tmp/SVG_VERSION /sdcard/revenge_of_the_skiabot/SVG_VERSION"
1059 },
1060 {
1061 "cmd": [
1062 "vpython3",
1063 "-u",
1064 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
1065 "--json-output",
1066 "/path/to/tmp/json",
1067 "copy",
1068 "set -x; LD_LIBRARY_PATH=/data/local/tmp/ /data/local/tmp/nanobench --some-flag; echo $? >/data/local/tmp/rc",
1069 "[START_DIR]/tmp/nanobench.sh"
1070 ],
1071 "infra_step": true,
1072 "name": "write nanobench.sh",
1073 "~followup_annotations": [
1074 "@@@[email protected]@set -x; LD_LIBRARY_PATH=/data/local/tmp/ /data/local/tmp/nanobench --some-flag; echo $? >/data/local/tmp/rc@@@",
1075 "@@@[email protected]@@@"
1076 ]
1077 },
1078 {
1079 "cmd": [
1080 "/usr/bin/adb",
1081 "push",
1082 "[START_DIR]/tmp/nanobench.sh",
1083 "/data/local/tmp/"
1084 ],
1085 "cwd": "[START_DIR]/skia",
1086 "env": {
1087 "ADB_VENDOR_KEYS": "",
1088 "CHROME_HEADLESS": "1",
1089 "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
1090 },
1091 "infra_step": true,
1092 "name": "push nanobench.sh"
1093 },
1094 {
1095 "cmd": [
1096 "/usr/bin/adb",
1097 "logcat",
1098 "-c"
1099 ],
1100 "cwd": "[START_DIR]/skia",
1101 "env": {
1102 "ADB_VENDOR_KEYS": "",
1103 "CHROME_HEADLESS": "1",
1104 "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
1105 },
1106 "infra_step": true,
1107 "name": "clear log"
1108 },
1109 {
1110 "cmd": [
1111 "python3",
1112 "RECIPE_MODULE[skia::flavor]/resources/run_sh.py",
1113 "/data/local/tmp/",
1114 "nanobench.sh",
1115 "/usr/bin/adb"
1116 ],
1117 "name": "nanobench"
1118 },
1119 {
1120 "cmd": [],
1121 "name": "adb pull"
1122 },
1123 {
1124 "cmd": [
1125 "/usr/bin/adb",
1126 "pull",
1127 "/sdcard/revenge_of_the_skiabot/perf",
1128 "[CLEANUP]/adb_pull_tmp_1"
1129 ],
1130 "cwd": "[START_DIR]/skia",
1131 "env": {
1132 "ADB_VENDOR_KEYS": "",
1133 "CHROME_HEADLESS": "1",
1134 "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
1135 },
1136 "infra_step": true,
1137 "name": "adb pull.pull /sdcard/revenge_of_the_skiabot/perf",
1138 "~followup_annotations": [
1139 "@@@STEP_NEST_LEVEL@1@@@"
1140 ]
1141 },
1142 {
1143 "cmd": [
1144 "vpython3",
1145 "-u",
1146 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
1147 "--json-output",
1148 "/path/to/tmp/json",
1149 "glob",
1150 "[CLEANUP]/adb_pull_tmp_1",
1151 "perf/*"
1152 ],
1153 "infra_step": true,
1154 "name": "adb pull.list pulled files",
1155 "~followup_annotations": [
1156 "@@@STEP_NEST_LEVEL@1@@@",
1157 "@@@STEP_LOG_LINE@glob@[CLEANUP]/adb_pull_tmp_1/1.png@@@",
1158 "@@@STEP_LOG_LINE@glob@[CLEANUP]/adb_pull_tmp_1/2.png@@@",
1159 "@@@STEP_LOG_END@glob@@@"
1160 ]
1161 },
1162 {
1163 "cmd": [
1164 "vpython3",
1165 "-u",
1166 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
1167 "--json-output",
1168 "/path/to/tmp/json",
1169 "copy",
1170 "[CLEANUP]/adb_pull_tmp_1/1.png",
1171 "[START_DIR]/[SWARM_OUT_DIR]"
1172 ],
1173 "infra_step": true,
1174 "name": "adb pull.copy 1.png",
1175 "~followup_annotations": [
1176 "@@@STEP_NEST_LEVEL@1@@@"
1177 ]
1178 },
1179 {
1180 "cmd": [
1181 "vpython3",
1182 "-u",
1183 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
1184 "--json-output",
1185 "/path/to/tmp/json",
1186 "copy",
1187 "[CLEANUP]/adb_pull_tmp_1/2.png",
1188 "[START_DIR]/[SWARM_OUT_DIR]"
1189 ],
1190 "infra_step": true,
1191 "name": "adb pull.copy 2.png",
1192 "~followup_annotations": [
1193 "@@@STEP_NEST_LEVEL@1@@@"
1194 ]
1195 },
1196 {
1197 "cmd": [
1198 "python3",
1199 "RECIPE_MODULE[skia::flavor]/resources/dump_adb_log.py",
1200 "[START_DIR]/build",
1201 "/usr/bin/adb"
1202 ],
1203 "env": {
1204 "CHROME_HEADLESS": "1",
1205 "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
1206 },
1207 "infra_step": true,
1208 "name": "dump log",
1209 "timeout": 300
1210 },
1211 {
1212 "cmd": [],
1213 "name": "reboot device and wait"
1214 },
1215 {
1216 "cmd": [
1217 "/usr/bin/adb",
1218 "reboot"
1219 ],
1220 "env": {
1221 "CHROME_HEADLESS": "1",
1222 "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
1223 },
1224 "infra_step": true,
1225 "name": "reboot device and wait.reboot device",
1226 "timeout": 30,
1227 "~followup_annotations": [
1228 "@@@STEP_NEST_LEVEL@1@@@"
1229 ]
1230 },
1231 {
1232 "cmd": [
1233 "python3",
1234 "RECIPE_MODULE[skia::flavor]/resources/wait_for_device.py",
1235 "--adb",
1236 "/usr/bin/adb"
1237 ],
1238 "env": {
1239 "CHROME_HEADLESS": "1",
1240 "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
1241 },
1242 "name": "reboot device and wait.wait for device",
1243 "timeout": 600,
1244 "~followup_annotations": [
1245 "@@@STEP_NEST_LEVEL@1@@@"
1246 ]
1247 },
1248 {
1249 "cmd": [
1250 "python3",
1251 "RECIPE_MODULE[skia::flavor]/resources/dump_adb_log.py",
1252 "[START_DIR]/build",
1253 "/usr/bin/adb"
1254 ],
1255 "env": {
1256 "CHROME_HEADLESS": "1",
1257 "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
1258 },
1259 "infra_step": true,
1260 "name": "dump adb log",
1261 "timeout": 300
1262 },
1263 {
1264 "name": "$result"
1265 }
1266 ]