blob: 6122ac5a111eefcbdc059f45cc52007e10bb3cf0 [file] [log] [blame]
Mike Kleinc24e0c12018-08-17 13:24:51 -04001[
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 },
45 {
46 "cmd": [
47 "python",
48 "-u",
49 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
50 "--json-output",
51 "/path/to/tmp/json",
52 "copy",
53 "[START_DIR]/skia/infra/bots/assets/skimage/VERSION",
54 "/path/to/tmp/"
55 ],
56 "infra_step": true,
57 "name": "Get skimage VERSION"
58 },
59 {
60 "cmd": [
61 "python",
62 "-u",
63 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
64 "--json-output",
65 "/path/to/tmp/json",
66 "copy",
67 "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",
77 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
78 "--json-output",
79 "/path/to/tmp/json",
80 "copy",
81 "[START_DIR]/skia/infra/bots/assets/svg/VERSION",
82 "/path/to/tmp/"
83 ],
84 "infra_step": true,
85 "name": "Get svg VERSION"
86 },
87 {
88 "cmd": [
89 "python",
90 "-u",
91 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
92 "--json-output",
93 "/path/to/tmp/json",
94 "copy",
95 "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",
105 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
106 "--json-output",
107 "/path/to/tmp/json",
108 "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",
133 "\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",
134 "https://example.com/hashes.txt",
135 "[START_DIR]/tmp/uninteresting_hashes.txt"
136 ],
137 "env": {
138 "CHROME_HEADLESS": "1",
Robert Iannuccif4d4b872019-02-16 14:10:41 -0800139 "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
Mike Kleinc24e0c12018-08-17 13:24:51 -0400140 },
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 = sys.argv[1]@@@",
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[2], '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 "import os\nprint os.environ.get('SWARMING_BOT_ID', '')\n"
182 ],
183 "name": "get swarming bot id",
184 "stdout": "/path/to/tmp/",
185 "~followup_annotations": [
186 "@@@STEP_LOG_LINE@python.inline@import os@@@",
187 "@@@STEP_LOG_LINE@python.inline@print os.environ.get('SWARMING_BOT_ID', '')@@@",
188 "@@@STEP_LOG_END@python.inline@@@"
189 ]
190 },
191 {
192 "cmd": [
193 "python",
194 "-u",
195 "import os\nprint os.environ.get('SWARMING_TASK_ID', '')\n"
196 ],
197 "name": "get swarming task id",
198 "stdout": "/path/to/tmp/",
199 "~followup_annotations": [
200 "@@@STEP_LOG_LINE@python.inline@import os@@@",
201 "@@@STEP_LOG_LINE@python.inline@print os.environ.get('SWARMING_TASK_ID', '')@@@",
202 "@@@STEP_LOG_END@python.inline@@@"
203 ]
204 },
205 {
206 "cmd": [
207 "python",
208 "-u",
209 "RECIPE_MODULE[skia::flavor]/resources/symbolize_stack_trace.py",
210 "[START_DIR]",
211 "catchsegv",
212 "[START_DIR]/build/dm",
213 "--resourcePath",
214 "[START_DIR]/skia/resources",
215 "--skps",
216 "[START_DIR]/skp",
217 "--images",
218 "[START_DIR]/skimage/dm",
219 "--colorImages",
220 "[START_DIR]/skimage/colorspace",
221 "--nameByHash",
222 "--properties",
223 "gitHash",
224 "abc123",
225 "builder",
226 "Test-Debian9-Clang-GCE-CPU-AVX2-x86_64-Debug-All-BonusConfigs",
227 "buildbucket_build_id",
228 "123454321",
Eric Boren113cba82019-02-26 13:52:43 -0500229 "task_id",
230 "task_12345",
Mike Kleinc24e0c12018-08-17 13:24:51 -0400231 "swarming_bot_id",
232 "skia-bot-123",
233 "swarming_task_id",
234 "123456",
235 "--svgs",
236 "[START_DIR]/svg",
237 "--key",
238 "arch",
239 "x86_64",
240 "compiler",
241 "Clang",
242 "configuration",
243 "Debug",
244 "cpu_or_gpu",
245 "CPU",
246 "cpu_or_gpu_value",
247 "AVX2",
248 "extra_config",
249 "BonusConfigs",
250 "model",
251 "GCE",
252 "os",
253 "Debian9",
Ben Wagner58a2e3d2019-02-08 13:01:40 -0500254 "style",
255 "default",
Mike Kleinc24e0c12018-08-17 13:24:51 -0400256 "--uninterestingHashesFile",
257 "[START_DIR]/tmp/uninteresting_hashes.txt",
258 "--writePath",
259 "[START_DIR]/[SWARM_OUT_DIR]",
260 "--dont_write",
261 "pdf",
262 "--randomProcessorTest",
263 "--nogpu",
264 "--config",
265 "8888",
266 "pdf",
267 "g8",
268 "565",
269 "pic-8888",
270 "tiles_rt-8888",
Mike Kleinc24e0c12018-08-17 13:24:51 -0400271 "serialize-8888",
Mike Kleinc24e0c12018-08-17 13:24:51 -0400272 "f16",
273 "srgb",
274 "esrgb",
275 "narrow",
276 "enarrow",
277 "p3",
278 "ep3",
279 "rec2020",
280 "erec2020",
281 "--src",
282 "tests",
283 "gm",
284 "image",
285 "colorImage",
286 "--blacklist",
287 "f16",
288 "_",
289 "_",
290 "dstreadshuffle",
Mike Kleinc24e0c12018-08-17 13:24:51 -0400291 "g8",
292 "image",
293 "_",
294 "_",
295 "g8",
296 "colorImage",
297 "_",
298 "_",
Leon Scroggins III3abcd822018-10-18 11:28:36 -0400299 "_",
300 "image",
301 "gen_platf",
302 "error",
Mike Kleinc24e0c12018-08-17 13:24:51 -0400303 "serialize-8888",
304 "gm",
305 "_",
306 "bleed_image",
307 "serialize-8888",
308 "gm",
309 "_",
310 "c_gms",
311 "serialize-8888",
312 "gm",
313 "_",
314 "colortype",
315 "serialize-8888",
316 "gm",
317 "_",
318 "colortype_xfermodes",
319 "serialize-8888",
320 "gm",
321 "_",
322 "drawfilter",
323 "serialize-8888",
324 "gm",
325 "_",
326 "fontmgr_bounds_0.75_0",
327 "serialize-8888",
328 "gm",
329 "_",
330 "fontmgr_bounds_1_-0.25",
331 "serialize-8888",
332 "gm",
333 "_",
334 "fontmgr_bounds",
335 "serialize-8888",
336 "gm",
337 "_",
338 "fontmgr_match",
339 "serialize-8888",
340 "gm",
341 "_",
342 "fontmgr_iter",
343 "serialize-8888",
344 "gm",
345 "_",
346 "imagemasksubset",
347 "serialize-8888",
348 "gm",
349 "_",
Michael Ludwiga6a84002019-04-12 15:03:02 -0400350 "wacky_yuv_formats_domain",
351 "serialize-8888",
352 "gm",
353 "_",
Mike Kleinc24e0c12018-08-17 13:24:51 -0400354 "bitmapfilters",
355 "serialize-8888",
356 "gm",
357 "_",
358 "bitmapshaders",
359 "serialize-8888",
360 "gm",
361 "_",
362 "bleed",
363 "serialize-8888",
364 "gm",
365 "_",
366 "bleed_alpha_bmp",
367 "serialize-8888",
368 "gm",
369 "_",
370 "bleed_alpha_bmp_shader",
371 "serialize-8888",
372 "gm",
373 "_",
374 "convex_poly_clip",
375 "serialize-8888",
376 "gm",
377 "_",
378 "extractalpha",
379 "serialize-8888",
380 "gm",
381 "_",
382 "filterbitmap_checkerboard_32_32_g8",
383 "serialize-8888",
384 "gm",
385 "_",
386 "filterbitmap_image_mandrill_64",
387 "serialize-8888",
388 "gm",
389 "_",
390 "shadows",
391 "serialize-8888",
392 "gm",
393 "_",
394 "simpleaaclip_aaclip",
395 "serialize-8888",
396 "gm",
397 "_",
398 "composeshader_bitmap",
399 "serialize-8888",
400 "gm",
401 "_",
402 "scaled_tilemodes_npot",
403 "serialize-8888",
404 "gm",
405 "_",
406 "scaled_tilemodes",
407 "serialize-8888",
408 "gm",
409 "_",
410 "typefacerendering_pfaMac",
411 "serialize-8888",
412 "gm",
413 "_",
414 "parsedpaths",
415 "serialize-8888",
416 "gm",
417 "_",
418 "ImageGeneratorExternal_rect",
419 "serialize-8888",
420 "gm",
421 "_",
422 "ImageGeneratorExternal_shader",
423 "serialize-8888",
424 "gm",
425 "_",
426 "shadow_utils",
427 "serialize-8888",
428 "gm",
429 "_",
430 "persp_images",
431 "serialize-8888",
432 "gm",
433 "_",
434 "all_bitmap_configs",
435 "serialize-8888",
436 "gm",
437 "_",
438 "makecolorspace",
439 "serialize-8888",
440 "gm",
441 "_",
Mike Klein0a44d5c2018-10-02 11:10:59 -0400442 "readpixels",
443 "serialize-8888",
444 "gm",
445 "_",
Brian Salomon0087c832018-10-15 14:48:20 -0400446 "draw_image_set_rect_to_rect",
447 "serialize-8888",
448 "gm",
449 "_",
Michael Ludwig390f0cc2019-03-19 09:16:38 -0400450 "compositor_quads_shader",
451 "serialize-8888",
452 "gm",
453 "_",
Mike Kleinc24e0c12018-08-17 13:24:51 -0400454 "analytic_antialias_convex",
455 "serialize-8888",
456 "gm",
457 "_",
458 "bleed_alpha_image",
459 "serialize-8888",
460 "gm",
461 "_",
462 "bleed_alpha_image_shader",
463 "pic-8888",
464 "gm",
465 "_",
466 "drawfilter",
Mike Kleinc24e0c12018-08-17 13:24:51 -0400467 "pic-8888",
468 "gm",
469 "_",
470 "image-cacherator-from-picture",
471 "serialize-8888",
472 "gm",
473 "_",
474 "image-cacherator-from-picture",
475 "pic-8888",
476 "gm",
477 "_",
478 "image-cacherator-from-raster",
479 "serialize-8888",
480 "gm",
481 "_",
482 "image-cacherator-from-raster",
483 "pic-8888",
484 "gm",
485 "_",
486 "image-cacherator-from-ctable",
487 "serialize-8888",
488 "gm",
489 "_",
490 "image-cacherator-from-ctable",
491 "pic-8888",
492 "gm",
493 "_",
Mike Kleinc24e0c12018-08-17 13:24:51 -0400494 "complexclip4_bw",
Mike Kleinc24e0c12018-08-17 13:24:51 -0400495 "serialize-8888",
496 "gm",
497 "_",
498 "complexclip4_bw",
499 "pic-8888",
500 "gm",
501 "_",
502 "complexclip4_aa",
Mike Kleinc24e0c12018-08-17 13:24:51 -0400503 "serialize-8888",
504 "gm",
505 "_",
506 "complexclip4_aa",
Mike Klein8f5a7a62018-09-11 12:11:46 -0400507 "pic-8888",
508 "gm",
509 "_",
510 "p3",
Mike Klein8f5a7a62018-09-11 12:11:46 -0400511 "serialize-8888",
512 "gm",
513 "_",
514 "p3",
Brian Salomon201700f2019-05-17 12:05:44 -0400515 "pic-8888",
516 "gm",
517 "_",
518 "async_rescale_and_read_text_up_large",
519 "serialize-8888",
520 "gm",
521 "_",
522 "async_rescale_and_read_text_up_large",
523 "pic-8888",
524 "gm",
525 "_",
526 "async_rescale_and_read_text_up",
527 "serialize-8888",
528 "gm",
529 "_",
530 "async_rescale_and_read_text_up",
531 "pic-8888",
532 "gm",
533 "_",
534 "async_rescale_and_read_text_down",
535 "serialize-8888",
536 "gm",
537 "_",
538 "async_rescale_and_read_text_down",
539 "pic-8888",
540 "gm",
541 "_",
542 "async_rescale_and_read_dog_up",
543 "serialize-8888",
544 "gm",
545 "_",
546 "async_rescale_and_read_dog_up",
547 "pic-8888",
548 "gm",
549 "_",
550 "async_rescale_and_read_dog_down",
551 "serialize-8888",
552 "gm",
553 "_",
554 "async_rescale_and_read_dog_down",
555 "pic-8888",
556 "gm",
557 "_",
558 "async_rescale_and_read_rose",
559 "serialize-8888",
560 "gm",
561 "_",
562 "async_rescale_and_read_rose",
Mike Kleinc24e0c12018-08-17 13:24:51 -0400563 "tiles_rt-8888",
564 "gm",
565 "_",
566 "complexclip4_bw",
567 "tiles_rt-8888",
568 "gm",
569 "_",
570 "complexclip4_aa",
571 "--nonativeFonts",
572 "--verbose"
573 ],
574 "cwd": "[START_DIR]/skia",
575 "env": {
576 "CHROME_HEADLESS": "1",
Robert Iannuccif4d4b872019-02-16 14:10:41 -0800577 "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
Mike Kleinc24e0c12018-08-17 13:24:51 -0400578 },
579 "name": "symbolized dm"
580 },
581 {
recipe-roller96ea3402018-10-30 15:22:37 -0700582 "jsonResult": null,
583 "name": "$result"
Mike Kleinc24e0c12018-08-17 13:24:51 -0400584 }
585]