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 (a] python.inline@@@@", 94 "@@@STEP_LOG_LINE (a] python.inline@import sys, os@@@", 95 "@@@STEP_LOG_LINE (a] python.inline@path = sys.argv[1]@@@", 96 "@@@STEP_LOG_LINE (a] python.inline@mode = int(sys.argv[2])@@@", 97 "@@@STEP_LOG_LINE (a] python.inline@if not os.path.isdir(path):@@@", 98 "@@@STEP_LOG_LINE (a] python.inline@ if os.path.exists(path):@@@", 99 "@@@STEP_LOG_LINE (a] python.inline@ print \"%s exists but is not a dir\" % path@@@", 100 "@@@STEP_LOG_LINE (a] python.inline@ sys.exit(1)@@@", 101 "@@@STEP_LOG_LINE (a] python.inline@ os.makedirs(path, mode)@@@", 102 "@@@STEP_LOG_END (a] 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 (a] python.inline@@@@", 117 "@@@STEP_LOG_LINE (a] python.inline@import sys, os@@@", 118 "@@@STEP_LOG_LINE (a] python.inline@path = sys.argv[1]@@@", 119 "@@@STEP_LOG_LINE (a] python.inline@mode = int(sys.argv[2])@@@", 120 "@@@STEP_LOG_LINE (a] python.inline@if not os.path.isdir(path):@@@", 121 "@@@STEP_LOG_LINE (a] python.inline@ if os.path.exists(path):@@@", 122 "@@@STEP_LOG_LINE (a] python.inline@ print \"%s exists but is not a dir\" % path@@@", 123 "@@@STEP_LOG_LINE (a] python.inline@ sys.exit(1)@@@", 124 "@@@STEP_LOG_LINE (a] python.inline@ os.makedirs(path, mode)@@@", 125 "@@@STEP_LOG_END (a] 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 (a] python.inline@@@@", 145 "@@@STEP_LOG_LINE (a] python.inline@import contextlib@@@", 146 "@@@STEP_LOG_LINE (a] python.inline@import math@@@", 147 "@@@STEP_LOG_LINE (a] python.inline@import socket@@@", 148 "@@@STEP_LOG_LINE (a] python.inline@import sys@@@", 149 "@@@STEP_LOG_LINE (a] python.inline@import time@@@", 150 "@@@STEP_LOG_LINE (a] python.inline@import urllib2@@@", 151 "@@@STEP_LOG_LINE (a] python.inline@@@@", 152 "@@@STEP_LOG_LINE (a] python.inline@HASHES_URL = 'https://gold.skia.org/_/hashes'@@@", 153 "@@@STEP_LOG_LINE (a] python.inline@RETRIES = 5@@@", 154 "@@@STEP_LOG_LINE (a] python.inline@TIMEOUT = 60@@@", 155 "@@@STEP_LOG_LINE (a] python.inline@WAIT_BASE = 15@@@", 156 "@@@STEP_LOG_LINE (a] python.inline@@@@", 157 "@@@STEP_LOG_LINE (a] python.inline@socket.setdefaulttimeout(TIMEOUT)@@@", 158 "@@@STEP_LOG_LINE (a] python.inline@for retry in range(RETRIES):@@@", 159 "@@@STEP_LOG_LINE (a] python.inline@ try:@@@", 160 "@@@STEP_LOG_LINE (a] python.inline@ with contextlib.closing(@@@", 161 "@@@STEP_LOG_LINE (a] python.inline@ urllib2.urlopen(HASHES_URL, timeout=TIMEOUT)) as w:@@@", 162 "@@@STEP_LOG_LINE (a] python.inline@ hashes = w.read()@@@", 163 "@@@STEP_LOG_LINE (a] python.inline@ with open(sys.argv[1], 'w') as f:@@@", 164 "@@@STEP_LOG_LINE (a] python.inline@ f.write(hashes)@@@", 165 "@@@STEP_LOG_LINE (a] python.inline@ break@@@", 166 "@@@STEP_LOG_LINE (a] python.inline@ except Exception as e:@@@", 167 "@@@STEP_LOG_LINE (a] python.inline@ print 'Failed to get uninteresting hashes from %s:' % HASHES_URL@@@", 168 "@@@STEP_LOG_LINE (a] python.inline@ print e@@@", 169 "@@@STEP_LOG_LINE (a] python.inline@ if retry == RETRIES:@@@", 170 "@@@STEP_LOG_LINE (a] python.inline@ raise@@@", 171 "@@@STEP_LOG_LINE (a] python.inline@ waittime = WAIT_BASE * math.pow(2, retry)@@@", 172 "@@@STEP_LOG_LINE (a] python.inline@ print 'Retry in %d seconds.' % waittime@@@", 173 "@@@STEP_LOG_LINE (a] python.inline@ time.sleep(waittime)@@@", 174 "@@@STEP_LOG_END (a] python.inline@@@" 175 ] 176 }, 177 { 178 "cmd": [ 179 "[START_DIR]/out/Debug/dm", 180 "--undefok", 181 "--resourcePath", 182 "[START_DIR]/skia/resources", 183 "--skps", 184 "[START_DIR]/skp", 185 "--images", 186 "[START_DIR]/skimage/dm", 187 "--colorImages", 188 "[START_DIR]/skimage/colorspace", 189 "--nameByHash", 190 "--properties", 191 "gitHash", 192 "abc123", 193 "master", 194 "client.skia", 195 "builder", 196 "Test-Mac-Clang-MacMini6.2-GPU-HD4000-x86_64-Debug-CommandBuffer", 197 "build_number", 198 "5", 199 "--svgs", 200 "[START_DIR]/svg", 201 "--key", 202 "arch", 203 "x86_64", 204 "compiler", 205 "Clang", 206 "configuration", 207 "Debug", 208 "cpu_or_gpu", 209 "GPU", 210 "cpu_or_gpu_value", 211 "HD4000", 212 "extra_config", 213 "CommandBuffer", 214 "model", 215 "MacMini6.2", 216 "os", 217 "Mac", 218 "--uninterestingHashesFile", 219 "[START_DIR]/tmp/uninteresting_hashes.txt", 220 "--writePath", 221 "[CUSTOM_[SWARM_OUT_DIR]]/dm", 222 "--nocpu", 223 "--randomProcessorTest", 224 "--config", 225 "commandbuffer", 226 "--src", 227 "tests", 228 "gm", 229 "image", 230 "colorImage", 231 "svg", 232 "--blacklist", 233 "_", 234 "image", 235 "gen_platf", 236 "rgba32abf.bmp", 237 "_", 238 "image", 239 "gen_platf", 240 "rgb24prof.bmp", 241 "_", 242 "image", 243 "gen_platf", 244 "rgb24lprof.bmp", 245 "_", 246 "image", 247 "gen_platf", 248 "8bpp-pixeldata-cropped.bmp", 249 "_", 250 "image", 251 "gen_platf", 252 "4bpp-pixeldata-cropped.bmp", 253 "_", 254 "image", 255 "gen_platf", 256 "32bpp-pixeldata-cropped.bmp", 257 "_", 258 "image", 259 "gen_platf", 260 "24bpp-pixeldata-cropped.bmp", 261 "_", 262 "image", 263 "gen_platf", 264 "frame_larger_than_image.gif", 265 "_", 266 "image", 267 "gen_platf", 268 "inc0.png", 269 "_", 270 "image", 271 "gen_platf", 272 "inc1.png", 273 "_", 274 "image", 275 "gen_platf", 276 "inc2.png", 277 "_", 278 "image", 279 "gen_platf", 280 "inc3.png", 281 "_", 282 "image", 283 "gen_platf", 284 "inc4.png", 285 "_", 286 "image", 287 "gen_platf", 288 "inc5.png", 289 "_", 290 "image", 291 "gen_platf", 292 "inc6.png", 293 "_", 294 "image", 295 "gen_platf", 296 "inc7.png", 297 "_", 298 "image", 299 "gen_platf", 300 "inc8.png", 301 "_", 302 "image", 303 "gen_platf", 304 "inc9.png", 305 "_", 306 "image", 307 "gen_platf", 308 "inc10.png", 309 "_", 310 "image", 311 "gen_platf", 312 "inc11.png", 313 "_", 314 "image", 315 "gen_platf", 316 "inc12.png", 317 "_", 318 "image", 319 "gen_platf", 320 "inc13.png", 321 "_", 322 "image", 323 "gen_platf", 324 "inc14.png", 325 "_", 326 "image", 327 "_", 328 "interlaced1.png", 329 "_", 330 "image", 331 "_", 332 "interlaced2.png", 333 "_", 334 "image", 335 "_", 336 "interlaced3.png", 337 "_", 338 "image", 339 "_", 340 ".arw", 341 "_", 342 "image", 343 "_", 344 ".cr2", 345 "_", 346 "image", 347 "_", 348 ".dng", 349 "_", 350 "image", 351 "_", 352 ".nef", 353 "_", 354 "image", 355 "_", 356 ".nrw", 357 "_", 358 "image", 359 "_", 360 ".orf", 361 "_", 362 "image", 363 "_", 364 ".raf", 365 "_", 366 "image", 367 "_", 368 ".rw2", 369 "_", 370 "image", 371 "_", 372 ".pef", 373 "_", 374 "image", 375 "_", 376 ".srw", 377 "_", 378 "image", 379 "_", 380 ".ARW", 381 "_", 382 "image", 383 "_", 384 ".CR2", 385 "_", 386 "image", 387 "_", 388 ".DNG", 389 "_", 390 "image", 391 "_", 392 ".NEF", 393 "_", 394 "image", 395 "_", 396 ".NRW", 397 "_", 398 "image", 399 "_", 400 ".ORF", 401 "_", 402 "image", 403 "_", 404 ".RAF", 405 "_", 406 "image", 407 "_", 408 ".RW2", 409 "_", 410 "image", 411 "_", 412 ".PEF", 413 "_", 414 "image", 415 "_", 416 ".SRW" 417 ], 418 "env": { 419 "BUILDTYPE": "Debug", 420 "CHROME_HEADLESS": "1", 421 "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]", 422 "SKIA_OUT": "[START_DIR]/out" 423 }, 424 "name": "dm" 425 }, 426 { 427 "name": "$result", 428 "recipe_result": null, 429 "status_code": 0 430 } 431 ]