• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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      "ensure-directory",
10      "--mode",
11      "0777",
12      "[START_DIR]/tmp"
13    ],
14    "infra_step": true,
15    "name": "makedirs tmp_dir"
16  },
17  {
18    "cmd": [
19      "python",
20      "-u",
21      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
22      "--json-output",
23      "/path/to/tmp/json",
24      "copy",
25      "[START_DIR]/skia/infra/bots/assets/skp/VERSION",
26      "/path/to/tmp/"
27    ],
28    "infra_step": true,
29    "name": "Get skp VERSION"
30  },
31  {
32    "cmd": [
33      "python",
34      "-u",
35      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
36      "--json-output",
37      "/path/to/tmp/json",
38      "copy",
39      "42",
40      "[START_DIR]/tmp/SKP_VERSION"
41    ],
42    "infra_step": true,
43    "name": "write SKP_VERSION",
44    "~followup_annotations": [
45      "@@@STEP_LOG_LINE@SKP_VERSION@42@@@",
46      "@@@STEP_LOG_END@SKP_VERSION@@@"
47    ]
48  },
49  {
50    "cmd": [
51      "python",
52      "-u",
53      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
54      "--json-output",
55      "/path/to/tmp/json",
56      "copy",
57      "[START_DIR]/skia/infra/bots/assets/skimage/VERSION",
58      "/path/to/tmp/"
59    ],
60    "infra_step": true,
61    "name": "Get skimage VERSION"
62  },
63  {
64    "cmd": [
65      "python",
66      "-u",
67      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
68      "--json-output",
69      "/path/to/tmp/json",
70      "copy",
71      "42",
72      "[START_DIR]/tmp/SK_IMAGE_VERSION"
73    ],
74    "infra_step": true,
75    "name": "write SK_IMAGE_VERSION",
76    "~followup_annotations": [
77      "@@@STEP_LOG_LINE@SK_IMAGE_VERSION@42@@@",
78      "@@@STEP_LOG_END@SK_IMAGE_VERSION@@@"
79    ]
80  },
81  {
82    "cmd": [
83      "python",
84      "-u",
85      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
86      "--json-output",
87      "/path/to/tmp/json",
88      "copy",
89      "[START_DIR]/skia/infra/bots/assets/svg/VERSION",
90      "/path/to/tmp/"
91    ],
92    "infra_step": true,
93    "name": "Get svg VERSION"
94  },
95  {
96    "cmd": [
97      "python",
98      "-u",
99      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
100      "--json-output",
101      "/path/to/tmp/json",
102      "copy",
103      "42",
104      "[START_DIR]/tmp/SVG_VERSION"
105    ],
106    "infra_step": true,
107    "name": "write SVG_VERSION",
108    "~followup_annotations": [
109      "@@@STEP_LOG_LINE@SVG_VERSION@42@@@",
110      "@@@STEP_LOG_END@SVG_VERSION@@@"
111    ]
112  },
113  {
114    "cmd": [
115      "python",
116      "-u",
117      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
118      "--json-output",
119      "/path/to/tmp/json",
120      "rmtree",
121      "[START_DIR]/test"
122    ],
123    "infra_step": true,
124    "name": "rmtree test"
125  },
126  {
127    "cmd": [
128      "python",
129      "-u",
130      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
131      "--json-output",
132      "/path/to/tmp/json",
133      "ensure-directory",
134      "--mode",
135      "0777",
136      "[START_DIR]/test"
137    ],
138    "infra_step": true,
139    "name": "makedirs test"
140  },
141  {
142    "cmd": [
143      "python",
144      "-u",
145      "\nimport contextlib\nimport math\nimport socket\nimport sys\nimport time\nimport urllib2\n\nHASHES_URL = sys.argv[1]\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[2], '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",
146      "https://example.com/hashes.txt",
147      "[START_DIR]/tmp/uninteresting_hashes.txt"
148    ],
149    "env": {
150      "CHROME_HEADLESS": "1",
151      "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
152    },
153    "infra_step": true,
154    "name": "get uninteresting hashes",
155    "~followup_annotations": [
156      "@@@STEP_LOG_LINE@python.inline@@@@",
157      "@@@STEP_LOG_LINE@python.inline@import contextlib@@@",
158      "@@@STEP_LOG_LINE@python.inline@import math@@@",
159      "@@@STEP_LOG_LINE@python.inline@import socket@@@",
160      "@@@STEP_LOG_LINE@python.inline@import sys@@@",
161      "@@@STEP_LOG_LINE@python.inline@import time@@@",
162      "@@@STEP_LOG_LINE@python.inline@import urllib2@@@",
163      "@@@STEP_LOG_LINE@python.inline@@@@",
164      "@@@STEP_LOG_LINE@python.inline@HASHES_URL = sys.argv[1]@@@",
165      "@@@STEP_LOG_LINE@python.inline@RETRIES = 5@@@",
166      "@@@STEP_LOG_LINE@python.inline@TIMEOUT = 60@@@",
167      "@@@STEP_LOG_LINE@python.inline@WAIT_BASE = 15@@@",
168      "@@@STEP_LOG_LINE@python.inline@@@@",
169      "@@@STEP_LOG_LINE@python.inline@socket.setdefaulttimeout(TIMEOUT)@@@",
170      "@@@STEP_LOG_LINE@python.inline@for retry in range(RETRIES):@@@",
171      "@@@STEP_LOG_LINE@python.inline@  try:@@@",
172      "@@@STEP_LOG_LINE@python.inline@    with contextlib.closing(@@@",
173      "@@@STEP_LOG_LINE@python.inline@        urllib2.urlopen(HASHES_URL, timeout=TIMEOUT)) as w:@@@",
174      "@@@STEP_LOG_LINE@python.inline@      hashes = w.read()@@@",
175      "@@@STEP_LOG_LINE@python.inline@      with open(sys.argv[2], 'w') as f:@@@",
176      "@@@STEP_LOG_LINE@python.inline@        f.write(hashes)@@@",
177      "@@@STEP_LOG_LINE@python.inline@        break@@@",
178      "@@@STEP_LOG_LINE@python.inline@  except Exception as e:@@@",
179      "@@@STEP_LOG_LINE@python.inline@    print 'Failed to get uninteresting hashes from %s:' % HASHES_URL@@@",
180      "@@@STEP_LOG_LINE@python.inline@    print e@@@",
181      "@@@STEP_LOG_LINE@python.inline@    if retry == RETRIES:@@@",
182      "@@@STEP_LOG_LINE@python.inline@      raise@@@",
183      "@@@STEP_LOG_LINE@python.inline@    waittime = WAIT_BASE * math.pow(2, retry)@@@",
184      "@@@STEP_LOG_LINE@python.inline@    print 'Retry in %d seconds.' % waittime@@@",
185      "@@@STEP_LOG_LINE@python.inline@    time.sleep(waittime)@@@",
186      "@@@STEP_LOG_END@python.inline@@@"
187    ]
188  },
189  {
190    "cmd": [
191      "python",
192      "-u",
193      "import os\nprint os.environ.get('SWARMING_BOT_ID', '')\n"
194    ],
195    "name": "get swarming bot id",
196    "~followup_annotations": [
197      "@@@STEP_LOG_LINE@python.inline@import os@@@",
198      "@@@STEP_LOG_LINE@python.inline@print os.environ.get('SWARMING_BOT_ID', '')@@@",
199      "@@@STEP_LOG_END@python.inline@@@"
200    ]
201  },
202  {
203    "cmd": [
204      "python",
205      "-u",
206      "import os\nprint os.environ.get('SWARMING_TASK_ID', '')\n"
207    ],
208    "name": "get swarming task id",
209    "~followup_annotations": [
210      "@@@STEP_LOG_LINE@python.inline@import os@@@",
211      "@@@STEP_LOG_LINE@python.inline@print os.environ.get('SWARMING_TASK_ID', '')@@@",
212      "@@@STEP_LOG_END@python.inline@@@"
213    ]
214  },
215  {
216    "cmd": [
217      "[START_DIR]/build/dm",
218      "--resourcePath",
219      "[START_DIR]/skia/resources",
220      "--skps",
221      "[START_DIR]/skp",
222      "--images",
223      "[START_DIR]/skimage/dm",
224      "--colorImages",
225      "[START_DIR]/skimage/colorspace",
226      "--nameByHash",
227      "--properties",
228      "gitHash",
229      "abc123",
230      "builder",
231      "Test-Mac10.14-Clang-MacBookAir7.2-GPU-IntelHD6000-x86_64-Debug-All",
232      "buildbucket_build_id",
233      "123454321",
234      "task_id",
235      "task_12345",
236      "swarming_bot_id",
237      "skia-bot-123",
238      "swarming_task_id",
239      "123456",
240      "--svgs",
241      "[START_DIR]/svg",
242      "--key",
243      "arch",
244      "x86_64",
245      "compiler",
246      "Clang",
247      "configuration",
248      "Debug",
249      "cpu_or_gpu",
250      "GPU",
251      "cpu_or_gpu_value",
252      "IntelHD6000",
253      "model",
254      "MacBookAir7.2",
255      "os",
256      "Mac10.14",
257      "style",
258      "default",
259      "--uninterestingHashesFile",
260      "[START_DIR]/tmp/uninteresting_hashes.txt",
261      "--writePath",
262      "[START_DIR]/[SWARM_OUT_DIR]",
263      "--dont_write",
264      "pdf",
265      "--randomProcessorTest",
266      "--nocpu",
267      "--config",
268      "gl",
269      "gldft",
270      "glsrgb",
271      "--src",
272      "tests",
273      "gm",
274      "image",
275      "colorImage",
276      "svg",
277      "--blacklist",
278      "_",
279      "svg",
280      "_",
281      "svgparse_",
282      "glsrgb",
283      "image",
284      "_",
285      "_",
286      "_",
287      "image",
288      "gen_platf",
289      "rgba32abf.bmp",
290      "_",
291      "image",
292      "gen_platf",
293      "rgb24prof.bmp",
294      "_",
295      "image",
296      "gen_platf",
297      "rgb24lprof.bmp",
298      "_",
299      "image",
300      "gen_platf",
301      "8bpp-pixeldata-cropped.bmp",
302      "_",
303      "image",
304      "gen_platf",
305      "4bpp-pixeldata-cropped.bmp",
306      "_",
307      "image",
308      "gen_platf",
309      "32bpp-pixeldata-cropped.bmp",
310      "_",
311      "image",
312      "gen_platf",
313      "24bpp-pixeldata-cropped.bmp",
314      "_",
315      "image",
316      "gen_platf",
317      "frame_larger_than_image.gif",
318      "_",
319      "image",
320      "gen_platf",
321      "inc0.png",
322      "_",
323      "image",
324      "gen_platf",
325      "inc1.png",
326      "_",
327      "image",
328      "gen_platf",
329      "inc2.png",
330      "_",
331      "image",
332      "gen_platf",
333      "inc3.png",
334      "_",
335      "image",
336      "gen_platf",
337      "inc4.png",
338      "_",
339      "image",
340      "gen_platf",
341      "inc5.png",
342      "_",
343      "image",
344      "gen_platf",
345      "inc6.png",
346      "_",
347      "image",
348      "gen_platf",
349      "inc7.png",
350      "_",
351      "image",
352      "gen_platf",
353      "inc8.png",
354      "_",
355      "image",
356      "gen_platf",
357      "inc9.png",
358      "_",
359      "image",
360      "gen_platf",
361      "inc10.png",
362      "_",
363      "image",
364      "gen_platf",
365      "inc11.png",
366      "_",
367      "image",
368      "gen_platf",
369      "inc12.png",
370      "_",
371      "image",
372      "gen_platf",
373      "inc13.png",
374      "_",
375      "image",
376      "gen_platf",
377      "inc14.png",
378      "_",
379      "image",
380      "gen_platf",
381      "incInterlaced.png",
382      "_",
383      "image",
384      "gen_platf",
385      "incInterlaced.gif",
386      "_",
387      "image",
388      "gen_platf",
389      "inc1.gif",
390      "_",
391      "image",
392      "gen_platf",
393      "inc0.gif",
394      "_",
395      "image",
396      "gen_platf",
397      "butterfly.gif",
398      "_",
399      "image",
400      "gen_platf",
401      "testimgari.jpg",
402      "_",
403      "image",
404      "gen_platf",
405      "rle8-height-negative.bmp",
406      "_",
407      "image",
408      "gen_platf",
409      "rle4-height-negative.bmp",
410      "_",
411      "image",
412      "gen_platf",
413      "error",
414      "_",
415      "image",
416      "_",
417      "interlaced1.png",
418      "_",
419      "image",
420      "_",
421      "interlaced2.png",
422      "_",
423      "image",
424      "_",
425      "interlaced3.png",
426      "_",
427      "image",
428      "_",
429      ".arw",
430      "_",
431      "image",
432      "_",
433      ".cr2",
434      "_",
435      "image",
436      "_",
437      ".dng",
438      "_",
439      "image",
440      "_",
441      ".nef",
442      "_",
443      "image",
444      "_",
445      ".nrw",
446      "_",
447      "image",
448      "_",
449      ".orf",
450      "_",
451      "image",
452      "_",
453      ".raf",
454      "_",
455      "image",
456      "_",
457      ".rw2",
458      "_",
459      "image",
460      "_",
461      ".pef",
462      "_",
463      "image",
464      "_",
465      ".srw",
466      "_",
467      "image",
468      "_",
469      ".ARW",
470      "_",
471      "image",
472      "_",
473      ".CR2",
474      "_",
475      "image",
476      "_",
477      ".DNG",
478      "_",
479      "image",
480      "_",
481      ".NEF",
482      "_",
483      "image",
484      "_",
485      ".NRW",
486      "_",
487      "image",
488      "_",
489      ".ORF",
490      "_",
491      "image",
492      "_",
493      ".RAF",
494      "_",
495      "image",
496      "_",
497      ".RW2",
498      "_",
499      "image",
500      "_",
501      ".PEF",
502      "_",
503      "image",
504      "_",
505      ".SRW",
506      "--match",
507      "~^ProcessorCloneTest$",
508      "~^GrMeshTest$",
509      "--nonativeFonts",
510      "--verbose"
511    ],
512    "env": {
513      "CHROME_HEADLESS": "1",
514      "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
515    },
516    "name": "dm"
517  },
518  {
519    "name": "$result"
520  }
521]