OLD | NEW |
1 [ | 1 [ |
2 { | 2 { |
3 "cmd": [ | 3 "cmd": [ |
4 "which", | 4 "which", |
5 "adb" | 5 "adb" |
6 ], | 6 ], |
7 "name": "which adb", | 7 "name": "which adb", |
8 "stdout": "/path/to/tmp/", | 8 "stdout": "/path/to/tmp/", |
9 "~followup_annotations": [ | 9 "~followup_annotations": [ |
10 "step returned non-zero exit code: 1", | 10 "step returned non-zero exit code: 1", |
11 "@@@STEP_EXCEPTION@@@" | 11 "@@@STEP_EXCEPTION@@@" |
12 ] | 12 ] |
13 }, | 13 }, |
14 { | 14 { |
15 "cmd": [ | 15 "cmd": [ |
16 "[SLAVE_BUILD]/skia/platform_tools/android/bin/adb_wait_for_device" | 16 "[SLAVE_BUILD]/skia/platform_tools/android/bin/adb_wait_for_device" |
17 ], | 17 ], |
18 "env": { | 18 "env": { |
19 "ANDROID_HOME": "[SLAVE_BUILD]/android_sdk/android-sdk", | 19 "ANDROID_HOME": "[SLAVE_BUILD]/android_sdk/android-sdk", |
20 "ANDROID_SDK_ROOT": "[SLAVE_BUILD]/android_sdk/android-sdk", | 20 "ANDROID_SDK_ROOT": "[SLAVE_BUILD]/android_sdk/android-sdk", |
21 "BUILDTYPE": "Debug", | 21 "BUILDTYPE": "Release", |
22 "CHROME_HEADLESS": "1", | 22 "CHROME_HEADLESS": "1", |
23 "SKIA_ANDROID_VERBOSE_SETUP": "1", | 23 "SKIA_ANDROID_VERBOSE_SETUP": "1", |
24 "SKIA_OUT": "[SLAVE_BUILD]/out" | 24 "SKIA_OUT": "[SLAVE_BUILD]/out" |
25 }, | 25 }, |
26 "name": "wait for device (1)" | 26 "name": "wait for device (1)" |
27 }, | 27 }, |
28 { | 28 { |
29 "cmd": [ | 29 "cmd": [ |
30 "[SLAVE_BUILD]/skia/platform_tools/android/bin/adb_wait_for_charge" | 30 "[SLAVE_BUILD]/skia/platform_tools/android/bin/adb_wait_for_charge" |
31 ], | 31 ], |
32 "env": { | 32 "env": { |
33 "ANDROID_HOME": "[SLAVE_BUILD]/android_sdk/android-sdk", | 33 "ANDROID_HOME": "[SLAVE_BUILD]/android_sdk/android-sdk", |
34 "ANDROID_SDK_ROOT": "[SLAVE_BUILD]/android_sdk/android-sdk", | 34 "ANDROID_SDK_ROOT": "[SLAVE_BUILD]/android_sdk/android-sdk", |
35 "BUILDTYPE": "Debug", | 35 "BUILDTYPE": "Release", |
36 "CHROME_HEADLESS": "1", | 36 "CHROME_HEADLESS": "1", |
37 "SKIA_ANDROID_VERBOSE_SETUP": "1", | 37 "SKIA_ANDROID_VERBOSE_SETUP": "1", |
38 "SKIA_OUT": "[SLAVE_BUILD]/out" | 38 "SKIA_OUT": "[SLAVE_BUILD]/out" |
39 }, | 39 }, |
40 "name": "wait for charge (1)" | 40 "name": "wait for charge (1)" |
41 }, | 41 }, |
42 { | 42 { |
43 "cmd": [ | 43 "cmd": [ |
44 "[SLAVE_BUILD]/android_sdk/android-sdk/platform-tools/adb", | 44 "[SLAVE_BUILD]/android_sdk/android-sdk/platform-tools/adb", |
45 "shell", | 45 "shell", |
46 "echo", | 46 "echo", |
47 "$EXTERNAL_STORAGE" | 47 "$EXTERNAL_STORAGE" |
48 ], | 48 ], |
49 "env": { | 49 "env": { |
50 "BUILDTYPE": "Debug", | 50 "BUILDTYPE": "Release", |
51 "CHROME_HEADLESS": "1", | 51 "CHROME_HEADLESS": "1", |
52 "SKIA_OUT": "[SLAVE_BUILD]/out" | 52 "SKIA_OUT": "[SLAVE_BUILD]/out" |
53 }, | 53 }, |
54 "name": "get EXTERNAL_STORAGE dir", | 54 "name": "get EXTERNAL_STORAGE dir", |
55 "stdout": "/path/to/tmp/" | 55 "stdout": "/path/to/tmp/" |
56 }, | 56 }, |
57 { | 57 { |
58 "cmd": [ | 58 "cmd": [ |
59 "[SLAVE_BUILD]/android_sdk/android-sdk/platform-tools/adb", | 59 "[SLAVE_BUILD]/android_sdk/android-sdk/platform-tools/adb", |
60 "root" | 60 "root" |
61 ], | 61 ], |
62 "env": { | 62 "env": { |
63 "BUILDTYPE": "Debug", | 63 "BUILDTYPE": "Release", |
64 "CHROME_HEADLESS": "1", | 64 "CHROME_HEADLESS": "1", |
65 "SKIA_OUT": "[SLAVE_BUILD]/out" | 65 "SKIA_OUT": "[SLAVE_BUILD]/out" |
66 }, | 66 }, |
67 "name": "adb root", | 67 "name": "adb root", |
68 "stdout": "/path/to/tmp/" | 68 "stdout": "/path/to/tmp/" |
69 }, | 69 }, |
70 { | 70 { |
71 "cmd": [ | 71 "cmd": [ |
72 "sleep", | 72 "sleep", |
73 "10" | 73 "10" |
74 ], | 74 ], |
75 "env": { | 75 "env": { |
76 "BUILDTYPE": "Debug", | 76 "BUILDTYPE": "Release", |
77 "CHROME_HEADLESS": "1", | 77 "CHROME_HEADLESS": "1", |
78 "SKIA_OUT": "[SLAVE_BUILD]/out" | 78 "SKIA_OUT": "[SLAVE_BUILD]/out" |
79 }, | 79 }, |
80 "name": "wait" | 80 "name": "wait" |
81 }, | 81 }, |
82 { | 82 { |
83 "cmd": [ | 83 "cmd": [ |
84 "[SLAVE_BUILD]/skia/platform_tools/android/bin/adb_wait_for_device" | 84 "[SLAVE_BUILD]/skia/platform_tools/android/bin/adb_wait_for_device" |
85 ], | 85 ], |
86 "env": { | 86 "env": { |
87 "ANDROID_HOME": "[SLAVE_BUILD]/android_sdk/android-sdk", | 87 "ANDROID_HOME": "[SLAVE_BUILD]/android_sdk/android-sdk", |
88 "ANDROID_SDK_ROOT": "[SLAVE_BUILD]/android_sdk/android-sdk", | 88 "ANDROID_SDK_ROOT": "[SLAVE_BUILD]/android_sdk/android-sdk", |
89 "BUILDTYPE": "Debug", | 89 "BUILDTYPE": "Release", |
90 "CHROME_HEADLESS": "1", | 90 "CHROME_HEADLESS": "1", |
91 "SKIA_ANDROID_VERBOSE_SETUP": "1", | 91 "SKIA_ANDROID_VERBOSE_SETUP": "1", |
92 "SKIA_OUT": "[SLAVE_BUILD]/out" | 92 "SKIA_OUT": "[SLAVE_BUILD]/out" |
93 }, | 93 }, |
94 "name": "wait for device (2)" | 94 "name": "wait for device (2)" |
95 }, | 95 }, |
96 { | 96 { |
97 "cmd": [ | 97 "cmd": [ |
98 "[SLAVE_BUILD]/skia/platform_tools/android/bin/adb_wait_for_charge" | 98 "[SLAVE_BUILD]/skia/platform_tools/android/bin/adb_wait_for_charge" |
99 ], | 99 ], |
100 "env": { | 100 "env": { |
101 "ANDROID_HOME": "[SLAVE_BUILD]/android_sdk/android-sdk", | 101 "ANDROID_HOME": "[SLAVE_BUILD]/android_sdk/android-sdk", |
102 "ANDROID_SDK_ROOT": "[SLAVE_BUILD]/android_sdk/android-sdk", | 102 "ANDROID_SDK_ROOT": "[SLAVE_BUILD]/android_sdk/android-sdk", |
103 "BUILDTYPE": "Debug", | 103 "BUILDTYPE": "Release", |
104 "CHROME_HEADLESS": "1", | 104 "CHROME_HEADLESS": "1", |
105 "SKIA_ANDROID_VERBOSE_SETUP": "1", | 105 "SKIA_ANDROID_VERBOSE_SETUP": "1", |
106 "SKIA_OUT": "[SLAVE_BUILD]/out" | 106 "SKIA_OUT": "[SLAVE_BUILD]/out" |
107 }, | 107 }, |
108 "name": "wait for charge (2)" | 108 "name": "wait for charge (2)" |
109 }, | 109 }, |
110 { | 110 { |
111 "cmd": [ | 111 "cmd": [ |
112 "[SLAVE_BUILD]/skia/platform_tools/android/bin/android_kill_skia", | 112 "[SLAVE_BUILD]/skia/platform_tools/android/bin/android_kill_skia", |
113 "--verbose" | 113 "--verbose" |
114 ], | 114 ], |
115 "env": { | 115 "env": { |
116 "ANDROID_HOME": "[SLAVE_BUILD]/android_sdk/android-sdk", | 116 "ANDROID_HOME": "[SLAVE_BUILD]/android_sdk/android-sdk", |
117 "ANDROID_SDK_ROOT": "[SLAVE_BUILD]/android_sdk/android-sdk", | 117 "ANDROID_SDK_ROOT": "[SLAVE_BUILD]/android_sdk/android-sdk", |
118 "BUILDTYPE": "Debug", | 118 "BUILDTYPE": "Release", |
119 "CHROME_HEADLESS": "1", | 119 "CHROME_HEADLESS": "1", |
120 "SKIA_ANDROID_VERBOSE_SETUP": "1", | 120 "SKIA_ANDROID_VERBOSE_SETUP": "1", |
121 "SKIA_OUT": "[SLAVE_BUILD]/out" | 121 "SKIA_OUT": "[SLAVE_BUILD]/out" |
122 }, | 122 }, |
123 "name": "kill skia" | 123 "name": "kill skia" |
124 }, | 124 }, |
125 { | 125 { |
126 "cmd": [ | 126 "cmd": [ |
127 "[SLAVE_BUILD]/android_sdk/android-sdk/platform-tools/adb", | 127 "[SLAVE_BUILD]/android_sdk/android-sdk/platform-tools/adb", |
128 "shell", | 128 "shell", |
129 "stop" | 129 "stop" |
130 ], | 130 ], |
131 "env": { | 131 "env": { |
132 "BUILDTYPE": "Debug", | 132 "BUILDTYPE": "Release", |
133 "CHROME_HEADLESS": "1", | 133 "CHROME_HEADLESS": "1", |
134 "SKIA_OUT": "[SLAVE_BUILD]/out" | 134 "SKIA_OUT": "[SLAVE_BUILD]/out" |
135 }, | 135 }, |
136 "name": "stop shell" | 136 "name": "stop shell" |
137 }, | 137 }, |
138 { | 138 { |
139 "cmd": [ | 139 "cmd": [ |
140 "[SLAVE_BUILD]/android_sdk/android-sdk/platform-tools/adb", | 140 "[SLAVE_BUILD]/android_sdk/android-sdk/platform-tools/adb", |
141 "shell", | 141 "shell", |
142 "dumpsys", | 142 "dumpsys", |
143 "batteryproperties" | 143 "batteryproperties" |
144 ], | 144 ], |
145 "env": { | 145 "env": { |
146 "BUILDTYPE": "Debug", | 146 "BUILDTYPE": "Release", |
147 "CHROME_HEADLESS": "1", | 147 "CHROME_HEADLESS": "1", |
148 "SKIA_OUT": "[SLAVE_BUILD]/out" | 148 "SKIA_OUT": "[SLAVE_BUILD]/out" |
149 }, | 149 }, |
150 "name": "starting battery stats" | 150 "name": "starting battery stats" |
151 }, | 151 }, |
152 { | 152 { |
153 "cmd": [ | 153 "cmd": [ |
154 "[SLAVE_BUILD]/android_sdk/android-sdk/platform-tools/adb", | 154 "[SLAVE_BUILD]/android_sdk/android-sdk/platform-tools/adb", |
155 "shell", | 155 "shell", |
156 "cat", | 156 "cat", |
157 "/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor" | 157 "/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor" |
158 ], | 158 ], |
159 "env": { | 159 "env": { |
160 "BUILDTYPE": "Debug", | 160 "BUILDTYPE": "Release", |
161 "CHROME_HEADLESS": "1", | 161 "CHROME_HEADLESS": "1", |
162 "SKIA_OUT": "[SLAVE_BUILD]/out" | 162 "SKIA_OUT": "[SLAVE_BUILD]/out" |
163 }, | 163 }, |
164 "name": "cat scaling_governor" | 164 "name": "cat scaling_governor" |
165 }, | 165 }, |
166 { | 166 { |
167 "cmd": [ | 167 "cmd": [ |
168 "[SLAVE_BUILD]/android_sdk/android-sdk/platform-tools/adb", | 168 "[SLAVE_BUILD]/android_sdk/android-sdk/platform-tools/adb", |
169 "shell", | 169 "shell", |
170 "cat", | 170 "cat", |
171 "/sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq" | 171 "/sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq" |
172 ], | 172 ], |
173 "env": { | 173 "env": { |
174 "BUILDTYPE": "Debug", | 174 "BUILDTYPE": "Release", |
175 "CHROME_HEADLESS": "1", | 175 "CHROME_HEADLESS": "1", |
176 "SKIA_OUT": "[SLAVE_BUILD]/out" | 176 "SKIA_OUT": "[SLAVE_BUILD]/out" |
177 }, | 177 }, |
178 "name": "cat cpu_freq" | 178 "name": "cat cpu_freq" |
179 }, | 179 }, |
180 { | 180 { |
181 "cmd": [ | 181 "cmd": [ |
182 "[SLAVE_BUILD]/skia/platform_tools/android/bin/adb_push_if_needed", | 182 "[SLAVE_BUILD]/skia/platform_tools/android/bin/adb_push_if_needed", |
183 "--verbose", | 183 "--verbose", |
184 "[SLAVE_BUILD]/skia/resources", | 184 "[SLAVE_BUILD]/skia/resources", |
185 "/storage/emulated/legacy/skiabot/skia_resources" | 185 "/storage/emulated/legacy/skiabot/skia_resources" |
186 ], | 186 ], |
187 "env": { | 187 "env": { |
188 "ANDROID_HOME": "[SLAVE_BUILD]/android_sdk/android-sdk", | 188 "ANDROID_HOME": "[SLAVE_BUILD]/android_sdk/android-sdk", |
189 "ANDROID_SDK_ROOT": "[SLAVE_BUILD]/android_sdk/android-sdk", | 189 "ANDROID_SDK_ROOT": "[SLAVE_BUILD]/android_sdk/android-sdk", |
190 "BUILDTYPE": "Debug", | 190 "BUILDTYPE": "Release", |
191 "CHROME_HEADLESS": "1", | 191 "CHROME_HEADLESS": "1", |
192 "SKIA_ANDROID_VERBOSE_SETUP": "1", | 192 "SKIA_ANDROID_VERBOSE_SETUP": "1", |
193 "SKIA_OUT": "[SLAVE_BUILD]/out" | 193 "SKIA_OUT": "[SLAVE_BUILD]/out" |
194 }, | 194 }, |
195 "name": "push resources" | 195 "name": "push resources" |
196 }, | 196 }, |
197 { | 197 { |
198 "cmd": [ | 198 "cmd": [ |
199 "python", | 199 "python", |
200 "-u", | 200 "-u", |
(...skipping 14 matching lines...) Expand all Loading... |
215 "name": "write SKP_VERSION" | 215 "name": "write SKP_VERSION" |
216 }, | 216 }, |
217 { | 217 { |
218 "cmd": [ | 218 "cmd": [ |
219 "[SLAVE_BUILD]/android_sdk/android-sdk/platform-tools/adb", | 219 "[SLAVE_BUILD]/android_sdk/android-sdk/platform-tools/adb", |
220 "shell", | 220 "shell", |
221 "cat", | 221 "cat", |
222 "/storage/emulated/legacy/skiabot/skia_tmp_dir/SKP_VERSION" | 222 "/storage/emulated/legacy/skiabot/skia_tmp_dir/SKP_VERSION" |
223 ], | 223 ], |
224 "env": { | 224 "env": { |
225 "BUILDTYPE": "Debug", | 225 "BUILDTYPE": "Release", |
226 "CHROME_HEADLESS": "1", | 226 "CHROME_HEADLESS": "1", |
227 "SKIA_OUT": "[SLAVE_BUILD]/out" | 227 "SKIA_OUT": "[SLAVE_BUILD]/out" |
228 }, | 228 }, |
229 "name": "read SKP_VERSION", | 229 "name": "read SKP_VERSION", |
230 "stdout": "/path/to/tmp/" | 230 "stdout": "/path/to/tmp/" |
231 }, | 231 }, |
232 { | 232 { |
233 "cmd": [ | 233 "cmd": [ |
234 "python", | 234 "python", |
235 "-u", | 235 "-u", |
(...skipping 14 matching lines...) Expand all Loading... |
250 "name": "write SK_IMAGE_VERSION" | 250 "name": "write SK_IMAGE_VERSION" |
251 }, | 251 }, |
252 { | 252 { |
253 "cmd": [ | 253 "cmd": [ |
254 "[SLAVE_BUILD]/android_sdk/android-sdk/platform-tools/adb", | 254 "[SLAVE_BUILD]/android_sdk/android-sdk/platform-tools/adb", |
255 "shell", | 255 "shell", |
256 "cat", | 256 "cat", |
257 "/storage/emulated/legacy/skiabot/skia_tmp_dir/SK_IMAGE_VERSION" | 257 "/storage/emulated/legacy/skiabot/skia_tmp_dir/SK_IMAGE_VERSION" |
258 ], | 258 ], |
259 "env": { | 259 "env": { |
260 "BUILDTYPE": "Debug", | 260 "BUILDTYPE": "Release", |
261 "CHROME_HEADLESS": "1", | 261 "CHROME_HEADLESS": "1", |
262 "SKIA_OUT": "[SLAVE_BUILD]/out" | 262 "SKIA_OUT": "[SLAVE_BUILD]/out" |
263 }, | 263 }, |
264 "name": "read SK_IMAGE_VERSION", | 264 "name": "read SK_IMAGE_VERSION", |
265 "stdout": "/path/to/tmp/" | 265 "stdout": "/path/to/tmp/" |
266 }, | 266 }, |
267 { | 267 { |
268 "cmd": [ | 268 "cmd": [ |
269 "python", | 269 "python", |
270 "-u", | 270 "-u", |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
310 }, | 310 }, |
311 { | 311 { |
312 "cmd": [ | 312 "cmd": [ |
313 "[SLAVE_BUILD]/android_sdk/android-sdk/platform-tools/adb", | 313 "[SLAVE_BUILD]/android_sdk/android-sdk/platform-tools/adb", |
314 "shell", | 314 "shell", |
315 "rm", | 315 "rm", |
316 "-r", | 316 "-r", |
317 "/storage/emulated/legacy/skiabot/skia_dm" | 317 "/storage/emulated/legacy/skiabot/skia_dm" |
318 ], | 318 ], |
319 "env": { | 319 "env": { |
320 "BUILDTYPE": "Debug", | 320 "BUILDTYPE": "Release", |
321 "CHROME_HEADLESS": "1", | 321 "CHROME_HEADLESS": "1", |
322 "SKIA_OUT": "[SLAVE_BUILD]/out" | 322 "SKIA_OUT": "[SLAVE_BUILD]/out" |
323 }, | 323 }, |
324 "name": "rmdir skia_dm" | 324 "name": "rmdir skia_dm" |
325 }, | 325 }, |
326 { | 326 { |
327 "cmd": [ | 327 "cmd": [ |
328 "[SLAVE_BUILD]/android_sdk/android-sdk/platform-tools/adb", | 328 "[SLAVE_BUILD]/android_sdk/android-sdk/platform-tools/adb", |
329 "shell", | 329 "shell", |
330 "if", | 330 "if", |
331 "[", | 331 "[", |
332 "-e", | 332 "-e", |
333 "/storage/emulated/legacy/skiabot/skia_dm", | 333 "/storage/emulated/legacy/skiabot/skia_dm", |
334 "];", | 334 "];", |
335 "then", | 335 "then", |
336 "echo", | 336 "echo", |
337 "FILE_EXISTS;", | 337 "FILE_EXISTS;", |
338 "fi" | 338 "fi" |
339 ], | 339 ], |
340 "env": { | 340 "env": { |
341 "BUILDTYPE": "Debug", | 341 "BUILDTYPE": "Release", |
342 "CHROME_HEADLESS": "1", | 342 "CHROME_HEADLESS": "1", |
343 "SKIA_OUT": "[SLAVE_BUILD]/out" | 343 "SKIA_OUT": "[SLAVE_BUILD]/out" |
344 }, | 344 }, |
345 "name": "exists skia_dm", | 345 "name": "exists skia_dm", |
346 "stdout": "/path/to/tmp/" | 346 "stdout": "/path/to/tmp/" |
347 }, | 347 }, |
348 { | 348 { |
349 "cmd": [ | 349 "cmd": [ |
350 "[SLAVE_BUILD]/android_sdk/android-sdk/platform-tools/adb", | 350 "[SLAVE_BUILD]/android_sdk/android-sdk/platform-tools/adb", |
351 "shell", | 351 "shell", |
352 "mkdir", | 352 "mkdir", |
353 "-p", | 353 "-p", |
354 "/storage/emulated/legacy/skiabot/skia_dm" | 354 "/storage/emulated/legacy/skiabot/skia_dm" |
355 ], | 355 ], |
356 "env": { | 356 "env": { |
357 "BUILDTYPE": "Debug", | 357 "BUILDTYPE": "Release", |
358 "CHROME_HEADLESS": "1", | 358 "CHROME_HEADLESS": "1", |
359 "SKIA_OUT": "[SLAVE_BUILD]/out" | 359 "SKIA_OUT": "[SLAVE_BUILD]/out" |
360 }, | 360 }, |
361 "name": "mkdir skia_dm" | 361 "name": "mkdir skia_dm" |
362 }, | 362 }, |
363 { | 363 { |
364 "cmd": [ | 364 "cmd": [ |
365 "python", | 365 "python", |
366 "-u", | 366 "-u", |
367 "\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", | 367 "\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", |
(...skipping 16 matching lines...) Expand all Loading... |
384 }, | 384 }, |
385 { | 385 { |
386 "cmd": [ | 386 "cmd": [ |
387 "python", | 387 "python", |
388 "-u", | 388 "-u", |
389 "\nimport contextlib\nimport math\nimport socket\nimport sys\nimport time\
nimport urllib2\n\nHASHES_URL = 'https://gold.skia.org/_/hashes'\nRETRIES = 5\nT
IMEOUT = 60\nWAIT_BASE = 15\n\nsocket.setdefaulttimeout(TIMEOUT)\nfor retry in r
ange(RETRIES):\n try:\n with contextlib.closing(\n urllib2.urlopen(HA
SHES_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(wait
time)\n", | 389 "\nimport contextlib\nimport math\nimport socket\nimport sys\nimport time\
nimport urllib2\n\nHASHES_URL = 'https://gold.skia.org/_/hashes'\nRETRIES = 5\nT
IMEOUT = 60\nWAIT_BASE = 15\n\nsocket.setdefaulttimeout(TIMEOUT)\nfor retry in r
ange(RETRIES):\n try:\n with contextlib.closing(\n urllib2.urlopen(HA
SHES_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(wait
time)\n", |
390 "[SLAVE_BUILD]/tmp/uninteresting_hashes.txt" | 390 "[SLAVE_BUILD]/tmp/uninteresting_hashes.txt" |
391 ], | 391 ], |
392 "cwd": "[SLAVE_BUILD]/skia", | 392 "cwd": "[SLAVE_BUILD]/skia", |
393 "env": { | 393 "env": { |
394 "BUILDTYPE": "Debug", | 394 "BUILDTYPE": "Release", |
395 "CHROME_HEADLESS": "1", | 395 "CHROME_HEADLESS": "1", |
396 "SKIA_OUT": "[SLAVE_BUILD]/out" | 396 "SKIA_OUT": "[SLAVE_BUILD]/out" |
397 }, | 397 }, |
398 "name": "get uninteresting hashes", | 398 "name": "get uninteresting hashes", |
399 "~followup_annotations": [ | 399 "~followup_annotations": [ |
400 "@@@STEP_LOG_LINE@python.inline@@@@", | 400 "@@@STEP_LOG_LINE@python.inline@@@@", |
401 "@@@STEP_LOG_LINE@python.inline@import contextlib@@@", | 401 "@@@STEP_LOG_LINE@python.inline@import contextlib@@@", |
402 "@@@STEP_LOG_LINE@python.inline@import math@@@", | 402 "@@@STEP_LOG_LINE@python.inline@import math@@@", |
403 "@@@STEP_LOG_LINE@python.inline@import socket@@@", | 403 "@@@STEP_LOG_LINE@python.inline@import socket@@@", |
404 "@@@STEP_LOG_LINE@python.inline@import sys@@@", | 404 "@@@STEP_LOG_LINE@python.inline@import sys@@@", |
(...skipping 26 matching lines...) Expand all Loading... |
431 ] | 431 ] |
432 }, | 432 }, |
433 { | 433 { |
434 "cmd": [ | 434 "cmd": [ |
435 "[SLAVE_BUILD]/android_sdk/android-sdk/platform-tools/adb", | 435 "[SLAVE_BUILD]/android_sdk/android-sdk/platform-tools/adb", |
436 "push", | 436 "push", |
437 "[SLAVE_BUILD]/tmp/uninteresting_hashes.txt", | 437 "[SLAVE_BUILD]/tmp/uninteresting_hashes.txt", |
438 "/storage/emulated/legacy/skiabot/skia_tmp_dir/uninteresting_hashes.txt" | 438 "/storage/emulated/legacy/skiabot/skia_tmp_dir/uninteresting_hashes.txt" |
439 ], | 439 ], |
440 "env": { | 440 "env": { |
441 "BUILDTYPE": "Debug", | 441 "BUILDTYPE": "Release", |
442 "CHROME_HEADLESS": "1", | 442 "CHROME_HEADLESS": "1", |
443 "SKIA_OUT": "[SLAVE_BUILD]/out" | 443 "SKIA_OUT": "[SLAVE_BUILD]/out" |
444 }, | 444 }, |
445 "name": "push uninteresting_hashes.txt" | 445 "name": "push uninteresting_hashes.txt" |
446 }, | 446 }, |
447 { | 447 { |
448 "cmd": [ | 448 "cmd": [ |
449 "[SLAVE_BUILD]/skia/platform_tools/android/bin/android_run_skia", | 449 "[SLAVE_BUILD]/skia/platform_tools/android/bin/android_run_skia", |
450 "--verbose", | 450 "--verbose", |
451 "--logcat", | 451 "--logcat", |
452 "-d", | 452 "-d", |
453 "arm_v7_neon", | 453 "x86", |
454 "-t", | 454 "-t", |
455 "Debug", | 455 "Release", |
456 "dm", | 456 "dm", |
457 "--undefok", | 457 "--undefok", |
458 "--resourcePath", | 458 "--resourcePath", |
459 "/storage/emulated/legacy/skiabot/skia_resources", | 459 "/storage/emulated/legacy/skiabot/skia_resources", |
460 "--skps", | 460 "--skps", |
461 "/storage/emulated/legacy/skiabot/skia_skp/skps", | 461 "/storage/emulated/legacy/skiabot/skia_skp/skps", |
462 "--images", | 462 "--images", |
463 "/storage/emulated/legacy/skiabot/skia_images/dm", | 463 "/storage/emulated/legacy/skiabot/skia_images/dm", |
464 "--colorImages", | 464 "--colorImages", |
465 "/storage/emulated/legacy/skiabot/skia_images/colorspace", | 465 "/storage/emulated/legacy/skiabot/skia_images/colorspace", |
466 "--nameByHash", | 466 "--nameByHash", |
467 "--properties", | 467 "--properties", |
468 "gitHash", | 468 "gitHash", |
469 "abc123", | 469 "abc123", |
470 "master", | 470 "master", |
471 "client.skia", | 471 "client.skia", |
472 "builder", | 472 "builder", |
473 "Test-Android-GCC-Nexus7-GPU-Tegra3-Arm7-Debug", | 473 "Test-Android-GCC-NexusPlayer-CPU-SSE4-x86-Release", |
474 "build_number", | 474 "build_number", |
475 "5", | 475 "5", |
476 "--key", | 476 "--key", |
477 "arch", | 477 "arch", |
478 "Arm7", | 478 "x86", |
479 "compiler", | 479 "compiler", |
480 "GCC", | 480 "GCC", |
481 "configuration", | 481 "configuration", |
482 "Debug", | 482 "Release", |
483 "cpu_or_gpu", | 483 "cpu_or_gpu", |
484 "GPU", | 484 "CPU", |
485 "cpu_or_gpu_value", | 485 "cpu_or_gpu_value", |
486 "Tegra3", | 486 "SSE4", |
487 "model", | 487 "model", |
488 "Nexus7", | 488 "NexusPlayer", |
489 "os", | 489 "os", |
490 "Android", | 490 "Android", |
491 "--uninterestingHashesFile", | 491 "--uninterestingHashesFile", |
492 "/storage/emulated/legacy/skiabot/skia_tmp_dir/uninteresting_hashes.txt", | 492 "/storage/emulated/legacy/skiabot/skia_tmp_dir/uninteresting_hashes.txt", |
493 "--writePath", | 493 "--writePath", |
494 "/storage/emulated/legacy/skiabot/skia_dm", | 494 "/storage/emulated/legacy/skiabot/skia_dm", |
495 "--nocpu", | 495 "--nogpu", |
496 "--config", | 496 "--config", |
497 "565", | 497 "565", |
498 "8888", | 498 "8888", |
499 "gpu", | 499 "gpu", |
500 "gpusrgb", | 500 "gpusrgb", |
501 "serialize-8888", | |
502 "tiles_rt-8888", | |
503 "pic-8888", | |
504 "--src", | 501 "--src", |
505 "tests", | 502 "tests", |
506 "gm", | 503 "gm", |
507 "image", | 504 "image", |
508 "colorImage", | 505 "colorImage", |
509 "--blacklist", | 506 "--blacklist", |
510 "f16", | 507 "f16", |
511 "_", | 508 "_", |
512 "_", | 509 "_", |
513 "dstreadshuffle", | 510 "dstreadshuffle", |
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
692 "_", | 689 "_", |
693 "image-cacherator-from-ctable", | 690 "image-cacherator-from-ctable", |
694 "2ndpic-8888", | 691 "2ndpic-8888", |
695 "gm", | 692 "gm", |
696 "_", | 693 "_", |
697 "image-cacherator-from-ctable", | 694 "image-cacherator-from-ctable", |
698 "serialize-8888", | 695 "serialize-8888", |
699 "gm", | 696 "gm", |
700 "_", | 697 "_", |
701 "image-cacherator-from-ctable", | 698 "image-cacherator-from-ctable", |
702 "_", | 699 "--match", |
703 "image", | 700 "~ResourceCache", |
704 "_", | 701 "--noRAW_threading" |
705 "interlaced1.png", | |
706 "_", | |
707 "image", | |
708 "_", | |
709 "interlaced2.png", | |
710 "_", | |
711 "image", | |
712 "_", | |
713 "interlaced3.png", | |
714 "_", | |
715 "image", | |
716 "_", | |
717 ".arw", | |
718 "_", | |
719 "image", | |
720 "_", | |
721 ".cr2", | |
722 "_", | |
723 "image", | |
724 "_", | |
725 ".dng", | |
726 "_", | |
727 "image", | |
728 "_", | |
729 ".nef", | |
730 "_", | |
731 "image", | |
732 "_", | |
733 ".nrw", | |
734 "_", | |
735 "image", | |
736 "_", | |
737 ".orf", | |
738 "_", | |
739 "image", | |
740 "_", | |
741 ".raf", | |
742 "_", | |
743 "image", | |
744 "_", | |
745 ".rw2", | |
746 "_", | |
747 "image", | |
748 "_", | |
749 ".pef", | |
750 "_", | |
751 "image", | |
752 "_", | |
753 ".srw", | |
754 "_", | |
755 "image", | |
756 "_", | |
757 ".ARW", | |
758 "_", | |
759 "image", | |
760 "_", | |
761 ".CR2", | |
762 "_", | |
763 "image", | |
764 "_", | |
765 ".DNG", | |
766 "_", | |
767 "image", | |
768 "_", | |
769 ".NEF", | |
770 "_", | |
771 "image", | |
772 "_", | |
773 ".NRW", | |
774 "_", | |
775 "image", | |
776 "_", | |
777 ".ORF", | |
778 "_", | |
779 "image", | |
780 "_", | |
781 ".RAF", | |
782 "_", | |
783 "image", | |
784 "_", | |
785 ".RW2", | |
786 "_", | |
787 "image", | |
788 "_", | |
789 ".PEF", | |
790 "_", | |
791 "image", | |
792 "_", | |
793 ".SRW" | |
794 ], | 702 ], |
795 "env": { | 703 "env": { |
796 "ANDROID_HOME": "[SLAVE_BUILD]/android_sdk/android-sdk", | 704 "ANDROID_HOME": "[SLAVE_BUILD]/android_sdk/android-sdk", |
797 "ANDROID_SDK_ROOT": "[SLAVE_BUILD]/android_sdk/android-sdk", | 705 "ANDROID_SDK_ROOT": "[SLAVE_BUILD]/android_sdk/android-sdk", |
798 "BUILDTYPE": "Debug", | 706 "BUILDTYPE": "Release", |
799 "CHROME_HEADLESS": "1", | 707 "CHROME_HEADLESS": "1", |
800 "SKIA_ANDROID_VERBOSE_SETUP": "1", | 708 "SKIA_ANDROID_VERBOSE_SETUP": "1", |
801 "SKIA_OUT": "[SLAVE_BUILD]/out" | 709 "SKIA_OUT": "[SLAVE_BUILD]/out" |
802 }, | 710 }, |
803 "name": "dm" | 711 "name": "dm" |
804 }, | 712 }, |
805 { | 713 { |
806 "cmd": [ | 714 "cmd": [ |
807 "[SLAVE_BUILD]/skia/platform_tools/android/bin/adb_pull_if_needed", | 715 "[SLAVE_BUILD]/skia/platform_tools/android/bin/adb_pull_if_needed", |
808 "--verbose", | 716 "--verbose", |
809 "/storage/emulated/legacy/skiabot/skia_dm", | 717 "/storage/emulated/legacy/skiabot/skia_dm", |
810 "[CUSTOM_[SWARM_OUT_DIR]]/dm" | 718 "[CUSTOM_[SWARM_OUT_DIR]]/dm" |
811 ], | 719 ], |
812 "env": { | 720 "env": { |
813 "ANDROID_HOME": "[SLAVE_BUILD]/android_sdk/android-sdk", | 721 "ANDROID_HOME": "[SLAVE_BUILD]/android_sdk/android-sdk", |
814 "ANDROID_SDK_ROOT": "[SLAVE_BUILD]/android_sdk/android-sdk", | 722 "ANDROID_SDK_ROOT": "[SLAVE_BUILD]/android_sdk/android-sdk", |
815 "BUILDTYPE": "Debug", | 723 "BUILDTYPE": "Release", |
816 "CHROME_HEADLESS": "1", | 724 "CHROME_HEADLESS": "1", |
817 "SKIA_ANDROID_VERBOSE_SETUP": "1", | 725 "SKIA_ANDROID_VERBOSE_SETUP": "1", |
818 "SKIA_OUT": "[SLAVE_BUILD]/out" | 726 "SKIA_OUT": "[SLAVE_BUILD]/out" |
819 }, | 727 }, |
820 "name": "pull skia_dm" | 728 "name": "pull skia_dm" |
821 }, | 729 }, |
822 { | 730 { |
823 "cmd": [ | 731 "cmd": [ |
824 "[SLAVE_BUILD]/android_sdk/android-sdk/platform-tools/adb", | 732 "[SLAVE_BUILD]/android_sdk/android-sdk/platform-tools/adb", |
825 "shell", | 733 "shell", |
826 "dumpsys", | 734 "dumpsys", |
827 "batteryproperties" | 735 "batteryproperties" |
828 ], | 736 ], |
829 "env": { | 737 "env": { |
830 "BUILDTYPE": "Debug", | 738 "BUILDTYPE": "Release", |
831 "CHROME_HEADLESS": "1", | 739 "CHROME_HEADLESS": "1", |
832 "SKIA_OUT": "[SLAVE_BUILD]/out" | 740 "SKIA_OUT": "[SLAVE_BUILD]/out" |
833 }, | 741 }, |
834 "name": "final battery stats" | 742 "name": "final battery stats" |
835 }, | 743 }, |
836 { | 744 { |
837 "cmd": [ | 745 "cmd": [ |
838 "[SLAVE_BUILD]/android_sdk/android-sdk/platform-tools/adb", | 746 "[SLAVE_BUILD]/android_sdk/android-sdk/platform-tools/adb", |
839 "reboot" | 747 "reboot" |
840 ], | 748 ], |
841 "env": { | 749 "env": { |
842 "BUILDTYPE": "Debug", | 750 "BUILDTYPE": "Release", |
843 "CHROME_HEADLESS": "1", | 751 "CHROME_HEADLESS": "1", |
844 "SKIA_OUT": "[SLAVE_BUILD]/out" | 752 "SKIA_OUT": "[SLAVE_BUILD]/out" |
845 }, | 753 }, |
846 "name": "reboot" | 754 "name": "reboot" |
847 }, | 755 }, |
848 { | 756 { |
849 "cmd": [ | 757 "cmd": [ |
850 "sleep", | 758 "sleep", |
851 "10" | 759 "10" |
852 ], | 760 ], |
853 "env": { | 761 "env": { |
854 "BUILDTYPE": "Debug", | 762 "BUILDTYPE": "Release", |
855 "CHROME_HEADLESS": "1", | 763 "CHROME_HEADLESS": "1", |
856 "SKIA_OUT": "[SLAVE_BUILD]/out" | 764 "SKIA_OUT": "[SLAVE_BUILD]/out" |
857 }, | 765 }, |
858 "name": "wait for reboot" | 766 "name": "wait for reboot" |
859 }, | 767 }, |
860 { | 768 { |
861 "cmd": [ | 769 "cmd": [ |
862 "[SLAVE_BUILD]/skia/platform_tools/android/bin/adb_wait_for_device" | 770 "[SLAVE_BUILD]/skia/platform_tools/android/bin/adb_wait_for_device" |
863 ], | 771 ], |
864 "env": { | 772 "env": { |
865 "ANDROID_HOME": "[SLAVE_BUILD]/android_sdk/android-sdk", | 773 "ANDROID_HOME": "[SLAVE_BUILD]/android_sdk/android-sdk", |
866 "ANDROID_SDK_ROOT": "[SLAVE_BUILD]/android_sdk/android-sdk", | 774 "ANDROID_SDK_ROOT": "[SLAVE_BUILD]/android_sdk/android-sdk", |
867 "BUILDTYPE": "Debug", | 775 "BUILDTYPE": "Release", |
868 "CHROME_HEADLESS": "1", | 776 "CHROME_HEADLESS": "1", |
869 "SKIA_ANDROID_VERBOSE_SETUP": "1", | 777 "SKIA_ANDROID_VERBOSE_SETUP": "1", |
870 "SKIA_OUT": "[SLAVE_BUILD]/out" | 778 "SKIA_OUT": "[SLAVE_BUILD]/out" |
871 }, | 779 }, |
872 "name": "wait for device (3)" | 780 "name": "wait for device (3)" |
873 }, | 781 }, |
874 { | 782 { |
875 "cmd": [ | 783 "cmd": [ |
876 "[SLAVE_BUILD]/skia/platform_tools/android/bin/adb_wait_for_charge" | 784 "[SLAVE_BUILD]/skia/platform_tools/android/bin/adb_wait_for_charge" |
877 ], | 785 ], |
878 "env": { | 786 "env": { |
879 "ANDROID_HOME": "[SLAVE_BUILD]/android_sdk/android-sdk", | 787 "ANDROID_HOME": "[SLAVE_BUILD]/android_sdk/android-sdk", |
880 "ANDROID_SDK_ROOT": "[SLAVE_BUILD]/android_sdk/android-sdk", | 788 "ANDROID_SDK_ROOT": "[SLAVE_BUILD]/android_sdk/android-sdk", |
881 "BUILDTYPE": "Debug", | 789 "BUILDTYPE": "Release", |
882 "CHROME_HEADLESS": "1", | 790 "CHROME_HEADLESS": "1", |
883 "SKIA_ANDROID_VERBOSE_SETUP": "1", | 791 "SKIA_ANDROID_VERBOSE_SETUP": "1", |
884 "SKIA_OUT": "[SLAVE_BUILD]/out" | 792 "SKIA_OUT": "[SLAVE_BUILD]/out" |
885 }, | 793 }, |
886 "name": "wait for charge (3)" | 794 "name": "wait for charge (3)" |
887 }, | 795 }, |
888 { | 796 { |
889 "cmd": [ | 797 "cmd": [ |
890 "[SLAVE_BUILD]/android_sdk/android-sdk/platform-tools/adb", | 798 "[SLAVE_BUILD]/android_sdk/android-sdk/platform-tools/adb", |
891 "kill-server" | 799 "kill-server" |
892 ], | 800 ], |
893 "env": { | 801 "env": { |
894 "BUILDTYPE": "Debug", | 802 "BUILDTYPE": "Release", |
895 "CHROME_HEADLESS": "1", | 803 "CHROME_HEADLESS": "1", |
896 "SKIA_OUT": "[SLAVE_BUILD]/out" | 804 "SKIA_OUT": "[SLAVE_BUILD]/out" |
897 }, | 805 }, |
898 "name": "kill-server" | 806 "name": "kill-server" |
899 }, | 807 }, |
900 { | 808 { |
901 "name": "$result", | 809 "name": "$result", |
902 "recipe_result": null, | 810 "recipe_result": null, |
903 "status_code": 0 | 811 "status_code": 0 |
904 } | 812 } |
905 ] | 813 ] |
OLD | NEW |