OLD | NEW |
| (Empty) |
1 [ | |
2 { | |
3 "cmd": [ | |
4 "python", | |
5 "-u", | |
6 "\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", | |
7 "[BUILDER_CACHE]/Android32_GN__dbg_", | |
8 "511" | |
9 ], | |
10 "name": "makedirs checkout path", | |
11 "~followup_annotations": [ | |
12 "@@@STEP_LOG_LINE@python.inline@@@@", | |
13 "@@@STEP_LOG_LINE@python.inline@import sys, os@@@", | |
14 "@@@STEP_LOG_LINE@python.inline@path = sys.argv[1]@@@", | |
15 "@@@STEP_LOG_LINE@python.inline@mode = int(sys.argv[2])@@@", | |
16 "@@@STEP_LOG_LINE@python.inline@if not os.path.isdir(path):@@@", | |
17 "@@@STEP_LOG_LINE@python.inline@ if os.path.exists(path):@@@", | |
18 "@@@STEP_LOG_LINE@python.inline@ print \"%s exists but is not a dir\" %
path@@@", | |
19 "@@@STEP_LOG_LINE@python.inline@ sys.exit(1)@@@", | |
20 "@@@STEP_LOG_LINE@python.inline@ os.makedirs(path, mode)@@@", | |
21 "@@@STEP_LOG_END@python.inline@@@" | |
22 ] | |
23 }, | |
24 { | |
25 "cmd": [ | |
26 "python", | |
27 "-u", | |
28 "RECIPE_MODULE[depot_tools::bot_update]/resources/bot_update.py", | |
29 "--master", | |
30 "client.webrtc", | |
31 "--builder", | |
32 "Android32 GN (dbg)", | |
33 "--slave", | |
34 "slavename", | |
35 "--spec", | |
36 "cache_dir = '[GIT_CACHE]'\nsolutions = [{'deps_file': 'DEPS', 'managed':
True, 'name': 'src', 'url': 'https://chromium.googlesource.com/external/webrtc'}
, {'deps_file': 'DEPS', 'managed': True, 'name': 'webrtc-limited', 'url': 'https
://chrome-internal.googlesource.com/chrome/deps/webrtc-limited'}]\ntarget_os = [
'android']", | |
37 "--root", | |
38 "src", | |
39 "--revision_mapping_file", | |
40 "{\"src\": \"got_revision\"}", | |
41 "--git-cache-dir", | |
42 "[GIT_CACHE]", | |
43 "--output_json", | |
44 "/path/to/tmp/json", | |
45 "--revision", | |
46 "src@12345", | |
47 "--output_manifest" | |
48 ], | |
49 "cwd": "[BUILDER_CACHE]/Android32_GN__dbg_", | |
50 "env": { | |
51 "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]" | |
52 }, | |
53 "name": "bot_update", | |
54 "~followup_annotations": [ | |
55 "@@@STEP_TEXT@Some step text@@@", | |
56 "@@@STEP_LOG_LINE@json.output@{@@@", | |
57 "@@@STEP_LOG_LINE@json.output@ \"did_run\": true, @@@", | |
58 "@@@STEP_LOG_LINE@json.output@ \"fixed_revisions\": {@@@", | |
59 "@@@STEP_LOG_LINE@json.output@ \"src\": \"12345\"@@@", | |
60 "@@@STEP_LOG_LINE@json.output@ }, @@@", | |
61 "@@@STEP_LOG_LINE@json.output@ \"manifest\": {@@@", | |
62 "@@@STEP_LOG_LINE@json.output@ \"src\": {@@@", | |
63 "@@@STEP_LOG_LINE@json.output@ \"repository\": \"https://fake.org/src
.git\", @@@", | |
64 "@@@STEP_LOG_LINE@json.output@ \"revision\": \"f27fede2220bcd326aee3e
86ddfd4ebd0fe58cb9\"@@@", | |
65 "@@@STEP_LOG_LINE@json.output@ }@@@", | |
66 "@@@STEP_LOG_LINE@json.output@ }, @@@", | |
67 "@@@STEP_LOG_LINE@json.output@ \"patch_failure\": false, @@@", | |
68 "@@@STEP_LOG_LINE@json.output@ \"patch_root\": \"src\", @@@", | |
69 "@@@STEP_LOG_LINE@json.output@ \"properties\": {@@@", | |
70 "@@@STEP_LOG_LINE@json.output@ \"got_revision\": \"f27fede2220bcd326aee
3e86ddfd4ebd0fe58cb9\", @@@", | |
71 "@@@STEP_LOG_LINE@json.output@ \"got_revision_cp\": \"refs/heads/master
@{#170242}\"@@@", | |
72 "@@@STEP_LOG_LINE@json.output@ }, @@@", | |
73 "@@@STEP_LOG_LINE@json.output@ \"root\": \"src\", @@@", | |
74 "@@@STEP_LOG_LINE@json.output@ \"step_text\": \"Some step text\"@@@", | |
75 "@@@STEP_LOG_LINE@json.output@}@@@", | |
76 "@@@STEP_LOG_END@json.output@@@", | |
77 "@@@SET_BUILD_PROPERTY@got_revision@\"f27fede2220bcd326aee3e86ddfd4ebd0fe5
8cb9\"@@@", | |
78 "@@@SET_BUILD_PROPERTY@got_revision_cp@\"refs/heads/master@{#170242}\"@@@" | |
79 ] | |
80 }, | |
81 { | |
82 "cmd": [ | |
83 "python", | |
84 "-u", | |
85 "RECIPE_MODULE[build::webrtc]/resources/cleanup_files.py", | |
86 "[BUILDER_CACHE]/Android32_GN__dbg_/src/out" | |
87 ], | |
88 "name": "clean test output files" | |
89 }, | |
90 { | |
91 "cmd": [ | |
92 "python", | |
93 "-u", | |
94 "\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", | |
95 "[BUILDER_CACHE]/Android32_GN__dbg_/src/out/Debug/debug_info_dumps", | |
96 "[BUILDER_CACHE]/Android32_GN__dbg_/src/out/Debug/test_logs", | |
97 "[BUILDER_CACHE]/Android32_GN__dbg_/src/out/build_product.zip", | |
98 "[BUILDER_CACHE]/Android32_GN__dbg_/src" | |
99 ], | |
100 "name": "clean local files", | |
101 "~followup_annotations": [ | |
102 "@@@STEP_LOG_LINE@python.inline@@@@", | |
103 "@@@STEP_LOG_LINE@python.inline@import shutil, sys, os@@@", | |
104 "@@@STEP_LOG_LINE@python.inline@shutil.rmtree(sys.argv[1], True)@@@", | |
105 "@@@STEP_LOG_LINE@python.inline@shutil.rmtree(sys.argv[2], True)@@@", | |
106 "@@@STEP_LOG_LINE@python.inline@try:@@@", | |
107 "@@@STEP_LOG_LINE@python.inline@ os.remove(sys.argv[3])@@@", | |
108 "@@@STEP_LOG_LINE@python.inline@except OSError:@@@", | |
109 "@@@STEP_LOG_LINE@python.inline@ pass@@@", | |
110 "@@@STEP_LOG_LINE@python.inline@for base, _dirs, files in os.walk(sys.argv
[4]):@@@", | |
111 "@@@STEP_LOG_LINE@python.inline@ for f in files:@@@", | |
112 "@@@STEP_LOG_LINE@python.inline@ if f.endswith('.pyc'):@@@", | |
113 "@@@STEP_LOG_LINE@python.inline@ os.remove(os.path.join(base, f))@@@"
, | |
114 "@@@STEP_LOG_END@python.inline@@@" | |
115 ] | |
116 }, | |
117 { | |
118 "cmd": [], | |
119 "name": "ensure_goma" | |
120 }, | |
121 { | |
122 "cmd": [ | |
123 "python", | |
124 "-u", | |
125 "RECIPE_MODULE[depot_tools::cipd]/resources/bootstrap.py", | |
126 "--platform", | |
127 "linux-386", | |
128 "--dest-directory", | |
129 "[SLAVE_BUILD]/cipd", | |
130 "--json-output", | |
131 "/path/to/tmp/json" | |
132 ], | |
133 "name": "ensure_goma.install cipd", | |
134 "~followup_annotations": [ | |
135 "@@@STEP_NEST_LEVEL@1@@@", | |
136 "@@@STEP_TEXT@cipd instance_id: 40-chars-fake-of-the-package-instance_id@@
@", | |
137 "@@@STEP_LOG_LINE@json.output@{@@@", | |
138 "@@@STEP_LOG_LINE@json.output@ \"executable\": \"[SLAVE_BUILD]/cipd/cipd\
", @@@", | |
139 "@@@STEP_LOG_LINE@json.output@ \"instance_id\": \"40-chars-fake-of-the-pa
ckage-instance_id\"@@@", | |
140 "@@@STEP_LOG_LINE@json.output@}@@@", | |
141 "@@@STEP_LOG_END@json.output@@@" | |
142 ] | |
143 }, | |
144 { | |
145 "cmd": [ | |
146 "[SLAVE_BUILD]/cipd/cipd", | |
147 "ensure", | |
148 "--root", | |
149 "[CACHE]/cipd/goma", | |
150 "--list", | |
151 "infra/tools/cloudtail/linux-386 git_revision:c6b17d5aa4fa6396c5f971248120
e0e624c21fb3\ninfra_internal/goma/client/linux-386 release", | |
152 "--json-output", | |
153 "/path/to/tmp/json", | |
154 "--service-account-json", | |
155 "/creds/service_accounts/service-account-goma-client.json" | |
156 ], | |
157 "name": "ensure_goma.ensure_installed", | |
158 "~followup_annotations": [ | |
159 "@@@STEP_NEST_LEVEL@1@@@", | |
160 "@@@STEP_LOG_LINE@json.output@{@@@", | |
161 "@@@STEP_LOG_LINE@json.output@ \"result\": [@@@", | |
162 "@@@STEP_LOG_LINE@json.output@ {@@@", | |
163 "@@@STEP_LOG_LINE@json.output@ \"instance_id\": \"resolved-instance_i
d-of-git_revision:c6b\", @@@", | |
164 "@@@STEP_LOG_LINE@json.output@ \"package\": \"infra/tools/cloudtail/l
inux-386\"@@@", | |
165 "@@@STEP_LOG_LINE@json.output@ }, @@@", | |
166 "@@@STEP_LOG_LINE@json.output@ {@@@", | |
167 "@@@STEP_LOG_LINE@json.output@ \"instance_id\": \"resolved-instance_i
d-of-release---------\", @@@", | |
168 "@@@STEP_LOG_LINE@json.output@ \"package\": \"infra_internal/goma/cli
ent/linux-386\"@@@", | |
169 "@@@STEP_LOG_LINE@json.output@ }@@@", | |
170 "@@@STEP_LOG_LINE@json.output@ ]@@@", | |
171 "@@@STEP_LOG_LINE@json.output@}@@@", | |
172 "@@@STEP_LOG_END@json.output@@@" | |
173 ] | |
174 }, | |
175 { | |
176 "cmd": [ | |
177 "python", | |
178 "-u", | |
179 "RECIPE_PACKAGE_REPO[depot_tools]/gclient.py", | |
180 "runhooks" | |
181 ], | |
182 "cwd": "[BUILDER_CACHE]/Android32_GN__dbg_/src", | |
183 "env": { | |
184 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account
-goma-client.json", | |
185 "GYP_CHROMIUM_NO_ACTION": "1", | |
186 "GYP_CROSSCOMPILE": "1", | |
187 "GYP_DEFINES": "OS=android component=static_library fastbuild=1 gomadir='[
CACHE]/cipd/goma' target_arch=arm use_goma=1", | |
188 "PATH": "[BUILDER_CACHE]/Android32_GN__dbg_/src/third_party/android_tools/
sdk/platform-tools:[BUILDER_CACHE]/Android32_GN__dbg_/src/build/android:%(PATH)s
:RECIPE_PACKAGE_REPO[depot_tools]" | |
189 }, | |
190 "name": "gclient runhooks" | |
191 }, | |
192 { | |
193 "cmd": [ | |
194 "python", | |
195 "-u", | |
196 "[BUILDER_CACHE]/Android32_GN__dbg_/src/tools/mb/mb.py", | |
197 "gen", | |
198 "-m", | |
199 "client.webrtc", | |
200 "-b", | |
201 "Android32 GN (dbg)", | |
202 "--config-file", | |
203 "[BUILDER_CACHE]/Android32_GN__dbg_/src/webrtc/build/mb_config.pyl", | |
204 "--goma-dir", | |
205 "[CACHE]/cipd/goma", | |
206 "--gyp-script=[BUILDER_CACHE]/Android32_GN__dbg_/src/webrtc/build/gyp_webr
tc.py", | |
207 "//out/Debug" | |
208 ], | |
209 "cwd": "[BUILDER_CACHE]/Android32_GN__dbg_/src", | |
210 "env": { | |
211 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account
-goma-client.json" | |
212 }, | |
213 "name": "generate_build_files" | |
214 }, | |
215 { | |
216 "cmd": [ | |
217 "python", | |
218 "-u", | |
219 "RECIPE_PACKAGE_REPO[build]/scripts/tools/runit.py", | |
220 "--show-path", | |
221 "python", | |
222 "RECIPE_PACKAGE_REPO[build]/scripts/slave/compile.py", | |
223 "--gsutil-py-path", | |
224 "RECIPE_PACKAGE_REPO[depot_tools]/gsutil.py", | |
225 "--ninja-path", | |
226 "RECIPE_PACKAGE_REPO[depot_tools]/ninja", | |
227 "--target", | |
228 "Debug", | |
229 "--src-dir", | |
230 "[BUILDER_CACHE]/Android32_GN__dbg_/src", | |
231 "--goma-cache-dir", | |
232 "[GOMA_CACHE]", | |
233 "--goma-deps-cache-dir", | |
234 "[GOMA_DEPS_CACHE]", | |
235 "--compiler", | |
236 "goma", | |
237 "--goma-jsonstatus", | |
238 "/path/to/tmp/json", | |
239 "--goma-service-account-json-file", | |
240 "/creds/service_accounts/service-account-goma-client.json", | |
241 "--goma-dir", | |
242 "[CACHE]/cipd/goma", | |
243 "--", | |
244 "all" | |
245 ], | |
246 "env": { | |
247 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account
-goma-client.json", | |
248 "PATH": "[BUILDER_CACHE]/Android32_GN__dbg_/src/third_party/android_tools/
sdk/platform-tools:[BUILDER_CACHE]/Android32_GN__dbg_/src/build/android:%(PATH)s
" | |
249 }, | |
250 "name": "compile", | |
251 "~followup_annotations": [ | |
252 "@@@STEP_LOG_LINE@json.output (invalid)@null@@@", | |
253 "@@@STEP_LOG_END@json.output (invalid)@@@" | |
254 ] | |
255 }, | |
256 { | |
257 "name": "$result", | |
258 "recipe_result": null, | |
259 "status_code": 0 | |
260 } | |
261 ] | |
OLD | NEW |