blob: 011ef78771ae43ef1dfd875c8b9e5fc376e0a80c [file] [log] [blame]
Eric Boren6ec17e32017-04-26 14:25:29 -04001[
2 {
3 "cmd": [
4 "python",
5 "-u",
Eric Boren3e2ffd72017-06-16 13:10:22 -04006 "RECIPE_MODULE[recipe_engine::file]\\resources\\fileutil.py",
7 "--json-output",
8 "/path/to/tmp/json",
Eric Borenb7023162018-05-04 13:46:15 -04009 "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",
Eric Boren3e2ffd72017-06-16 13:10:22 -040024 "copy",
Eric Boren6ec17e32017-04-26 14:25:29 -040025 "[START_DIR]\\skia\\infra\\bots\\assets\\skp\\VERSION",
26 "/path/to/tmp/"
27 ],
28 "infra_step": true,
Ben Wagnerf20710e2018-03-19 16:52:37 -040029 "name": "Get skp VERSION"
Eric Boren6ec17e32017-04-26 14:25:29 -040030 },
31 {
32 "cmd": [
33 "python",
34 "-u",
Eric Boren3e2ffd72017-06-16 13:10:22 -040035 "RECIPE_MODULE[recipe_engine::file]\\resources\\fileutil.py",
36 "--json-output",
37 "/path/to/tmp/json",
38 "copy",
Eric Boren6ec17e32017-04-26 14:25:29 -040039 "42",
40 "[START_DIR]\\tmp\\SKP_VERSION"
41 ],
42 "infra_step": true,
43 "name": "write SKP_VERSION"
44 },
45 {
46 "cmd": [
47 "python",
48 "-u",
Eric Boren3e2ffd72017-06-16 13:10:22 -040049 "RECIPE_MODULE[recipe_engine::file]\\resources\\fileutil.py",
50 "--json-output",
51 "/path/to/tmp/json",
52 "copy",
Eric Boren6ec17e32017-04-26 14:25:29 -040053 "[START_DIR]\\skia\\infra\\bots\\assets\\skimage\\VERSION",
54 "/path/to/tmp/"
55 ],
56 "infra_step": true,
Ben Wagnerf20710e2018-03-19 16:52:37 -040057 "name": "Get skimage VERSION"
Eric Boren6ec17e32017-04-26 14:25:29 -040058 },
59 {
60 "cmd": [
61 "python",
62 "-u",
Eric Boren3e2ffd72017-06-16 13:10:22 -040063 "RECIPE_MODULE[recipe_engine::file]\\resources\\fileutil.py",
64 "--json-output",
65 "/path/to/tmp/json",
66 "copy",
Eric Boren6ec17e32017-04-26 14:25:29 -040067 "42",
68 "[START_DIR]\\tmp\\SK_IMAGE_VERSION"
69 ],
70 "infra_step": true,
71 "name": "write SK_IMAGE_VERSION"
72 },
73 {
74 "cmd": [
75 "python",
76 "-u",
Eric Boren3e2ffd72017-06-16 13:10:22 -040077 "RECIPE_MODULE[recipe_engine::file]\\resources\\fileutil.py",
78 "--json-output",
79 "/path/to/tmp/json",
80 "copy",
Eric Boren6ec17e32017-04-26 14:25:29 -040081 "[START_DIR]\\skia\\infra\\bots\\assets\\svg\\VERSION",
82 "/path/to/tmp/"
83 ],
84 "infra_step": true,
Ben Wagnerf20710e2018-03-19 16:52:37 -040085 "name": "Get svg VERSION"
Eric Boren6ec17e32017-04-26 14:25:29 -040086 },
87 {
88 "cmd": [
89 "python",
90 "-u",
Eric Boren3e2ffd72017-06-16 13:10:22 -040091 "RECIPE_MODULE[recipe_engine::file]\\resources\\fileutil.py",
92 "--json-output",
93 "/path/to/tmp/json",
94 "copy",
Eric Boren6ec17e32017-04-26 14:25:29 -040095 "42",
96 "[START_DIR]\\tmp\\SVG_VERSION"
97 ],
98 "infra_step": true,
99 "name": "write SVG_VERSION"
100 },
101 {
102 "cmd": [
103 "python",
104 "-u",
Eric Boren3e2ffd72017-06-16 13:10:22 -0400105 "RECIPE_MODULE[recipe_engine::file]\\resources\\fileutil.py",
106 "--json-output",
107 "/path/to/tmp/json",
Eric Boren9599b0f2018-04-17 15:55:57 -0400108 "rmtree",
109 "[START_DIR]\\test"
110 ],
111 "infra_step": true,
112 "name": "rmtree test"
113 },
114 {
115 "cmd": [
116 "python",
117 "-u",
118 "RECIPE_MODULE[recipe_engine::file]\\resources\\fileutil.py",
119 "--json-output",
120 "/path/to/tmp/json",
121 "ensure-directory",
122 "--mode",
123 "0777",
124 "[START_DIR]\\test"
125 ],
126 "infra_step": true,
127 "name": "makedirs test"
128 },
129 {
130 "cmd": [
131 "python",
132 "-u",
Stephan Altmuellerc19ebc52017-05-30 16:39:17 -0400133 "\nimport contextlib\nimport math\nimport socket\nimport sys\nimport time\nimport urllib2\n\nHASHES_URL = 'https://storage.googleapis.com/skia-infra-gm/hash_files/gold-prod-hashes.txt'\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",
Eric Boren6ec17e32017-04-26 14:25:29 -0400134 "[START_DIR]\\tmp\\uninteresting_hashes.txt"
135 ],
136 "env": {
Eric Boren6ec17e32017-04-26 14:25:29 -0400137 "CHROME_HEADLESS": "1",
Eric Boren0f690102018-05-15 15:04:58 -0400138 "PATH": "<PATH>;RECIPE_PACKAGE_REPO[depot_tools]"
Eric Boren6ec17e32017-04-26 14:25:29 -0400139 },
140 "infra_step": true,
141 "name": "get uninteresting hashes",
142 "~followup_annotations": [
143 "@@@STEP_LOG_LINE@python.inline@@@@",
144 "@@@STEP_LOG_LINE@python.inline@import contextlib@@@",
145 "@@@STEP_LOG_LINE@python.inline@import math@@@",
146 "@@@STEP_LOG_LINE@python.inline@import socket@@@",
147 "@@@STEP_LOG_LINE@python.inline@import sys@@@",
148 "@@@STEP_LOG_LINE@python.inline@import time@@@",
149 "@@@STEP_LOG_LINE@python.inline@import urllib2@@@",
150 "@@@STEP_LOG_LINE@python.inline@@@@",
Stephan Altmuellerc19ebc52017-05-30 16:39:17 -0400151 "@@@STEP_LOG_LINE@python.inline@HASHES_URL = 'https://storage.googleapis.com/skia-infra-gm/hash_files/gold-prod-hashes.txt'@@@",
Eric Boren6ec17e32017-04-26 14:25:29 -0400152 "@@@STEP_LOG_LINE@python.inline@RETRIES = 5@@@",
153 "@@@STEP_LOG_LINE@python.inline@TIMEOUT = 60@@@",
154 "@@@STEP_LOG_LINE@python.inline@WAIT_BASE = 15@@@",
155 "@@@STEP_LOG_LINE@python.inline@@@@",
156 "@@@STEP_LOG_LINE@python.inline@socket.setdefaulttimeout(TIMEOUT)@@@",
157 "@@@STEP_LOG_LINE@python.inline@for retry in range(RETRIES):@@@",
158 "@@@STEP_LOG_LINE@python.inline@ try:@@@",
159 "@@@STEP_LOG_LINE@python.inline@ with contextlib.closing(@@@",
160 "@@@STEP_LOG_LINE@python.inline@ urllib2.urlopen(HASHES_URL, timeout=TIMEOUT)) as w:@@@",
161 "@@@STEP_LOG_LINE@python.inline@ hashes = w.read()@@@",
162 "@@@STEP_LOG_LINE@python.inline@ with open(sys.argv[1], 'w') as f:@@@",
163 "@@@STEP_LOG_LINE@python.inline@ f.write(hashes)@@@",
164 "@@@STEP_LOG_LINE@python.inline@ break@@@",
165 "@@@STEP_LOG_LINE@python.inline@ except Exception as e:@@@",
166 "@@@STEP_LOG_LINE@python.inline@ print 'Failed to get uninteresting hashes from %s:' % HASHES_URL@@@",
167 "@@@STEP_LOG_LINE@python.inline@ print e@@@",
168 "@@@STEP_LOG_LINE@python.inline@ if retry == RETRIES:@@@",
169 "@@@STEP_LOG_LINE@python.inline@ raise@@@",
170 "@@@STEP_LOG_LINE@python.inline@ waittime = WAIT_BASE * math.pow(2, retry)@@@",
171 "@@@STEP_LOG_LINE@python.inline@ print 'Retry in %d seconds.' % waittime@@@",
172 "@@@STEP_LOG_LINE@python.inline@ time.sleep(waittime)@@@",
173 "@@@STEP_LOG_END@python.inline@@@"
174 ]
175 },
176 {
177 "cmd": [
178 "python",
179 "-u",
180 "import os\nprint os.environ.get('SWARMING_BOT_ID', '')\n"
181 ],
182 "name": "get swarming bot id",
183 "stdout": "/path/to/tmp/",
184 "~followup_annotations": [
185 "@@@STEP_LOG_LINE@python.inline@import os@@@",
186 "@@@STEP_LOG_LINE@python.inline@print os.environ.get('SWARMING_BOT_ID', '')@@@",
187 "@@@STEP_LOG_END@python.inline@@@"
188 ]
189 },
190 {
191 "cmd": [
192 "python",
193 "-u",
194 "import os\nprint os.environ.get('SWARMING_TASK_ID', '')\n"
195 ],
196 "name": "get swarming task id",
197 "stdout": "/path/to/tmp/",
198 "~followup_annotations": [
199 "@@@STEP_LOG_LINE@python.inline@import os@@@",
200 "@@@STEP_LOG_LINE@python.inline@print os.environ.get('SWARMING_TASK_ID', '')@@@",
201 "@@@STEP_LOG_END@python.inline@@@"
202 ]
203 },
204 {
205 "cmd": [
Eric Boren322a8592018-06-01 10:08:53 -0400206 "[START_DIR]\\build\\dm",
Eric Boren6ec17e32017-04-26 14:25:29 -0400207 "--resourcePath",
208 "[START_DIR]\\skia\\resources",
209 "--skps",
210 "[START_DIR]\\skp",
211 "--images",
212 "[START_DIR]\\skimage\\dm",
213 "--colorImages",
214 "[START_DIR]\\skimage\\colorspace",
215 "--nameByHash",
216 "--properties",
217 "gitHash",
218 "abc123",
219 "builder",
Kevin Lubick9ef6de72017-10-15 21:05:58 -0400220 "Test-Win10-Clang-Golo-GPU-QuadroP400-x86_64-Release-All-ReleaseAndAbandonGpuContext",
Eric Boren9a9e3872017-11-29 12:33:22 -0500221 "buildbucket_build_id",
222 "123454321",
Eric Boren6ec17e32017-04-26 14:25:29 -0400223 "swarming_bot_id",
Ben Wagnerf835c222017-04-30 11:14:51 -0400224 "skia-bot-123",
Eric Boren6ec17e32017-04-26 14:25:29 -0400225 "swarming_task_id",
Ben Wagnerf835c222017-04-30 11:14:51 -0400226 "123456",
Eric Boren6ec17e32017-04-26 14:25:29 -0400227 "--svgs",
228 "[START_DIR]\\svg",
229 "--key",
230 "arch",
231 "x86_64",
232 "compiler",
Ben Wagner9fb285e2017-10-02 16:53:07 -0400233 "Clang",
Eric Boren6ec17e32017-04-26 14:25:29 -0400234 "configuration",
235 "Release",
236 "cpu_or_gpu",
237 "GPU",
238 "cpu_or_gpu_value",
Ben Wagner7cf2fd62017-10-09 14:27:26 -0400239 "QuadroP400",
Eric Boren6ec17e32017-04-26 14:25:29 -0400240 "extra_config",
241 "ReleaseAndAbandonGpuContext",
242 "model",
Ben Wagner7cf2fd62017-10-09 14:27:26 -0400243 "Golo",
Eric Boren6ec17e32017-04-26 14:25:29 -0400244 "os",
245 "Win10",
246 "--uninterestingHashesFile",
247 "[START_DIR]\\tmp\\uninteresting_hashes.txt",
248 "--writePath",
Eric Borencd0a98c2018-06-20 13:23:16 -0400249 "[START_DIR]\\[SWARM_OUT_DIR]",
Mike Klein97d6a7a2017-07-24 10:37:19 -0400250 "--dont_write",
251 "pdf",
Eric Boren6ec17e32017-04-26 14:25:29 -0400252 "--randomProcessorTest",
Ben Wagner32fa5102017-08-10 21:25:55 -0400253 "--nocpu",
Eric Boren6ec17e32017-04-26 14:25:29 -0400254 "--config",
Eric Boren6ec17e32017-04-26 14:25:29 -0400255 "gl",
256 "gldft",
257 "glsrgb",
Brian Osman5e117772018-06-20 14:53:06 -0400258 "glesrgb",
Ben Wagner7cf2fd62017-10-09 14:27:26 -0400259 "glmsaa8",
Eric Boren6ec17e32017-04-26 14:25:29 -0400260 "--src",
261 "tests",
262 "gm",
263 "image",
264 "colorImage",
265 "svg",
266 "--blacklist",
Chris Daltonecf78ac2017-08-15 15:43:08 -0600267 "_",
268 "svg",
269 "_",
270 "svgparse_",
Eric Boren6ec17e32017-04-26 14:25:29 -0400271 "glsrgb",
272 "image",
273 "_",
274 "_",
Eric Boren6ec17e32017-04-26 14:25:29 -0400275 "_",
276 "image",
277 "gen_platf",
Eric Boren6ec17e32017-04-26 14:25:29 -0400278 "pal8os2v2.bmp",
279 "_",
280 "image",
281 "gen_platf",
282 "pal8os2v2-16.bmp",
283 "_",
284 "image",
285 "gen_platf",
286 "rgba32abf.bmp",
287 "_",
288 "image",
289 "gen_platf",
290 "rgb24prof.bmp",
291 "_",
292 "image",
293 "gen_platf",
294 "rgb24lprof.bmp",
295 "_",
296 "image",
297 "gen_platf",
298 "8bpp-pixeldata-cropped.bmp",
299 "_",
300 "image",
301 "gen_platf",
302 "4bpp-pixeldata-cropped.bmp",
303 "_",
304 "image",
305 "gen_platf",
306 "32bpp-pixeldata-cropped.bmp",
307 "_",
308 "image",
309 "gen_platf",
310 "24bpp-pixeldata-cropped.bmp",
311 "_",
312 "image",
313 "gen_platf",
314 "testimgari.jpg",
Eric Boren6ec17e32017-04-26 14:25:29 -0400315 "_",
316 "image",
Leon Scroggins III3a3cf432017-08-18 13:08:16 -0400317 "gen_platf",
318 "rle8-height-negative.bmp",
319 "_",
320 "image",
321 "gen_platf",
322 "rle4-height-negative.bmp",
323 "_",
324 "image",
Eric Boren6ec17e32017-04-26 14:25:29 -0400325 "_",
326 "interlaced1.png",
327 "_",
328 "image",
329 "_",
330 "interlaced2.png",
331 "_",
332 "image",
333 "_",
334 "interlaced3.png",
335 "_",
336 "image",
337 "_",
338 ".arw",
339 "_",
340 "image",
341 "_",
342 ".cr2",
343 "_",
344 "image",
345 "_",
346 ".dng",
347 "_",
348 "image",
349 "_",
350 ".nef",
351 "_",
352 "image",
353 "_",
354 ".nrw",
355 "_",
356 "image",
357 "_",
358 ".orf",
359 "_",
360 "image",
361 "_",
362 ".raf",
363 "_",
364 "image",
365 "_",
366 ".rw2",
367 "_",
368 "image",
369 "_",
370 ".pef",
371 "_",
372 "image",
373 "_",
374 ".srw",
375 "_",
376 "image",
377 "_",
378 ".ARW",
379 "_",
380 "image",
381 "_",
382 ".CR2",
383 "_",
384 "image",
385 "_",
386 ".DNG",
387 "_",
388 "image",
389 "_",
390 ".NEF",
391 "_",
392 "image",
393 "_",
394 ".NRW",
395 "_",
396 "image",
397 "_",
398 ".ORF",
399 "_",
400 "image",
401 "_",
402 ".RAF",
403 "_",
404 "image",
405 "_",
406 ".RW2",
407 "_",
408 "image",
409 "_",
410 ".PEF",
411 "_",
412 "image",
413 "_",
414 ".SRW",
Mike Kleinc207da82017-11-10 14:24:34 -0500415 "--nonativeFonts",
Stephan Altmueller74dac542017-09-11 15:32:21 -0400416 "--verbose",
Eric Boren6ec17e32017-04-26 14:25:29 -0400417 "--releaseAndAbandonGpuContext"
418 ],
419 "env": {
Eric Boren6ec17e32017-04-26 14:25:29 -0400420 "CHROME_HEADLESS": "1",
Eric Boren0f690102018-05-15 15:04:58 -0400421 "PATH": "<PATH>;RECIPE_PACKAGE_REPO[depot_tools]"
Eric Boren6ec17e32017-04-26 14:25:29 -0400422 },
423 "name": "dm"
424 },
425 {
426 "name": "$result",
427 "recipe_result": null,
428 "status_code": 0
429 }
430]