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",
181      "[START_DIR]/skia/infra/bots/recipe_modules/core/resources/symbolize_stack_trace.py",
182      "[START_DIR]",
183      "[START_DIR]/out/Debug/dm",
184      "--undefok",
185      "--resourcePath",
186      "[START_DIR]/skia/resources",
187      "--skps",
188      "[START_DIR]/skp",
189      "--images",
190      "[START_DIR]/skimage/dm",
191      "--colorImages",
192      "[START_DIR]/skimage/colorspace",
193      "--nameByHash",
194      "--properties",
195      "gitHash",
196      "abc123",
197      "master",
198      "client.skia",
199      "builder",
200      "Test-Ubuntu16-Clang-NUCDE3815TYKHE-GPU-IntelBayTrail-x86_64-Debug",
201      "build_number",
202      "5",
203      "--svgs",
204      "[START_DIR]/svg",
205      "--key",
206      "arch",
207      "x86_64",
208      "compiler",
209      "Clang",
210      "configuration",
211      "Debug",
212      "cpu_or_gpu",
213      "GPU",
214      "cpu_or_gpu_value",
215      "IntelBayTrail",
216      "model",
217      "NUCDE3815TYKHE",
218      "os",
219      "Ubuntu16",
220      "--uninterestingHashesFile",
221      "[START_DIR]/tmp/uninteresting_hashes.txt",
222      "--writePath",
223      "[CUSTOM_[SWARM_OUT_DIR]]/dm",
224      "--nocpu",
225      "--randomProcessorTest",
226      "--config",
227      "8888",
228      "srgb",
229      "pdf",
230      "gl",
231      "gldft",
232      "glsrgb",
233      "gles",
234      "glesdft",
235      "glessrgb",
236      "serialize-8888",
237      "tiles_rt-8888",
238      "pic-8888",
239      "--src",
240      "tests",
241      "gm",
242      "image",
243      "colorImage",
244      "svg",
245      "--blacklist",
246      "glsrgb",
247      "image",
248      "_",
249      "_",
250      "glessrgb",
251      "image",
252      "_",
253      "_",
254      "8888",
255      "image",
256      "_",
257      "_",
258      "serialize-8888",
259      "gm",
260      "_",
261      "bleed_image",
262      "serialize-8888",
263      "gm",
264      "_",
265      "c_gms",
266      "serialize-8888",
267      "gm",
268      "_",
269      "colortype",
270      "serialize-8888",
271      "gm",
272      "_",
273      "colortype_xfermodes",
274      "serialize-8888",
275      "gm",
276      "_",
277      "drawfilter",
278      "serialize-8888",
279      "gm",
280      "_",
281      "fontmgr_bounds_0.75_0",
282      "serialize-8888",
283      "gm",
284      "_",
285      "fontmgr_bounds_1_-0.25",
286      "serialize-8888",
287      "gm",
288      "_",
289      "fontmgr_bounds",
290      "serialize-8888",
291      "gm",
292      "_",
293      "fontmgr_match",
294      "serialize-8888",
295      "gm",
296      "_",
297      "fontmgr_iter",
298      "serialize-8888",
299      "gm",
300      "_",
301      "imagemasksubset",
302      "serialize-8888",
303      "gm",
304      "_",
305      "bitmapfilters",
306      "serialize-8888",
307      "gm",
308      "_",
309      "bitmapshaders",
310      "serialize-8888",
311      "gm",
312      "_",
313      "bleed",
314      "serialize-8888",
315      "gm",
316      "_",
317      "bleed_alpha_bmp",
318      "serialize-8888",
319      "gm",
320      "_",
321      "bleed_alpha_bmp_shader",
322      "serialize-8888",
323      "gm",
324      "_",
325      "convex_poly_clip",
326      "serialize-8888",
327      "gm",
328      "_",
329      "extractalpha",
330      "serialize-8888",
331      "gm",
332      "_",
333      "filterbitmap_checkerboard_32_32_g8",
334      "serialize-8888",
335      "gm",
336      "_",
337      "filterbitmap_image_mandrill_64",
338      "serialize-8888",
339      "gm",
340      "_",
341      "shadows",
342      "serialize-8888",
343      "gm",
344      "_",
345      "simpleaaclip_aaclip",
346      "serialize-8888",
347      "gm",
348      "_",
349      "composeshader_bitmap",
350      "serialize-8888",
351      "gm",
352      "_",
353      "scaled_tilemodes_npot",
354      "serialize-8888",
355      "gm",
356      "_",
357      "scaled_tilemodes",
358      "serialize-8888",
359      "gm",
360      "_",
361      "typefacerendering_pfaMac",
362      "serialize-8888",
363      "gm",
364      "_",
365      "parsedpaths",
366      "serialize-8888",
367      "gm",
368      "_",
369      "ImageGeneratorExternal_rect",
370      "serialize-8888",
371      "gm",
372      "_",
373      "ImageGeneratorExternal_shader",
374      "serialize-8888",
375      "gm",
376      "_",
377      "shadow_utils",
378      "serialize-8888",
379      "gm",
380      "_",
381      "bleed_alpha_image",
382      "serialize-8888",
383      "gm",
384      "_",
385      "bleed_alpha_image_shader",
386      "pic-8888",
387      "gm",
388      "_",
389      "drawfilter",
390      "pic-8888",
391      "gm",
392      "_",
393      "image-cacherator-from-picture",
394      "serialize-8888",
395      "gm",
396      "_",
397      "image-cacherator-from-picture",
398      "pic-8888",
399      "gm",
400      "_",
401      "image-cacherator-from-raster",
402      "serialize-8888",
403      "gm",
404      "_",
405      "image-cacherator-from-raster",
406      "pic-8888",
407      "gm",
408      "_",
409      "image-cacherator-from-ctable",
410      "serialize-8888",
411      "gm",
412      "_",
413      "image-cacherator-from-ctable",
414      "pic-8888",
415      "gm",
416      "_",
417      "gamut",
418      "serialize-8888",
419      "gm",
420      "_",
421      "gamut",
422      "pic-8888",
423      "gm",
424      "_",
425      "complexclip4_bw",
426      "serialize-8888",
427      "gm",
428      "_",
429      "complexclip4_bw",
430      "pic-8888",
431      "gm",
432      "_",
433      "complexclip4_aa",
434      "serialize-8888",
435      "gm",
436      "_",
437      "complexclip4_aa",
438      "tiles_rt-8888",
439      "gm",
440      "_",
441      "complexclip4_bw",
442      "tiles_rt-8888",
443      "gm",
444      "_",
445      "complexclip4_aa",
446      "_",
447      "image",
448      "_",
449      "interlaced1.png",
450      "_",
451      "image",
452      "_",
453      "interlaced2.png",
454      "_",
455      "image",
456      "_",
457      "interlaced3.png",
458      "_",
459      "image",
460      "_",
461      ".arw",
462      "_",
463      "image",
464      "_",
465      ".cr2",
466      "_",
467      "image",
468      "_",
469      ".dng",
470      "_",
471      "image",
472      "_",
473      ".nef",
474      "_",
475      "image",
476      "_",
477      ".nrw",
478      "_",
479      "image",
480      "_",
481      ".orf",
482      "_",
483      "image",
484      "_",
485      ".raf",
486      "_",
487      "image",
488      "_",
489      ".rw2",
490      "_",
491      "image",
492      "_",
493      ".pef",
494      "_",
495      "image",
496      "_",
497      ".srw",
498      "_",
499      "image",
500      "_",
501      ".ARW",
502      "_",
503      "image",
504      "_",
505      ".CR2",
506      "_",
507      "image",
508      "_",
509      ".DNG",
510      "_",
511      "image",
512      "_",
513      ".NEF",
514      "_",
515      "image",
516      "_",
517      ".NRW",
518      "_",
519      "image",
520      "_",
521      ".ORF",
522      "_",
523      "image",
524      "_",
525      ".RAF",
526      "_",
527      "image",
528      "_",
529      ".RW2",
530      "_",
531      "image",
532      "_",
533      ".PEF",
534      "_",
535      "image",
536      "_",
537      ".SRW",
538      "--match",
539      "~ImageStorageLoad"
540    ],
541    "cwd": "[START_DIR]/skia",
542    "env": {
543      "BUILDTYPE": "Debug",
544      "CHROME_HEADLESS": "1",
545      "LD_LIBRARY_PATH": "[START_DIR]/linux_vulkan_intel_driver_debug",
546      "LIBGL_DRIVERS_PATH": "[START_DIR]/linux_vulkan_intel_driver_debug",
547      "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]",
548      "SKIA_OUT": "[START_DIR]/out"
549    },
550    "name": "symbolized dm"
551  },
552  {
553    "name": "$result",
554    "recipe_result": null,
555    "status_code": 0
556  }
557]