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