44c5735d26558cea7ad6b059eab86a2dff1cd70b
[platform/upstream/libSkiaSharp.git] /
1 [
2   {
3     "cmd": [
4       "python",
5       "-u",
6       "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n",
7       "[SLAVE_BUILD]/skia/infra/bots/assets/skp/VERSION",
8       "/path/to/tmp/"
9     ],
10     "name": "Get downloaded SKP VERSION"
11   },
12   {
13     "cmd": [
14       "python",
15       "-u",
16       "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n",
17       "42",
18       "[SLAVE_BUILD]/tmp/SKP_VERSION"
19     ],
20     "name": "write SKP_VERSION"
21   },
22   {
23     "cmd": [
24       "python",
25       "-u",
26       "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n",
27       "[SLAVE_BUILD]/skia/infra/bots/assets/skimage/VERSION",
28       "/path/to/tmp/"
29     ],
30     "name": "Get downloaded skimage VERSION"
31   },
32   {
33     "cmd": [
34       "python",
35       "-u",
36       "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n",
37       "42",
38       "[SLAVE_BUILD]/tmp/SK_IMAGE_VERSION"
39     ],
40     "name": "write SK_IMAGE_VERSION"
41   },
42   {
43     "cmd": [
44       "python",
45       "-u",
46       "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n",
47       "[SLAVE_BUILD]/skia/infra/bots/assets/svg/VERSION",
48       "/path/to/tmp/"
49     ],
50     "name": "Get downloaded SVG VERSION"
51   },
52   {
53     "cmd": [
54       "python",
55       "-u",
56       "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n",
57       "42",
58       "[SLAVE_BUILD]/tmp/SVG_VERSION"
59     ],
60     "name": "write SVG_VERSION"
61   },
62   {
63     "cmd": [
64       "python",
65       "-u",
66       "\nimport os, sys\nfrom common import chromium_utils # Error? See https://crbug.com/584783.\n\n\nif os.path.exists(sys.argv[1]):\n  chromium_utils.RemoveDirectory(sys.argv[1])\n",
67       "[CUSTOM_[SWARM_OUT_DIR]]/perfdata/Perf-Ubuntu-GCC-ShuttleA-GPU-GTX550Ti-x86_64-Release-VisualBench/data"
68     ],
69     "env": {
70       "PYTHONPATH": "[SLAVE_BUILD]/skia/infra/bots/.recipe_deps/build/scripts"
71     },
72     "name": "rmtree data",
73     "~followup_annotations": [
74       "@@@STEP_LOG_LINE@python.inline@@@@",
75       "@@@STEP_LOG_LINE@python.inline@import os, sys@@@",
76       "@@@STEP_LOG_LINE@python.inline@from common import chromium_utils # Error? See https://crbug.com/584783.@@@",
77       "@@@STEP_LOG_LINE@python.inline@@@@",
78       "@@@STEP_LOG_LINE@python.inline@@@@",
79       "@@@STEP_LOG_LINE@python.inline@if os.path.exists(sys.argv[1]):@@@",
80       "@@@STEP_LOG_LINE@python.inline@  chromium_utils.RemoveDirectory(sys.argv[1])@@@",
81       "@@@STEP_LOG_END@python.inline@@@"
82     ]
83   },
84   {
85     "cmd": [
86       "python",
87       "-u",
88       "\nimport sys, os\npath = sys.argv[1]\nmode = int(sys.argv[2])\nif not os.path.isdir(path):\n  if os.path.exists(path):\n    print \"%s exists but is not a dir\" % path\n    sys.exit(1)\n  os.makedirs(path, mode)\n",
89       "[CUSTOM_[SWARM_OUT_DIR]]/perfdata/Perf-Ubuntu-GCC-ShuttleA-GPU-GTX550Ti-x86_64-Release-VisualBench/data",
90       "511"
91     ],
92     "name": "makedirs data",
93     "~followup_annotations": [
94       "@@@STEP_LOG_LINE@python.inline@@@@",
95       "@@@STEP_LOG_LINE@python.inline@import sys, os@@@",
96       "@@@STEP_LOG_LINE@python.inline@path = sys.argv[1]@@@",
97       "@@@STEP_LOG_LINE@python.inline@mode = int(sys.argv[2])@@@",
98       "@@@STEP_LOG_LINE@python.inline@if not os.path.isdir(path):@@@",
99       "@@@STEP_LOG_LINE@python.inline@  if os.path.exists(path):@@@",
100       "@@@STEP_LOG_LINE@python.inline@    print \"%s exists but is not a dir\" % path@@@",
101       "@@@STEP_LOG_LINE@python.inline@    sys.exit(1)@@@",
102       "@@@STEP_LOG_LINE@python.inline@  os.makedirs(path, mode)@@@",
103       "@@@STEP_LOG_END@python.inline@@@"
104     ]
105   },
106   {
107     "cmd": [
108       "catchsegv",
109       "[SLAVE_BUILD]/out/Release/visualbench",
110       "--undefok",
111       "-i",
112       "[SLAVE_BUILD]/skia/resources",
113       "--skps",
114       "[SLAVE_BUILD]/skp",
115       "--svgs",
116       "[SLAVE_BUILD]/svg",
117       "--images",
118       "[SLAVE_BUILD]/skimage/nanobench",
119       "--nocpu",
120       "--pre_log",
121       "--images",
122       "--gpuStatsDump",
123       "true",
124       "--scales",
125       "1.0",
126       "1.1",
127       "--config",
128       "8888",
129       "gpu",
130       "nonrendering",
131       "hwui",
132       "f16",
133       "srgb",
134       "msaa16",
135       "nvpr16",
136       "nvprdit16",
137       "--match",
138       "~interlaced1.png",
139       "~interlaced2.png",
140       "~interlaced3.png",
141       "~inc0.gif",
142       "~inc1.gif",
143       "~incInterlaced.gif",
144       "~inc0.jpg",
145       "~incGray.jpg",
146       "~inc0.wbmp",
147       "~inc1.wbmp",
148       "~inc0.webp",
149       "~inc1.webp",
150       "~inc0.ico",
151       "~inc1.ico",
152       "~inc0.png",
153       "~inc1.png",
154       "~inc2.png",
155       "~inc12.png",
156       "~inc13.png",
157       "~inc14.png",
158       "~inc0.webp",
159       "~inc1.webp",
160       "--outResultsFile",
161       "[CUSTOM_[SWARM_OUT_DIR]]/perfdata/Perf-Ubuntu-GCC-ShuttleA-GPU-GTX550Ti-x86_64-Release-VisualBench/data/nanobench_abc123_1337018001.json",
162       "--properties",
163       "gitHash",
164       "abc123",
165       "build_number",
166       "5",
167       "--key",
168       "arch",
169       "x86_64",
170       "compiler",
171       "GCC",
172       "cpu_or_gpu",
173       "GPU",
174       "cpu_or_gpu_value",
175       "GTX550Ti",
176       "extra_config",
177       "VisualBench",
178       "model",
179       "ShuttleA",
180       "os",
181       "Ubuntu"
182     ],
183     "env": {
184       "BUILDTYPE": "Release",
185       "CHROME_HEADLESS": "1",
186       "SKIA_OUT": "[SLAVE_BUILD]/out"
187     },
188     "name": "visualbench"
189   },
190   {
191     "cmd": [
192       "python",
193       "-u",
194       "\nimport sys, os\npath = sys.argv[1]\nmode = int(sys.argv[2])\nif not os.path.isdir(path):\n  if os.path.exists(path):\n    print \"%s exists but is not a dir\" % path\n    sys.exit(1)\n  os.makedirs(path, mode)\n",
195       "[CUSTOM_[SWARM_OUT_DIR]]/perfdata/Perf-Ubuntu-GCC-ShuttleA-GPU-GTX550Ti-x86_64-Release-VisualBench/data",
196       "511"
197     ],
198     "name": "makedirs perf_dir",
199     "~followup_annotations": [
200       "@@@STEP_LOG_LINE@python.inline@@@@",
201       "@@@STEP_LOG_LINE@python.inline@import sys, os@@@",
202       "@@@STEP_LOG_LINE@python.inline@path = sys.argv[1]@@@",
203       "@@@STEP_LOG_LINE@python.inline@mode = int(sys.argv[2])@@@",
204       "@@@STEP_LOG_LINE@python.inline@if not os.path.isdir(path):@@@",
205       "@@@STEP_LOG_LINE@python.inline@  if os.path.exists(path):@@@",
206       "@@@STEP_LOG_LINE@python.inline@    print \"%s exists but is not a dir\" % path@@@",
207       "@@@STEP_LOG_LINE@python.inline@    sys.exit(1)@@@",
208       "@@@STEP_LOG_LINE@python.inline@  os.makedirs(path, mode)@@@",
209       "@@@STEP_LOG_END@python.inline@@@"
210     ]
211   },
212   {
213     "name": "$result",
214     "recipe_result": null,
215     "status_code": 0
216   }
217 ]