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

Side by Side Diff: scripts/slave/recipes/webrtc/standalone.expected/client_webrtc_android32__m_nexus5x_.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]/Android32__M_Nexus5X_", 7 "[BUILDER_CACHE]/Android32__M_Nexus5X_",
8 "511" 8 "511"
9 ], 9 ],
10 "name": "makedirs checkout path", 10 "name": "makedirs checkout path",
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 "@@@STEP_LOG_LINE@swarming-targets-file.txt@system_wrappers_unittests@@@", 241 "@@@STEP_LOG_LINE@swarming-targets-file.txt@system_wrappers_unittests@@@",
242 "@@@STEP_LOG_LINE@swarming-targets-file.txt@test_support_unittests@@@", 242 "@@@STEP_LOG_LINE@swarming-targets-file.txt@test_support_unittests@@@",
243 "@@@STEP_LOG_LINE@swarming-targets-file.txt@tools_unittests@@@", 243 "@@@STEP_LOG_LINE@swarming-targets-file.txt@tools_unittests@@@",
244 "@@@STEP_LOG_LINE@swarming-targets-file.txt@video_engine_tests@@@", 244 "@@@STEP_LOG_LINE@swarming-targets-file.txt@video_engine_tests@@@",
245 "@@@STEP_LOG_LINE@swarming-targets-file.txt@voice_engine_unittests@@@", 245 "@@@STEP_LOG_LINE@swarming-targets-file.txt@voice_engine_unittests@@@",
246 "@@@STEP_LOG_LINE@swarming-targets-file.txt@webrtc_nonparallel_tests@@@", 246 "@@@STEP_LOG_LINE@swarming-targets-file.txt@webrtc_nonparallel_tests@@@",
247 "@@@STEP_LOG_END@swarming-targets-file.txt@@@" 247 "@@@STEP_LOG_END@swarming-targets-file.txt@@@"
248 ] 248 ]
249 }, 249 },
250 { 250 {
251 "cmd": [
252 "python",
253 "-u",
254 "\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"
255 ],
256 "name": "calculate the number of recommended jobs",
257 "stdout": "/path/to/tmp/",
258 "~followup_annotations": [
259 "@@@STEP_LOG_LINE@python.inline@@@@",
260 "@@@STEP_LOG_LINE@python.inline@import multiprocessing@@@",
261 "@@@STEP_LOG_LINE@python.inline@import sys@@@",
262 "@@@STEP_LOG_LINE@python.inline@@@@",
263 "@@@STEP_LOG_LINE@python.inline@job_limit = 200@@@",
264 "@@@STEP_LOG_LINE@python.inline@if sys.platform.startswith('linux'):@@@",
265 "@@@STEP_LOG_LINE@python.inline@ # Use 80 for linux not to load goma back end.@@@",
266 "@@@STEP_LOG_LINE@python.inline@ job_limit = 80@@@",
267 "@@@STEP_LOG_LINE@python.inline@@@@",
268 "@@@STEP_LOG_LINE@python.inline@try:@@@",
269 "@@@STEP_LOG_LINE@python.inline@ jobs = min(job_limit, multiprocessing.cp u_count() * 10)@@@",
270 "@@@STEP_LOG_LINE@python.inline@except NotImplementedError:@@@",
271 "@@@STEP_LOG_LINE@python.inline@ jobs = 50@@@",
272 "@@@STEP_LOG_LINE@python.inline@@@@",
273 "@@@STEP_LOG_LINE@python.inline@print jobs@@@",
274 "@@@STEP_LOG_END@python.inline@@@"
275 ]
276 },
277 {
278 "cmd": [], 251 "cmd": [],
279 "name": "preprocess_for_goma" 252 "name": "preprocess_for_goma"
280 }, 253 },
281 { 254 {
282 "cmd": [ 255 "cmd": [
283 "python", 256 "python",
284 "-u", 257 "-u",
285 "[CACHE]/cipd/goma/goma_ctl.py", 258 "[CACHE]/cipd/goma/goma_ctl.py",
286 "restart" 259 "restart"
287 ], 260 ],
(...skipping 23 matching lines...) Expand all
311 "env": { 284 "env": {
312 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json" 285 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json"
313 }, 286 },
314 "name": "preprocess_for_goma.start cloudtail", 287 "name": "preprocess_for_goma.start cloudtail",
315 "~followup_annotations": [ 288 "~followup_annotations": [
316 "@@@STEP_NEST_LEVEL@1@@@" 289 "@@@STEP_NEST_LEVEL@1@@@"
317 ] 290 ]
318 }, 291 },
319 { 292 {
320 "cmd": [ 293 "cmd": [
294 "python",
295 "-u",
296 "\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"
297 ],
298 "name": "calculate the number of recommended jobs",
299 "stdout": "/path/to/tmp/",
300 "~followup_annotations": [
301 "@@@STEP_LOG_LINE@python.inline@@@@",
302 "@@@STEP_LOG_LINE@python.inline@import multiprocessing@@@",
303 "@@@STEP_LOG_LINE@python.inline@import sys@@@",
304 "@@@STEP_LOG_LINE@python.inline@@@@",
305 "@@@STEP_LOG_LINE@python.inline@job_limit = 200@@@",
306 "@@@STEP_LOG_LINE@python.inline@if sys.platform.startswith('linux'):@@@",
307 "@@@STEP_LOG_LINE@python.inline@ # Use 80 for linux not to load goma back end.@@@",
308 "@@@STEP_LOG_LINE@python.inline@ job_limit = 80@@@",
309 "@@@STEP_LOG_LINE@python.inline@@@@",
310 "@@@STEP_LOG_LINE@python.inline@try:@@@",
311 "@@@STEP_LOG_LINE@python.inline@ jobs = min(job_limit, multiprocessing.cp u_count() * 10)@@@",
312 "@@@STEP_LOG_LINE@python.inline@except NotImplementedError:@@@",
313 "@@@STEP_LOG_LINE@python.inline@ jobs = 50@@@",
314 "@@@STEP_LOG_LINE@python.inline@@@@",
315 "@@@STEP_LOG_LINE@python.inline@print jobs@@@",
316 "@@@STEP_LOG_END@python.inline@@@"
317 ]
318 },
319 {
320 "cmd": [
321 "RECIPE_PACKAGE_REPO[depot_tools]/ninja", 321 "RECIPE_PACKAGE_REPO[depot_tools]/ninja",
322 "-w", 322 "-w",
323 "dupbuild=err", 323 "dupbuild=err",
324 "-C", 324 "-C",
325 "[BUILDER_CACHE]/Android32__M_Nexus5X_/src/out/Release", 325 "[BUILDER_CACHE]/Android32__M_Nexus5X_/src/out/Release",
326 "-j", 326 "-j",
327 "50" 327 "50"
328 ], 328 ],
329 "env": { 329 "env": {
330 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json", 330 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json",
(...skipping 2367 matching lines...) Expand 10 before | Expand all | Expand 10 after
2698 ], 2698 ],
2699 "cwd": "[BUILDER_CACHE]/Android32__M_Nexus5X_", 2699 "cwd": "[BUILDER_CACHE]/Android32__M_Nexus5X_",
2700 "name": "Upload to test-results [libjingle_peerconnection_android_unittest o n Android]" 2700 "name": "Upload to test-results [libjingle_peerconnection_android_unittest o n Android]"
2701 }, 2701 },
2702 { 2702 {
2703 "name": "$result", 2703 "name": "$result",
2704 "recipe_result": null, 2704 "recipe_result": null,
2705 "status_code": 0 2705 "status_code": 0
2706 } 2706 }
2707 ] 2707 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698