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

Side by Side Diff: scripts/slave/recipes/chromium.expected/full_chromium_android_Android_Swarm_Builder.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]/Android_Swarm_Builder", 7 "[BUILDER_CACHE]/Android_Swarm_Builder",
8 "511" 8 "511"
9 ], 9 ],
10 "name": "makedirs checkout path", 10 "name": "makedirs checkout path",
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 "@@@STEP_LOG_LINE@json.output@ }@@@", 184 "@@@STEP_LOG_LINE@json.output@ }@@@",
185 "@@@STEP_LOG_LINE@json.output@ ]@@@", 185 "@@@STEP_LOG_LINE@json.output@ ]@@@",
186 "@@@STEP_LOG_LINE@json.output@}@@@", 186 "@@@STEP_LOG_LINE@json.output@}@@@",
187 "@@@STEP_LOG_END@json.output@@@" 187 "@@@STEP_LOG_END@json.output@@@"
188 ] 188 ]
189 }, 189 },
190 { 190 {
191 "cmd": [ 191 "cmd": [
192 "python", 192 "python",
193 "-u", 193 "-u",
194 "\nimport multiprocessing\n\ntry:\n jobs = min(200, multiprocessing.cpu_c ount() * 10)\nexcept NotImplementedError:\n jobs = 50\n\nprint jobs\n"
195 ],
196 "name": "ensure_goma.get the number of cpus",
197 "stdout": "/path/to/tmp/",
198 "~followup_annotations": [
199 "@@@STEP_NEST_LEVEL@1@@@",
200 "@@@STEP_LOG_LINE@python.inline@@@@",
201 "@@@STEP_LOG_LINE@python.inline@import multiprocessing@@@",
202 "@@@STEP_LOG_LINE@python.inline@@@@",
203 "@@@STEP_LOG_LINE@python.inline@try:@@@",
204 "@@@STEP_LOG_LINE@python.inline@ jobs = min(200, multiprocessing.cpu_coun t() * 10)@@@",
205 "@@@STEP_LOG_LINE@python.inline@except NotImplementedError:@@@",
206 "@@@STEP_LOG_LINE@python.inline@ jobs = 50@@@",
207 "@@@STEP_LOG_LINE@python.inline@@@@",
208 "@@@STEP_LOG_LINE@python.inline@print jobs@@@",
209 "@@@STEP_LOG_END@python.inline@@@"
210 ]
211 },
212 {
213 "cmd": [
214 "python",
215 "-u",
194 "[BUILDER_CACHE]/Android_Swarm_Builder/src/tools/swarming_client/swarming. py", 216 "[BUILDER_CACHE]/Android_Swarm_Builder/src/tools/swarming_client/swarming. py",
195 "--version" 217 "--version"
196 ], 218 ],
197 "name": "swarming.py --version", 219 "name": "swarming.py --version",
198 "stdout": "/path/to/tmp/", 220 "stdout": "/path/to/tmp/",
199 "~followup_annotations": [ 221 "~followup_annotations": [
200 "@@@STEP_TEXT@0.8.6@@@" 222 "@@@STEP_TEXT@0.8.6@@@"
201 ] 223 ]
202 }, 224 },
203 { 225 {
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after
516 "@@@STEP_LOG_LINE@python.inline@ os.remove(report)@@@", 538 "@@@STEP_LOG_LINE@python.inline@ os.remove(report)@@@",
517 "@@@STEP_LOG_END@python.inline@@@" 539 "@@@STEP_LOG_END@python.inline@@@"
518 ] 540 ]
519 }, 541 },
520 { 542 {
521 "name": "$result", 543 "name": "$result",
522 "recipe_result": null, 544 "recipe_result": null,
523 "status_code": 0 545 "status_code": 0
524 } 546 }
525 ] 547 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698