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

Side by Side Diff: scripts/slave/recipe_modules/chromium/example.expected/basic_out_dir.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 "RECIPE_MODULE[depot_tools::bot_update]/resources/bot_update.py", 6 "RECIPE_MODULE[depot_tools::bot_update]/resources/bot_update.py",
7 "--master", 7 "--master",
8 "chromium.linux", 8 "chromium.linux",
9 "--builder", 9 "--builder",
10 "Android Builder (dbg)", 10 "Android Builder (dbg)",
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 "@@@STEP_LOG_LINE@json.output@ }@@@", 160 "@@@STEP_LOG_LINE@json.output@ }@@@",
161 "@@@STEP_LOG_LINE@json.output@ ]@@@", 161 "@@@STEP_LOG_LINE@json.output@ ]@@@",
162 "@@@STEP_LOG_LINE@json.output@}@@@", 162 "@@@STEP_LOG_LINE@json.output@}@@@",
163 "@@@STEP_LOG_END@json.output@@@" 163 "@@@STEP_LOG_END@json.output@@@"
164 ] 164 ]
165 }, 165 },
166 { 166 {
167 "cmd": [ 167 "cmd": [
168 "python", 168 "python",
169 "-u", 169 "-u",
170 "\nimport multiprocessing\n\ntry:\n jobs = min(200, multiprocessing.cpu_c ount() * 10)\nexcept NotImplementedError:\n jobs = 50\n\nprint jobs\n"
171 ],
172 "name": "ensure_goma.get the number of cpus",
173 "stdout": "/path/to/tmp/",
174 "~followup_annotations": [
175 "@@@STEP_NEST_LEVEL@1@@@",
176 "@@@STEP_LOG_LINE@python.inline@@@@",
177 "@@@STEP_LOG_LINE@python.inline@import multiprocessing@@@",
178 "@@@STEP_LOG_LINE@python.inline@@@@",
179 "@@@STEP_LOG_LINE@python.inline@try:@@@",
180 "@@@STEP_LOG_LINE@python.inline@ jobs = min(200, multiprocessing.cpu_coun t() * 10)@@@",
181 "@@@STEP_LOG_LINE@python.inline@except NotImplementedError:@@@",
182 "@@@STEP_LOG_LINE@python.inline@ jobs = 50@@@",
183 "@@@STEP_LOG_LINE@python.inline@@@@",
184 "@@@STEP_LOG_LINE@python.inline@print jobs@@@",
185 "@@@STEP_LOG_END@python.inline@@@"
186 ]
187 },
188 {
189 "cmd": [
190 "python",
191 "-u",
170 "[SLAVE_BUILD]/src/tools/swarming_client/swarming.py", 192 "[SLAVE_BUILD]/src/tools/swarming_client/swarming.py",
171 "--version" 193 "--version"
172 ], 194 ],
173 "name": "swarming.py --version", 195 "name": "swarming.py --version",
174 "stdout": "/path/to/tmp/", 196 "stdout": "/path/to/tmp/",
175 "~followup_annotations": [ 197 "~followup_annotations": [
176 "@@@STEP_TEXT@0.8.6@@@" 198 "@@@STEP_TEXT@0.8.6@@@"
177 ] 199 ]
178 }, 200 },
179 { 201 {
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 "@@@STEP_LOG_LINE@json.output (invalid)@null@@@", 316 "@@@STEP_LOG_LINE@json.output (invalid)@null@@@",
295 "@@@STEP_LOG_END@json.output (invalid)@@@" 317 "@@@STEP_LOG_END@json.output (invalid)@@@"
296 ] 318 ]
297 }, 319 },
298 { 320 {
299 "name": "$result", 321 "name": "$result",
300 "recipe_result": null, 322 "recipe_result": null,
301 "status_code": 0 323 "status_code": 0
302 } 324 }
303 ] 325 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698