blob: 2a2ed489a4e0deba0f15748032e87dd53bdafd0b [file] [log] [blame]
Eric Boren7e97dc02017-02-02 09:02:37 -05001[
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",
9 "copy",
Eric Boren7e97dc02017-02-02 09:02:37 -050010 "[START_DIR]/skia/infra/bots/assets/skp/VERSION",
11 "/path/to/tmp/"
12 ],
Eric Borena1590852017-03-20 12:48:31 -040013 "infra_step": true,
Eric Boren7e97dc02017-02-02 09:02:37 -050014 "name": "Get downloaded SKP VERSION"
15 },
16 {
17 "cmd": [
18 "python",
19 "-u",
Eric Boren3e2ffd72017-06-16 13:10:22 -040020 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
21 "--json-output",
22 "/path/to/tmp/json",
23 "copy",
Eric Boren7e97dc02017-02-02 09:02:37 -050024 "42",
25 "[START_DIR]/tmp/SKP_VERSION"
26 ],
Eric Borena1590852017-03-20 12:48:31 -040027 "infra_step": true,
Eric Boren7e97dc02017-02-02 09:02:37 -050028 "name": "write SKP_VERSION"
29 },
30 {
31 "cmd": [
32 "python",
33 "-u",
Eric Boren3e2ffd72017-06-16 13:10:22 -040034 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
35 "--json-output",
36 "/path/to/tmp/json",
37 "copy",
Eric Boren7e97dc02017-02-02 09:02:37 -050038 "[START_DIR]/skia/infra/bots/assets/skimage/VERSION",
39 "/path/to/tmp/"
40 ],
Eric Borena1590852017-03-20 12:48:31 -040041 "infra_step": true,
Eric Boren7e97dc02017-02-02 09:02:37 -050042 "name": "Get downloaded skimage VERSION"
43 },
44 {
45 "cmd": [
46 "python",
47 "-u",
Eric Boren3e2ffd72017-06-16 13:10:22 -040048 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
49 "--json-output",
50 "/path/to/tmp/json",
51 "copy",
Eric Boren7e97dc02017-02-02 09:02:37 -050052 "42",
53 "[START_DIR]/tmp/SK_IMAGE_VERSION"
54 ],
Eric Borena1590852017-03-20 12:48:31 -040055 "infra_step": true,
Eric Boren7e97dc02017-02-02 09:02:37 -050056 "name": "write SK_IMAGE_VERSION"
57 },
58 {
59 "cmd": [
60 "python",
61 "-u",
Eric Boren3e2ffd72017-06-16 13:10:22 -040062 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
63 "--json-output",
64 "/path/to/tmp/json",
65 "copy",
Eric Boren7e97dc02017-02-02 09:02:37 -050066 "[START_DIR]/skia/infra/bots/assets/svg/VERSION",
67 "/path/to/tmp/"
68 ],
Eric Borena1590852017-03-20 12:48:31 -040069 "infra_step": true,
Eric Boren7e97dc02017-02-02 09:02:37 -050070 "name": "Get downloaded SVG VERSION"
71 },
72 {
73 "cmd": [
74 "python",
75 "-u",
Eric Boren3e2ffd72017-06-16 13:10:22 -040076 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
77 "--json-output",
78 "/path/to/tmp/json",
79 "copy",
Eric Boren7e97dc02017-02-02 09:02:37 -050080 "42",
81 "[START_DIR]/tmp/SVG_VERSION"
82 ],
Eric Borena1590852017-03-20 12:48:31 -040083 "infra_step": true,
Eric Boren7e97dc02017-02-02 09:02:37 -050084 "name": "write SVG_VERSION"
85 },
86 {
87 "cmd": [
88 "python",
89 "-u",
Eric Boren3e2ffd72017-06-16 13:10:22 -040090 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
91 "--json-output",
92 "/path/to/tmp/json",
Eric Boren5128bd42017-03-06 08:06:16 -050093 "rmtree",
Eric Boren7e97dc02017-02-02 09:02:37 -050094 "[CUSTOM_[SWARM_OUT_DIR]]/dm"
95 ],
Eric Borena1590852017-03-20 12:48:31 -040096 "infra_step": true,
Eric Boren5128bd42017-03-06 08:06:16 -050097 "name": "rmtree dm"
Eric Boren7e97dc02017-02-02 09:02:37 -050098 },
99 {
100 "cmd": [
101 "python",
102 "-u",
Robert Iannucci8cd50412017-07-07 14:36:58 -0700103 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
104 "--json-output",
105 "/path/to/tmp/json",
106 "ensure-directory",
107 "--mode",
108 "0777",
109 "[CUSTOM_[SWARM_OUT_DIR]]/dm"
Eric Boren7e97dc02017-02-02 09:02:37 -0500110 ],
Eric Borena1590852017-03-20 12:48:31 -0400111 "infra_step": true,
Robert Iannucci8cd50412017-07-07 14:36:58 -0700112 "name": "makedirs dm"
Eric Boren7e97dc02017-02-02 09:02:37 -0500113 },
114 {
115 "cmd": [
116 "python",
117 "-u",
Robert Iannucci8cd50412017-07-07 14:36:58 -0700118 "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]/tmp"
Eric Boren7e97dc02017-02-02 09:02:37 -0500125 ],
Eric Borena1590852017-03-20 12:48:31 -0400126 "infra_step": true,
Robert Iannucci8cd50412017-07-07 14:36:58 -0700127 "name": "makedirs tmp_dir"
Eric Boren7e97dc02017-02-02 09:02:37 -0500128 },
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 Boren7e97dc02017-02-02 09:02:37 -0500134 "[START_DIR]/tmp/uninteresting_hashes.txt"
135 ],
Eric Borenbbb24f22017-03-21 08:20:33 -0400136 "env": {
137 "BUILDTYPE": "Debug",
138 "CHROME_HEADLESS": "1",
recipe-rollere0f7e162017-05-31 16:13:27 -0700139 "PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]",
Eric Borenbbb24f22017-03-21 08:20:33 -0400140 "SKIA_OUT": "[START_DIR]/out"
141 },
Eric Borena1590852017-03-20 12:48:31 -0400142 "infra_step": true,
Eric Boren7e97dc02017-02-02 09:02:37 -0500143 "name": "get uninteresting hashes",
144 "~followup_annotations": [
145 "@@@STEP_LOG_LINE@python.inline@@@@",
146 "@@@STEP_LOG_LINE@python.inline@import contextlib@@@",
147 "@@@STEP_LOG_LINE@python.inline@import math@@@",
148 "@@@STEP_LOG_LINE@python.inline@import socket@@@",
149 "@@@STEP_LOG_LINE@python.inline@import sys@@@",
150 "@@@STEP_LOG_LINE@python.inline@import time@@@",
151 "@@@STEP_LOG_LINE@python.inline@import urllib2@@@",
152 "@@@STEP_LOG_LINE@python.inline@@@@",
Stephan Altmuellerc19ebc52017-05-30 16:39:17 -0400153 "@@@STEP_LOG_LINE@python.inline@HASHES_URL = 'https://storage.googleapis.com/skia-infra-gm/hash_files/gold-prod-hashes.txt'@@@",
Eric Boren7e97dc02017-02-02 09:02:37 -0500154 "@@@STEP_LOG_LINE@python.inline@RETRIES = 5@@@",
155 "@@@STEP_LOG_LINE@python.inline@TIMEOUT = 60@@@",
156 "@@@STEP_LOG_LINE@python.inline@WAIT_BASE = 15@@@",
157 "@@@STEP_LOG_LINE@python.inline@@@@",
158 "@@@STEP_LOG_LINE@python.inline@socket.setdefaulttimeout(TIMEOUT)@@@",
159 "@@@STEP_LOG_LINE@python.inline@for retry in range(RETRIES):@@@",
160 "@@@STEP_LOG_LINE@python.inline@ try:@@@",
161 "@@@STEP_LOG_LINE@python.inline@ with contextlib.closing(@@@",
162 "@@@STEP_LOG_LINE@python.inline@ urllib2.urlopen(HASHES_URL, timeout=TIMEOUT)) as w:@@@",
163 "@@@STEP_LOG_LINE@python.inline@ hashes = w.read()@@@",
164 "@@@STEP_LOG_LINE@python.inline@ with open(sys.argv[1], 'w') as f:@@@",
165 "@@@STEP_LOG_LINE@python.inline@ f.write(hashes)@@@",
166 "@@@STEP_LOG_LINE@python.inline@ break@@@",
167 "@@@STEP_LOG_LINE@python.inline@ except Exception as e:@@@",
168 "@@@STEP_LOG_LINE@python.inline@ print 'Failed to get uninteresting hashes from %s:' % HASHES_URL@@@",
169 "@@@STEP_LOG_LINE@python.inline@ print e@@@",
170 "@@@STEP_LOG_LINE@python.inline@ if retry == RETRIES:@@@",
171 "@@@STEP_LOG_LINE@python.inline@ raise@@@",
172 "@@@STEP_LOG_LINE@python.inline@ waittime = WAIT_BASE * math.pow(2, retry)@@@",
173 "@@@STEP_LOG_LINE@python.inline@ print 'Retry in %d seconds.' % waittime@@@",
174 "@@@STEP_LOG_LINE@python.inline@ time.sleep(waittime)@@@",
175 "@@@STEP_LOG_END@python.inline@@@"
176 ]
177 },
178 {
179 "cmd": [
Eric Borenf9aa9e52017-04-10 09:56:10 -0400180 "python",
181 "-u",
182 "import os\nprint os.environ.get('SWARMING_BOT_ID', '')\n"
183 ],
184 "name": "get swarming bot id",
185 "stdout": "/path/to/tmp/",
186 "~followup_annotations": [
187 "@@@STEP_LOG_LINE@python.inline@import os@@@",
188 "@@@STEP_LOG_LINE@python.inline@print os.environ.get('SWARMING_BOT_ID', '')@@@",
189 "@@@STEP_LOG_END@python.inline@@@"
190 ]
191 },
192 {
193 "cmd": [
194 "python",
195 "-u",
196 "import os\nprint os.environ.get('SWARMING_TASK_ID', '')\n"
197 ],
198 "name": "get swarming task id",
199 "stdout": "/path/to/tmp/",
200 "~followup_annotations": [
201 "@@@STEP_LOG_LINE@python.inline@import os@@@",
202 "@@@STEP_LOG_LINE@python.inline@print os.environ.get('SWARMING_TASK_ID', '')@@@",
203 "@@@STEP_LOG_END@python.inline@@@"
204 ]
205 },
206 {
207 "cmd": [
Eric Boren7e97dc02017-02-02 09:02:37 -0500208 "[START_DIR]/out/Debug/dm",
Eric Boren7e97dc02017-02-02 09:02:37 -0500209 "--resourcePath",
210 "[START_DIR]/skia/resources",
211 "--skps",
212 "[START_DIR]/skp",
213 "--images",
214 "[START_DIR]/skimage/dm",
215 "--colorImages",
216 "[START_DIR]/skimage/colorspace",
217 "--nameByHash",
218 "--properties",
219 "gitHash",
220 "abc123",
Eric Boren7e97dc02017-02-02 09:02:37 -0500221 "builder",
Robert Phillips985e1922017-05-25 07:56:01 -0400222 "Test-Mac-Clang-MacMini6.2-GPU-IntelHD4000-x86_64-Debug-CommandBuffer",
Eric Borenf9aa9e52017-04-10 09:56:10 -0400223 "swarming_bot_id",
Ben Wagnerf835c222017-04-30 11:14:51 -0400224 "skia-bot-123",
Eric Borenf9aa9e52017-04-10 09:56:10 -0400225 "swarming_task_id",
Ben Wagnerf835c222017-04-30 11:14:51 -0400226 "123456",
Eric Boren7e97dc02017-02-02 09:02:37 -0500227 "--svgs",
228 "[START_DIR]/svg",
229 "--key",
230 "arch",
231 "x86_64",
232 "compiler",
233 "Clang",
234 "configuration",
235 "Debug",
236 "cpu_or_gpu",
237 "GPU",
238 "cpu_or_gpu_value",
Robert Phillips985e1922017-05-25 07:56:01 -0400239 "IntelHD4000",
Eric Boren7e97dc02017-02-02 09:02:37 -0500240 "extra_config",
241 "CommandBuffer",
242 "model",
243 "MacMini6.2",
244 "os",
245 "Mac",
246 "--uninterestingHashesFile",
247 "[START_DIR]/tmp/uninteresting_hashes.txt",
248 "--writePath",
249 "[CUSTOM_[SWARM_OUT_DIR]]/dm",
Mike Klein97d6a7a2017-07-24 10:37:19 -0400250 "--dont_write",
251 "pdf",
Brian Osmanca0913c2017-03-22 11:37:23 -0400252 "--randomProcessorTest",
Ben Wagner32fa5102017-08-10 21:25:55 -0400253 "--nocpu",
Eric Boren7e97dc02017-02-02 09:02:37 -0500254 "--config",
255 "commandbuffer",
256 "--src",
257 "tests",
258 "gm",
259 "image",
260 "colorImage",
261 "svg",
262 "--blacklist",
263 "_",
264 "image",
265 "gen_platf",
266 "rgba32abf.bmp",
267 "_",
268 "image",
269 "gen_platf",
270 "rgb24prof.bmp",
271 "_",
272 "image",
273 "gen_platf",
274 "rgb24lprof.bmp",
275 "_",
276 "image",
277 "gen_platf",
278 "8bpp-pixeldata-cropped.bmp",
279 "_",
280 "image",
281 "gen_platf",
282 "4bpp-pixeldata-cropped.bmp",
283 "_",
284 "image",
285 "gen_platf",
286 "32bpp-pixeldata-cropped.bmp",
287 "_",
288 "image",
289 "gen_platf",
290 "24bpp-pixeldata-cropped.bmp",
291 "_",
292 "image",
293 "gen_platf",
294 "frame_larger_than_image.gif",
295 "_",
296 "image",
297 "gen_platf",
298 "inc0.png",
299 "_",
300 "image",
301 "gen_platf",
302 "inc1.png",
303 "_",
304 "image",
305 "gen_platf",
306 "inc2.png",
307 "_",
308 "image",
309 "gen_platf",
310 "inc3.png",
311 "_",
312 "image",
313 "gen_platf",
314 "inc4.png",
315 "_",
316 "image",
317 "gen_platf",
318 "inc5.png",
319 "_",
320 "image",
321 "gen_platf",
322 "inc6.png",
323 "_",
324 "image",
325 "gen_platf",
326 "inc7.png",
327 "_",
328 "image",
329 "gen_platf",
330 "inc8.png",
331 "_",
332 "image",
333 "gen_platf",
334 "inc9.png",
335 "_",
336 "image",
337 "gen_platf",
338 "inc10.png",
339 "_",
340 "image",
341 "gen_platf",
342 "inc11.png",
343 "_",
344 "image",
345 "gen_platf",
346 "inc12.png",
347 "_",
348 "image",
349 "gen_platf",
350 "inc13.png",
351 "_",
352 "image",
353 "gen_platf",
354 "inc14.png",
355 "_",
356 "image",
Matt Sarett6c50a2e2017-05-01 09:13:05 -0400357 "gen_platf",
358 "testimgari.jpg",
359 "_",
360 "image",
Eric Boren7e97dc02017-02-02 09:02:37 -0500361 "_",
362 "interlaced1.png",
363 "_",
364 "image",
365 "_",
366 "interlaced2.png",
367 "_",
368 "image",
369 "_",
370 "interlaced3.png",
371 "_",
372 "image",
373 "_",
374 ".arw",
375 "_",
376 "image",
377 "_",
378 ".cr2",
379 "_",
380 "image",
381 "_",
382 ".dng",
383 "_",
384 "image",
385 "_",
386 ".nef",
387 "_",
388 "image",
389 "_",
390 ".nrw",
391 "_",
392 "image",
393 "_",
394 ".orf",
395 "_",
396 "image",
397 "_",
398 ".raf",
399 "_",
400 "image",
401 "_",
402 ".rw2",
403 "_",
404 "image",
405 "_",
406 ".pef",
407 "_",
408 "image",
409 "_",
410 ".srw",
411 "_",
412 "image",
413 "_",
414 ".ARW",
415 "_",
416 "image",
417 "_",
418 ".CR2",
419 "_",
420 "image",
421 "_",
422 ".DNG",
423 "_",
424 "image",
425 "_",
426 ".NEF",
427 "_",
428 "image",
429 "_",
430 ".NRW",
431 "_",
432 "image",
433 "_",
434 ".ORF",
435 "_",
436 "image",
437 "_",
438 ".RAF",
439 "_",
440 "image",
441 "_",
442 ".RW2",
443 "_",
444 "image",
445 "_",
446 ".PEF",
447 "_",
448 "image",
449 "_",
Ben Wagnerbb3e7ff2017-04-28 15:28:32 -0400450 ".SRW",
451 "--match",
452 "~HalfFloatAlphaTextureTest"
Eric Boren7e97dc02017-02-02 09:02:37 -0500453 ],
Kevin Lubick0a51b482017-02-06 12:45:29 -0500454 "env": {
455 "BUILDTYPE": "Debug",
456 "CHROME_HEADLESS": "1",
recipe-rollere0f7e162017-05-31 16:13:27 -0700457 "PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]",
Kevin Lubick0a51b482017-02-06 12:45:29 -0500458 "SKIA_OUT": "[START_DIR]/out"
459 },
Eric Boren7e97dc02017-02-02 09:02:37 -0500460 "name": "dm"
461 },
462 {
463 "name": "$result",
464 "recipe_result": null,
465 "status_code": 0
466 }
467]