1[ 2 { 3 "cmd": [ 4 "python", 5 "-u", 6 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", 7 "--json-output", 8 "/path/to/tmp/json", 9 "ensure-directory", 10 "--mode", 11 "0777", 12 "[START_DIR]/tmp" 13 ], 14 "infra_step": true, 15 "name": "makedirs tmp_dir" 16 }, 17 { 18 "cmd": [ 19 "python", 20 "-u", 21 "import os\nprint os.environ.get('SWARMING_BOT_ID', '')\n" 22 ], 23 "name": "get swarming bot id", 24 "~followup_annotations": [ 25 "@@@STEP_LOG_LINE@python.inline@import os@@@", 26 "@@@STEP_LOG_LINE@python.inline@print os.environ.get('SWARMING_BOT_ID', '')@@@", 27 "@@@STEP_LOG_END@python.inline@@@" 28 ] 29 }, 30 { 31 "cmd": [ 32 "/opt/infra-android/tools/adb", 33 "shell", 34 "mkdir", 35 "-p", 36 "/sdcard/revenge_of_the_skiabot/resources" 37 ], 38 "cwd": "[START_DIR]/skia", 39 "env": { 40 "ADB_VENDOR_KEYS": "/home/chrome-bot/.android/chrome_infrastructure_adbkey", 41 "CHROME_HEADLESS": "1", 42 "PATH": "<PATH>:RECIPE_REPO[depot_tools]" 43 }, 44 "infra_step": true, 45 "name": "mkdir /sdcard/revenge_of_the_skiabot/resources" 46 }, 47 { 48 "cmd": [ 49 "python", 50 "-u", 51 "\nimport os\nimport subprocess\nimport sys\nhost = sys.argv[1]\ndevice = sys.argv[2]\nfor d, _, fs in os.walk(host):\n p = os.path.relpath(d, host)\n if p != '.' and p.startswith('.'):\n continue\n for f in fs:\n print os.path.join(p,f)\n subprocess.check_call(['/opt/infra-android/tools/adb', 'push',\n os.path.realpath(os.path.join(host, p, f)),\n os.path.join(device, p, f)])\n", 52 "[START_DIR]/skia/resources", 53 "/sdcard/revenge_of_the_skiabot/resources" 54 ], 55 "env": { 56 "CHROME_HEADLESS": "1", 57 "PATH": "<PATH>:RECIPE_REPO[depot_tools]" 58 }, 59 "infra_step": true, 60 "name": "push [START_DIR]/skia/resources/* /sdcard/revenge_of_the_skiabot/resources", 61 "~followup_annotations": [ 62 "@@@STEP_LOG_LINE@python.inline@@@@", 63 "@@@STEP_LOG_LINE@python.inline@import os@@@", 64 "@@@STEP_LOG_LINE@python.inline@import subprocess@@@", 65 "@@@STEP_LOG_LINE@python.inline@import sys@@@", 66 "@@@STEP_LOG_LINE@python.inline@host = sys.argv[1]@@@", 67 "@@@STEP_LOG_LINE@python.inline@device = sys.argv[2]@@@", 68 "@@@STEP_LOG_LINE@python.inline@for d, _, fs in os.walk(host):@@@", 69 "@@@STEP_LOG_LINE@python.inline@ p = os.path.relpath(d, host)@@@", 70 "@@@STEP_LOG_LINE@python.inline@ if p != '.' and p.startswith('.'):@@@", 71 "@@@STEP_LOG_LINE@python.inline@ continue@@@", 72 "@@@STEP_LOG_LINE@python.inline@ for f in fs:@@@", 73 "@@@STEP_LOG_LINE@python.inline@ print os.path.join(p,f)@@@", 74 "@@@STEP_LOG_LINE@python.inline@ subprocess.check_call(['/opt/infra-android/tools/adb', 'push',@@@", 75 "@@@STEP_LOG_LINE@python.inline@ os.path.realpath(os.path.join(host, p, f)),@@@", 76 "@@@STEP_LOG_LINE@python.inline@ os.path.join(device, p, f)])@@@", 77 "@@@STEP_LOG_END@python.inline@@@" 78 ] 79 }, 80 { 81 "cmd": [ 82 "python", 83 "-u", 84 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", 85 "--json-output", 86 "/path/to/tmp/json", 87 "copy", 88 "[START_DIR]/skia/infra/bots/assets/skp/VERSION", 89 "/path/to/tmp/" 90 ], 91 "infra_step": true, 92 "name": "Get skp VERSION" 93 }, 94 { 95 "cmd": [ 96 "python", 97 "-u", 98 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", 99 "--json-output", 100 "/path/to/tmp/json", 101 "copy", 102 "42", 103 "[START_DIR]/tmp/SKP_VERSION" 104 ], 105 "infra_step": true, 106 "name": "write SKP_VERSION", 107 "~followup_annotations": [ 108 "@@@STEP_LOG_LINE@SKP_VERSION@42@@@", 109 "@@@STEP_LOG_END@SKP_VERSION@@@" 110 ] 111 }, 112 { 113 "cmd": [ 114 "/opt/infra-android/tools/adb", 115 "shell", 116 "cat", 117 "/sdcard/revenge_of_the_skiabot/SKP_VERSION" 118 ], 119 "cwd": "[START_DIR]/skia", 120 "env": { 121 "ADB_VENDOR_KEYS": "/home/chrome-bot/.android/chrome_infrastructure_adbkey", 122 "CHROME_HEADLESS": "1", 123 "PATH": "<PATH>:RECIPE_REPO[depot_tools]" 124 }, 125 "infra_step": true, 126 "name": "read /sdcard/revenge_of_the_skiabot/SKP_VERSION" 127 }, 128 { 129 "cmd": [ 130 "/opt/infra-android/tools/adb", 131 "shell", 132 "rm", 133 "-f", 134 "/sdcard/revenge_of_the_skiabot/SKP_VERSION" 135 ], 136 "cwd": "[START_DIR]/skia", 137 "env": { 138 "ADB_VENDOR_KEYS": "/home/chrome-bot/.android/chrome_infrastructure_adbkey", 139 "CHROME_HEADLESS": "1", 140 "PATH": "<PATH>:RECIPE_REPO[depot_tools]" 141 }, 142 "infra_step": true, 143 "name": "rm /sdcard/revenge_of_the_skiabot/SKP_VERSION" 144 }, 145 { 146 "cmd": [ 147 "/opt/infra-android/tools/adb", 148 "shell", 149 "rm", 150 "-rf", 151 "/sdcard/revenge_of_the_skiabot/skps" 152 ], 153 "cwd": "[START_DIR]/skia", 154 "env": { 155 "ADB_VENDOR_KEYS": "/home/chrome-bot/.android/chrome_infrastructure_adbkey", 156 "CHROME_HEADLESS": "1", 157 "PATH": "<PATH>:RECIPE_REPO[depot_tools]" 158 }, 159 "infra_step": true, 160 "name": "rm /sdcard/revenge_of_the_skiabot/skps" 161 }, 162 { 163 "cmd": [ 164 "/opt/infra-android/tools/adb", 165 "shell", 166 "mkdir", 167 "-p", 168 "/sdcard/revenge_of_the_skiabot/skps" 169 ], 170 "cwd": "[START_DIR]/skia", 171 "env": { 172 "ADB_VENDOR_KEYS": "/home/chrome-bot/.android/chrome_infrastructure_adbkey", 173 "CHROME_HEADLESS": "1", 174 "PATH": "<PATH>:RECIPE_REPO[depot_tools]" 175 }, 176 "infra_step": true, 177 "name": "mkdir /sdcard/revenge_of_the_skiabot/skps" 178 }, 179 { 180 "cmd": [ 181 "python", 182 "-u", 183 "\nimport os\nimport subprocess\nimport sys\nhost = sys.argv[1]\ndevice = sys.argv[2]\nfor d, _, fs in os.walk(host):\n p = os.path.relpath(d, host)\n if p != '.' and p.startswith('.'):\n continue\n for f in fs:\n print os.path.join(p,f)\n subprocess.check_call(['/opt/infra-android/tools/adb', 'push',\n os.path.realpath(os.path.join(host, p, f)),\n os.path.join(device, p, f)])\n", 184 "[START_DIR]/skp", 185 "/sdcard/revenge_of_the_skiabot/skps" 186 ], 187 "env": { 188 "CHROME_HEADLESS": "1", 189 "PATH": "<PATH>:RECIPE_REPO[depot_tools]" 190 }, 191 "infra_step": true, 192 "name": "push [START_DIR]/skp/* /sdcard/revenge_of_the_skiabot/skps", 193 "~followup_annotations": [ 194 "@@@STEP_LOG_LINE@python.inline@@@@", 195 "@@@STEP_LOG_LINE@python.inline@import os@@@", 196 "@@@STEP_LOG_LINE@python.inline@import subprocess@@@", 197 "@@@STEP_LOG_LINE@python.inline@import sys@@@", 198 "@@@STEP_LOG_LINE@python.inline@host = sys.argv[1]@@@", 199 "@@@STEP_LOG_LINE@python.inline@device = sys.argv[2]@@@", 200 "@@@STEP_LOG_LINE@python.inline@for d, _, fs in os.walk(host):@@@", 201 "@@@STEP_LOG_LINE@python.inline@ p = os.path.relpath(d, host)@@@", 202 "@@@STEP_LOG_LINE@python.inline@ if p != '.' and p.startswith('.'):@@@", 203 "@@@STEP_LOG_LINE@python.inline@ continue@@@", 204 "@@@STEP_LOG_LINE@python.inline@ for f in fs:@@@", 205 "@@@STEP_LOG_LINE@python.inline@ print os.path.join(p,f)@@@", 206 "@@@STEP_LOG_LINE@python.inline@ subprocess.check_call(['/opt/infra-android/tools/adb', 'push',@@@", 207 "@@@STEP_LOG_LINE@python.inline@ os.path.realpath(os.path.join(host, p, f)),@@@", 208 "@@@STEP_LOG_LINE@python.inline@ os.path.join(device, p, f)])@@@", 209 "@@@STEP_LOG_END@python.inline@@@" 210 ] 211 }, 212 { 213 "cmd": [ 214 "/opt/infra-android/tools/adb", 215 "push", 216 "[START_DIR]/tmp/SKP_VERSION", 217 "/sdcard/revenge_of_the_skiabot/SKP_VERSION" 218 ], 219 "cwd": "[START_DIR]/skia", 220 "env": { 221 "ADB_VENDOR_KEYS": "/home/chrome-bot/.android/chrome_infrastructure_adbkey", 222 "CHROME_HEADLESS": "1", 223 "PATH": "<PATH>:RECIPE_REPO[depot_tools]" 224 }, 225 "infra_step": true, 226 "name": "push [START_DIR]/tmp/SKP_VERSION /sdcard/revenge_of_the_skiabot/SKP_VERSION" 227 }, 228 { 229 "cmd": [ 230 "python", 231 "-u", 232 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", 233 "--json-output", 234 "/path/to/tmp/json", 235 "copy", 236 "[START_DIR]/skia/infra/bots/assets/skimage/VERSION", 237 "/path/to/tmp/" 238 ], 239 "infra_step": true, 240 "name": "Get skimage VERSION" 241 }, 242 { 243 "cmd": [ 244 "python", 245 "-u", 246 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", 247 "--json-output", 248 "/path/to/tmp/json", 249 "copy", 250 "42", 251 "[START_DIR]/tmp/SK_IMAGE_VERSION" 252 ], 253 "infra_step": true, 254 "name": "write SK_IMAGE_VERSION", 255 "~followup_annotations": [ 256 "@@@STEP_LOG_LINE@SK_IMAGE_VERSION@42@@@", 257 "@@@STEP_LOG_END@SK_IMAGE_VERSION@@@" 258 ] 259 }, 260 { 261 "cmd": [ 262 "/opt/infra-android/tools/adb", 263 "shell", 264 "cat", 265 "/sdcard/revenge_of_the_skiabot/SK_IMAGE_VERSION" 266 ], 267 "cwd": "[START_DIR]/skia", 268 "env": { 269 "ADB_VENDOR_KEYS": "/home/chrome-bot/.android/chrome_infrastructure_adbkey", 270 "CHROME_HEADLESS": "1", 271 "PATH": "<PATH>:RECIPE_REPO[depot_tools]" 272 }, 273 "infra_step": true, 274 "name": "read /sdcard/revenge_of_the_skiabot/SK_IMAGE_VERSION" 275 }, 276 { 277 "cmd": [ 278 "/opt/infra-android/tools/adb", 279 "shell", 280 "rm", 281 "-f", 282 "/sdcard/revenge_of_the_skiabot/SK_IMAGE_VERSION" 283 ], 284 "cwd": "[START_DIR]/skia", 285 "env": { 286 "ADB_VENDOR_KEYS": "/home/chrome-bot/.android/chrome_infrastructure_adbkey", 287 "CHROME_HEADLESS": "1", 288 "PATH": "<PATH>:RECIPE_REPO[depot_tools]" 289 }, 290 "infra_step": true, 291 "name": "rm /sdcard/revenge_of_the_skiabot/SK_IMAGE_VERSION" 292 }, 293 { 294 "cmd": [ 295 "/opt/infra-android/tools/adb", 296 "shell", 297 "rm", 298 "-rf", 299 "/sdcard/revenge_of_the_skiabot/images" 300 ], 301 "cwd": "[START_DIR]/skia", 302 "env": { 303 "ADB_VENDOR_KEYS": "/home/chrome-bot/.android/chrome_infrastructure_adbkey", 304 "CHROME_HEADLESS": "1", 305 "PATH": "<PATH>:RECIPE_REPO[depot_tools]" 306 }, 307 "infra_step": true, 308 "name": "rm /sdcard/revenge_of_the_skiabot/images" 309 }, 310 { 311 "cmd": [ 312 "/opt/infra-android/tools/adb", 313 "shell", 314 "mkdir", 315 "-p", 316 "/sdcard/revenge_of_the_skiabot/images" 317 ], 318 "cwd": "[START_DIR]/skia", 319 "env": { 320 "ADB_VENDOR_KEYS": "/home/chrome-bot/.android/chrome_infrastructure_adbkey", 321 "CHROME_HEADLESS": "1", 322 "PATH": "<PATH>:RECIPE_REPO[depot_tools]" 323 }, 324 "infra_step": true, 325 "name": "mkdir /sdcard/revenge_of_the_skiabot/images" 326 }, 327 { 328 "cmd": [ 329 "python", 330 "-u", 331 "\nimport os\nimport subprocess\nimport sys\nhost = sys.argv[1]\ndevice = sys.argv[2]\nfor d, _, fs in os.walk(host):\n p = os.path.relpath(d, host)\n if p != '.' and p.startswith('.'):\n continue\n for f in fs:\n print os.path.join(p,f)\n subprocess.check_call(['/opt/infra-android/tools/adb', 'push',\n os.path.realpath(os.path.join(host, p, f)),\n os.path.join(device, p, f)])\n", 332 "[START_DIR]/skimage", 333 "/sdcard/revenge_of_the_skiabot/images" 334 ], 335 "env": { 336 "CHROME_HEADLESS": "1", 337 "PATH": "<PATH>:RECIPE_REPO[depot_tools]" 338 }, 339 "infra_step": true, 340 "name": "push [START_DIR]/skimage/* /sdcard/revenge_of_the_skiabot/images", 341 "~followup_annotations": [ 342 "@@@STEP_LOG_LINE@python.inline@@@@", 343 "@@@STEP_LOG_LINE@python.inline@import os@@@", 344 "@@@STEP_LOG_LINE@python.inline@import subprocess@@@", 345 "@@@STEP_LOG_LINE@python.inline@import sys@@@", 346 "@@@STEP_LOG_LINE@python.inline@host = sys.argv[1]@@@", 347 "@@@STEP_LOG_LINE@python.inline@device = sys.argv[2]@@@", 348 "@@@STEP_LOG_LINE@python.inline@for d, _, fs in os.walk(host):@@@", 349 "@@@STEP_LOG_LINE@python.inline@ p = os.path.relpath(d, host)@@@", 350 "@@@STEP_LOG_LINE@python.inline@ if p != '.' and p.startswith('.'):@@@", 351 "@@@STEP_LOG_LINE@python.inline@ continue@@@", 352 "@@@STEP_LOG_LINE@python.inline@ for f in fs:@@@", 353 "@@@STEP_LOG_LINE@python.inline@ print os.path.join(p,f)@@@", 354 "@@@STEP_LOG_LINE@python.inline@ subprocess.check_call(['/opt/infra-android/tools/adb', 'push',@@@", 355 "@@@STEP_LOG_LINE@python.inline@ os.path.realpath(os.path.join(host, p, f)),@@@", 356 "@@@STEP_LOG_LINE@python.inline@ os.path.join(device, p, f)])@@@", 357 "@@@STEP_LOG_END@python.inline@@@" 358 ] 359 }, 360 { 361 "cmd": [ 362 "/opt/infra-android/tools/adb", 363 "push", 364 "[START_DIR]/tmp/SK_IMAGE_VERSION", 365 "/sdcard/revenge_of_the_skiabot/SK_IMAGE_VERSION" 366 ], 367 "cwd": "[START_DIR]/skia", 368 "env": { 369 "ADB_VENDOR_KEYS": "/home/chrome-bot/.android/chrome_infrastructure_adbkey", 370 "CHROME_HEADLESS": "1", 371 "PATH": "<PATH>:RECIPE_REPO[depot_tools]" 372 }, 373 "infra_step": true, 374 "name": "push [START_DIR]/tmp/SK_IMAGE_VERSION /sdcard/revenge_of_the_skiabot/SK_IMAGE_VERSION" 375 }, 376 { 377 "cmd": [ 378 "python", 379 "-u", 380 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", 381 "--json-output", 382 "/path/to/tmp/json", 383 "copy", 384 "[START_DIR]/skia/infra/bots/assets/svg/VERSION", 385 "/path/to/tmp/" 386 ], 387 "infra_step": true, 388 "name": "Get svg VERSION" 389 }, 390 { 391 "cmd": [ 392 "python", 393 "-u", 394 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", 395 "--json-output", 396 "/path/to/tmp/json", 397 "copy", 398 "42", 399 "[START_DIR]/tmp/SVG_VERSION" 400 ], 401 "infra_step": true, 402 "name": "write SVG_VERSION", 403 "~followup_annotations": [ 404 "@@@STEP_LOG_LINE@SVG_VERSION@42@@@", 405 "@@@STEP_LOG_END@SVG_VERSION@@@" 406 ] 407 }, 408 { 409 "cmd": [ 410 "/opt/infra-android/tools/adb", 411 "shell", 412 "cat", 413 "/sdcard/revenge_of_the_skiabot/SVG_VERSION" 414 ], 415 "cwd": "[START_DIR]/skia", 416 "env": { 417 "ADB_VENDOR_KEYS": "/home/chrome-bot/.android/chrome_infrastructure_adbkey", 418 "CHROME_HEADLESS": "1", 419 "PATH": "<PATH>:RECIPE_REPO[depot_tools]" 420 }, 421 "infra_step": true, 422 "name": "read /sdcard/revenge_of_the_skiabot/SVG_VERSION" 423 }, 424 { 425 "cmd": [ 426 "/opt/infra-android/tools/adb", 427 "shell", 428 "rm", 429 "-f", 430 "/sdcard/revenge_of_the_skiabot/SVG_VERSION" 431 ], 432 "cwd": "[START_DIR]/skia", 433 "env": { 434 "ADB_VENDOR_KEYS": "/home/chrome-bot/.android/chrome_infrastructure_adbkey", 435 "CHROME_HEADLESS": "1", 436 "PATH": "<PATH>:RECIPE_REPO[depot_tools]" 437 }, 438 "infra_step": true, 439 "name": "rm /sdcard/revenge_of_the_skiabot/SVG_VERSION" 440 }, 441 { 442 "cmd": [ 443 "/opt/infra-android/tools/adb", 444 "shell", 445 "rm", 446 "-rf", 447 "/sdcard/revenge_of_the_skiabot/svgs" 448 ], 449 "cwd": "[START_DIR]/skia", 450 "env": { 451 "ADB_VENDOR_KEYS": "/home/chrome-bot/.android/chrome_infrastructure_adbkey", 452 "CHROME_HEADLESS": "1", 453 "PATH": "<PATH>:RECIPE_REPO[depot_tools]" 454 }, 455 "infra_step": true, 456 "name": "rm /sdcard/revenge_of_the_skiabot/svgs" 457 }, 458 { 459 "cmd": [ 460 "/opt/infra-android/tools/adb", 461 "shell", 462 "mkdir", 463 "-p", 464 "/sdcard/revenge_of_the_skiabot/svgs" 465 ], 466 "cwd": "[START_DIR]/skia", 467 "env": { 468 "ADB_VENDOR_KEYS": "/home/chrome-bot/.android/chrome_infrastructure_adbkey", 469 "CHROME_HEADLESS": "1", 470 "PATH": "<PATH>:RECIPE_REPO[depot_tools]" 471 }, 472 "infra_step": true, 473 "name": "mkdir /sdcard/revenge_of_the_skiabot/svgs" 474 }, 475 { 476 "cmd": [ 477 "python", 478 "-u", 479 "\nimport os\nimport subprocess\nimport sys\nhost = sys.argv[1]\ndevice = sys.argv[2]\nfor d, _, fs in os.walk(host):\n p = os.path.relpath(d, host)\n if p != '.' and p.startswith('.'):\n continue\n for f in fs:\n print os.path.join(p,f)\n subprocess.check_call(['/opt/infra-android/tools/adb', 'push',\n os.path.realpath(os.path.join(host, p, f)),\n os.path.join(device, p, f)])\n", 480 "[START_DIR]/svg", 481 "/sdcard/revenge_of_the_skiabot/svgs" 482 ], 483 "env": { 484 "CHROME_HEADLESS": "1", 485 "PATH": "<PATH>:RECIPE_REPO[depot_tools]" 486 }, 487 "infra_step": true, 488 "name": "push [START_DIR]/svg/* /sdcard/revenge_of_the_skiabot/svgs", 489 "~followup_annotations": [ 490 "@@@STEP_LOG_LINE@python.inline@@@@", 491 "@@@STEP_LOG_LINE@python.inline@import os@@@", 492 "@@@STEP_LOG_LINE@python.inline@import subprocess@@@", 493 "@@@STEP_LOG_LINE@python.inline@import sys@@@", 494 "@@@STEP_LOG_LINE@python.inline@host = sys.argv[1]@@@", 495 "@@@STEP_LOG_LINE@python.inline@device = sys.argv[2]@@@", 496 "@@@STEP_LOG_LINE@python.inline@for d, _, fs in os.walk(host):@@@", 497 "@@@STEP_LOG_LINE@python.inline@ p = os.path.relpath(d, host)@@@", 498 "@@@STEP_LOG_LINE@python.inline@ if p != '.' and p.startswith('.'):@@@", 499 "@@@STEP_LOG_LINE@python.inline@ continue@@@", 500 "@@@STEP_LOG_LINE@python.inline@ for f in fs:@@@", 501 "@@@STEP_LOG_LINE@python.inline@ print os.path.join(p,f)@@@", 502 "@@@STEP_LOG_LINE@python.inline@ subprocess.check_call(['/opt/infra-android/tools/adb', 'push',@@@", 503 "@@@STEP_LOG_LINE@python.inline@ os.path.realpath(os.path.join(host, p, f)),@@@", 504 "@@@STEP_LOG_LINE@python.inline@ os.path.join(device, p, f)])@@@", 505 "@@@STEP_LOG_END@python.inline@@@" 506 ] 507 }, 508 { 509 "cmd": [ 510 "/opt/infra-android/tools/adb", 511 "push", 512 "[START_DIR]/tmp/SVG_VERSION", 513 "/sdcard/revenge_of_the_skiabot/SVG_VERSION" 514 ], 515 "cwd": "[START_DIR]/skia", 516 "env": { 517 "ADB_VENDOR_KEYS": "/home/chrome-bot/.android/chrome_infrastructure_adbkey", 518 "CHROME_HEADLESS": "1", 519 "PATH": "<PATH>:RECIPE_REPO[depot_tools]" 520 }, 521 "infra_step": true, 522 "name": "push [START_DIR]/tmp/SVG_VERSION /sdcard/revenge_of_the_skiabot/SVG_VERSION" 523 }, 524 { 525 "cmd": [ 526 "python", 527 "-u", 528 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", 529 "--json-output", 530 "/path/to/tmp/json", 531 "rmtree", 532 "[START_DIR]/test" 533 ], 534 "infra_step": true, 535 "name": "rmtree test" 536 }, 537 { 538 "cmd": [ 539 "python", 540 "-u", 541 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", 542 "--json-output", 543 "/path/to/tmp/json", 544 "ensure-directory", 545 "--mode", 546 "0777", 547 "[START_DIR]/test" 548 ], 549 "infra_step": true, 550 "name": "makedirs test" 551 }, 552 { 553 "cmd": [ 554 "/opt/infra-android/tools/adb", 555 "shell", 556 "rm", 557 "-rf", 558 "/sdcard/revenge_of_the_skiabot/dm_out" 559 ], 560 "cwd": "[START_DIR]/skia", 561 "env": { 562 "ADB_VENDOR_KEYS": "/home/chrome-bot/.android/chrome_infrastructure_adbkey", 563 "CHROME_HEADLESS": "1", 564 "PATH": "<PATH>:RECIPE_REPO[depot_tools]" 565 }, 566 "infra_step": true, 567 "name": "rm /sdcard/revenge_of_the_skiabot/dm_out" 568 }, 569 { 570 "cmd": [ 571 "/opt/infra-android/tools/adb", 572 "shell", 573 "mkdir", 574 "-p", 575 "/sdcard/revenge_of_the_skiabot/dm_out" 576 ], 577 "cwd": "[START_DIR]/skia", 578 "env": { 579 "ADB_VENDOR_KEYS": "/home/chrome-bot/.android/chrome_infrastructure_adbkey", 580 "CHROME_HEADLESS": "1", 581 "PATH": "<PATH>:RECIPE_REPO[depot_tools]" 582 }, 583 "infra_step": true, 584 "name": "mkdir /sdcard/revenge_of_the_skiabot/dm_out" 585 }, 586 { 587 "cmd": [ 588 "python", 589 "-u", 590 "\nimport contextlib\nimport math\nimport socket\nimport sys\nimport time\nimport urllib2\n\nHASHES_URL = sys.argv[1]\nRETRIES = 5\nTIMEOUT = 60\nWAIT_BASE = 15\n\nsocket.setdefaulttimeout(TIMEOUT)\nfor retry in range(RETRIES):\n try:\n with contextlib.closing(\n urllib2.urlopen(HASHES_URL, timeout=TIMEOUT)) as w:\n hashes = w.read()\n with open(sys.argv[2], 'w') as f:\n f.write(hashes)\n break\n except Exception as e:\n print 'Failed to get uninteresting hashes from %s:' % HASHES_URL\n print e\n if retry == RETRIES:\n raise\n waittime = WAIT_BASE * math.pow(2, retry)\n print 'Retry in %d seconds.' % waittime\n time.sleep(waittime)\n", 591 "https://example.com/hashes.txt", 592 "[START_DIR]/tmp/uninteresting_hashes.txt" 593 ], 594 "env": { 595 "CHROME_HEADLESS": "1", 596 "PATH": "<PATH>:RECIPE_REPO[depot_tools]" 597 }, 598 "infra_step": true, 599 "name": "get uninteresting hashes", 600 "~followup_annotations": [ 601 "@@@STEP_LOG_LINE@python.inline@@@@", 602 "@@@STEP_LOG_LINE@python.inline@import contextlib@@@", 603 "@@@STEP_LOG_LINE@python.inline@import math@@@", 604 "@@@STEP_LOG_LINE@python.inline@import socket@@@", 605 "@@@STEP_LOG_LINE@python.inline@import sys@@@", 606 "@@@STEP_LOG_LINE@python.inline@import time@@@", 607 "@@@STEP_LOG_LINE@python.inline@import urllib2@@@", 608 "@@@STEP_LOG_LINE@python.inline@@@@", 609 "@@@STEP_LOG_LINE@python.inline@HASHES_URL = sys.argv[1]@@@", 610 "@@@STEP_LOG_LINE@python.inline@RETRIES = 5@@@", 611 "@@@STEP_LOG_LINE@python.inline@TIMEOUT = 60@@@", 612 "@@@STEP_LOG_LINE@python.inline@WAIT_BASE = 15@@@", 613 "@@@STEP_LOG_LINE@python.inline@@@@", 614 "@@@STEP_LOG_LINE@python.inline@socket.setdefaulttimeout(TIMEOUT)@@@", 615 "@@@STEP_LOG_LINE@python.inline@for retry in range(RETRIES):@@@", 616 "@@@STEP_LOG_LINE@python.inline@ try:@@@", 617 "@@@STEP_LOG_LINE@python.inline@ with contextlib.closing(@@@", 618 "@@@STEP_LOG_LINE@python.inline@ urllib2.urlopen(HASHES_URL, timeout=TIMEOUT)) as w:@@@", 619 "@@@STEP_LOG_LINE@python.inline@ hashes = w.read()@@@", 620 "@@@STEP_LOG_LINE@python.inline@ with open(sys.argv[2], 'w') as f:@@@", 621 "@@@STEP_LOG_LINE@python.inline@ f.write(hashes)@@@", 622 "@@@STEP_LOG_LINE@python.inline@ break@@@", 623 "@@@STEP_LOG_LINE@python.inline@ except Exception as e:@@@", 624 "@@@STEP_LOG_LINE@python.inline@ print 'Failed to get uninteresting hashes from %s:' % HASHES_URL@@@", 625 "@@@STEP_LOG_LINE@python.inline@ print e@@@", 626 "@@@STEP_LOG_LINE@python.inline@ if retry == RETRIES:@@@", 627 "@@@STEP_LOG_LINE@python.inline@ raise@@@", 628 "@@@STEP_LOG_LINE@python.inline@ waittime = WAIT_BASE * math.pow(2, retry)@@@", 629 "@@@STEP_LOG_LINE@python.inline@ print 'Retry in %d seconds.' % waittime@@@", 630 "@@@STEP_LOG_LINE@python.inline@ time.sleep(waittime)@@@", 631 "@@@STEP_LOG_END@python.inline@@@", 632 "@@@STEP_EXCEPTION@@@" 633 ] 634 }, 635 { 636 "cmd": [ 637 "/opt/infra-android/tools/adb", 638 "push", 639 "[START_DIR]/tmp/uninteresting_hashes.txt", 640 "/sdcard/revenge_of_the_skiabot/uninteresting_hashes.txt" 641 ], 642 "cwd": "[START_DIR]/skia", 643 "env": { 644 "ADB_VENDOR_KEYS": "/home/chrome-bot/.android/chrome_infrastructure_adbkey", 645 "CHROME_HEADLESS": "1", 646 "PATH": "<PATH>:RECIPE_REPO[depot_tools]" 647 }, 648 "infra_step": true, 649 "name": "push [START_DIR]/tmp/uninteresting_hashes.txt /sdcard/revenge_of_the_skiabot/uninteresting_hashes.txt" 650 }, 651 { 652 "cmd": [ 653 "python", 654 "-u", 655 "import os\nprint os.environ.get('SWARMING_BOT_ID', '')\n" 656 ], 657 "name": "get swarming bot id (2)", 658 "~followup_annotations": [ 659 "@@@STEP_LOG_LINE@python.inline@import os@@@", 660 "@@@STEP_LOG_LINE@python.inline@print os.environ.get('SWARMING_BOT_ID', '')@@@", 661 "@@@STEP_LOG_END@python.inline@@@" 662 ] 663 }, 664 { 665 "cmd": [ 666 "python", 667 "-u", 668 "import os\nprint os.environ.get('SWARMING_TASK_ID', '')\n" 669 ], 670 "name": "get swarming task id", 671 "~followup_annotations": [ 672 "@@@STEP_LOG_LINE@python.inline@import os@@@", 673 "@@@STEP_LOG_LINE@python.inline@print os.environ.get('SWARMING_TASK_ID', '')@@@", 674 "@@@STEP_LOG_END@python.inline@@@" 675 ] 676 }, 677 { 678 "cmd": [ 679 "python", 680 "-u", 681 "\nimport os\nimport subprocess\nimport sys\nimport time\nADB = sys.argv[1]\ncpu = int(sys.argv[2])\ngov = sys.argv[3]\n\nlog = subprocess.check_output([ADB, 'root'])\n# check for message like 'adbd cannot run as root in production builds'\nprint log\nif 'cannot' in log:\n raise Exception('adb root failed')\n\nsubprocess.check_output([ADB, 'shell', 'echo \"%s\" > '\n '/sys/devices/system/cpu/cpu%d/cpufreq/scaling_governor' % (gov, cpu)])\nactual_gov = subprocess.check_output([ADB, 'shell', 'cat '\n '/sys/devices/system/cpu/cpu%d/cpufreq/scaling_governor' % cpu]).strip()\nif actual_gov != gov:\n raise Exception('(actual, expected) (%s, %s)'\n % (actual_gov, gov))\n", 682 "/opt/infra-android/tools/adb", 683 "0", 684 "ondemand" 685 ], 686 "env": { 687 "CHROME_HEADLESS": "1", 688 "PATH": "<PATH>:RECIPE_REPO[depot_tools]" 689 }, 690 "infra_step": true, 691 "name": "Set CPU 0's governor to ondemand", 692 "timeout": 30, 693 "~followup_annotations": [ 694 "@@@STEP_LOG_LINE@python.inline@@@@", 695 "@@@STEP_LOG_LINE@python.inline@import os@@@", 696 "@@@STEP_LOG_LINE@python.inline@import subprocess@@@", 697 "@@@STEP_LOG_LINE@python.inline@import sys@@@", 698 "@@@STEP_LOG_LINE@python.inline@import time@@@", 699 "@@@STEP_LOG_LINE@python.inline@ADB = sys.argv[1]@@@", 700 "@@@STEP_LOG_LINE@python.inline@cpu = int(sys.argv[2])@@@", 701 "@@@STEP_LOG_LINE@python.inline@gov = sys.argv[3]@@@", 702 "@@@STEP_LOG_LINE@python.inline@@@@", 703 "@@@STEP_LOG_LINE@python.inline@log = subprocess.check_output([ADB, 'root'])@@@", 704 "@@@STEP_LOG_LINE@python.inline@# check for message like 'adbd cannot run as root in production builds'@@@", 705 "@@@STEP_LOG_LINE@python.inline@print log@@@", 706 "@@@STEP_LOG_LINE@python.inline@if 'cannot' in log:@@@", 707 "@@@STEP_LOG_LINE@python.inline@ raise Exception('adb root failed')@@@", 708 "@@@STEP_LOG_LINE@python.inline@@@@", 709 "@@@STEP_LOG_LINE@python.inline@subprocess.check_output([ADB, 'shell', 'echo \"%s\" > '@@@", 710 "@@@STEP_LOG_LINE@python.inline@ '/sys/devices/system/cpu/cpu%d/cpufreq/scaling_governor' % (gov, cpu)])@@@", 711 "@@@STEP_LOG_LINE@python.inline@actual_gov = subprocess.check_output([ADB, 'shell', 'cat '@@@", 712 "@@@STEP_LOG_LINE@python.inline@ '/sys/devices/system/cpu/cpu%d/cpufreq/scaling_governor' % cpu]).strip()@@@", 713 "@@@STEP_LOG_LINE@python.inline@if actual_gov != gov:@@@", 714 "@@@STEP_LOG_LINE@python.inline@ raise Exception('(actual, expected) (%s, %s)'@@@", 715 "@@@STEP_LOG_LINE@python.inline@ % (actual_gov, gov))@@@", 716 "@@@STEP_LOG_END@python.inline@@@" 717 ] 718 }, 719 { 720 "cmd": [ 721 "/opt/infra-android/tools/adb", 722 "push", 723 "[START_DIR]/build/dm", 724 "/data/local/tmp/" 725 ], 726 "cwd": "[START_DIR]/skia", 727 "env": { 728 "ADB_VENDOR_KEYS": "/home/chrome-bot/.android/chrome_infrastructure_adbkey", 729 "CHROME_HEADLESS": "1", 730 "PATH": "<PATH>:RECIPE_REPO[depot_tools]" 731 }, 732 "infra_step": true, 733 "name": "push dm" 734 }, 735 { 736 "cmd": [ 737 "python", 738 "-u", 739 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", 740 "--json-output", 741 "/path/to/tmp/json", 742 "copy", 743 "set -x; /data/local/tmp/dm --resourcePath /sdcard/revenge_of_the_skiabot/resources --skps /sdcard/revenge_of_the_skiabot/skps --images /sdcard/revenge_of_the_skiabot/images/dm --colorImages /sdcard/revenge_of_the_skiabot/images/colorspace --nameByHash --properties gitHash abc123 builder Test-Android-Clang-Nexus7-GPU-Tegra3-arm-Release-All-Android buildbucket_build_id 123454321 task_id task_12345 swarming_bot_id \"\" swarming_task_id \"\" --svgs /sdcard/revenge_of_the_skiabot/svgs --key arch arm compiler Clang configuration Release cpu_or_gpu GPU cpu_or_gpu_value Tegra3 extra_config Android model Nexus7 os Android style default --uninterestingHashesFile /sdcard/revenge_of_the_skiabot/uninteresting_hashes.txt --writePath /sdcard/revenge_of_the_skiabot/dm_out --dont_write pdf --threads 0 --nocpu --config gles glesdft glessrgb --src tests gm image colorImage svg --blacklist _ test _ ProcessorCloneTest _ test _ GLPrograms _ test _ ProcessorOptimizationValidationTest _ gm _ savelayer_clipmask _ svg _ svgparse_ glessrgb image _ _ _ image gen_platf error _ test _ GrShape _ image _ interlaced1.png _ image _ interlaced2.png _ image _ interlaced3.png _ image _ .arw _ image _ .cr2 _ image _ .dng _ image _ .nef _ image _ .nrw _ image _ .orf _ image _ .raf _ image _ .rw2 _ image _ .pef _ image _ .srw _ image _ .ARW _ image _ .CR2 _ image _ .DNG _ image _ .NEF _ image _ .NRW _ image _ .ORF _ image _ .RAF _ image _ .RW2 _ image _ .PEF _ image _ .SRW --nonativeFonts --verbose; echo $? >/data/local/tmp/rc", 744 "[START_DIR]/tmp/dm.sh" 745 ], 746 "env": { 747 "CHROME_HEADLESS": "1", 748 "PATH": "<PATH>:RECIPE_REPO[depot_tools]" 749 }, 750 "infra_step": true, 751 "name": "write dm.sh", 752 "~followup_annotations": [ 753 "@@@STEP_LOG_LINE@dm.sh@set -x; /data/local/tmp/dm --resourcePath /sdcard/revenge_of_the_skiabot/resources --skps /sdcard/revenge_of_the_skiabot/skps --images /sdcard/revenge_of_the_skiabot/images/dm --colorImages /sdcard/revenge_of_the_skiabot/images/colorspace --nameByHash --properties gitHash abc123 builder Test-Android-Clang-Nexus7-GPU-Tegra3-arm-Release-All-Android buildbucket_build_id 123454321 task_id task_12345 swarming_bot_id \"\" swarming_task_id \"\" --svgs /sdcard/revenge_of_the_skiabot/svgs --key arch arm compiler Clang configuration Release cpu_or_gpu GPU cpu_or_gpu_value Tegra3 extra_config Android model Nexus7 os Android style default --uninterestingHashesFile /sdcard/revenge_of_the_skiabot/uninteresting_hashes.txt --writePath /sdcard/revenge_of_the_skiabot/dm_out --dont_write pdf --threads 0 --nocpu --config gles glesdft glessrgb --src tests gm image colorImage svg --blacklist _ test _ ProcessorCloneTest _ test _ GLPrograms _ test _ ProcessorOptimizationValidationTest _ gm _ savelayer_clipmask _ svg _ svgparse_ glessrgb image _ _ _ image gen_platf error _ test _ GrShape _ image _ interlaced1.png _ image _ interlaced2.png _ image _ interlaced3.png _ image _ .arw _ image _ .cr2 _ image _ .dng _ image _ .nef _ image _ .nrw _ image _ .orf _ image _ .raf _ image _ .rw2 _ image _ .pef _ image _ .srw _ image _ .ARW _ image _ .CR2 _ image _ .DNG _ image _ .NEF _ image _ .NRW _ image _ .ORF _ image _ .RAF _ image _ .RW2 _ image _ .PEF _ image _ .SRW --nonativeFonts --verbose; echo $? >/data/local/tmp/rc@@@", 754 "@@@STEP_LOG_END@dm.sh@@@" 755 ] 756 }, 757 { 758 "cmd": [ 759 "/opt/infra-android/tools/adb", 760 "push", 761 "[START_DIR]/tmp/dm.sh", 762 "/data/local/tmp/" 763 ], 764 "cwd": "[START_DIR]/skia", 765 "env": { 766 "ADB_VENDOR_KEYS": "/home/chrome-bot/.android/chrome_infrastructure_adbkey", 767 "CHROME_HEADLESS": "1", 768 "PATH": "<PATH>:RECIPE_REPO[depot_tools]" 769 }, 770 "infra_step": true, 771 "name": "push dm.sh" 772 }, 773 { 774 "cmd": [ 775 "/opt/infra-android/tools/adb", 776 "logcat", 777 "-c" 778 ], 779 "cwd": "[START_DIR]/skia", 780 "env": { 781 "ADB_VENDOR_KEYS": "/home/chrome-bot/.android/chrome_infrastructure_adbkey", 782 "CHROME_HEADLESS": "1", 783 "PATH": "<PATH>:RECIPE_REPO[depot_tools]" 784 }, 785 "infra_step": true, 786 "name": "clear log" 787 }, 788 { 789 "cmd": [ 790 "python", 791 "-u", 792 "\nimport subprocess\nimport sys\nbin_dir = sys.argv[1]\nsh = sys.argv[2]\nsubprocess.check_call(['/opt/infra-android/tools/adb', 'shell', 'sh', bin_dir + sh])\ntry:\n sys.exit(int(subprocess.check_output(['/opt/infra-android/tools/adb', 'shell', 'cat',\n bin_dir + 'rc'])))\nexcept ValueError:\n print \"Couldn't read the return code. Probably killed for OOM.\"\n sys.exit(1)\n", 793 "/data/local/tmp/", 794 "dm.sh" 795 ], 796 "env": { 797 "CHROME_HEADLESS": "1", 798 "PATH": "<PATH>:RECIPE_REPO[depot_tools]" 799 }, 800 "name": "dm", 801 "~followup_annotations": [ 802 "@@@STEP_LOG_LINE@python.inline@@@@", 803 "@@@STEP_LOG_LINE@python.inline@import subprocess@@@", 804 "@@@STEP_LOG_LINE@python.inline@import sys@@@", 805 "@@@STEP_LOG_LINE@python.inline@bin_dir = sys.argv[1]@@@", 806 "@@@STEP_LOG_LINE@python.inline@sh = sys.argv[2]@@@", 807 "@@@STEP_LOG_LINE@python.inline@subprocess.check_call(['/opt/infra-android/tools/adb', 'shell', 'sh', bin_dir + sh])@@@", 808 "@@@STEP_LOG_LINE@python.inline@try:@@@", 809 "@@@STEP_LOG_LINE@python.inline@ sys.exit(int(subprocess.check_output(['/opt/infra-android/tools/adb', 'shell', 'cat',@@@", 810 "@@@STEP_LOG_LINE@python.inline@ bin_dir + 'rc'])))@@@", 811 "@@@STEP_LOG_LINE@python.inline@except ValueError:@@@", 812 "@@@STEP_LOG_LINE@python.inline@ print \"Couldn't read the return code. Probably killed for OOM.\"@@@", 813 "@@@STEP_LOG_LINE@python.inline@ sys.exit(1)@@@", 814 "@@@STEP_LOG_END@python.inline@@@" 815 ] 816 }, 817 { 818 "cmd": [], 819 "name": "adb pull" 820 }, 821 { 822 "cmd": [ 823 "/opt/infra-android/tools/adb", 824 "pull", 825 "/sdcard/revenge_of_the_skiabot/dm_out", 826 "[CLEANUP]/adb_pull_tmp_1" 827 ], 828 "cwd": "[START_DIR]/skia", 829 "env": { 830 "ADB_VENDOR_KEYS": "/home/chrome-bot/.android/chrome_infrastructure_adbkey", 831 "CHROME_HEADLESS": "1", 832 "PATH": "<PATH>:RECIPE_REPO[depot_tools]" 833 }, 834 "infra_step": true, 835 "name": "adb pull.pull /sdcard/revenge_of_the_skiabot/dm_out", 836 "~followup_annotations": [ 837 "@@@STEP_NEST_LEVEL@1@@@" 838 ] 839 }, 840 { 841 "cmd": [ 842 "python", 843 "-u", 844 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", 845 "--json-output", 846 "/path/to/tmp/json", 847 "glob", 848 "[CLEANUP]/adb_pull_tmp_1", 849 "dm_out/*" 850 ], 851 "infra_step": true, 852 "name": "adb pull.list pulled files", 853 "~followup_annotations": [ 854 "@@@STEP_NEST_LEVEL@1@@@", 855 "@@@STEP_LOG_LINE@glob@[CLEANUP]/adb_pull_tmp_1/1.png@@@", 856 "@@@STEP_LOG_LINE@glob@[CLEANUP]/adb_pull_tmp_1/2.png@@@", 857 "@@@STEP_LOG_END@glob@@@" 858 ] 859 }, 860 { 861 "cmd": [ 862 "python", 863 "-u", 864 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", 865 "--json-output", 866 "/path/to/tmp/json", 867 "copy", 868 "[CLEANUP]/adb_pull_tmp_1/1.png", 869 "[START_DIR]/[SWARM_OUT_DIR]" 870 ], 871 "infra_step": true, 872 "name": "adb pull.copy 1.png", 873 "~followup_annotations": [ 874 "@@@STEP_NEST_LEVEL@1@@@" 875 ] 876 }, 877 { 878 "cmd": [ 879 "python", 880 "-u", 881 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", 882 "--json-output", 883 "/path/to/tmp/json", 884 "copy", 885 "[CLEANUP]/adb_pull_tmp_1/2.png", 886 "[START_DIR]/[SWARM_OUT_DIR]" 887 ], 888 "infra_step": true, 889 "name": "adb pull.copy 2.png", 890 "~followup_annotations": [ 891 "@@@STEP_NEST_LEVEL@1@@@" 892 ] 893 }, 894 { 895 "cmd": [ 896 "python", 897 "-u", 898 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", 899 "--json-output", 900 "/path/to/tmp/json", 901 "rmtree", 902 "[CLEANUP]/adb_pull_tmp_1" 903 ], 904 "infra_step": true, 905 "name": "adb pull.rmtree [CLEANUP]/adb_pull_tmp_1", 906 "~followup_annotations": [ 907 "@@@STEP_NEST_LEVEL@1@@@" 908 ] 909 }, 910 { 911 "cmd": [ 912 "python", 913 "-u", 914 "\nimport os\nimport subprocess\nimport sys\nout = sys.argv[1]\nlog = subprocess.check_output(['/opt/infra-android/tools/adb', 'logcat', '-d'])\nfor line in log.split('\\n'):\n tokens = line.split()\n if len(tokens) == 11 and tokens[-7] == 'F' and tokens[-3] == 'pc':\n addr, path = tokens[-2:]\n local = os.path.join(out, os.path.basename(path))\n if os.path.exists(local):\n sym = subprocess.check_output(['addr2line', '-Cfpe', local, addr])\n line = line.replace(addr, addr + ' ' + sym.strip())\n print line\n", 915 "[START_DIR]/build" 916 ], 917 "env": { 918 "CHROME_HEADLESS": "1", 919 "PATH": "<PATH>:RECIPE_REPO[depot_tools]" 920 }, 921 "infra_step": true, 922 "name": "dump log", 923 "timeout": 300, 924 "~followup_annotations": [ 925 "@@@STEP_LOG_LINE@python.inline@@@@", 926 "@@@STEP_LOG_LINE@python.inline@import os@@@", 927 "@@@STEP_LOG_LINE@python.inline@import subprocess@@@", 928 "@@@STEP_LOG_LINE@python.inline@import sys@@@", 929 "@@@STEP_LOG_LINE@python.inline@out = sys.argv[1]@@@", 930 "@@@STEP_LOG_LINE@python.inline@log = subprocess.check_output(['/opt/infra-android/tools/adb', 'logcat', '-d'])@@@", 931 "@@@STEP_LOG_LINE@python.inline@for line in log.split('\\n'):@@@", 932 "@@@STEP_LOG_LINE@python.inline@ tokens = line.split()@@@", 933 "@@@STEP_LOG_LINE@python.inline@ if len(tokens) == 11 and tokens[-7] == 'F' and tokens[-3] == 'pc':@@@", 934 "@@@STEP_LOG_LINE@python.inline@ addr, path = tokens[-2:]@@@", 935 "@@@STEP_LOG_LINE@python.inline@ local = os.path.join(out, os.path.basename(path))@@@", 936 "@@@STEP_LOG_LINE@python.inline@ if os.path.exists(local):@@@", 937 "@@@STEP_LOG_LINE@python.inline@ sym = subprocess.check_output(['addr2line', '-Cfpe', local, addr])@@@", 938 "@@@STEP_LOG_LINE@python.inline@ line = line.replace(addr, addr + ' ' + sym.strip())@@@", 939 "@@@STEP_LOG_LINE@python.inline@ print line@@@", 940 "@@@STEP_LOG_END@python.inline@@@" 941 ] 942 }, 943 { 944 "cmd": [ 945 "/opt/infra-android/tools/adb", 946 "kill-server" 947 ], 948 "cwd": "[START_DIR]/skia", 949 "env": { 950 "ADB_VENDOR_KEYS": "/home/chrome-bot/.android/chrome_infrastructure_adbkey", 951 "CHROME_HEADLESS": "1", 952 "PATH": "<PATH>:RECIPE_REPO[depot_tools]" 953 }, 954 "infra_step": true, 955 "name": "kill adb server" 956 }, 957 { 958 "name": "$result" 959 } 960]