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

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

Issue 2480193002: Stop to use contextmanager for goma.build_with_goma (Closed)
Patch Set: update 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_rel", 7 "[BUILDER_CACHE]/android_rel",
8 "511" 8 "511"
9 ], 9 ],
10 "name": "makedirs checkout path", 10 "name": "makedirs checkout path",
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 "@@@STEP_LOG_LINE@swarming-targets-file.txt@system_wrappers_unittests@@@", 247 "@@@STEP_LOG_LINE@swarming-targets-file.txt@system_wrappers_unittests@@@",
248 "@@@STEP_LOG_LINE@swarming-targets-file.txt@test_support_unittests@@@", 248 "@@@STEP_LOG_LINE@swarming-targets-file.txt@test_support_unittests@@@",
249 "@@@STEP_LOG_LINE@swarming-targets-file.txt@tools_unittests@@@", 249 "@@@STEP_LOG_LINE@swarming-targets-file.txt@tools_unittests@@@",
250 "@@@STEP_LOG_LINE@swarming-targets-file.txt@video_engine_tests@@@", 250 "@@@STEP_LOG_LINE@swarming-targets-file.txt@video_engine_tests@@@",
251 "@@@STEP_LOG_LINE@swarming-targets-file.txt@voice_engine_unittests@@@", 251 "@@@STEP_LOG_LINE@swarming-targets-file.txt@voice_engine_unittests@@@",
252 "@@@STEP_LOG_LINE@swarming-targets-file.txt@webrtc_nonparallel_tests@@@", 252 "@@@STEP_LOG_LINE@swarming-targets-file.txt@webrtc_nonparallel_tests@@@",
253 "@@@STEP_LOG_END@swarming-targets-file.txt@@@" 253 "@@@STEP_LOG_END@swarming-targets-file.txt@@@"
254 ] 254 ]
255 }, 255 },
256 { 256 {
257 "cmd": [
258 "python",
259 "-u",
260 "\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"
261 ],
262 "name": "calculate the number of recommended jobs",
263 "stdout": "/path/to/tmp/",
264 "~followup_annotations": [
265 "@@@STEP_LOG_LINE@python.inline@@@@",
266 "@@@STEP_LOG_LINE@python.inline@import multiprocessing@@@",
267 "@@@STEP_LOG_LINE@python.inline@import sys@@@",
268 "@@@STEP_LOG_LINE@python.inline@@@@",
269 "@@@STEP_LOG_LINE@python.inline@job_limit = 200@@@",
270 "@@@STEP_LOG_LINE@python.inline@if sys.platform.startswith('linux'):@@@",
271 "@@@STEP_LOG_LINE@python.inline@ # Use 80 for linux not to load goma back end.@@@",
272 "@@@STEP_LOG_LINE@python.inline@ job_limit = 80@@@",
273 "@@@STEP_LOG_LINE@python.inline@@@@",
274 "@@@STEP_LOG_LINE@python.inline@try:@@@",
275 "@@@STEP_LOG_LINE@python.inline@ jobs = min(job_limit, multiprocessing.cp u_count() * 10)@@@",
276 "@@@STEP_LOG_LINE@python.inline@except NotImplementedError:@@@",
277 "@@@STEP_LOG_LINE@python.inline@ jobs = 50@@@",
278 "@@@STEP_LOG_LINE@python.inline@@@@",
279 "@@@STEP_LOG_LINE@python.inline@print jobs@@@",
280 "@@@STEP_LOG_END@python.inline@@@"
281 ]
282 },
283 {
284 "cmd": [], 257 "cmd": [],
285 "name": "preprocess_for_goma" 258 "name": "preprocess_for_goma"
286 }, 259 },
287 { 260 {
288 "cmd": [ 261 "cmd": [
289 "python", 262 "python",
290 "-u", 263 "-u",
291 "[CACHE]/cipd/goma/goma_ctl.py", 264 "[CACHE]/cipd/goma/goma_ctl.py",
292 "restart" 265 "restart"
293 ], 266 ],
(...skipping 23 matching lines...) Expand all
317 "env": { 290 "env": {
318 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json" 291 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json"
319 }, 292 },
320 "name": "preprocess_for_goma.start cloudtail", 293 "name": "preprocess_for_goma.start cloudtail",
321 "~followup_annotations": [ 294 "~followup_annotations": [
322 "@@@STEP_NEST_LEVEL@1@@@" 295 "@@@STEP_NEST_LEVEL@1@@@"
323 ] 296 ]
324 }, 297 },
325 { 298 {
326 "cmd": [ 299 "cmd": [
300 "python",
301 "-u",
302 "\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"
303 ],
304 "name": "calculate the number of recommended jobs",
305 "stdout": "/path/to/tmp/",
306 "~followup_annotations": [
307 "@@@STEP_LOG_LINE@python.inline@@@@",
308 "@@@STEP_LOG_LINE@python.inline@import multiprocessing@@@",
309 "@@@STEP_LOG_LINE@python.inline@import sys@@@",
310 "@@@STEP_LOG_LINE@python.inline@@@@",
311 "@@@STEP_LOG_LINE@python.inline@job_limit = 200@@@",
312 "@@@STEP_LOG_LINE@python.inline@if sys.platform.startswith('linux'):@@@",
313 "@@@STEP_LOG_LINE@python.inline@ # Use 80 for linux not to load goma back end.@@@",
314 "@@@STEP_LOG_LINE@python.inline@ job_limit = 80@@@",
315 "@@@STEP_LOG_LINE@python.inline@@@@",
316 "@@@STEP_LOG_LINE@python.inline@try:@@@",
317 "@@@STEP_LOG_LINE@python.inline@ jobs = min(job_limit, multiprocessing.cp u_count() * 10)@@@",
318 "@@@STEP_LOG_LINE@python.inline@except NotImplementedError:@@@",
319 "@@@STEP_LOG_LINE@python.inline@ jobs = 50@@@",
320 "@@@STEP_LOG_LINE@python.inline@@@@",
321 "@@@STEP_LOG_LINE@python.inline@print jobs@@@",
322 "@@@STEP_LOG_END@python.inline@@@"
323 ]
324 },
325 {
326 "cmd": [
327 "RECIPE_PACKAGE_REPO[depot_tools]/ninja", 327 "RECIPE_PACKAGE_REPO[depot_tools]/ninja",
328 "-w", 328 "-w",
329 "dupbuild=err", 329 "dupbuild=err",
330 "-C", 330 "-C",
331 "[BUILDER_CACHE]/android_rel/src/out/Release", 331 "[BUILDER_CACHE]/android_rel/src/out/Release",
332 "-j", 332 "-j",
333 "50" 333 "50"
334 ], 334 ],
335 "env": { 335 "env": {
336 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json", 336 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json",
(...skipping 2371 matching lines...) Expand 10 before | Expand all | Expand 10 after
2708 ], 2708 ],
2709 "cwd": "[BUILDER_CACHE]/android_rel", 2709 "cwd": "[BUILDER_CACHE]/android_rel",
2710 "name": "Upload to test-results [libjingle_peerconnection_android_unittest o n Android]" 2710 "name": "Upload to test-results [libjingle_peerconnection_android_unittest o n Android]"
2711 }, 2711 },
2712 { 2712 {
2713 "name": "$result", 2713 "name": "$result",
2714 "recipe_result": null, 2714 "recipe_result": null,
2715 "status_code": 0 2715 "status_code": 0
2716 } 2716 }
2717 ] 2717 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698