OLD | NEW |
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 Loading... |
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": "C:\\creds\\service_accounts\\service-ac
count-goma-client.json" | 91 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "C:\\creds\\service_accounts\\service-ac
count-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 Loading... |
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 ] |
OLD | NEW |