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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 "env": { | 81 "env": { |
82 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account
-goma-client.json" | 82 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account
-goma-client.json" |
83 }, | 83 }, |
84 "name": "start cloudtail", | 84 "name": "start cloudtail", |
85 "stdout": "/path/to/tmp/" | 85 "stdout": "/path/to/tmp/" |
86 }, | 86 }, |
87 { | 87 { |
88 "cmd": [ | 88 "cmd": [ |
89 "python", | 89 "python", |
90 "-u", | 90 "-u", |
| 91 "\nimport multiprocessing\n\ntry:\n jobs = min(200, multiprocessing.cpu_c
ount() * 10)\nexcept NotImplementedError:\n jobs = 50\n\nprint jobs\n" |
| 92 ], |
| 93 "name": "get the number of cpus", |
| 94 "stdout": "/path/to/tmp/", |
| 95 "~followup_annotations": [ |
| 96 "@@@STEP_LOG_LINE@python.inline@@@@", |
| 97 "@@@STEP_LOG_LINE@python.inline@import multiprocessing@@@", |
| 98 "@@@STEP_LOG_LINE@python.inline@@@@", |
| 99 "@@@STEP_LOG_LINE@python.inline@try:@@@", |
| 100 "@@@STEP_LOG_LINE@python.inline@ jobs = min(200, multiprocessing.cpu_coun
t() * 10)@@@", |
| 101 "@@@STEP_LOG_LINE@python.inline@except NotImplementedError:@@@", |
| 102 "@@@STEP_LOG_LINE@python.inline@ jobs = 50@@@", |
| 103 "@@@STEP_LOG_LINE@python.inline@@@@", |
| 104 "@@@STEP_LOG_LINE@python.inline@print jobs@@@", |
| 105 "@@@STEP_LOG_END@python.inline@@@" |
| 106 ] |
| 107 }, |
| 108 { |
| 109 "cmd": [ |
| 110 "echo", |
| 111 "50" |
| 112 ], |
| 113 "name": "echo goma jobs" |
| 114 }, |
| 115 { |
| 116 "cmd": [ |
| 117 "echo", |
| 118 "50" |
| 119 ], |
| 120 "name": "echo goma jobs second" |
| 121 }, |
| 122 { |
| 123 "cmd": [ |
| 124 "python", |
| 125 "-u", |
91 "[CACHE]/cipd/goma/goma_ctl.py", | 126 "[CACHE]/cipd/goma/goma_ctl.py", |
92 "jsonstatus", | 127 "jsonstatus", |
93 "[CACHE]/cipd/goma/jsonstatus" | 128 "[CACHE]/cipd/goma/jsonstatus" |
94 ], | 129 ], |
95 "env": { | 130 "env": { |
96 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account
-goma-client.json" | 131 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account
-goma-client.json" |
97 }, | 132 }, |
98 "name": "goma_jsonstatus" | 133 "name": "goma_jsonstatus" |
99 }, | 134 }, |
100 { | 135 { |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 "12345" | 190 "12345" |
156 ], | 191 ], |
157 "name": "stop cloudtail" | 192 "name": "stop cloudtail" |
158 }, | 193 }, |
159 { | 194 { |
160 "name": "$result", | 195 "name": "$result", |
161 "recipe_result": null, | 196 "recipe_result": null, |
162 "status_code": 0 | 197 "status_code": 0 |
163 } | 198 } |
164 ] | 199 ] |
OLD | NEW |