Matt Sarett | 3adf1c3 | 2017-03-21 13:13:22 -0400 | [diff] [blame] | 1 | [ |
| 2 | { |
| 3 | "cmd": [ |
| 4 | "python", |
| 5 | "-u", |
| 6 | "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n", |
| 7 | "[START_DIR]/skia/infra/bots/assets/skp/VERSION", |
| 8 | "/path/to/tmp/" |
| 9 | ], |
| 10 | "infra_step": true, |
| 11 | "name": "Get downloaded SKP VERSION" |
| 12 | }, |
| 13 | { |
| 14 | "cmd": [ |
| 15 | "python", |
| 16 | "-u", |
| 17 | "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n", |
| 18 | "42", |
| 19 | "[START_DIR]/tmp/SKP_VERSION" |
| 20 | ], |
| 21 | "infra_step": true, |
| 22 | "name": "write SKP_VERSION" |
| 23 | }, |
| 24 | { |
| 25 | "cmd": [ |
| 26 | "python", |
| 27 | "-u", |
| 28 | "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n", |
| 29 | "[START_DIR]/skia/infra/bots/assets/skimage/VERSION", |
| 30 | "/path/to/tmp/" |
| 31 | ], |
| 32 | "infra_step": true, |
| 33 | "name": "Get downloaded skimage VERSION" |
| 34 | }, |
| 35 | { |
| 36 | "cmd": [ |
| 37 | "python", |
| 38 | "-u", |
| 39 | "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n", |
| 40 | "42", |
| 41 | "[START_DIR]/tmp/SK_IMAGE_VERSION" |
| 42 | ], |
| 43 | "infra_step": true, |
| 44 | "name": "write SK_IMAGE_VERSION" |
| 45 | }, |
| 46 | { |
| 47 | "cmd": [ |
| 48 | "python", |
| 49 | "-u", |
| 50 | "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n", |
| 51 | "[START_DIR]/skia/infra/bots/assets/svg/VERSION", |
| 52 | "/path/to/tmp/" |
| 53 | ], |
| 54 | "infra_step": true, |
| 55 | "name": "Get downloaded SVG VERSION" |
| 56 | }, |
| 57 | { |
| 58 | "cmd": [ |
| 59 | "python", |
| 60 | "-u", |
| 61 | "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n", |
| 62 | "42", |
| 63 | "[START_DIR]/tmp/SVG_VERSION" |
| 64 | ], |
| 65 | "infra_step": true, |
| 66 | "name": "write SVG_VERSION" |
| 67 | }, |
| 68 | { |
| 69 | "cmd": [ |
| 70 | "python", |
| 71 | "-u", |
| 72 | "RECIPE_MODULE[build::file]/resources/fileutil.py", |
| 73 | "rmtree", |
| 74 | "[CUSTOM_[SWARM_OUT_DIR]]/dm" |
| 75 | ], |
| 76 | "env": { |
| 77 | "PYTHONPATH": "[START_DIR]/skia/infra/bots/.recipe_deps/build/scripts" |
| 78 | }, |
| 79 | "infra_step": true, |
| 80 | "name": "rmtree dm" |
| 81 | }, |
| 82 | { |
| 83 | "cmd": [ |
| 84 | "python", |
| 85 | "-u", |
| 86 | "\nimport sys, os\npath = sys.argv[1]\nmode = int(sys.argv[2])\nif not os.path.isdir(path):\n if os.path.exists(path):\n print \"%s exists but is not a dir\" % path\n sys.exit(1)\n os.makedirs(path, mode)\n", |
| 87 | "[CUSTOM_[SWARM_OUT_DIR]]/dm", |
| 88 | "511" |
| 89 | ], |
| 90 | "infra_step": true, |
| 91 | "name": "makedirs dm", |
| 92 | "~followup_annotations": [ |
| 93 | "@@@STEP_LOG_LINE@python.inline@@@@", |
| 94 | "@@@STEP_LOG_LINE@python.inline@import sys, os@@@", |
| 95 | "@@@STEP_LOG_LINE@python.inline@path = sys.argv[1]@@@", |
| 96 | "@@@STEP_LOG_LINE@python.inline@mode = int(sys.argv[2])@@@", |
| 97 | "@@@STEP_LOG_LINE@python.inline@if not os.path.isdir(path):@@@", |
| 98 | "@@@STEP_LOG_LINE@python.inline@ if os.path.exists(path):@@@", |
| 99 | "@@@STEP_LOG_LINE@python.inline@ print \"%s exists but is not a dir\" % path@@@", |
| 100 | "@@@STEP_LOG_LINE@python.inline@ sys.exit(1)@@@", |
| 101 | "@@@STEP_LOG_LINE@python.inline@ os.makedirs(path, mode)@@@", |
| 102 | "@@@STEP_LOG_END@python.inline@@@" |
| 103 | ] |
| 104 | }, |
| 105 | { |
| 106 | "cmd": [ |
| 107 | "python", |
| 108 | "-u", |
| 109 | "\nimport sys, os\npath = sys.argv[1]\nmode = int(sys.argv[2])\nif not os.path.isdir(path):\n if os.path.exists(path):\n print \"%s exists but is not a dir\" % path\n sys.exit(1)\n os.makedirs(path, mode)\n", |
| 110 | "[START_DIR]/tmp", |
| 111 | "511" |
| 112 | ], |
| 113 | "infra_step": true, |
| 114 | "name": "makedirs tmp_dir", |
| 115 | "~followup_annotations": [ |
| 116 | "@@@STEP_LOG_LINE@python.inline@@@@", |
| 117 | "@@@STEP_LOG_LINE@python.inline@import sys, os@@@", |
| 118 | "@@@STEP_LOG_LINE@python.inline@path = sys.argv[1]@@@", |
| 119 | "@@@STEP_LOG_LINE@python.inline@mode = int(sys.argv[2])@@@", |
| 120 | "@@@STEP_LOG_LINE@python.inline@if not os.path.isdir(path):@@@", |
| 121 | "@@@STEP_LOG_LINE@python.inline@ if os.path.exists(path):@@@", |
| 122 | "@@@STEP_LOG_LINE@python.inline@ print \"%s exists but is not a dir\" % path@@@", |
| 123 | "@@@STEP_LOG_LINE@python.inline@ sys.exit(1)@@@", |
| 124 | "@@@STEP_LOG_LINE@python.inline@ os.makedirs(path, mode)@@@", |
| 125 | "@@@STEP_LOG_END@python.inline@@@" |
| 126 | ] |
| 127 | }, |
| 128 | { |
| 129 | "cmd": [ |
| 130 | "python", |
| 131 | "-u", |
| 132 | "\nimport contextlib\nimport math\nimport socket\nimport sys\nimport time\nimport urllib2\n\nHASHES_URL = 'https://gold.skia.org/_/hashes'\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", |
| 133 | "[START_DIR]/tmp/uninteresting_hashes.txt" |
| 134 | ], |
| 135 | "env": { |
| 136 | "BUILDTYPE": "Debug", |
| 137 | "CHROME_HEADLESS": "1", |
| 138 | "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]", |
| 139 | "SKIA_OUT": "[START_DIR]/out" |
| 140 | }, |
| 141 | "infra_step": true, |
| 142 | "name": "get uninteresting hashes", |
| 143 | "~followup_annotations": [ |
| 144 | "@@@STEP_LOG_LINE@python.inline@@@@", |
| 145 | "@@@STEP_LOG_LINE@python.inline@import contextlib@@@", |
| 146 | "@@@STEP_LOG_LINE@python.inline@import math@@@", |
| 147 | "@@@STEP_LOG_LINE@python.inline@import socket@@@", |
| 148 | "@@@STEP_LOG_LINE@python.inline@import sys@@@", |
| 149 | "@@@STEP_LOG_LINE@python.inline@import time@@@", |
| 150 | "@@@STEP_LOG_LINE@python.inline@import urllib2@@@", |
| 151 | "@@@STEP_LOG_LINE@python.inline@@@@", |
| 152 | "@@@STEP_LOG_LINE@python.inline@HASHES_URL = 'https://gold.skia.org/_/hashes'@@@", |
| 153 | "@@@STEP_LOG_LINE@python.inline@RETRIES = 5@@@", |
| 154 | "@@@STEP_LOG_LINE@python.inline@TIMEOUT = 60@@@", |
| 155 | "@@@STEP_LOG_LINE@python.inline@WAIT_BASE = 15@@@", |
| 156 | "@@@STEP_LOG_LINE@python.inline@@@@", |
| 157 | "@@@STEP_LOG_LINE@python.inline@socket.setdefaulttimeout(TIMEOUT)@@@", |
| 158 | "@@@STEP_LOG_LINE@python.inline@for retry in range(RETRIES):@@@", |
| 159 | "@@@STEP_LOG_LINE@python.inline@ try:@@@", |
| 160 | "@@@STEP_LOG_LINE@python.inline@ with contextlib.closing(@@@", |
| 161 | "@@@STEP_LOG_LINE@python.inline@ urllib2.urlopen(HASHES_URL, timeout=TIMEOUT)) as w:@@@", |
| 162 | "@@@STEP_LOG_LINE@python.inline@ hashes = w.read()@@@", |
| 163 | "@@@STEP_LOG_LINE@python.inline@ with open(sys.argv[1], 'w') as f:@@@", |
| 164 | "@@@STEP_LOG_LINE@python.inline@ f.write(hashes)@@@", |
| 165 | "@@@STEP_LOG_LINE@python.inline@ break@@@", |
| 166 | "@@@STEP_LOG_LINE@python.inline@ except Exception as e:@@@", |
| 167 | "@@@STEP_LOG_LINE@python.inline@ print 'Failed to get uninteresting hashes from %s:' % HASHES_URL@@@", |
| 168 | "@@@STEP_LOG_LINE@python.inline@ print e@@@", |
| 169 | "@@@STEP_LOG_LINE@python.inline@ if retry == RETRIES:@@@", |
| 170 | "@@@STEP_LOG_LINE@python.inline@ raise@@@", |
| 171 | "@@@STEP_LOG_LINE@python.inline@ waittime = WAIT_BASE * math.pow(2, retry)@@@", |
| 172 | "@@@STEP_LOG_LINE@python.inline@ print 'Retry in %d seconds.' % waittime@@@", |
| 173 | "@@@STEP_LOG_LINE@python.inline@ time.sleep(waittime)@@@", |
| 174 | "@@@STEP_LOG_END@python.inline@@@" |
| 175 | ] |
| 176 | }, |
| 177 | { |
| 178 | "cmd": [ |
| 179 | "python", |
| 180 | "-u", |
Eric Boren | 6276a7c | 2017-04-06 12:53:31 +0000 | [diff] [blame^] | 181 | "[START_DIR]/skia/infra/bots/recipe_modules/core/resources/symbolize_stack_trace.py", |
Matt Sarett | 3adf1c3 | 2017-03-21 13:13:22 -0400 | [diff] [blame] | 182 | "[START_DIR]", |
| 183 | "catchsegv", |
| 184 | "[START_DIR]/out/Debug/dm", |
| 185 | "--undefok", |
| 186 | "--resourcePath", |
| 187 | "[START_DIR]/skia/resources", |
| 188 | "--skps", |
| 189 | "[START_DIR]/skp", |
| 190 | "--images", |
| 191 | "[START_DIR]/skimage/dm", |
| 192 | "--colorImages", |
| 193 | "[START_DIR]/skimage/colorspace", |
| 194 | "--nameByHash", |
| 195 | "--properties", |
| 196 | "gitHash", |
| 197 | "abc123", |
| 198 | "master", |
| 199 | "client.skia", |
| 200 | "builder", |
| 201 | "Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug-SK_USE_DISCARDABLE_SCALEDIMAGECACHE", |
| 202 | "build_number", |
| 203 | "5", |
| 204 | "--svgs", |
| 205 | "[START_DIR]/svg", |
| 206 | "--key", |
| 207 | "arch", |
| 208 | "x86_64", |
| 209 | "compiler", |
| 210 | "GCC", |
| 211 | "configuration", |
| 212 | "Debug", |
| 213 | "cpu_or_gpu", |
| 214 | "CPU", |
| 215 | "cpu_or_gpu_value", |
| 216 | "AVX2", |
| 217 | "extra_config", |
| 218 | "SK_USE_DISCARDABLE_SCALEDIMAGECACHE", |
| 219 | "model", |
| 220 | "GCE", |
| 221 | "os", |
| 222 | "Ubuntu", |
| 223 | "--uninterestingHashesFile", |
| 224 | "[START_DIR]/tmp/uninteresting_hashes.txt", |
| 225 | "--writePath", |
| 226 | "[CUSTOM_[SWARM_OUT_DIR]]/dm", |
| 227 | "--nogpu", |
| 228 | "--randomProcessorTest", |
| 229 | "--threads", |
| 230 | "0", |
| 231 | "--config", |
| 232 | "8888", |
| 233 | "srgb", |
| 234 | "pdf", |
| 235 | "gl", |
| 236 | "gldft", |
| 237 | "glsrgb", |
| 238 | "glmsaa8", |
| 239 | "565", |
| 240 | "f16", |
| 241 | "sp-8888", |
| 242 | "2ndpic-8888", |
| 243 | "lite-8888", |
| 244 | "gbr-8888", |
| 245 | "serialize-8888", |
| 246 | "tiles_rt-8888", |
| 247 | "pic-8888", |
| 248 | "--src", |
| 249 | "tests", |
| 250 | "gm", |
| 251 | "image", |
| 252 | "colorImage", |
| 253 | "svg", |
| 254 | "--blacklist", |
| 255 | "f16", |
| 256 | "_", |
| 257 | "_", |
| 258 | "dstreadshuffle", |
| 259 | "glsrgb", |
| 260 | "image", |
| 261 | "_", |
| 262 | "_", |
| 263 | "8888", |
| 264 | "image", |
| 265 | "_", |
| 266 | "_", |
| 267 | "gbr-8888", |
| 268 | "image", |
| 269 | "_", |
| 270 | "_", |
| 271 | "gbr-8888", |
| 272 | "colorImage", |
| 273 | "_", |
| 274 | "_", |
| 275 | "serialize-8888", |
| 276 | "gm", |
| 277 | "_", |
| 278 | "bleed_image", |
| 279 | "serialize-8888", |
| 280 | "gm", |
| 281 | "_", |
| 282 | "c_gms", |
| 283 | "serialize-8888", |
| 284 | "gm", |
| 285 | "_", |
| 286 | "colortype", |
| 287 | "serialize-8888", |
| 288 | "gm", |
| 289 | "_", |
| 290 | "colortype_xfermodes", |
| 291 | "serialize-8888", |
| 292 | "gm", |
| 293 | "_", |
| 294 | "drawfilter", |
| 295 | "serialize-8888", |
| 296 | "gm", |
| 297 | "_", |
| 298 | "fontmgr_bounds_0.75_0", |
| 299 | "serialize-8888", |
| 300 | "gm", |
| 301 | "_", |
| 302 | "fontmgr_bounds_1_-0.25", |
| 303 | "serialize-8888", |
| 304 | "gm", |
| 305 | "_", |
| 306 | "fontmgr_bounds", |
| 307 | "serialize-8888", |
| 308 | "gm", |
| 309 | "_", |
| 310 | "fontmgr_match", |
| 311 | "serialize-8888", |
| 312 | "gm", |
| 313 | "_", |
| 314 | "fontmgr_iter", |
| 315 | "serialize-8888", |
| 316 | "gm", |
| 317 | "_", |
| 318 | "imagemasksubset", |
| 319 | "serialize-8888", |
| 320 | "gm", |
| 321 | "_", |
| 322 | "bitmapfilters", |
| 323 | "serialize-8888", |
| 324 | "gm", |
| 325 | "_", |
| 326 | "bitmapshaders", |
| 327 | "serialize-8888", |
| 328 | "gm", |
| 329 | "_", |
| 330 | "bleed", |
| 331 | "serialize-8888", |
| 332 | "gm", |
| 333 | "_", |
| 334 | "bleed_alpha_bmp", |
| 335 | "serialize-8888", |
| 336 | "gm", |
| 337 | "_", |
| 338 | "bleed_alpha_bmp_shader", |
| 339 | "serialize-8888", |
| 340 | "gm", |
| 341 | "_", |
| 342 | "convex_poly_clip", |
| 343 | "serialize-8888", |
| 344 | "gm", |
| 345 | "_", |
| 346 | "extractalpha", |
| 347 | "serialize-8888", |
| 348 | "gm", |
| 349 | "_", |
| 350 | "filterbitmap_checkerboard_32_32_g8", |
| 351 | "serialize-8888", |
| 352 | "gm", |
| 353 | "_", |
| 354 | "filterbitmap_image_mandrill_64", |
| 355 | "serialize-8888", |
| 356 | "gm", |
| 357 | "_", |
| 358 | "shadows", |
| 359 | "serialize-8888", |
| 360 | "gm", |
| 361 | "_", |
| 362 | "simpleaaclip_aaclip", |
| 363 | "serialize-8888", |
| 364 | "gm", |
| 365 | "_", |
| 366 | "composeshader_bitmap", |
| 367 | "serialize-8888", |
| 368 | "gm", |
| 369 | "_", |
| 370 | "scaled_tilemodes_npot", |
| 371 | "serialize-8888", |
| 372 | "gm", |
| 373 | "_", |
| 374 | "scaled_tilemodes", |
| 375 | "serialize-8888", |
| 376 | "gm", |
| 377 | "_", |
| 378 | "typefacerendering_pfaMac", |
| 379 | "serialize-8888", |
| 380 | "gm", |
| 381 | "_", |
| 382 | "parsedpaths", |
| 383 | "serialize-8888", |
| 384 | "gm", |
| 385 | "_", |
| 386 | "ImageGeneratorExternal_rect", |
| 387 | "serialize-8888", |
| 388 | "gm", |
| 389 | "_", |
| 390 | "ImageGeneratorExternal_shader", |
| 391 | "serialize-8888", |
| 392 | "gm", |
| 393 | "_", |
| 394 | "shadow_utils", |
| 395 | "serialize-8888", |
| 396 | "gm", |
| 397 | "_", |
| 398 | "bleed_alpha_image", |
| 399 | "serialize-8888", |
| 400 | "gm", |
| 401 | "_", |
| 402 | "bleed_alpha_image_shader", |
| 403 | "sp-8888", |
| 404 | "gm", |
| 405 | "_", |
| 406 | "drawfilter", |
| 407 | "pic-8888", |
| 408 | "gm", |
| 409 | "_", |
| 410 | "drawfilter", |
| 411 | "2ndpic-8888", |
| 412 | "gm", |
| 413 | "_", |
| 414 | "drawfilter", |
| 415 | "lite-8888", |
| 416 | "gm", |
| 417 | "_", |
| 418 | "drawfilter", |
| 419 | "sp-8888", |
| 420 | "gm", |
| 421 | "_", |
| 422 | "image-cacherator-from-picture", |
| 423 | "pic-8888", |
| 424 | "gm", |
| 425 | "_", |
| 426 | "image-cacherator-from-picture", |
| 427 | "2ndpic-8888", |
| 428 | "gm", |
| 429 | "_", |
| 430 | "image-cacherator-from-picture", |
| 431 | "serialize-8888", |
| 432 | "gm", |
| 433 | "_", |
| 434 | "image-cacherator-from-picture", |
| 435 | "sp-8888", |
| 436 | "gm", |
| 437 | "_", |
| 438 | "image-cacherator-from-raster", |
| 439 | "pic-8888", |
| 440 | "gm", |
| 441 | "_", |
| 442 | "image-cacherator-from-raster", |
| 443 | "2ndpic-8888", |
| 444 | "gm", |
| 445 | "_", |
| 446 | "image-cacherator-from-raster", |
| 447 | "serialize-8888", |
| 448 | "gm", |
| 449 | "_", |
| 450 | "image-cacherator-from-raster", |
| 451 | "sp-8888", |
| 452 | "gm", |
| 453 | "_", |
| 454 | "image-cacherator-from-ctable", |
| 455 | "pic-8888", |
| 456 | "gm", |
| 457 | "_", |
| 458 | "image-cacherator-from-ctable", |
| 459 | "2ndpic-8888", |
| 460 | "gm", |
| 461 | "_", |
| 462 | "image-cacherator-from-ctable", |
| 463 | "serialize-8888", |
| 464 | "gm", |
| 465 | "_", |
| 466 | "image-cacherator-from-ctable", |
| 467 | "sp-8888", |
| 468 | "gm", |
| 469 | "_", |
| 470 | "gamut", |
| 471 | "pic-8888", |
| 472 | "gm", |
| 473 | "_", |
| 474 | "gamut", |
| 475 | "lite-8888", |
| 476 | "gm", |
| 477 | "_", |
| 478 | "gamut", |
| 479 | "2ndpic-8888", |
| 480 | "gm", |
| 481 | "_", |
| 482 | "gamut", |
| 483 | "serialize-8888", |
| 484 | "gm", |
| 485 | "_", |
| 486 | "gamut", |
| 487 | "sp-8888", |
| 488 | "gm", |
| 489 | "_", |
| 490 | "complexclip4_bw", |
| 491 | "pic-8888", |
| 492 | "gm", |
| 493 | "_", |
| 494 | "complexclip4_bw", |
| 495 | "lite-8888", |
| 496 | "gm", |
| 497 | "_", |
| 498 | "complexclip4_bw", |
| 499 | "2ndpic-8888", |
| 500 | "gm", |
| 501 | "_", |
| 502 | "complexclip4_bw", |
| 503 | "serialize-8888", |
| 504 | "gm", |
| 505 | "_", |
| 506 | "complexclip4_bw", |
| 507 | "sp-8888", |
| 508 | "gm", |
| 509 | "_", |
| 510 | "complexclip4_aa", |
| 511 | "pic-8888", |
| 512 | "gm", |
| 513 | "_", |
| 514 | "complexclip4_aa", |
| 515 | "lite-8888", |
| 516 | "gm", |
| 517 | "_", |
| 518 | "complexclip4_aa", |
| 519 | "2ndpic-8888", |
| 520 | "gm", |
| 521 | "_", |
| 522 | "complexclip4_aa", |
| 523 | "serialize-8888", |
| 524 | "gm", |
| 525 | "_", |
| 526 | "complexclip4_aa", |
| 527 | "tiles_rt-8888", |
| 528 | "gm", |
| 529 | "_", |
| 530 | "complexclip4_bw", |
| 531 | "tiles_rt-8888", |
| 532 | "gm", |
| 533 | "_", |
| 534 | "complexclip4_aa" |
| 535 | ], |
| 536 | "cwd": "[START_DIR]/skia", |
| 537 | "env": { |
| 538 | "BUILDTYPE": "Debug", |
| 539 | "CHROME_HEADLESS": "1", |
| 540 | "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]", |
| 541 | "SKIA_OUT": "[START_DIR]/out" |
| 542 | }, |
| 543 | "name": "symbolized dm" |
| 544 | }, |
| 545 | { |
| 546 | "name": "$result", |
| 547 | "recipe_result": null, |
| 548 | "status_code": 0 |
| 549 | } |
| 550 | ] |