Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(158)

Side by Side Diff: scripts/slave/recipes/webrtc/standalone.expected/client_webrtc_linux32_arm.json

Issue 2480193002: Stop to use contextmanager for goma.build_with_goma (Closed)
Patch Set: fix pylint Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 [ 1 [
2 { 2 {
3 "cmd": [ 3 "cmd": [
4 "python", 4 "python",
5 "-u", 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", 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]/Linux32_ARM", 7 "[BUILDER_CACHE]/Linux32_ARM",
8 "511" 8 "511"
9 ], 9 ],
10 "name": "makedirs checkout path", 10 "name": "makedirs checkout path",
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 "--gyp-script=[BUILDER_CACHE]/Linux32_ARM/src/webrtc/build/gyp_webrtc.py", 193 "--gyp-script=[BUILDER_CACHE]/Linux32_ARM/src/webrtc/build/gyp_webrtc.py",
194 "//out/Release" 194 "//out/Release"
195 ], 195 ],
196 "cwd": "[BUILDER_CACHE]/Linux32_ARM/src", 196 "cwd": "[BUILDER_CACHE]/Linux32_ARM/src",
197 "env": { 197 "env": {
198 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json" 198 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json"
199 }, 199 },
200 "name": "generate_build_files" 200 "name": "generate_build_files"
201 }, 201 },
202 { 202 {
203 "cmd": [
204 "python",
205 "-u",
206 "\nimport multiprocessing\nimport sys\n\njob_limit = 200\nif sys.platform. startswith('linux'):\n # Use 80 for linux not to load goma backend.\n job_limi t = 80\n\ntry:\n jobs = min(job_limit, multiprocessing.cpu_count() * 10)\nexcep t NotImplementedError:\n jobs = 50\n\nprint jobs\n"
207 ],
208 "name": "calculate the number of recommended jobs",
209 "stdout": "/path/to/tmp/",
210 "~followup_annotations": [
211 "@@@STEP_LOG_LINE@python.inline@@@@",
212 "@@@STEP_LOG_LINE@python.inline@import multiprocessing@@@",
213 "@@@STEP_LOG_LINE@python.inline@import sys@@@",
214 "@@@STEP_LOG_LINE@python.inline@@@@",
215 "@@@STEP_LOG_LINE@python.inline@job_limit = 200@@@",
216 "@@@STEP_LOG_LINE@python.inline@if sys.platform.startswith('linux'):@@@",
217 "@@@STEP_LOG_LINE@python.inline@ # Use 80 for linux not to load goma back end.@@@",
218 "@@@STEP_LOG_LINE@python.inline@ job_limit = 80@@@",
219 "@@@STEP_LOG_LINE@python.inline@@@@",
220 "@@@STEP_LOG_LINE@python.inline@try:@@@",
221 "@@@STEP_LOG_LINE@python.inline@ jobs = min(job_limit, multiprocessing.cp u_count() * 10)@@@",
222 "@@@STEP_LOG_LINE@python.inline@except NotImplementedError:@@@",
223 "@@@STEP_LOG_LINE@python.inline@ jobs = 50@@@",
224 "@@@STEP_LOG_LINE@python.inline@@@@",
225 "@@@STEP_LOG_LINE@python.inline@print jobs@@@",
226 "@@@STEP_LOG_END@python.inline@@@"
227 ]
228 },
229 {
230 "cmd": [], 203 "cmd": [],
231 "name": "preprocess_for_goma" 204 "name": "preprocess_for_goma"
232 }, 205 },
233 { 206 {
234 "cmd": [ 207 "cmd": [
235 "python", 208 "python",
236 "-u", 209 "-u",
237 "[CACHE]/cipd/goma/goma_ctl.py", 210 "[CACHE]/cipd/goma/goma_ctl.py",
238 "restart" 211 "restart"
239 ], 212 ],
(...skipping 22 matching lines...) Expand all
262 "env": { 235 "env": {
263 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json" 236 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json"
264 }, 237 },
265 "name": "preprocess_for_goma.start cloudtail", 238 "name": "preprocess_for_goma.start cloudtail",
266 "~followup_annotations": [ 239 "~followup_annotations": [
267 "@@@STEP_NEST_LEVEL@1@@@" 240 "@@@STEP_NEST_LEVEL@1@@@"
268 ] 241 ]
269 }, 242 },
270 { 243 {
271 "cmd": [ 244 "cmd": [
245 "python",
246 "-u",
247 "\nimport multiprocessing\nimport sys\n\njob_limit = 200\nif sys.platform. startswith('linux'):\n # Use 80 for linux not to load goma backend.\n job_limi t = 80\n\ntry:\n jobs = min(job_limit, multiprocessing.cpu_count() * 10)\nexcep t NotImplementedError:\n jobs = 50\n\nprint jobs\n"
248 ],
249 "name": "calculate the number of recommended jobs",
250 "stdout": "/path/to/tmp/",
251 "~followup_annotations": [
252 "@@@STEP_LOG_LINE@python.inline@@@@",
253 "@@@STEP_LOG_LINE@python.inline@import multiprocessing@@@",
254 "@@@STEP_LOG_LINE@python.inline@import sys@@@",
255 "@@@STEP_LOG_LINE@python.inline@@@@",
256 "@@@STEP_LOG_LINE@python.inline@job_limit = 200@@@",
257 "@@@STEP_LOG_LINE@python.inline@if sys.platform.startswith('linux'):@@@",
258 "@@@STEP_LOG_LINE@python.inline@ # Use 80 for linux not to load goma back end.@@@",
259 "@@@STEP_LOG_LINE@python.inline@ job_limit = 80@@@",
260 "@@@STEP_LOG_LINE@python.inline@@@@",
261 "@@@STEP_LOG_LINE@python.inline@try:@@@",
262 "@@@STEP_LOG_LINE@python.inline@ jobs = min(job_limit, multiprocessing.cp u_count() * 10)@@@",
263 "@@@STEP_LOG_LINE@python.inline@except NotImplementedError:@@@",
264 "@@@STEP_LOG_LINE@python.inline@ jobs = 50@@@",
265 "@@@STEP_LOG_LINE@python.inline@@@@",
266 "@@@STEP_LOG_LINE@python.inline@print jobs@@@",
267 "@@@STEP_LOG_END@python.inline@@@"
268 ]
269 },
270 {
271 "cmd": [
272 "RECIPE_PACKAGE_REPO[depot_tools]/ninja", 272 "RECIPE_PACKAGE_REPO[depot_tools]/ninja",
273 "-j",
274 "50",
273 "-w", 275 "-w",
274 "dupbuild=err", 276 "dupbuild=err",
275 "-C", 277 "-C",
276 "[BUILDER_CACHE]/Linux32_ARM/src/out/Release", 278 "[BUILDER_CACHE]/Linux32_ARM/src/out/Release"
277 "-j",
278 "50"
279 ], 279 ],
280 "env": { 280 "env": {
281 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json" 281 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json"
282 }, 282 },
283 "name": "compile with ninja" 283 "name": "compile with ninja"
284 }, 284 },
285 { 285 {
286 "cmd": [], 286 "cmd": [],
287 "name": "postprocess_for_goma" 287 "name": "postprocess_for_goma"
288 }, 288 },
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 "-u", 338 "-u",
339 "RECIPE_PACKAGE_REPO[build]/scripts/slave/upload_goma_logs.py", 339 "RECIPE_PACKAGE_REPO[build]/scripts/slave/upload_goma_logs.py",
340 "--upload-compiler-proxy-info", 340 "--upload-compiler-proxy-info",
341 "--json-status", 341 "--json-status",
342 "[CACHE]/cipd/goma/jsonstatus", 342 "[CACHE]/cipd/goma/jsonstatus",
343 "--ninja-log-outdir", 343 "--ninja-log-outdir",
344 "[BUILDER_CACHE]/Linux32_ARM/src/out/Release", 344 "[BUILDER_CACHE]/Linux32_ARM/src/out/Release",
345 "--ninja-log-compiler", 345 "--ninja-log-compiler",
346 "goma", 346 "goma",
347 "--ninja-log-command", 347 "--ninja-log-command",
348 "['RECIPE_PACKAGE_REPO[depot_tools]/ninja', '-w', 'dupbuild=err', '-C', '[ BUILDER_CACHE]/Linux32_ARM/src/out/Release', '-j', 50]", 348 "['RECIPE_PACKAGE_REPO[depot_tools]/ninja', '-j', 50, '-w', 'dupbuild=err' , '-C', '[BUILDER_CACHE]/Linux32_ARM/src/out/Release']",
349 "--ninja-log-exit-status", 349 "--ninja-log-exit-status",
350 "0", 350 "0",
351 "--buildbot-buildername", 351 "--buildbot-buildername",
352 "Linux32 ARM", 352 "Linux32 ARM",
353 "--buildbot-mastername", 353 "--buildbot-mastername",
354 "client.webrtc", 354 "client.webrtc",
355 "--buildbot-slavename", 355 "--buildbot-slavename",
356 "slavename" 356 "slavename"
357 ], 357 ],
358 "env": { 358 "env": {
(...skipping 17 matching lines...) Expand all
376 "~followup_annotations": [ 376 "~followup_annotations": [
377 "@@@STEP_NEST_LEVEL@1@@@" 377 "@@@STEP_NEST_LEVEL@1@@@"
378 ] 378 ]
379 }, 379 },
380 { 380 {
381 "name": "$result", 381 "name": "$result",
382 "recipe_result": null, 382 "recipe_result": null,
383 "status_code": 0 383 "status_code": 0
384 } 384 }
385 ] 385 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698