Debian Codegraph @

infra/bots/recipe_modules/flavor/examples/full.expected/cpu_scale_failed.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 "/usr/bin/adb.1.0.35",
13 "push",
14 "file.txt",
15 "file.txt"
16 ],
17 "cwd": "[START_DIR]/skia",
18 "env": {
19 "ADB_VENDOR_KEYS": "/home/chrome-bot/.android/adbkey",
20 "CHROME_HEADLESS": "1",
21 "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
22 },
23 "infra_step": true,
24 "name": "push file.txt file.txt"
25 },
26 {
27 "cmd": [
28 "/usr/bin/adb.1.0.35",
29 "shell",
30 "test",
31 "-f",
32 "file.txt"
33 ],
34 "cwd": "[START_DIR]/skia",
35 "env": {
36 "ADB_VENDOR_KEYS": "/home/chrome-bot/.android/adbkey",
37 "CHROME_HEADLESS": "1",
38 "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
39 },
40 "infra_step": true,
41 "name": "check if file.txt exists"
42 },
43 {
44 "cmd": [
45 "/usr/bin/adb.1.0.35",
46 "shell",
47 "cat",
48 "file.txt"
49 ],
50 "cwd": "[START_DIR]/skia",
51 "env": {
52 "ADB_VENDOR_KEYS": "/home/chrome-bot/.android/adbkey",
53 "CHROME_HEADLESS": "1",
54 "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
55 },
56 "infra_step": true,
57 "name": "read file.txt"
58 },
59 {
60 "cmd": [
61 "python3",
62 "RECIPE_MODULE[skia::flavor]/resources/remove_file_on_device.py",
63 "/usr/bin/adb.1.0.35",
64 "file.txt"
65 ],
66 "env": {
67 "CHROME_HEADLESS": "1",
68 "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
69 },
70 "infra_step": true,
71 "name": "rm file.txt"
72 },
73 {
74 "cmd": [
75 "vpython3",
76 "-u",
77 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
78 "--json-output",
79 "/path/to/tmp/json",
80 "rmtree",
81 "results_dir"
82 ],
83 "infra_step": true,
84 "name": "rmtree results_dir"
85 },
86 {
87 "cmd": [
88 "vpython3",
89 "-u",
90 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
91 "--json-output",
92 "/path/to/tmp/json",
93 "ensure-directory",
94 "--mode",
95 "0o777",
96 "results_dir"
97 ],
98 "infra_step": true,
99 "name": "makedirs results_dir"
100 },
101 {
102 "cmd": [
103 "python3",
104 "RECIPE_MODULE[skia::flavor]/resources/remove_file_on_device.py",
105 "/usr/bin/adb.1.0.35",
106 "device_results_dir"
107 ],
108 "env": {
109 "CHROME_HEADLESS": "1",
110 "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
111 },
112 "infra_step": true,
113 "name": "rm device_results_dir"
114 },
115 {
116 "cmd": [
117 "/usr/bin/adb.1.0.35",
118 "shell",
119 "mkdir",
120 "-p",
121 "device_results_dir"
122 ],
123 "cwd": "[START_DIR]/skia",
124 "env": {
125 "ADB_VENDOR_KEYS": "/home/chrome-bot/.android/adbkey",
126 "CHROME_HEADLESS": "1",
127 "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
128 },
129 "infra_step": true,
130 "name": "mkdir device_results_dir"
131 },
132 {
133 "cmd": [
134 "python3",
135 "RECIPE_MODULE[skia::flavor]/resources/wait_for_device.py",
136 "--adb",
137 "/usr/bin/adb.1.0.35"
138 ],
139 "env": {
140 "CHROME_HEADLESS": "1",
141 "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
142 },
143 "name": "wait for device",
144 "timeout": 600
145 },
146 {
147 "cmd": [
148 "/usr/bin/adb.1.0.35",
149 "shell",
150 "mkdir",
151 "-p",
152 "/sdcard/revenge_of_the_skiabot/resources"
153 ],
154 "cwd": "[START_DIR]/skia",
155 "env": {
156 "ADB_VENDOR_KEYS": "/home/chrome-bot/.android/adbkey",
157 "CHROME_HEADLESS": "1",
158 "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
159 },
160 "infra_step": true,
161 "name": "mkdir /sdcard/revenge_of_the_skiabot/resources"
162 },
163 {
164 "cmd": [
165 "python3",
166 "RECIPE_MODULE[skia::flavor]/resources/set_cpu_scaling_governor.py",
167 "/usr/bin/adb.1.0.35",
168 "4",
169 "userspace"
170 ],
171 "env": {
172 "CHROME_HEADLESS": "1",
173 "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
174 },
175 "infra_step": true,
176 "name": "Set CPU 4's governor to userspace",
177 "timeout": 30
178 },
179 {
180 "cmd": [
181 "python3",
182 "RECIPE_MODULE[skia::flavor]/resources/scale_cpu.py",
183 "/usr/bin/adb.1.0.35",
184 "0.6",
185 "4"
186 ],
187 "env": {
188 "CHROME_HEADLESS": "1",
189 "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
190 },
191 "infra_step": true,
192 "name": "Scale CPU 4 to 0.600000",
193 "timeout": 30,
194 "~followup_annotations": [
195 "@@@STEP_EXCEPTION@@@"
196 ]
197 },
198 {
199 "cmd": [],
200 "name": "recover device after failure of 'scale cpu' (attempt 1)"
201 },
202 {
203 "cmd": [
204 "/usr/bin/adb.1.0.35",
205 "kill-server"
206 ],
207 "env": {
208 "CHROME_HEADLESS": "1",
209 "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
210 },
211 "infra_step": true,
212 "name": "recover device after failure of 'scale cpu' (attempt 1).adb kill-server",
213 "timeout": 30,
214 "~followup_annotations": [
215 "@@@STEP_NEST_LEVEL@1@@@"
216 ]
217 },
218 {
219 "cmd": [
220 "/usr/bin/adb.1.0.35",
221 "wait-for-device"
222 ],
223 "env": {
224 "CHROME_HEADLESS": "1",
225 "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
226 },
227 "infra_step": true,
228 "name": "recover device after failure of 'scale cpu' (attempt 1).wait for device",
229 "timeout": 180,
230 "~followup_annotations": [
231 "@@@STEP_NEST_LEVEL@1@@@"
232 ]
233 },
234 {
235 "cmd": [
236 "/usr/bin/adb.1.0.35",
237 "devices",
238 "-l"
239 ],
240 "env": {
241 "CHROME_HEADLESS": "1",
242 "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
243 },
244 "infra_step": true,
245 "name": "recover device after failure of 'scale cpu' (attempt 1).adb devices -l",
246 "timeout": 30,
247 "~followup_annotations": [
248 "@@@STEP_NEST_LEVEL@1@@@"
249 ]
250 },
251 {
252 "cmd": [],
253 "name": "recover device after failure of 'scale cpu' (attempt 1).reboot device and wait",
254 "~followup_annotations": [
255 "@@@STEP_NEST_LEVEL@1@@@"
256 ]
257 },
258 {
259 "cmd": [
260 "/usr/bin/adb.1.0.35",
261 "reboot"
262 ],
263 "env": {
264 "CHROME_HEADLESS": "1",
265 "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
266 },
267 "infra_step": true,
268 "name": "recover device after failure of 'scale cpu' (attempt 1).reboot device and wait.reboot device",
269 "timeout": 30,
270 "~followup_annotations": [
271 "@@@STEP_NEST_LEVEL@2@@@"
272 ]
273 },
274 {
275 "cmd": [
276 "python3",
277 "RECIPE_MODULE[skia::flavor]/resources/wait_for_device.py",
278 "--adb",
279 "/usr/bin/adb.1.0.35"
280 ],
281 "env": {
282 "CHROME_HEADLESS": "1",
283 "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
284 },
285 "name": "recover device after failure of 'scale cpu' (attempt 1).reboot device and wait.wait for device",
286 "timeout": 600,
287 "~followup_annotations": [
288 "@@@STEP_NEST_LEVEL@2@@@"
289 ]
290 },
291 {
292 "cmd": [
293 "/usr/bin/adb.1.0.35",
294 "root"
295 ],
296 "env": {
297 "CHROME_HEADLESS": "1",
298 "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
299 },
300 "name": "adb root",
301 "timeout": 180
302 },
303 {
304 "cmd": [
305 "python3",
306 "RECIPE_MODULE[skia::flavor]/resources/scale_cpu.py",
307 "/usr/bin/adb.1.0.35",
308 "0.6",
309 "4"
310 ],
311 "env": {
312 "CHROME_HEADLESS": "1",
313 "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
314 },
315 "infra_step": true,
316 "name": "Scale CPU 4 to 0.600000 (attempt 2)",
317 "timeout": 30,
318 "~followup_annotations": [
319 "@@@STEP_EXCEPTION@@@"
320 ]
321 },
322 {
323 "cmd": [],
324 "name": "recover device after failure of 'scale cpu' (attempt 2)"
325 },
326 {
327 "cmd": [
328 "/usr/bin/adb.1.0.35",
329 "kill-server"
330 ],
331 "env": {
332 "CHROME_HEADLESS": "1",
333 "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
334 },
335 "infra_step": true,
336 "name": "recover device after failure of 'scale cpu' (attempt 2).adb kill-server",
337 "timeout": 30,
338 "~followup_annotations": [
339 "@@@STEP_NEST_LEVEL@1@@@"
340 ]
341 },
342 {
343 "cmd": [
344 "/usr/bin/adb.1.0.35",
345 "wait-for-device"
346 ],
347 "env": {
348 "CHROME_HEADLESS": "1",
349 "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
350 },
351 "infra_step": true,
352 "name": "recover device after failure of 'scale cpu' (attempt 2).wait for device",
353 "timeout": 180,
354 "~followup_annotations": [
355 "@@@STEP_NEST_LEVEL@1@@@"
356 ]
357 },
358 {
359 "cmd": [
360 "/usr/bin/adb.1.0.35",
361 "devices",
362 "-l"
363 ],
364 "env": {
365 "CHROME_HEADLESS": "1",
366 "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
367 },
368 "infra_step": true,
369 "name": "recover device after failure of 'scale cpu' (attempt 2).adb devices -l",
370 "timeout": 30,
371 "~followup_annotations": [
372 "@@@STEP_NEST_LEVEL@1@@@"
373 ]
374 },
375 {
376 "cmd": [],
377 "name": "recover device after failure of 'scale cpu' (attempt 2).reboot device and wait",
378 "~followup_annotations": [
379 "@@@STEP_NEST_LEVEL@1@@@"
380 ]
381 },
382 {
383 "cmd": [
384 "/usr/bin/adb.1.0.35",
385 "reboot"
386 ],
387 "env": {
388 "CHROME_HEADLESS": "1",
389 "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
390 },
391 "infra_step": true,
392 "name": "recover device after failure of 'scale cpu' (attempt 2).reboot device and wait.reboot device",
393 "timeout": 30,
394 "~followup_annotations": [
395 "@@@STEP_NEST_LEVEL@2@@@"
396 ]
397 },
398 {
399 "cmd": [
400 "python3",
401 "RECIPE_MODULE[skia::flavor]/resources/wait_for_device.py",
402 "--adb",
403 "/usr/bin/adb.1.0.35"
404 ],
405 "env": {
406 "CHROME_HEADLESS": "1",
407 "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
408 },
409 "name": "recover device after failure of 'scale cpu' (attempt 2).reboot device and wait.wait for device",
410 "timeout": 600,
411 "~followup_annotations": [
412 "@@@STEP_NEST_LEVEL@2@@@"
413 ]
414 },
415 {
416 "cmd": [
417 "/usr/bin/adb.1.0.35",
418 "root"
419 ],
420 "env": {
421 "CHROME_HEADLESS": "1",
422 "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
423 },
424 "name": "adb root (2)",
425 "timeout": 180
426 },
427 {
428 "cmd": [
429 "python3",
430 "RECIPE_MODULE[skia::flavor]/resources/scale_cpu.py",
431 "/usr/bin/adb.1.0.35",
432 "0.6",
433 "4"
434 ],
435 "env": {
436 "CHROME_HEADLESS": "1",
437 "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
438 },
439 "infra_step": true,
440 "name": "Scale CPU 4 to 0.600000 (attempt 3)",
441 "timeout": 30,
442 "~followup_annotations": [
443 "@@@STEP_EXCEPTION@@@"
444 ]
445 },
446 {
447 "cmd": [],
448 "name": "recover device after failure of 'scale cpu' (attempt 3)"
449 },
450 {
451 "cmd": [
452 "/usr/bin/adb.1.0.35",
453 "kill-server"
454 ],
455 "env": {
456 "CHROME_HEADLESS": "1",
457 "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
458 },
459 "infra_step": true,
460 "name": "recover device after failure of 'scale cpu' (attempt 3).adb kill-server",
461 "timeout": 30,
462 "~followup_annotations": [
463 "@@@STEP_NEST_LEVEL@1@@@"
464 ]
465 },
466 {
467 "cmd": [
468 "/usr/bin/adb.1.0.35",
469 "wait-for-device"
470 ],
471 "env": {
472 "CHROME_HEADLESS": "1",
473 "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
474 },
475 "infra_step": true,
476 "name": "recover device after failure of 'scale cpu' (attempt 3).wait for device",
477 "timeout": 180,
478 "~followup_annotations": [
479 "@@@STEP_NEST_LEVEL@1@@@"
480 ]
481 },
482 {
483 "cmd": [
484 "/usr/bin/adb.1.0.35",
485 "devices",
486 "-l"
487 ],
488 "env": {
489 "CHROME_HEADLESS": "1",
490 "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
491 },
492 "infra_step": true,
493 "name": "recover device after failure of 'scale cpu' (attempt 3).adb devices -l",
494 "timeout": 30,
495 "~followup_annotations": [
496 "@@@STEP_NEST_LEVEL@1@@@"
497 ]
498 },
499 {
500 "cmd": [],
501 "name": "recover device after failure of 'scale cpu' (attempt 3).reboot device and wait",
502 "~followup_annotations": [
503 "@@@STEP_NEST_LEVEL@1@@@"
504 ]
505 },
506 {
507 "cmd": [
508 "/usr/bin/adb.1.0.35",
509 "reboot"
510 ],
511 "env": {
512 "CHROME_HEADLESS": "1",
513 "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
514 },
515 "infra_step": true,
516 "name": "recover device after failure of 'scale cpu' (attempt 3).reboot device and wait.reboot device",
517 "timeout": 30,
518 "~followup_annotations": [
519 "@@@STEP_NEST_LEVEL@2@@@"
520 ]
521 },
522 {
523 "cmd": [
524 "python3",
525 "RECIPE_MODULE[skia::flavor]/resources/wait_for_device.py",
526 "--adb",
527 "/usr/bin/adb.1.0.35"
528 ],
529 "env": {
530 "CHROME_HEADLESS": "1",
531 "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
532 },
533 "name": "recover device after failure of 'scale cpu' (attempt 3).reboot device and wait.wait for device",
534 "timeout": 600,
535 "~followup_annotations": [
536 "@@@STEP_NEST_LEVEL@2@@@"
537 ]
538 },
539 {
540 "cmd": [
541 "/usr/bin/adb.1.0.35",
542 "root"
543 ],
544 "env": {
545 "CHROME_HEADLESS": "1",
546 "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
547 },
548 "name": "adb root (3)",
549 "timeout": 180
550 },
551 {
552 "cmd": [
553 "python3",
554 "RECIPE_MODULE[skia::flavor]/resources/dump_adb_log.py",
555 "[START_DIR]/build",
556 "/usr/bin/adb.1.0.35"
557 ],
558 "env": {
559 "CHROME_HEADLESS": "1",
560 "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
561 },
562 "infra_step": true,
563 "name": "dump log",
564 "timeout": 300
565 },
566 {
567 "cmd": [],
568 "name": "reboot device and wait"
569 },
570 {
571 "cmd": [
572 "/usr/bin/adb.1.0.35",
573 "reboot"
574 ],
575 "env": {
576 "CHROME_HEADLESS": "1",
577 "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
578 },
579 "infra_step": true,
580 "name": "reboot device and wait.reboot device",
581 "timeout": 30,
582 "~followup_annotations": [
583 "@@@STEP_NEST_LEVEL@1@@@"
584 ]
585 },
586 {
587 "cmd": [
588 "python3",
589 "RECIPE_MODULE[skia::flavor]/resources/wait_for_device.py",
590 "--adb",
591 "/usr/bin/adb.1.0.35"
592 ],
593 "env": {
594 "CHROME_HEADLESS": "1",
595 "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
596 },
597 "name": "reboot device and wait.wait for device",
598 "timeout": 600,
599 "~followup_annotations": [
600 "@@@STEP_NEST_LEVEL@1@@@"
601 ]
602 },
603 {
604 "cmd": [
605 "python3",
606 "RECIPE_MODULE[skia::flavor]/resources/dump_adb_log.py",
607 "[START_DIR]/build",
608 "/usr/bin/adb.1.0.35"
609 ],
610 "env": {
611 "CHROME_HEADLESS": "1",
612 "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
613 },
614 "infra_step": true,
615 "name": "dump adb log",
616 "timeout": 300
617 },
618 {
619 "failure": {
620 "humanReason": "Infra Failure: Step('Scale CPU 4 to 0.600000 (attempt 3)') (retcode: 1)"
621 },
622 "name": "$result"
623 }
624 ]