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

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

Issue 2291273005: Add counting the number of CPU's in goma module (Closed)
Patch Set: Created 4 years, 3 months 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]/linux_swarming", 7 "[BUILDER_CACHE]/linux_swarming",
8 "511" 8 "511"
9 ], 9 ],
10 "name": "makedirs checkout path", 10 "name": "makedirs checkout path",
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 "@@@STEP_LOG_LINE@json.output@ }@@@", 170 "@@@STEP_LOG_LINE@json.output@ }@@@",
171 "@@@STEP_LOG_LINE@json.output@ ]@@@", 171 "@@@STEP_LOG_LINE@json.output@ ]@@@",
172 "@@@STEP_LOG_LINE@json.output@}@@@", 172 "@@@STEP_LOG_LINE@json.output@}@@@",
173 "@@@STEP_LOG_END@json.output@@@" 173 "@@@STEP_LOG_END@json.output@@@"
174 ] 174 ]
175 }, 175 },
176 { 176 {
177 "cmd": [ 177 "cmd": [
178 "python", 178 "python",
179 "-u", 179 "-u",
180 "\nimport multiprocessing\nprint min(200, multiprocessing.cpu_count() * 10 )\n"
181 ],
182 "name": "ensure_goma.get the number of cpus",
183 "stdout": "/path/to/tmp/",
184 "~followup_annotations": [
185 "@@@STEP_NEST_LEVEL@1@@@",
186 "@@@STEP_LOG_LINE@python.inline@@@@",
187 "@@@STEP_LOG_LINE@python.inline@import multiprocessing@@@",
188 "@@@STEP_LOG_LINE@python.inline@print min(200, multiprocessing.cpu_count() * 10)@@@",
189 "@@@STEP_LOG_END@python.inline@@@"
190 ]
191 },
192 {
193 "cmd": [
194 "python",
195 "-u",
180 "RECIPE_PACKAGE_REPO[depot_tools]/gclient.py", 196 "RECIPE_PACKAGE_REPO[depot_tools]/gclient.py",
181 "runhooks" 197 "runhooks"
182 ], 198 ],
183 "cwd": "[BUILDER_CACHE]/linux_swarming/src", 199 "cwd": "[BUILDER_CACHE]/linux_swarming/src",
184 "env": { 200 "env": {
185 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json", 201 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json",
186 "GYP_CHROMIUM_NO_ACTION": "1", 202 "GYP_CHROMIUM_NO_ACTION": "1",
187 "GYP_DEFINES": "component=shared_library dcheck_always_on=1 fastbuild=1 ff mpeg_branding=Chrome gomadir='[CACHE]/cipd/goma' rtc_use_h264=1 target_arch=x64 test_isolation_mode=prepare use_goma=1", 203 "GYP_DEFINES": "component=shared_library dcheck_always_on=1 fastbuild=1 ff mpeg_branding=Chrome gomadir='[CACHE]/cipd/goma' rtc_use_h264=1 target_arch=x64 test_isolation_mode=prepare use_goma=1",
188 "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]" 204 "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]"
189 }, 205 },
(...skipping 2262 matching lines...) Expand 10 before | Expand all | Expand 10 after
2452 "@@@STEP_LOG_END@json.output@@@", 2468 "@@@STEP_LOG_END@json.output@@@",
2453 "@@@STEP_LINK@shard #0 isolated out@blah@@@" 2469 "@@@STEP_LINK@shard #0 isolated out@blah@@@"
2454 ] 2470 ]
2455 }, 2471 },
2456 { 2472 {
2457 "name": "$result", 2473 "name": "$result",
2458 "recipe_result": null, 2474 "recipe_result": null,
2459 "status_code": 0 2475 "status_code": 0
2460 } 2476 }
2461 ] 2477 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698