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

Side by Side Diff: scripts/slave/recipes/chromium_trybot.expected/use_webrtc_patch_on_chromium_trybot.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", 7 "[BUILDER_CACHE]/linux",
8 "511" 8 "511"
9 ], 9 ],
10 "name": "makedirs checkout path", 10 "name": "makedirs checkout path",
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 "@@@STEP_LOG_LINE@json.output@ }@@@", 192 "@@@STEP_LOG_LINE@json.output@ }@@@",
193 "@@@STEP_LOG_LINE@json.output@ ]@@@", 193 "@@@STEP_LOG_LINE@json.output@ ]@@@",
194 "@@@STEP_LOG_LINE@json.output@}@@@", 194 "@@@STEP_LOG_LINE@json.output@}@@@",
195 "@@@STEP_LOG_END@json.output@@@" 195 "@@@STEP_LOG_END@json.output@@@"
196 ] 196 ]
197 }, 197 },
198 { 198 {
199 "cmd": [ 199 "cmd": [
200 "python", 200 "python",
201 "-u", 201 "-u",
202 "\nimport multiprocessing\n\ntry:\n jobs = min(200, multiprocessing.cpu_c ount() * 10)\nexcept NotImplementedError:\n jobs = 50\n\nprint jobs\n"
203 ],
204 "name": "ensure_goma.get the number of cpus",
205 "stdout": "/path/to/tmp/",
206 "~followup_annotations": [
207 "@@@STEP_NEST_LEVEL@1@@@",
208 "@@@STEP_LOG_LINE@python.inline@@@@",
209 "@@@STEP_LOG_LINE@python.inline@import multiprocessing@@@",
210 "@@@STEP_LOG_LINE@python.inline@@@@",
211 "@@@STEP_LOG_LINE@python.inline@try:@@@",
212 "@@@STEP_LOG_LINE@python.inline@ jobs = min(200, multiprocessing.cpu_coun t() * 10)@@@",
213 "@@@STEP_LOG_LINE@python.inline@except NotImplementedError:@@@",
214 "@@@STEP_LOG_LINE@python.inline@ jobs = 50@@@",
215 "@@@STEP_LOG_LINE@python.inline@@@@",
216 "@@@STEP_LOG_LINE@python.inline@print jobs@@@",
217 "@@@STEP_LOG_END@python.inline@@@"
218 ]
219 },
220 {
221 "cmd": [
222 "python",
223 "-u",
202 "[BUILDER_CACHE]/linux/src/tools/swarming_client/swarming.py", 224 "[BUILDER_CACHE]/linux/src/tools/swarming_client/swarming.py",
203 "--version" 225 "--version"
204 ], 226 ],
205 "name": "swarming.py --version", 227 "name": "swarming.py --version",
206 "stdout": "/path/to/tmp/", 228 "stdout": "/path/to/tmp/",
207 "~followup_annotations": [ 229 "~followup_annotations": [
208 "@@@STEP_TEXT@0.8.6@@@" 230 "@@@STEP_TEXT@0.8.6@@@"
209 ] 231 ]
210 }, 232 },
211 { 233 {
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
363 "import sys; sys.exit(0)" 385 "import sys; sys.exit(0)"
364 ], 386 ],
365 "name": "mark: before_tests" 387 "name": "mark: before_tests"
366 }, 388 },
367 { 389 {
368 "name": "$result", 390 "name": "$result",
369 "recipe_result": null, 391 "recipe_result": null,
370 "status_code": 0 392 "status_code": 0
371 } 393 }
372 ] 394 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698