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

Side by Side Diff: scripts/slave/recipe_modules/goma/example.expected/linux.json

Issue 2291273005: Add counting the number of CPU's in goma module (Closed)
Patch Set: 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 "name": "ensure_goma" 4 "name": "ensure_goma"
5 }, 5 },
6 { 6 {
7 "cmd": [ 7 "cmd": [
8 "python", 8 "python",
9 "-u", 9 "-u",
10 "RECIPE_MODULE[depot_tools::cipd]/resources/bootstrap.py", 10 "RECIPE_MODULE[depot_tools::cipd]/resources/bootstrap.py",
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 "@@@STEP_LOG_LINE@json.output@ }@@@", 54 "@@@STEP_LOG_LINE@json.output@ }@@@",
55 "@@@STEP_LOG_LINE@json.output@ ]@@@", 55 "@@@STEP_LOG_LINE@json.output@ ]@@@",
56 "@@@STEP_LOG_LINE@json.output@}@@@", 56 "@@@STEP_LOG_LINE@json.output@}@@@",
57 "@@@STEP_LOG_END@json.output@@@" 57 "@@@STEP_LOG_END@json.output@@@"
58 ] 58 ]
59 }, 59 },
60 { 60 {
61 "cmd": [ 61 "cmd": [
62 "python", 62 "python",
63 "-u", 63 "-u",
64 "\nimport multiprocessing\nprint min(200, multiprocessing.cpu_count() * 10 )\n"
65 ],
66 "name": "ensure_goma.get the number of cpus",
67 "stdout": "/path/to/tmp/",
68 "~followup_annotations": [
69 "@@@STEP_NEST_LEVEL@1@@@",
70 "@@@STEP_LOG_LINE@python.inline@@@@",
71 "@@@STEP_LOG_LINE@python.inline@import multiprocessing@@@",
72 "@@@STEP_LOG_LINE@python.inline@print min(200, multiprocessing.cpu_count() * 10)@@@",
73 "@@@STEP_LOG_END@python.inline@@@"
74 ]
75 },
76 {
77 "cmd": [
78 "echo",
79 "40"
80 ],
81 "name": "echo"
82 },
83 {
84 "cmd": [
85 "python",
86 "-u",
64 "[CACHE]/cipd/goma/goma_ctl.py", 87 "[CACHE]/cipd/goma/goma_ctl.py",
65 "restart" 88 "restart"
66 ], 89 ],
67 "env": { 90 "env": {
68 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json" 91 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json"
69 }, 92 },
70 "name": "start_goma" 93 "name": "start_goma"
71 }, 94 },
72 { 95 {
73 "cmd": [ 96 "cmd": [
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 "12345" 166 "12345"
144 ], 167 ],
145 "name": "stop cloudtail" 168 "name": "stop cloudtail"
146 }, 169 },
147 { 170 {
148 "name": "$result", 171 "name": "$result",
149 "recipe_result": null, 172 "recipe_result": null,
150 "status_code": 0 173 "status_code": 0
151 } 174 }
152 ] 175 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698