OLD | NEW |
| (Empty) |
1 [ | |
2 { | |
3 "cmd": [ | |
4 "python", | |
5 "-u", | |
6 "\nimport os, sys\n\nbuild_path = sys.argv[1]\nif os.path.exists(build_pat
h):\n for (path, dir, files) in os.walk(build_path):\n for cur_file in files
:\n if cur_file.endswith('index.lock'):\n path_to_file = os.path.joi
n(path, cur_file)\n print 'deleting %s' % path_to_file\n os.remove
(path_to_file)\n", | |
7 "[SLAVE_BUILD]" | |
8 ], | |
9 "cwd": "[SLAVE_BUILD]", | |
10 "name": "cleanup index.lock", | |
11 "~followup_annotations": [ | |
12 "@@@STEP_LOG_LINE@python.inline@@@@", | |
13 "@@@STEP_LOG_LINE@python.inline@import os, sys@@@", | |
14 "@@@STEP_LOG_LINE@python.inline@@@@", | |
15 "@@@STEP_LOG_LINE@python.inline@build_path = sys.argv[1]@@@", | |
16 "@@@STEP_LOG_LINE@python.inline@if os.path.exists(build_path):@@@", | |
17 "@@@STEP_LOG_LINE@python.inline@ for (path, dir, files) in os.walk(build_
path):@@@", | |
18 "@@@STEP_LOG_LINE@python.inline@ for cur_file in files:@@@", | |
19 "@@@STEP_LOG_LINE@python.inline@ if cur_file.endswith('index.lock'):@
@@", | |
20 "@@@STEP_LOG_LINE@python.inline@ path_to_file = os.path.join(path,
cur_file)@@@", | |
21 "@@@STEP_LOG_LINE@python.inline@ print 'deleting %s' % path_to_file
@@@", | |
22 "@@@STEP_LOG_LINE@python.inline@ os.remove(path_to_file)@@@", | |
23 "@@@STEP_LOG_END@python.inline@@@" | |
24 ] | |
25 }, | |
26 { | |
27 "cmd": [ | |
28 "python", | |
29 "-u", | |
30 "RECIPE_MODULE[depot_tools::bot_update]/resources/bot_update.py", | |
31 "--master", | |
32 "chromium.swarm", | |
33 "--builder", | |
34 "android_deterministic", | |
35 "--slave", | |
36 "TestSlavename", | |
37 "--spec", | |
38 "cache_dir = '[GIT_CACHE]'\nsolutions = [{'deps_file': '.DEPS.git', 'manag
ed': True, 'name': 'src', 'url': 'https://chromium.googlesource.com/chromium/src
.git'}]\ntarget_os = ['android']", | |
39 "--root", | |
40 "src", | |
41 "--revision_mapping_file", | |
42 "{\"src\": \"got_src_revision\", \"src/native_client\": \"got_nacl_revisio
n\", \"src/third_party/angle\": \"got_angle_revision\", \"src/third_party/webrtc
\": \"got_webrtc_revision\", \"src/tools/swarming_client\": \"got_swarming_clien
t_revision\", \"src/v8\": \"got_v8_revision\"}", | |
43 "--git-cache-dir", | |
44 "[GIT_CACHE]", | |
45 "--output_json", | |
46 "/path/to/tmp/json", | |
47 "--revision", | |
48 "src@204787", | |
49 "--force", | |
50 "--output_manifest" | |
51 ], | |
52 "cwd": "[SLAVE_BUILD]", | |
53 "env": { | |
54 "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]" | |
55 }, | |
56 "name": "bot_update", | |
57 "~followup_annotations": [ | |
58 "@@@STEP_TEXT@Some step text@@@", | |
59 "@@@STEP_LOG_LINE@json.output@{@@@", | |
60 "@@@STEP_LOG_LINE@json.output@ \"did_run\": true, @@@", | |
61 "@@@STEP_LOG_LINE@json.output@ \"fixed_revisions\": {@@@", | |
62 "@@@STEP_LOG_LINE@json.output@ \"src\": \"204787\"@@@", | |
63 "@@@STEP_LOG_LINE@json.output@ }, @@@", | |
64 "@@@STEP_LOG_LINE@json.output@ \"manifest\": {@@@", | |
65 "@@@STEP_LOG_LINE@json.output@ \"src\": {@@@", | |
66 "@@@STEP_LOG_LINE@json.output@ \"repository\": \"https://fake.org/src
.git\", @@@", | |
67 "@@@STEP_LOG_LINE@json.output@ \"revision\": \"f27fede2220bcd326aee3e
86ddfd4ebd0fe58cb9\"@@@", | |
68 "@@@STEP_LOG_LINE@json.output@ }, @@@", | |
69 "@@@STEP_LOG_LINE@json.output@ \"src/native_client\": {@@@", | |
70 "@@@STEP_LOG_LINE@json.output@ \"repository\": \"https://fake.org/src
/native_client.git\", @@@", | |
71 "@@@STEP_LOG_LINE@json.output@ \"revision\": \"d998e125e8253980d76e26
9b7982aeeefc1b9b50\"@@@", | |
72 "@@@STEP_LOG_LINE@json.output@ }, @@@", | |
73 "@@@STEP_LOG_LINE@json.output@ \"src/third_party/angle\": {@@@", | |
74 "@@@STEP_LOG_LINE@json.output@ \"repository\": \"https://fake.org/src
/third_party/angle.git\", @@@", | |
75 "@@@STEP_LOG_LINE@json.output@ \"revision\": \"fac9503c46405f77757b9a
728eb85b8d7bc6080c\"@@@", | |
76 "@@@STEP_LOG_LINE@json.output@ }, @@@", | |
77 "@@@STEP_LOG_LINE@json.output@ \"src/third_party/webrtc\": {@@@", | |
78 "@@@STEP_LOG_LINE@json.output@ \"repository\": \"https://fake.org/src
/third_party/webrtc.git\", @@@", | |
79 "@@@STEP_LOG_LINE@json.output@ \"revision\": \"0f90628433546e61d92685
96da93418c623137f4\"@@@", | |
80 "@@@STEP_LOG_LINE@json.output@ }, @@@", | |
81 "@@@STEP_LOG_LINE@json.output@ \"src/tools/swarming_client\": {@@@", | |
82 "@@@STEP_LOG_LINE@json.output@ \"repository\": \"https://fake.org/src
/tools/swarming_client.git\", @@@", | |
83 "@@@STEP_LOG_LINE@json.output@ \"revision\": \"a0ee5d99f1d4b38ddaa4c7
59c837980b63b99566\"@@@", | |
84 "@@@STEP_LOG_LINE@json.output@ }, @@@", | |
85 "@@@STEP_LOG_LINE@json.output@ \"src/v8\": {@@@", | |
86 "@@@STEP_LOG_LINE@json.output@ \"repository\": \"https://fake.org/src
/v8.git\", @@@", | |
87 "@@@STEP_LOG_LINE@json.output@ \"revision\": \"801ada225ddc271c132c3a
35f03975671d43e399\"@@@", | |
88 "@@@STEP_LOG_LINE@json.output@ }@@@", | |
89 "@@@STEP_LOG_LINE@json.output@ }, @@@", | |
90 "@@@STEP_LOG_LINE@json.output@ \"patch_failure\": false, @@@", | |
91 "@@@STEP_LOG_LINE@json.output@ \"patch_root\": \"src\", @@@", | |
92 "@@@STEP_LOG_LINE@json.output@ \"properties\": {@@@", | |
93 "@@@STEP_LOG_LINE@json.output@ \"got_angle_revision\": \"fac9503c46405f
77757b9a728eb85b8d7bc6080c\", @@@", | |
94 "@@@STEP_LOG_LINE@json.output@ \"got_angle_revision_cp\": \"refs/heads/
master@{#297276}\", @@@", | |
95 "@@@STEP_LOG_LINE@json.output@ \"got_nacl_revision\": \"d998e125e825398
0d76e269b7982aeeefc1b9b50\", @@@", | |
96 "@@@STEP_LOG_LINE@json.output@ \"got_nacl_revision_cp\": \"refs/heads/m
aster@{#274981}\", @@@", | |
97 "@@@STEP_LOG_LINE@json.output@ \"got_src_revision\": \"f27fede2220bcd32
6aee3e86ddfd4ebd0fe58cb9\", @@@", | |
98 "@@@STEP_LOG_LINE@json.output@ \"got_src_revision_cp\": \"refs/heads/ma
ster@{#170242}\", @@@", | |
99 "@@@STEP_LOG_LINE@json.output@ \"got_swarming_client_revision\": \"a0ee
5d99f1d4b38ddaa4c759c837980b63b99566\", @@@", | |
100 "@@@STEP_LOG_LINE@json.output@ \"got_swarming_client_revision_cp\": \"r
efs/heads/master@{#276089}\", @@@", | |
101 "@@@STEP_LOG_LINE@json.output@ \"got_v8_revision\": \"801ada225ddc271c1
32c3a35f03975671d43e399\", @@@", | |
102 "@@@STEP_LOG_LINE@json.output@ \"got_v8_revision_cp\": \"refs/heads/mas
ter@{#43426}\", @@@", | |
103 "@@@STEP_LOG_LINE@json.output@ \"got_webrtc_revision\": \"0f90628433546
e61d9268596da93418c623137f4\", @@@", | |
104 "@@@STEP_LOG_LINE@json.output@ \"got_webrtc_revision_cp\": \"refs/heads
/master@{#120644}\"@@@", | |
105 "@@@STEP_LOG_LINE@json.output@ }, @@@", | |
106 "@@@STEP_LOG_LINE@json.output@ \"root\": \"src\", @@@", | |
107 "@@@STEP_LOG_LINE@json.output@ \"step_text\": \"Some step text\"@@@", | |
108 "@@@STEP_LOG_LINE@json.output@}@@@", | |
109 "@@@STEP_LOG_END@json.output@@@", | |
110 "@@@SET_BUILD_PROPERTY@got_nacl_revision@\"d998e125e8253980d76e269b7982aee
efc1b9b50\"@@@", | |
111 "@@@SET_BUILD_PROPERTY@got_src_revision@\"f27fede2220bcd326aee3e86ddfd4ebd
0fe58cb9\"@@@", | |
112 "@@@SET_BUILD_PROPERTY@got_webrtc_revision@\"0f90628433546e61d9268596da934
18c623137f4\"@@@", | |
113 "@@@SET_BUILD_PROPERTY@got_swarming_client_revision@\"a0ee5d99f1d4b38ddaa4
c759c837980b63b99566\"@@@", | |
114 "@@@SET_BUILD_PROPERTY@got_nacl_revision_cp@\"refs/heads/master@{#274981}\
"@@@", | |
115 "@@@SET_BUILD_PROPERTY@got_angle_revision@\"fac9503c46405f77757b9a728eb85b
8d7bc6080c\"@@@", | |
116 "@@@SET_BUILD_PROPERTY@got_v8_revision@\"801ada225ddc271c132c3a35f03975671
d43e399\"@@@", | |
117 "@@@SET_BUILD_PROPERTY@got_v8_revision_cp@\"refs/heads/master@{#43426}\"@@
@", | |
118 "@@@SET_BUILD_PROPERTY@got_swarming_client_revision_cp@\"refs/heads/master
@{#276089}\"@@@", | |
119 "@@@SET_BUILD_PROPERTY@got_webrtc_revision_cp@\"refs/heads/master@{#120644
}\"@@@", | |
120 "@@@SET_BUILD_PROPERTY@got_src_revision_cp@\"refs/heads/master@{#170242}\"
@@@", | |
121 "@@@SET_BUILD_PROPERTY@got_angle_revision_cp@\"refs/heads/master@{#297276}
\"@@@" | |
122 ] | |
123 }, | |
124 { | |
125 "cmd": [ | |
126 "python", | |
127 "-u", | |
128 "\nimport shutil, sys, os\nshutil.rmtree(sys.argv[1], True)\nshutil.rmtree
(sys.argv[2], True)\ntry:\n os.remove(sys.argv[3])\nexcept OSError:\n pass\nfo
r base, _dirs, files in os.walk(sys.argv[4]):\n for f in files:\n if f.endsw
ith('.pyc'):\n os.remove(os.path.join(base, f))\n", | |
129 "[SLAVE_BUILD]/src/out/Release/debug_info_dumps", | |
130 "[SLAVE_BUILD]/src/out/Release/test_logs", | |
131 "[SLAVE_BUILD]/src/out/build_product.zip", | |
132 "[SLAVE_BUILD]/src" | |
133 ], | |
134 "cwd": "[SLAVE_BUILD]", | |
135 "name": "clean local files", | |
136 "~followup_annotations": [ | |
137 "@@@STEP_LOG_LINE@python.inline@@@@", | |
138 "@@@STEP_LOG_LINE@python.inline@import shutil, sys, os@@@", | |
139 "@@@STEP_LOG_LINE@python.inline@shutil.rmtree(sys.argv[1], True)@@@", | |
140 "@@@STEP_LOG_LINE@python.inline@shutil.rmtree(sys.argv[2], True)@@@", | |
141 "@@@STEP_LOG_LINE@python.inline@try:@@@", | |
142 "@@@STEP_LOG_LINE@python.inline@ os.remove(sys.argv[3])@@@", | |
143 "@@@STEP_LOG_LINE@python.inline@except OSError:@@@", | |
144 "@@@STEP_LOG_LINE@python.inline@ pass@@@", | |
145 "@@@STEP_LOG_LINE@python.inline@for base, _dirs, files in os.walk(sys.argv
[4]):@@@", | |
146 "@@@STEP_LOG_LINE@python.inline@ for f in files:@@@", | |
147 "@@@STEP_LOG_LINE@python.inline@ if f.endswith('.pyc'):@@@", | |
148 "@@@STEP_LOG_LINE@python.inline@ os.remove(os.path.join(base, f))@@@"
, | |
149 "@@@STEP_LOG_END@python.inline@@@" | |
150 ] | |
151 }, | |
152 { | |
153 "cmd": [ | |
154 "python", | |
155 "-u", | |
156 "RECIPE_PACKAGE_REPO[depot_tools]/gclient.py", | |
157 "runhooks" | |
158 ], | |
159 "cwd": "[SLAVE_BUILD]", | |
160 "env": { | |
161 "GYP_CROSSCOMPILE": "1", | |
162 "GYP_DEFINES": "OS=android component=static_library fastbuild=1 gomadir='[
BUILD]/goma' target_arch=arm use_goma=1", | |
163 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S
LAVE_BUILD]/src/build/android:%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]" | |
164 }, | |
165 "name": "gclient runhooks" | |
166 }, | |
167 { | |
168 "cmd": [ | |
169 "python", | |
170 "-u", | |
171 "RECIPE_PACKAGE_REPO[build]/scripts/tools/runit.py", | |
172 "--show-path", | |
173 "python", | |
174 "RECIPE_PACKAGE_REPO[build]/scripts/slave/compile.py", | |
175 "--ninja-path", | |
176 "RECIPE_PACKAGE_REPO[depot_tools]/ninja", | |
177 "--target", | |
178 "Release", | |
179 "--src-dir", | |
180 "[SLAVE_BUILD]/src", | |
181 "--goma-cache-dir", | |
182 "[GOMA_CACHE]", | |
183 "--build-tool", | |
184 "ninja", | |
185 "--compiler", | |
186 "goma", | |
187 "--goma-jsonstatus", | |
188 "/path/to/tmp/json", | |
189 "--goma-dir", | |
190 "[BUILD]/goma", | |
191 "--clobber", | |
192 "--", | |
193 "all" | |
194 ], | |
195 "cwd": "[SLAVE_BUILD]", | |
196 "env": { | |
197 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S
LAVE_BUILD]/src/build/android:%(PATH)s" | |
198 }, | |
199 "name": "First build", | |
200 "~followup_annotations": [ | |
201 "@@@STEP_LOG_LINE@json.output (invalid)@null@@@", | |
202 "@@@STEP_LOG_END@json.output (invalid)@@@" | |
203 ] | |
204 }, | |
205 { | |
206 "cmd": [ | |
207 "python", | |
208 "-u", | |
209 "RECIPE_MODULE[build::isolate]/resources/remove_build_metadata.py", | |
210 "--build-dir", | |
211 "[SLAVE_BUILD]/src/out/Release", | |
212 "--src-dir", | |
213 "[SLAVE_BUILD]/src" | |
214 ], | |
215 "cwd": "[SLAVE_BUILD]", | |
216 "name": "remove_build_metadata", | |
217 "~followup_annotations": [ | |
218 "step returned non-zero exit code: 1", | |
219 "@@@STEP_WARNINGS@@@" | |
220 ] | |
221 }, | |
222 { | |
223 "cmd": [ | |
224 "python", | |
225 "-u", | |
226 "\nimport os\nimport shutil\nimport sys\nif os.path.exists(sys.argv[2]):\n
shutil.rmtree(sys.argv[2])\nshutil.move(sys.argv[1], sys.argv[2])", | |
227 "[SLAVE_BUILD]/src/out/Release", | |
228 "[SLAVE_BUILD]/src/out/Release.1" | |
229 ], | |
230 "cwd": "[SLAVE_BUILD]", | |
231 "name": "Move [SLAVE_BUILD]/src/out/Release to [SLAVE_BUILD]/src/out/Release
.1", | |
232 "~followup_annotations": [ | |
233 "@@@STEP_LOG_LINE@python.inline@@@@", | |
234 "@@@STEP_LOG_LINE@python.inline@import os@@@", | |
235 "@@@STEP_LOG_LINE@python.inline@import shutil@@@", | |
236 "@@@STEP_LOG_LINE@python.inline@import sys@@@", | |
237 "@@@STEP_LOG_LINE@python.inline@if os.path.exists(sys.argv[2]):@@@", | |
238 "@@@STEP_LOG_LINE@python.inline@ shutil.rmtree(sys.argv[2])@@@", | |
239 "@@@STEP_LOG_LINE@python.inline@shutil.move(sys.argv[1], sys.argv[2])@@@", | |
240 "@@@STEP_LOG_END@python.inline@@@" | |
241 ] | |
242 }, | |
243 { | |
244 "cmd": [ | |
245 "python", | |
246 "-u", | |
247 "RECIPE_PACKAGE_REPO[depot_tools]/gclient.py", | |
248 "runhooks" | |
249 ], | |
250 "cwd": "[SLAVE_BUILD]", | |
251 "env": { | |
252 "GYP_CROSSCOMPILE": "1", | |
253 "GYP_DEFINES": "OS=android component=static_library fastbuild=1 gomadir='[
BUILD]/goma' target_arch=arm use_goma=1", | |
254 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S
LAVE_BUILD]/src/build/android:%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]" | |
255 }, | |
256 "name": "gclient runhooks (2)" | |
257 }, | |
258 { | |
259 "cmd": [ | |
260 "python", | |
261 "-u", | |
262 "RECIPE_PACKAGE_REPO[build]/scripts/tools/runit.py", | |
263 "--show-path", | |
264 "python", | |
265 "RECIPE_PACKAGE_REPO[build]/scripts/slave/compile.py", | |
266 "--ninja-path", | |
267 "RECIPE_PACKAGE_REPO[depot_tools]/ninja", | |
268 "--target", | |
269 "Release", | |
270 "--src-dir", | |
271 "[SLAVE_BUILD]/src", | |
272 "--goma-cache-dir", | |
273 "[GOMA_CACHE]", | |
274 "--build-tool", | |
275 "ninja", | |
276 "--compiler", | |
277 "goma", | |
278 "--goma-jsonstatus", | |
279 "/path/to/tmp/json", | |
280 "--goma-dir", | |
281 "[BUILD]/goma", | |
282 "--clobber", | |
283 "--", | |
284 "all" | |
285 ], | |
286 "cwd": "[SLAVE_BUILD]", | |
287 "env": { | |
288 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S
LAVE_BUILD]/src/build/android:%(PATH)s" | |
289 }, | |
290 "name": "Second build", | |
291 "~followup_annotations": [ | |
292 "@@@STEP_LOG_LINE@json.output (invalid)@null@@@", | |
293 "@@@STEP_LOG_END@json.output (invalid)@@@" | |
294 ] | |
295 }, | |
296 { | |
297 "cmd": [ | |
298 "python", | |
299 "-u", | |
300 "RECIPE_MODULE[build::isolate]/resources/remove_build_metadata.py", | |
301 "--build-dir", | |
302 "[SLAVE_BUILD]/src/out/Release", | |
303 "--src-dir", | |
304 "[SLAVE_BUILD]/src" | |
305 ], | |
306 "cwd": "[SLAVE_BUILD]", | |
307 "name": "remove_build_metadata (2)" | |
308 }, | |
309 { | |
310 "cmd": [ | |
311 "python", | |
312 "-u", | |
313 "\nimport os\nimport shutil\nimport sys\nif os.path.exists(sys.argv[2]):\n
shutil.rmtree(sys.argv[2])\nshutil.move(sys.argv[1], sys.argv[2])", | |
314 "[SLAVE_BUILD]/src/out/Release", | |
315 "[SLAVE_BUILD]/src/out/Release.2" | |
316 ], | |
317 "cwd": "[SLAVE_BUILD]", | |
318 "name": "Move [SLAVE_BUILD]/src/out/Release to [SLAVE_BUILD]/src/out/Release
.2", | |
319 "~followup_annotations": [ | |
320 "@@@STEP_LOG_LINE@python.inline@@@@", | |
321 "@@@STEP_LOG_LINE@python.inline@import os@@@", | |
322 "@@@STEP_LOG_LINE@python.inline@import shutil@@@", | |
323 "@@@STEP_LOG_LINE@python.inline@import sys@@@", | |
324 "@@@STEP_LOG_LINE@python.inline@if os.path.exists(sys.argv[2]):@@@", | |
325 "@@@STEP_LOG_LINE@python.inline@ shutil.rmtree(sys.argv[2])@@@", | |
326 "@@@STEP_LOG_LINE@python.inline@shutil.move(sys.argv[1], sys.argv[2])@@@", | |
327 "@@@STEP_LOG_END@python.inline@@@" | |
328 ] | |
329 }, | |
330 { | |
331 "cmd": [ | |
332 "python", | |
333 "-u", | |
334 "RECIPE_MODULE[build::isolate]/resources/compare_build_artifacts.py", | |
335 "--first-build-dir", | |
336 "[SLAVE_BUILD]/src/out/Release.1", | |
337 "--second-build-dir", | |
338 "[SLAVE_BUILD]/src/out/Release.2", | |
339 "--target-platform", | |
340 "android" | |
341 ], | |
342 "cwd": "[SLAVE_BUILD]", | |
343 "name": "compare_build_artifacts" | |
344 }, | |
345 { | |
346 "name": "$result", | |
347 "recipe_result": null, | |
348 "status_code": 0 | |
349 } | |
350 ] | |
OLD | NEW |