• 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      "powershell",
218      "-ExecutionPolicy",
219      "Unrestricted",
220      "-File",
221      "RECIPE_MODULE[skia::flavor]\\resources\\win_run_and_check_log.ps1",
222      "[START_DIR]\\build\\dm",
223      "--resourcePath",
224      "[START_DIR]\\skia\\resources",
225      "--skps",
226      "[START_DIR]\\skp",
227      "--images",
228      "[START_DIR]\\skimage\\dm",
229      "--colorImages",
230      "[START_DIR]\\skimage\\colorspace",
231      "--nameByHash",
232      "--properties",
233      "gitHash",
234      "abc123",
235      "builder",
236      "Test-Win10-Clang-Golo-GPU-QuadroP400-x86_64-Release-All-BonusConfigs",
237      "buildbucket_build_id",
238      "123454321",
239      "task_id",
240      "task_12345",
241      "swarming_bot_id",
242      "skia-bot-123",
243      "swarming_task_id",
244      "123456",
245      "--svgs",
246      "[START_DIR]\\svg",
247      "--key",
248      "arch",
249      "x86_64",
250      "compiler",
251      "Clang",
252      "configuration",
253      "Release",
254      "cpu_or_gpu",
255      "GPU",
256      "cpu_or_gpu_value",
257      "QuadroP400",
258      "extra_config",
259      "BonusConfigs",
260      "model",
261      "Golo",
262      "os",
263      "Win10",
264      "style",
265      "default",
266      "--uninterestingHashesFile",
267      "[START_DIR]\\tmp\\uninteresting_hashes.txt",
268      "--writePath",
269      "[START_DIR]\\[SWARM_OUT_DIR]",
270      "--dont_write",
271      "pdf",
272      "--randomProcessorTest",
273      "--nocpu",
274      "--config",
275      "glbetex",
276      "glbert",
277      "glenarrow",
278      "--src",
279      "tests",
280      "gm",
281      "image",
282      "colorImage",
283      "svg",
284      "--blacklist",
285      "_",
286      "svg",
287      "_",
288      "svgparse_",
289      "_",
290      "image",
291      "gen_platf",
292      "pal8os2v2.bmp",
293      "_",
294      "image",
295      "gen_platf",
296      "pal8os2v2-16.bmp",
297      "_",
298      "image",
299      "gen_platf",
300      "rgba32abf.bmp",
301      "_",
302      "image",
303      "gen_platf",
304      "rgb24prof.bmp",
305      "_",
306      "image",
307      "gen_platf",
308      "rgb24lprof.bmp",
309      "_",
310      "image",
311      "gen_platf",
312      "8bpp-pixeldata-cropped.bmp",
313      "_",
314      "image",
315      "gen_platf",
316      "4bpp-pixeldata-cropped.bmp",
317      "_",
318      "image",
319      "gen_platf",
320      "32bpp-pixeldata-cropped.bmp",
321      "_",
322      "image",
323      "gen_platf",
324      "24bpp-pixeldata-cropped.bmp",
325      "_",
326      "image",
327      "gen_platf",
328      "testimgari.jpg",
329      "_",
330      "image",
331      "gen_platf",
332      "rle8-height-negative.bmp",
333      "_",
334      "image",
335      "gen_platf",
336      "rle4-height-negative.bmp",
337      "_",
338      "image",
339      "gen_platf",
340      "error",
341      "_",
342      "image",
343      "_",
344      "interlaced1.png",
345      "_",
346      "image",
347      "_",
348      "interlaced2.png",
349      "_",
350      "image",
351      "_",
352      "interlaced3.png",
353      "_",
354      "image",
355      "_",
356      ".arw",
357      "_",
358      "image",
359      "_",
360      ".cr2",
361      "_",
362      "image",
363      "_",
364      ".dng",
365      "_",
366      "image",
367      "_",
368      ".nef",
369      "_",
370      "image",
371      "_",
372      ".nrw",
373      "_",
374      "image",
375      "_",
376      ".orf",
377      "_",
378      "image",
379      "_",
380      ".raf",
381      "_",
382      "image",
383      "_",
384      ".rw2",
385      "_",
386      "image",
387      "_",
388      ".pef",
389      "_",
390      "image",
391      "_",
392      ".srw",
393      "_",
394      "image",
395      "_",
396      ".ARW",
397      "_",
398      "image",
399      "_",
400      ".CR2",
401      "_",
402      "image",
403      "_",
404      ".DNG",
405      "_",
406      "image",
407      "_",
408      ".NEF",
409      "_",
410      "image",
411      "_",
412      ".NRW",
413      "_",
414      "image",
415      "_",
416      ".ORF",
417      "_",
418      "image",
419      "_",
420      ".RAF",
421      "_",
422      "image",
423      "_",
424      ".RW2",
425      "_",
426      "image",
427      "_",
428      ".PEF",
429      "_",
430      "image",
431      "_",
432      ".SRW",
433      "--nonativeFonts",
434      "--verbose"
435    ],
436    "env": {
437      "CHROME_HEADLESS": "1",
438      "PATH": "<PATH>;RECIPE_REPO[depot_tools]"
439    },
440    "name": "dm"
441  },
442  {
443    "name": "$result"
444  }
445]