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

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: use 80 for linux 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\n\ntry:\n jobs = min(200, multiprocessing.cpu_c ount() * 10)\nexcept NotImplementedError:\n jobs = 50\n\nprint jobs\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@@@@",
189 "@@@STEP_LOG_LINE@python.inline@try:@@@",
190 "@@@STEP_LOG_LINE@python.inline@ jobs = min(200, multiprocessing.cpu_coun t() * 10)@@@",
191 "@@@STEP_LOG_LINE@python.inline@except NotImplementedError:@@@",
192 "@@@STEP_LOG_LINE@python.inline@ jobs = 50@@@",
193 "@@@STEP_LOG_LINE@python.inline@@@@",
194 "@@@STEP_LOG_LINE@python.inline@print jobs@@@",
195 "@@@STEP_LOG_END@python.inline@@@"
196 ]
197 },
198 {
199 "cmd": [
200 "python",
201 "-u",
180 "RECIPE_PACKAGE_REPO[depot_tools]/gclient.py", 202 "RECIPE_PACKAGE_REPO[depot_tools]/gclient.py",
181 "runhooks" 203 "runhooks"
182 ], 204 ],
183 "cwd": "[BUILDER_CACHE]/linux_swarming/src", 205 "cwd": "[BUILDER_CACHE]/linux_swarming/src",
184 "env": { 206 "env": {
185 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json", 207 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json",
186 "GYP_CHROMIUM_NO_ACTION": "1", 208 "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", 209 "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]" 210 "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]"
189 }, 211 },
(...skipping 2262 matching lines...) Expand 10 before | Expand all | Expand 10 after
2452 "@@@STEP_LOG_END@json.output@@@", 2474 "@@@STEP_LOG_END@json.output@@@",
2453 "@@@STEP_LINK@shard #0 isolated out@blah@@@" 2475 "@@@STEP_LINK@shard #0 isolated out@blah@@@"
2454 ] 2476 ]
2455 }, 2477 },
2456 { 2478 {
2457 "name": "$result", 2479 "name": "$result",
2458 "recipe_result": null, 2480 "recipe_result": null,
2459 "status_code": 0 2481 "status_code": 0
2460 } 2482 }
2461 ] 2483 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698