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

Side by Side Diff: scripts/slave/recipes/cronet.expected/cronet_try.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 os, sys\n\nbuild_path = sys.argv[1]\nif os.path.exists(build_pat h):\n for (path, dir, files) in os.walk(build_path):\n for cur_file in files :\n if cur_file.endswith('index.lock'):\n path_to_file = os.path.joi n(path, cur_file)\n print 'deleting %s' % path_to_file\n os.remove (path_to_file)\n", 6 "\nimport os, sys\n\nbuild_path = sys.argv[1]\nif os.path.exists(build_pat h):\n for (path, dir, files) in os.walk(build_path):\n for cur_file in files :\n if cur_file.endswith('index.lock'):\n path_to_file = os.path.joi n(path, cur_file)\n print 'deleting %s' % path_to_file\n os.remove (path_to_file)\n",
7 "[SLAVE_BUILD]" 7 "[SLAVE_BUILD]"
8 ], 8 ],
9 "name": "cleanup index.lock", 9 "name": "cleanup index.lock",
10 "~followup_annotations": [ 10 "~followup_annotations": [
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 "@@@STEP_LOG_LINE@json.output@ }@@@", 215 "@@@STEP_LOG_LINE@json.output@ }@@@",
216 "@@@STEP_LOG_LINE@json.output@ ]@@@", 216 "@@@STEP_LOG_LINE@json.output@ ]@@@",
217 "@@@STEP_LOG_LINE@json.output@}@@@", 217 "@@@STEP_LOG_LINE@json.output@}@@@",
218 "@@@STEP_LOG_END@json.output@@@" 218 "@@@STEP_LOG_END@json.output@@@"
219 ] 219 ]
220 }, 220 },
221 { 221 {
222 "cmd": [ 222 "cmd": [
223 "python", 223 "python",
224 "-u", 224 "-u",
225 "\nimport multiprocessing\n\ntry:\n jobs = min(200, multiprocessing.cpu_c ount() * 10)\nexcept NotImplementedError:\n jobs = 50\n\nprint jobs\n"
226 ],
227 "name": "ensure_goma.get the number of cpus",
228 "stdout": "/path/to/tmp/",
229 "~followup_annotations": [
230 "@@@STEP_NEST_LEVEL@1@@@",
231 "@@@STEP_LOG_LINE@python.inline@@@@",
232 "@@@STEP_LOG_LINE@python.inline@import multiprocessing@@@",
233 "@@@STEP_LOG_LINE@python.inline@@@@",
234 "@@@STEP_LOG_LINE@python.inline@try:@@@",
235 "@@@STEP_LOG_LINE@python.inline@ jobs = min(200, multiprocessing.cpu_coun t() * 10)@@@",
236 "@@@STEP_LOG_LINE@python.inline@except NotImplementedError:@@@",
237 "@@@STEP_LOG_LINE@python.inline@ jobs = 50@@@",
238 "@@@STEP_LOG_LINE@python.inline@@@@",
239 "@@@STEP_LOG_LINE@python.inline@print jobs@@@",
240 "@@@STEP_LOG_END@python.inline@@@"
241 ]
242 },
243 {
244 "cmd": [
245 "python",
246 "-u",
225 "\nimport os, sys\nfrom common import chromium_utils # Error? See https:// crbug.com/584783.\n\n\nif os.path.exists(sys.argv[1]):\n chromium_utils.RemoveD irectory(sys.argv[1])\n", 247 "\nimport os, sys\nfrom common import chromium_utils # Error? See https:// crbug.com/584783.\n\n\nif os.path.exists(sys.argv[1]):\n chromium_utils.RemoveD irectory(sys.argv[1])\n",
226 "[SLAVE_BUILD]/src/out/Debug" 248 "[SLAVE_BUILD]/src/out/Debug"
227 ], 249 ],
228 "name": "rmtree clobber", 250 "name": "rmtree clobber",
229 "~followup_annotations": [ 251 "~followup_annotations": [
230 "@@@STEP_LOG_LINE@python.inline@@@@", 252 "@@@STEP_LOG_LINE@python.inline@@@@",
231 "@@@STEP_LOG_LINE@python.inline@import os, sys@@@", 253 "@@@STEP_LOG_LINE@python.inline@import os, sys@@@",
232 "@@@STEP_LOG_LINE@python.inline@from common import chromium_utils # Error? See https://crbug.com/584783.@@@", 254 "@@@STEP_LOG_LINE@python.inline@from common import chromium_utils # Error? See https://crbug.com/584783.@@@",
233 "@@@STEP_LOG_LINE@python.inline@@@@", 255 "@@@STEP_LOG_LINE@python.inline@@@@",
234 "@@@STEP_LOG_LINE@python.inline@@@@", 256 "@@@STEP_LOG_LINE@python.inline@@@@",
(...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after
706 "@@@STEP_LOG_LINE@python.inline@ os.remove(report)@@@", 728 "@@@STEP_LOG_LINE@python.inline@ os.remove(report)@@@",
707 "@@@STEP_LOG_END@python.inline@@@" 729 "@@@STEP_LOG_END@python.inline@@@"
708 ] 730 ]
709 }, 731 },
710 { 732 {
711 "name": "$result", 733 "name": "$result",
712 "recipe_result": null, 734 "recipe_result": null,
713 "status_code": 0 735 "status_code": 0
714 } 736 }
715 ] 737 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698