blob: fa8a5497197517d07b3f898b4ffcb304b4963791 [file] [log] [blame]
Kevin Lubick0a51b482017-02-06 12:45:29 -05001[
2 {
3 "cmd": [
4 "python",
5 "-u",
6 "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n",
7 "[START_DIR]/skia/infra/bots/assets/skp/VERSION",
8 "/path/to/tmp/"
9 ],
Eric Borena1590852017-03-20 12:48:31 -040010 "infra_step": true,
Kevin Lubick0a51b482017-02-06 12:45:29 -050011 "name": "Get downloaded SKP VERSION"
12 },
13 {
14 "cmd": [
15 "python",
16 "-u",
17 "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n",
18 "42",
19 "[START_DIR]/tmp/SKP_VERSION"
20 ],
Eric Borena1590852017-03-20 12:48:31 -040021 "infra_step": true,
Kevin Lubick0a51b482017-02-06 12:45:29 -050022 "name": "write SKP_VERSION"
23 },
24 {
25 "cmd": [
26 "python",
27 "-u",
28 "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n",
29 "[START_DIR]/skia/infra/bots/assets/skimage/VERSION",
30 "/path/to/tmp/"
31 ],
Eric Borena1590852017-03-20 12:48:31 -040032 "infra_step": true,
Kevin Lubick0a51b482017-02-06 12:45:29 -050033 "name": "Get downloaded skimage VERSION"
34 },
35 {
36 "cmd": [
37 "python",
38 "-u",
39 "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n",
40 "42",
41 "[START_DIR]/tmp/SK_IMAGE_VERSION"
42 ],
Eric Borena1590852017-03-20 12:48:31 -040043 "infra_step": true,
Kevin Lubick0a51b482017-02-06 12:45:29 -050044 "name": "write SK_IMAGE_VERSION"
45 },
46 {
47 "cmd": [
48 "python",
49 "-u",
50 "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n",
51 "[START_DIR]/skia/infra/bots/assets/svg/VERSION",
52 "/path/to/tmp/"
53 ],
Eric Borena1590852017-03-20 12:48:31 -040054 "infra_step": true,
Kevin Lubick0a51b482017-02-06 12:45:29 -050055 "name": "Get downloaded SVG VERSION"
56 },
57 {
58 "cmd": [
59 "python",
60 "-u",
61 "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n",
62 "42",
63 "[START_DIR]/tmp/SVG_VERSION"
64 ],
Eric Borena1590852017-03-20 12:48:31 -040065 "infra_step": true,
Kevin Lubick0a51b482017-02-06 12:45:29 -050066 "name": "write SVG_VERSION"
67 },
68 {
69 "cmd": [
70 "python",
71 "-u",
Eric Boren5128bd42017-03-06 08:06:16 -050072 "RECIPE_MODULE[build::file]/resources/fileutil.py",
73 "rmtree",
Kevin Lubick0a51b482017-02-06 12:45:29 -050074 "[CUSTOM_[SWARM_OUT_DIR]]/dm"
75 ],
76 "env": {
77 "PYTHONPATH": "[START_DIR]/skia/infra/bots/.recipe_deps/build/scripts"
78 },
Eric Borena1590852017-03-20 12:48:31 -040079 "infra_step": true,
Eric Boren5128bd42017-03-06 08:06:16 -050080 "name": "rmtree dm"
Kevin Lubick0a51b482017-02-06 12:45:29 -050081 },
82 {
83 "cmd": [
84 "python",
85 "-u",
86 "\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",
87 "[CUSTOM_[SWARM_OUT_DIR]]/dm",
88 "511"
89 ],
Eric Borena1590852017-03-20 12:48:31 -040090 "infra_step": true,
Kevin Lubick0a51b482017-02-06 12:45:29 -050091 "name": "makedirs dm",
92 "~followup_annotations": [
93 "@@@STEP_LOG_LINE@python.inline@@@@",
94 "@@@STEP_LOG_LINE@python.inline@import sys, os@@@",
95 "@@@STEP_LOG_LINE@python.inline@path = sys.argv[1]@@@",
96 "@@@STEP_LOG_LINE@python.inline@mode = int(sys.argv[2])@@@",
97 "@@@STEP_LOG_LINE@python.inline@if not os.path.isdir(path):@@@",
98 "@@@STEP_LOG_LINE@python.inline@ if os.path.exists(path):@@@",
99 "@@@STEP_LOG_LINE@python.inline@ print \"%s exists but is not a dir\" % path@@@",
100 "@@@STEP_LOG_LINE@python.inline@ sys.exit(1)@@@",
101 "@@@STEP_LOG_LINE@python.inline@ os.makedirs(path, mode)@@@",
102 "@@@STEP_LOG_END@python.inline@@@"
103 ]
104 },
105 {
106 "cmd": [
107 "python",
108 "-u",
109 "\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",
110 "[START_DIR]/tmp",
111 "511"
112 ],
Eric Borena1590852017-03-20 12:48:31 -0400113 "infra_step": true,
Kevin Lubick0a51b482017-02-06 12:45:29 -0500114 "name": "makedirs tmp_dir",
115 "~followup_annotations": [
116 "@@@STEP_LOG_LINE@python.inline@@@@",
117 "@@@STEP_LOG_LINE@python.inline@import sys, os@@@",
118 "@@@STEP_LOG_LINE@python.inline@path = sys.argv[1]@@@",
119 "@@@STEP_LOG_LINE@python.inline@mode = int(sys.argv[2])@@@",
120 "@@@STEP_LOG_LINE@python.inline@if not os.path.isdir(path):@@@",
121 "@@@STEP_LOG_LINE@python.inline@ if os.path.exists(path):@@@",
122 "@@@STEP_LOG_LINE@python.inline@ print \"%s exists but is not a dir\" % path@@@",
123 "@@@STEP_LOG_LINE@python.inline@ sys.exit(1)@@@",
124 "@@@STEP_LOG_LINE@python.inline@ os.makedirs(path, mode)@@@",
125 "@@@STEP_LOG_END@python.inline@@@"
126 ]
127 },
128 {
129 "cmd": [
130 "python",
131 "-u",
132 "\nimport contextlib\nimport math\nimport socket\nimport sys\nimport time\nimport urllib2\n\nHASHES_URL = 'https://gold.skia.org/_/hashes'\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",
133 "[START_DIR]/tmp/uninteresting_hashes.txt"
134 ],
Eric Borenbbb24f22017-03-21 08:20:33 -0400135 "env": {
136 "BUILDTYPE": "Debug",
137 "CHROME_HEADLESS": "1",
138 "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]",
139 "SKIA_OUT": "[START_DIR]/out"
140 },
Eric Borena1590852017-03-20 12:48:31 -0400141 "infra_step": true,
Kevin Lubick0a51b482017-02-06 12:45:29 -0500142 "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 = 'https://gold.skia.org/_/hashes'@@@",
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[1], '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": [
Kevin Lubicka9246dd2017-02-15 10:20:30 -0500179 "python",
180 "-u",
Eric Boren43b9c6b2017-04-06 07:53:30 -0400181 "RECIPE_MODULE[skia::flavor]/resources/symbolize_stack_trace.py",
Kevin Lubicka9246dd2017-02-15 10:20:30 -0500182 "[START_DIR]",
Kevin Lubick0a51b482017-02-06 12:45:29 -0500183 "[START_DIR]/out/Debug/dm",
184 "--undefok",
185 "--resourcePath",
186 "[START_DIR]/skia/resources",
187 "--skps",
188 "[START_DIR]/skp",
189 "--images",
190 "[START_DIR]/skimage/dm",
191 "--colorImages",
192 "[START_DIR]/skimage/colorspace",
193 "--nameByHash",
194 "--properties",
195 "gitHash",
196 "abc123",
197 "master",
198 "client.skia",
199 "builder",
200 "Test-Ubuntu16-Clang-NUC-GPU-IntelIris540-x86_64-Debug-Vulkan",
201 "build_number",
202 "5",
203 "--svgs",
204 "[START_DIR]/svg",
205 "--key",
206 "arch",
207 "x86_64",
208 "compiler",
209 "Clang",
210 "configuration",
211 "Debug",
212 "cpu_or_gpu",
213 "GPU",
214 "cpu_or_gpu_value",
215 "IntelIris540",
216 "extra_config",
217 "Vulkan",
218 "model",
219 "NUC",
220 "os",
221 "Ubuntu16",
222 "--uninterestingHashesFile",
223 "[START_DIR]/tmp/uninteresting_hashes.txt",
224 "--writePath",
225 "[CUSTOM_[SWARM_OUT_DIR]]/dm",
226 "--nocpu",
Brian Osman0dbf0422017-03-20 10:21:26 -0400227 "--randomProcessorTest",
Kevin Lubick0a51b482017-02-06 12:45:29 -0500228 "--config",
229 "vk",
230 "--src",
231 "tests",
232 "gm",
233 "image",
234 "colorImage",
235 "svg",
236 "--blacklist",
237 "_",
238 "image",
239 "_",
240 "interlaced1.png",
241 "_",
242 "image",
243 "_",
244 "interlaced2.png",
245 "_",
246 "image",
247 "_",
248 "interlaced3.png",
249 "_",
250 "image",
251 "_",
252 ".arw",
253 "_",
254 "image",
255 "_",
256 ".cr2",
257 "_",
258 "image",
259 "_",
260 ".dng",
261 "_",
262 "image",
263 "_",
264 ".nef",
265 "_",
266 "image",
267 "_",
268 ".nrw",
269 "_",
270 "image",
271 "_",
272 ".orf",
273 "_",
274 "image",
275 "_",
276 ".raf",
277 "_",
278 "image",
279 "_",
280 ".rw2",
281 "_",
282 "image",
283 "_",
284 ".pef",
285 "_",
286 "image",
287 "_",
288 ".srw",
289 "_",
290 "image",
291 "_",
292 ".ARW",
293 "_",
294 "image",
295 "_",
296 ".CR2",
297 "_",
298 "image",
299 "_",
300 ".DNG",
301 "_",
302 "image",
303 "_",
304 ".NEF",
305 "_",
306 "image",
307 "_",
308 ".NRW",
309 "_",
310 "image",
311 "_",
312 ".ORF",
313 "_",
314 "image",
315 "_",
316 ".RAF",
317 "_",
318 "image",
319 "_",
320 ".RW2",
321 "_",
322 "image",
323 "_",
324 ".PEF",
325 "_",
326 "image",
327 "_",
Greg Daniel6579da22017-02-15 14:41:48 -0500328 ".SRW",
329 "--match",
Greg Danield3caa772017-03-24 11:40:29 -0400330 "~VkHeapTests"
Kevin Lubick0a51b482017-02-06 12:45:29 -0500331 ],
332 "cwd": "[START_DIR]/skia",
333 "env": {
334 "BUILDTYPE": "Debug",
335 "CHROME_HEADLESS": "1",
Kevin Lubick35115eb2017-02-17 10:25:34 -0500336 "LD_LIBRARY_PATH": "[START_DIR]/linux_vulkan_sdk/lib:[START_DIR]/linux_vulkan_intel_driver_debug",
Kevin Lubick0a51b482017-02-06 12:45:29 -0500337 "LIBGL_DRIVERS_PATH": "[START_DIR]/linux_vulkan_intel_driver_debug",
Eric Borenbbb24f22017-03-21 08:20:33 -0400338 "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]",
Kevin Lubick0a51b482017-02-06 12:45:29 -0500339 "SKIA_OUT": "[START_DIR]/out",
340 "VK_ICD_FILENAMES": "[START_DIR]/linux_vulkan_intel_driver_debug/intel_icd.x86_64.json"
341 },
Kevin Lubicka9246dd2017-02-15 10:20:30 -0500342 "name": "symbolized dm"
Kevin Lubick0a51b482017-02-06 12:45:29 -0500343 },
344 {
345 "name": "$result",
346 "recipe_result": null,
347 "status_code": 0
348 }
349]