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

Side by Side Diff: scripts/slave/recipes/webrtc/standalone.expected/tryserver_webrtc_android_compile_mips_dbg.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]/android_compile_mips_dbg", 7 "[BUILDER_CACHE]/android_compile_mips_dbg",
8 "511" 8 "511"
9 ], 9 ],
10 "name": "makedirs checkout path", 10 "name": "makedirs checkout path",
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 }, 234 },
235 "name": "clang_revision", 235 "name": "clang_revision",
236 "~followup_annotations": [ 236 "~followup_annotations": [
237 "@@@STEP_LOG_LINE@json.output@{@@@", 237 "@@@STEP_LOG_LINE@json.output@{@@@",
238 "@@@STEP_LOG_LINE@json.output@ \"clang_revision\": \"123456-7\"@@@", 238 "@@@STEP_LOG_LINE@json.output@ \"clang_revision\": \"123456-7\"@@@",
239 "@@@STEP_LOG_LINE@json.output@}@@@", 239 "@@@STEP_LOG_LINE@json.output@}@@@",
240 "@@@STEP_LOG_END@json.output@@@" 240 "@@@STEP_LOG_END@json.output@@@"
241 ] 241 ]
242 }, 242 },
243 { 243 {
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": [], 244 "cmd": [],
272 "name": "preprocess_for_goma" 245 "name": "preprocess_for_goma"
273 }, 246 },
274 { 247 {
275 "cmd": [ 248 "cmd": [
276 "python", 249 "python",
277 "-u", 250 "-u",
278 "[CACHE]/cipd/goma/goma_ctl.py", 251 "[CACHE]/cipd/goma/goma_ctl.py",
279 "restart" 252 "restart"
280 ], 253 ],
(...skipping 23 matching lines...) Expand all
304 "env": { 277 "env": {
305 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json" 278 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json"
306 }, 279 },
307 "name": "preprocess_for_goma.start cloudtail", 280 "name": "preprocess_for_goma.start cloudtail",
308 "~followup_annotations": [ 281 "~followup_annotations": [
309 "@@@STEP_NEST_LEVEL@1@@@" 282 "@@@STEP_NEST_LEVEL@1@@@"
310 ] 283 ]
311 }, 284 },
312 { 285 {
313 "cmd": [ 286 "cmd": [
287 "python",
288 "-u",
289 "\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"
290 ],
291 "name": "calculate the number of recommended jobs",
292 "stdout": "/path/to/tmp/",
293 "~followup_annotations": [
294 "@@@STEP_LOG_LINE@python.inline@@@@",
295 "@@@STEP_LOG_LINE@python.inline@import multiprocessing@@@",
296 "@@@STEP_LOG_LINE@python.inline@import sys@@@",
297 "@@@STEP_LOG_LINE@python.inline@@@@",
298 "@@@STEP_LOG_LINE@python.inline@job_limit = 200@@@",
299 "@@@STEP_LOG_LINE@python.inline@if sys.platform.startswith('linux'):@@@",
300 "@@@STEP_LOG_LINE@python.inline@ # Use 80 for linux not to load goma back end.@@@",
301 "@@@STEP_LOG_LINE@python.inline@ job_limit = 80@@@",
302 "@@@STEP_LOG_LINE@python.inline@@@@",
303 "@@@STEP_LOG_LINE@python.inline@try:@@@",
304 "@@@STEP_LOG_LINE@python.inline@ jobs = min(job_limit, multiprocessing.cp u_count() * 10)@@@",
305 "@@@STEP_LOG_LINE@python.inline@except NotImplementedError:@@@",
306 "@@@STEP_LOG_LINE@python.inline@ jobs = 50@@@",
307 "@@@STEP_LOG_LINE@python.inline@@@@",
308 "@@@STEP_LOG_LINE@python.inline@print jobs@@@",
309 "@@@STEP_LOG_END@python.inline@@@"
310 ]
311 },
312 {
313 "cmd": [
314 "RECIPE_PACKAGE_REPO[depot_tools]/ninja", 314 "RECIPE_PACKAGE_REPO[depot_tools]/ninja",
315 "-j",
316 "50",
315 "-w", 317 "-w",
316 "dupbuild=err", 318 "dupbuild=err",
317 "-C", 319 "-C",
318 "[BUILDER_CACHE]/android_compile_mips_dbg/src/out/Debug", 320 "[BUILDER_CACHE]/android_compile_mips_dbg/src/out/Debug"
319 "-j",
320 "50"
321 ], 321 ],
322 "env": { 322 "env": {
323 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json", 323 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json",
324 "PATH": "[BUILDER_CACHE]/android_compile_mips_dbg/src/third_party/android_ tools/sdk/platform-tools:[BUILDER_CACHE]/android_compile_mips_dbg/src/build/andr oid:%(PATH)s" 324 "PATH": "[BUILDER_CACHE]/android_compile_mips_dbg/src/third_party/android_ tools/sdk/platform-tools:[BUILDER_CACHE]/android_compile_mips_dbg/src/build/andr oid:%(PATH)s"
325 }, 325 },
326 "name": "compile with ninja" 326 "name": "compile with ninja"
327 }, 327 },
328 { 328 {
329 "cmd": [], 329 "cmd": [],
330 "name": "postprocess_for_goma" 330 "name": "postprocess_for_goma"
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
381 "-u", 381 "-u",
382 "RECIPE_PACKAGE_REPO[build]/scripts/slave/upload_goma_logs.py", 382 "RECIPE_PACKAGE_REPO[build]/scripts/slave/upload_goma_logs.py",
383 "--upload-compiler-proxy-info", 383 "--upload-compiler-proxy-info",
384 "--json-status", 384 "--json-status",
385 "[CACHE]/cipd/goma/jsonstatus", 385 "[CACHE]/cipd/goma/jsonstatus",
386 "--ninja-log-outdir", 386 "--ninja-log-outdir",
387 "[BUILDER_CACHE]/android_compile_mips_dbg/src/out/Debug", 387 "[BUILDER_CACHE]/android_compile_mips_dbg/src/out/Debug",
388 "--ninja-log-compiler", 388 "--ninja-log-compiler",
389 "goma-clang", 389 "goma-clang",
390 "--ninja-log-command", 390 "--ninja-log-command",
391 "['RECIPE_PACKAGE_REPO[depot_tools]/ninja', '-w', 'dupbuild=err', '-C', '[ BUILDER_CACHE]/android_compile_mips_dbg/src/out/Debug', '-j', 50]", 391 "['RECIPE_PACKAGE_REPO[depot_tools]/ninja', '-j', 50, '-w', 'dupbuild=err' , '-C', '[BUILDER_CACHE]/android_compile_mips_dbg/src/out/Debug']",
392 "--ninja-log-exit-status", 392 "--ninja-log-exit-status",
393 "0", 393 "0",
394 "--buildbot-buildername", 394 "--buildbot-buildername",
395 "android_compile_mips_dbg", 395 "android_compile_mips_dbg",
396 "--buildbot-mastername", 396 "--buildbot-mastername",
397 "tryserver.webrtc", 397 "tryserver.webrtc",
398 "--buildbot-slavename", 398 "--buildbot-slavename",
399 "slavename" 399 "slavename"
400 ], 400 ],
401 "env": { 401 "env": {
(...skipping 17 matching lines...) Expand all
419 "~followup_annotations": [ 419 "~followup_annotations": [
420 "@@@STEP_NEST_LEVEL@1@@@" 420 "@@@STEP_NEST_LEVEL@1@@@"
421 ] 421 ]
422 }, 422 },
423 { 423 {
424 "name": "$result", 424 "name": "$result",
425 "recipe_result": null, 425 "recipe_result": null,
426 "status_code": 0 426 "status_code": 0
427 } 427 }
428 ] 428 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698