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 "copy", 10 "[START_DIR]\\skia\\infra\\bots\\assets\\skp\\VERSION", 11 "/path/to/tmp/" 12 ], 13 "infra_step": true, 14 "name": "Get downloaded SKP VERSION" 15 }, 16 { 17 "cmd": [ 18 "python", 19 "-u", 20 "RECIPE_MODULE[recipe_engine::file]\\resources\\fileutil.py", 21 "--json-output", 22 "/path/to/tmp/json", 23 "copy", 24 "42", 25 "[START_DIR]\\tmp\\SKP_VERSION" 26 ], 27 "infra_step": true, 28 "name": "write SKP_VERSION" 29 }, 30 { 31 "cmd": [ 32 "python", 33 "-u", 34 "RECIPE_MODULE[recipe_engine::file]\\resources\\fileutil.py", 35 "--json-output", 36 "/path/to/tmp/json", 37 "copy", 38 "[START_DIR]\\skia\\infra\\bots\\assets\\skimage\\VERSION", 39 "/path/to/tmp/" 40 ], 41 "infra_step": true, 42 "name": "Get downloaded skimage VERSION" 43 }, 44 { 45 "cmd": [ 46 "python", 47 "-u", 48 "RECIPE_MODULE[recipe_engine::file]\\resources\\fileutil.py", 49 "--json-output", 50 "/path/to/tmp/json", 51 "copy", 52 "42", 53 "[START_DIR]\\tmp\\SK_IMAGE_VERSION" 54 ], 55 "infra_step": true, 56 "name": "write SK_IMAGE_VERSION" 57 }, 58 { 59 "cmd": [ 60 "python", 61 "-u", 62 "RECIPE_MODULE[recipe_engine::file]\\resources\\fileutil.py", 63 "--json-output", 64 "/path/to/tmp/json", 65 "copy", 66 "[START_DIR]\\skia\\infra\\bots\\assets\\svg\\VERSION", 67 "/path/to/tmp/" 68 ], 69 "infra_step": true, 70 "name": "Get downloaded SVG VERSION" 71 }, 72 { 73 "cmd": [ 74 "python", 75 "-u", 76 "RECIPE_MODULE[recipe_engine::file]\\resources\\fileutil.py", 77 "--json-output", 78 "/path/to/tmp/json", 79 "copy", 80 "42", 81 "[START_DIR]\\tmp\\SVG_VERSION" 82 ], 83 "infra_step": true, 84 "name": "write SVG_VERSION" 85 }, 86 { 87 "cmd": [ 88 "python", 89 "-u", 90 "RECIPE_MODULE[recipe_engine::file]\\resources\\fileutil.py", 91 "--json-output", 92 "/path/to/tmp/json", 93 "rmtree", 94 "[CUSTOM_[SWARM_OUT_DIR]]\\dm" 95 ], 96 "infra_step": true, 97 "name": "rmtree dm" 98 }, 99 { 100 "cmd": [ 101 "python", 102 "-u", 103 "RECIPE_MODULE[recipe_engine::file]\\resources\\fileutil.py", 104 "--json-output", 105 "/path/to/tmp/json", 106 "ensure-directory", 107 "--mode", 108 "0777", 109 "[CUSTOM_[SWARM_OUT_DIR]]\\dm" 110 ], 111 "infra_step": true, 112 "name": "makedirs dm" 113 }, 114 { 115 "cmd": [ 116 "python", 117 "-u", 118 "RECIPE_MODULE[recipe_engine::file]\\resources\\fileutil.py", 119 "--json-output", 120 "/path/to/tmp/json", 121 "ensure-directory", 122 "--mode", 123 "0777", 124 "[START_DIR]\\tmp" 125 ], 126 "infra_step": true, 127 "name": "makedirs tmp_dir" 128 }, 129 { 130 "cmd": [ 131 "python", 132 "-u", 133 "\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", 134 "[START_DIR]\\tmp\\uninteresting_hashes.txt" 135 ], 136 "env": { 137 "BUILDTYPE": "Debug", 138 "CHROME_HEADLESS": "1", 139 "PATH": "<PATH>;RECIPE_PACKAGE_REPO[depot_tools]", 140 "SKIA_OUT": "[START_DIR]\\out" 141 }, 142 "infra_step": true, 143 "name": "get uninteresting hashes", 144 "~followup_annotations": [ 145 "@@@STEP_LOG_LINE (a] python.inline@@@@", 146 "@@@STEP_LOG_LINE (a] python.inline@import contextlib@@@", 147 "@@@STEP_LOG_LINE (a] python.inline@import math@@@", 148 "@@@STEP_LOG_LINE (a] python.inline@import socket@@@", 149 "@@@STEP_LOG_LINE (a] python.inline@import sys@@@", 150 "@@@STEP_LOG_LINE (a] python.inline@import time@@@", 151 "@@@STEP_LOG_LINE (a] python.inline@import urllib2@@@", 152 "@@@STEP_LOG_LINE (a] python.inline@@@@", 153 "@@@STEP_LOG_LINE (a] python.inline@HASHES_URL = 'https://storage.googleapis.com/skia-infra-gm/hash_files/gold-prod-hashes.txt'@@@", 154 "@@@STEP_LOG_LINE (a] python.inline@RETRIES = 5@@@", 155 "@@@STEP_LOG_LINE (a] python.inline@TIMEOUT = 60@@@", 156 "@@@STEP_LOG_LINE (a] python.inline@WAIT_BASE = 15@@@", 157 "@@@STEP_LOG_LINE (a] python.inline@@@@", 158 "@@@STEP_LOG_LINE (a] python.inline@socket.setdefaulttimeout(TIMEOUT)@@@", 159 "@@@STEP_LOG_LINE (a] python.inline@for retry in range(RETRIES):@@@", 160 "@@@STEP_LOG_LINE (a] python.inline@ try:@@@", 161 "@@@STEP_LOG_LINE (a] python.inline@ with contextlib.closing(@@@", 162 "@@@STEP_LOG_LINE (a] python.inline@ urllib2.urlopen(HASHES_URL, timeout=TIMEOUT)) as w:@@@", 163 "@@@STEP_LOG_LINE (a] python.inline@ hashes = w.read()@@@", 164 "@@@STEP_LOG_LINE (a] python.inline@ with open(sys.argv[1], 'w') as f:@@@", 165 "@@@STEP_LOG_LINE (a] python.inline@ f.write(hashes)@@@", 166 "@@@STEP_LOG_LINE (a] python.inline@ break@@@", 167 "@@@STEP_LOG_LINE (a] python.inline@ except Exception as e:@@@", 168 "@@@STEP_LOG_LINE (a] python.inline@ print 'Failed to get uninteresting hashes from %s:' % HASHES_URL@@@", 169 "@@@STEP_LOG_LINE (a] python.inline@ print e@@@", 170 "@@@STEP_LOG_LINE (a] python.inline@ if retry == RETRIES:@@@", 171 "@@@STEP_LOG_LINE (a] python.inline@ raise@@@", 172 "@@@STEP_LOG_LINE (a] python.inline@ waittime = WAIT_BASE * math.pow(2, retry)@@@", 173 "@@@STEP_LOG_LINE (a] python.inline@ print 'Retry in %d seconds.' % waittime@@@", 174 "@@@STEP_LOG_LINE (a] python.inline@ time.sleep(waittime)@@@", 175 "@@@STEP_LOG_END (a] python.inline@@@" 176 ] 177 }, 178 { 179 "cmd": [ 180 "python", 181 "-u", 182 "import os\nprint os.environ.get('SWARMING_BOT_ID', '')\n" 183 ], 184 "name": "get swarming bot id", 185 "stdout": "/path/to/tmp/", 186 "~followup_annotations": [ 187 "@@@STEP_LOG_LINE (a] python.inline@import os@@@", 188 "@@@STEP_LOG_LINE (a] python.inline@print os.environ.get('SWARMING_BOT_ID', '')@@@", 189 "@@@STEP_LOG_END (a] python.inline@@@" 190 ] 191 }, 192 { 193 "cmd": [ 194 "python", 195 "-u", 196 "import os\nprint os.environ.get('SWARMING_TASK_ID', '')\n" 197 ], 198 "name": "get swarming task id", 199 "stdout": "/path/to/tmp/", 200 "~followup_annotations": [ 201 "@@@STEP_LOG_LINE (a] python.inline@import os@@@", 202 "@@@STEP_LOG_LINE (a] python.inline@print os.environ.get('SWARMING_TASK_ID', '')@@@", 203 "@@@STEP_LOG_END (a] python.inline@@@" 204 ] 205 }, 206 { 207 "cmd": [ 208 "[START_DIR]\\out\\Debug\\dm", 209 "--undefok", 210 "--resourcePath", 211 "[START_DIR]\\skia\\resources", 212 "--skps", 213 "[START_DIR]\\skp", 214 "--images", 215 "[START_DIR]\\skimage\\dm", 216 "--colorImages", 217 "[START_DIR]\\skimage\\colorspace", 218 "--nameByHash", 219 "--properties", 220 "gitHash", 221 "abc123", 222 "builder", 223 "Test-Win8-MSVC-Golo-CPU-AVX-x86-Debug", 224 "swarming_bot_id", 225 "skia-bot-123", 226 "swarming_task_id", 227 "123456", 228 "--svgs", 229 "[START_DIR]\\svg", 230 "--key", 231 "arch", 232 "x86", 233 "compiler", 234 "MSVC", 235 "configuration", 236 "Debug", 237 "cpu_or_gpu", 238 "CPU", 239 "cpu_or_gpu_value", 240 "AVX", 241 "model", 242 "Golo", 243 "os", 244 "Win8", 245 "--uninterestingHashesFile", 246 "[START_DIR]\\tmp\\uninteresting_hashes.txt", 247 "--writePath", 248 "[CUSTOM_[SWARM_OUT_DIR]]\\dm", 249 "--nogpu", 250 "--randomProcessorTest", 251 "--threads", 252 "4", 253 "--config", 254 "8888", 255 "srgb", 256 "pdf", 257 "gl", 258 "gldft", 259 "glsrgb", 260 "glmsaa8", 261 "serialize-8888", 262 "tiles_rt-8888", 263 "pic-8888", 264 "--src", 265 "tests", 266 "gm", 267 "image", 268 "colorImage", 269 "svg", 270 "--blacklist", 271 "glsrgb", 272 "image", 273 "_", 274 "_", 275 "_", 276 "image", 277 "gen_platf", 278 "rle8-height-negative.bmp", 279 "_", 280 "image", 281 "gen_platf", 282 "rle4-height-negative.bmp", 283 "_", 284 "image", 285 "gen_platf", 286 "pal8os2v2.bmp", 287 "_", 288 "image", 289 "gen_platf", 290 "pal8os2v2-16.bmp", 291 "_", 292 "image", 293 "gen_platf", 294 "rgba32abf.bmp", 295 "_", 296 "image", 297 "gen_platf", 298 "rgb24prof.bmp", 299 "_", 300 "image", 301 "gen_platf", 302 "rgb24lprof.bmp", 303 "_", 304 "image", 305 "gen_platf", 306 "8bpp-pixeldata-cropped.bmp", 307 "_", 308 "image", 309 "gen_platf", 310 "4bpp-pixeldata-cropped.bmp", 311 "_", 312 "image", 313 "gen_platf", 314 "32bpp-pixeldata-cropped.bmp", 315 "_", 316 "image", 317 "gen_platf", 318 "24bpp-pixeldata-cropped.bmp", 319 "_", 320 "image", 321 "gen_platf", 322 "testimgari.jpg", 323 "serialize-8888", 324 "gm", 325 "_", 326 "bleed_image", 327 "serialize-8888", 328 "gm", 329 "_", 330 "c_gms", 331 "serialize-8888", 332 "gm", 333 "_", 334 "colortype", 335 "serialize-8888", 336 "gm", 337 "_", 338 "colortype_xfermodes", 339 "serialize-8888", 340 "gm", 341 "_", 342 "drawfilter", 343 "serialize-8888", 344 "gm", 345 "_", 346 "fontmgr_bounds_0.75_0", 347 "serialize-8888", 348 "gm", 349 "_", 350 "fontmgr_bounds_1_-0.25", 351 "serialize-8888", 352 "gm", 353 "_", 354 "fontmgr_bounds", 355 "serialize-8888", 356 "gm", 357 "_", 358 "fontmgr_match", 359 "serialize-8888", 360 "gm", 361 "_", 362 "fontmgr_iter", 363 "serialize-8888", 364 "gm", 365 "_", 366 "imagemasksubset", 367 "serialize-8888", 368 "gm", 369 "_", 370 "bitmapfilters", 371 "serialize-8888", 372 "gm", 373 "_", 374 "bitmapshaders", 375 "serialize-8888", 376 "gm", 377 "_", 378 "bleed", 379 "serialize-8888", 380 "gm", 381 "_", 382 "bleed_alpha_bmp", 383 "serialize-8888", 384 "gm", 385 "_", 386 "bleed_alpha_bmp_shader", 387 "serialize-8888", 388 "gm", 389 "_", 390 "convex_poly_clip", 391 "serialize-8888", 392 "gm", 393 "_", 394 "extractalpha", 395 "serialize-8888", 396 "gm", 397 "_", 398 "filterbitmap_checkerboard_32_32_g8", 399 "serialize-8888", 400 "gm", 401 "_", 402 "filterbitmap_image_mandrill_64", 403 "serialize-8888", 404 "gm", 405 "_", 406 "shadows", 407 "serialize-8888", 408 "gm", 409 "_", 410 "simpleaaclip_aaclip", 411 "serialize-8888", 412 "gm", 413 "_", 414 "composeshader_bitmap", 415 "serialize-8888", 416 "gm", 417 "_", 418 "scaled_tilemodes_npot", 419 "serialize-8888", 420 "gm", 421 "_", 422 "scaled_tilemodes", 423 "serialize-8888", 424 "gm", 425 "_", 426 "typefacerendering_pfaMac", 427 "serialize-8888", 428 "gm", 429 "_", 430 "parsedpaths", 431 "serialize-8888", 432 "gm", 433 "_", 434 "ImageGeneratorExternal_rect", 435 "serialize-8888", 436 "gm", 437 "_", 438 "ImageGeneratorExternal_shader", 439 "serialize-8888", 440 "gm", 441 "_", 442 "shadow_utils", 443 "serialize-8888", 444 "gm", 445 "_", 446 "makecolorspace", 447 "serialize-8888", 448 "gm", 449 "_", 450 "bleed_alpha_image", 451 "serialize-8888", 452 "gm", 453 "_", 454 "bleed_alpha_image_shader", 455 "serialize-8888", 456 "gm", 457 "_", 458 "verylargebitmap", 459 "serialize-8888", 460 "gm", 461 "_", 462 "verylarge_picture_image", 463 "pic-8888", 464 "gm", 465 "_", 466 "drawfilter", 467 "pic-8888", 468 "gm", 469 "_", 470 "image-cacherator-from-picture", 471 "serialize-8888", 472 "gm", 473 "_", 474 "image-cacherator-from-picture", 475 "pic-8888", 476 "gm", 477 "_", 478 "image-cacherator-from-raster", 479 "serialize-8888", 480 "gm", 481 "_", 482 "image-cacherator-from-raster", 483 "pic-8888", 484 "gm", 485 "_", 486 "image-cacherator-from-ctable", 487 "serialize-8888", 488 "gm", 489 "_", 490 "image-cacherator-from-ctable", 491 "pic-8888", 492 "gm", 493 "_", 494 "gamut", 495 "serialize-8888", 496 "gm", 497 "_", 498 "gamut", 499 "pic-8888", 500 "gm", 501 "_", 502 "complexclip4_bw", 503 "serialize-8888", 504 "gm", 505 "_", 506 "complexclip4_bw", 507 "pic-8888", 508 "gm", 509 "_", 510 "complexclip4_aa", 511 "serialize-8888", 512 "gm", 513 "_", 514 "complexclip4_aa", 515 "tiles_rt-8888", 516 "gm", 517 "_", 518 "complexclip4_bw", 519 "tiles_rt-8888", 520 "gm", 521 "_", 522 "complexclip4_aa", 523 "_", 524 "image", 525 "f16", 526 "_", 527 "_", 528 "image", 529 "_", 530 "abnormal.wbmp", 531 "_", 532 "image", 533 "_", 534 "interlaced1.png", 535 "_", 536 "image", 537 "_", 538 "interlaced2.png", 539 "_", 540 "image", 541 "_", 542 "interlaced3.png", 543 "_", 544 "image", 545 "_", 546 ".arw", 547 "_", 548 "image", 549 "_", 550 ".cr2", 551 "_", 552 "image", 553 "_", 554 ".dng", 555 "_", 556 "image", 557 "_", 558 ".nef", 559 "_", 560 "image", 561 "_", 562 ".nrw", 563 "_", 564 "image", 565 "_", 566 ".orf", 567 "_", 568 "image", 569 "_", 570 ".raf", 571 "_", 572 "image", 573 "_", 574 ".rw2", 575 "_", 576 "image", 577 "_", 578 ".pef", 579 "_", 580 "image", 581 "_", 582 ".srw", 583 "_", 584 "image", 585 "_", 586 ".ARW", 587 "_", 588 "image", 589 "_", 590 ".CR2", 591 "_", 592 "image", 593 "_", 594 ".DNG", 595 "_", 596 "image", 597 "_", 598 ".NEF", 599 "_", 600 "image", 601 "_", 602 ".NRW", 603 "_", 604 "image", 605 "_", 606 ".ORF", 607 "_", 608 "image", 609 "_", 610 ".RAF", 611 "_", 612 "image", 613 "_", 614 ".RW2", 615 "_", 616 "image", 617 "_", 618 ".PEF", 619 "_", 620 "image", 621 "_", 622 ".SRW" 623 ], 624 "env": { 625 "BUILDTYPE": "Debug", 626 "CHROME_HEADLESS": "1", 627 "PATH": "<PATH>;RECIPE_PACKAGE_REPO[depot_tools]", 628 "SKIA_OUT": "[START_DIR]\\out" 629 }, 630 "name": "dm" 631 }, 632 { 633 "name": "$result", 634 "recipe_result": null, 635 "status_code": 0 636 } 637 ]