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

Side by Side Diff: scripts/slave/recipes/chromium_trybot.expected/use_skia_patch_on_blink_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]/mac_layout", 7 "[BUILDER_CACHE]/mac_layout",
8 "511" 8 "511"
9 ], 9 ],
10 "name": "makedirs checkout path", 10 "name": "makedirs checkout path",
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 "@@@STEP_LOG_LINE@json.output@ }@@@", 191 "@@@STEP_LOG_LINE@json.output@ }@@@",
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_END@json.output@@@" 194 "@@@STEP_LOG_END@json.output@@@"
195 ] 195 ]
196 }, 196 },
197 { 197 {
198 "cmd": [ 198 "cmd": [
199 "python", 199 "python",
200 "-u", 200 "-u",
201 "\nimport multiprocessing\n\ntry:\n jobs = min(200, multiprocessing.cpu_c ount() * 10)\nexcept NotImplementedError:\n jobs = 50\n\nprint jobs\n"
202 ],
203 "name": "ensure_goma.get the number of cpus",
204 "stdout": "/path/to/tmp/",
205 "~followup_annotations": [
206 "@@@STEP_NEST_LEVEL@1@@@",
207 "@@@STEP_LOG_LINE@python.inline@@@@",
208 "@@@STEP_LOG_LINE@python.inline@import multiprocessing@@@",
209 "@@@STEP_LOG_LINE@python.inline@@@@",
210 "@@@STEP_LOG_LINE@python.inline@try:@@@",
211 "@@@STEP_LOG_LINE@python.inline@ jobs = min(200, multiprocessing.cpu_coun t() * 10)@@@",
212 "@@@STEP_LOG_LINE@python.inline@except NotImplementedError:@@@",
213 "@@@STEP_LOG_LINE@python.inline@ jobs = 50@@@",
214 "@@@STEP_LOG_LINE@python.inline@@@@",
215 "@@@STEP_LOG_LINE@python.inline@print jobs@@@",
216 "@@@STEP_LOG_END@python.inline@@@"
217 ]
218 },
219 {
220 "cmd": [
221 "python",
222 "-u",
201 "[BUILDER_CACHE]/mac_layout/src/tools/swarming_client/swarming.py", 223 "[BUILDER_CACHE]/mac_layout/src/tools/swarming_client/swarming.py",
202 "--version" 224 "--version"
203 ], 225 ],
204 "name": "swarming.py --version", 226 "name": "swarming.py --version",
205 "stdout": "/path/to/tmp/", 227 "stdout": "/path/to/tmp/",
206 "~followup_annotations": [ 228 "~followup_annotations": [
207 "@@@STEP_TEXT@0.8.6@@@" 229 "@@@STEP_TEXT@0.8.6@@@"
208 ] 230 ]
209 }, 231 },
210 { 232 {
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
346 "import sys; sys.exit(0)" 368 "import sys; sys.exit(0)"
347 ], 369 ],
348 "name": "mark: before_tests" 370 "name": "mark: before_tests"
349 }, 371 },
350 { 372 {
351 "name": "$result", 373 "name": "$result",
352 "recipe_result": null, 374 "recipe_result": null,
353 "status_code": 0 375 "status_code": 0
354 } 376 }
355 ] 377 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698