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 "GOMACTL_CRASH_REPORT_ID_FILE": "build_data_dir/crash_report_id_file", | 91 "GOMACTL_CRASH_REPORT_ID_FILE": "build_data_dir/crash_report_id_file", |
69 "GOMA_DUMP_STATS_FILE": "build_data_dir/goma_stats_proto", | 92 "GOMA_DUMP_STATS_FILE": "build_data_dir/goma_stats_proto", |
70 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account
-goma-client.json" | 93 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account
-goma-client.json" |
71 }, | 94 }, |
72 "name": "start_goma" | 95 "name": "start_goma" |
73 }, | 96 }, |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 "12345" | 188 "12345" |
166 ], | 189 ], |
167 "name": "stop cloudtail" | 190 "name": "stop cloudtail" |
168 }, | 191 }, |
169 { | 192 { |
170 "name": "$result", | 193 "name": "$result", |
171 "recipe_result": null, | 194 "recipe_result": null, |
172 "status_code": 0 | 195 "status_code": 0 |
173 } | 196 } |
174 ] | 197 ] |
OLD | NEW |