| 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\nimport sys\n\njob_limit = 200\nif sys.platform.
     startswith('linux'):\n  # Use 80 for linux not to load goma backend.\n  job_limi
     t = 80\n\ntry:\n  jobs = min(job_limit, multiprocessing.cpu_count() * 10)\nexcep
     t NotImplementedError:\n  jobs = 50\n\nprint jobs\n" | 
|  | 92     ], | 
|  | 93     "name": "calculate the number of recommended jobs", | 
|  | 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@import sys@@@", | 
|  | 99       "@@@STEP_LOG_LINE@python.inline@@@@", | 
|  | 100       "@@@STEP_LOG_LINE@python.inline@job_limit = 200@@@", | 
|  | 101       "@@@STEP_LOG_LINE@python.inline@if sys.platform.startswith('linux'):@@@", | 
|  | 102       "@@@STEP_LOG_LINE@python.inline@  # Use 80 for linux not to load goma back
     end.@@@", | 
|  | 103       "@@@STEP_LOG_LINE@python.inline@  job_limit = 80@@@", | 
|  | 104       "@@@STEP_LOG_LINE@python.inline@@@@", | 
|  | 105       "@@@STEP_LOG_LINE@python.inline@try:@@@", | 
|  | 106       "@@@STEP_LOG_LINE@python.inline@  jobs = min(job_limit, multiprocessing.cp
     u_count() * 10)@@@", | 
|  | 107       "@@@STEP_LOG_LINE@python.inline@except NotImplementedError:@@@", | 
|  | 108       "@@@STEP_LOG_LINE@python.inline@  jobs = 50@@@", | 
|  | 109       "@@@STEP_LOG_LINE@python.inline@@@@", | 
|  | 110       "@@@STEP_LOG_LINE@python.inline@print jobs@@@", | 
|  | 111       "@@@STEP_LOG_END@python.inline@@@" | 
|  | 112     ] | 
|  | 113   }, | 
|  | 114   { | 
|  | 115     "cmd": [ | 
|  | 116       "echo", | 
|  | 117       "50" | 
|  | 118     ], | 
|  | 119     "name": "echo goma jobs" | 
|  | 120   }, | 
|  | 121   { | 
|  | 122     "cmd": [ | 
|  | 123       "echo", | 
|  | 124       "50" | 
|  | 125     ], | 
|  | 126     "name": "echo goma jobs second" | 
|  | 127   }, | 
|  | 128   { | 
|  | 129     "cmd": [ | 
|  | 130       "python", | 
|  | 131       "-u", | 
| 91       "[CACHE]/cipd/goma/goma_ctl.py", | 132       "[CACHE]/cipd/goma/goma_ctl.py", | 
| 92       "jsonstatus", | 133       "jsonstatus", | 
| 93       "[CACHE]/cipd/goma/jsonstatus" | 134       "[CACHE]/cipd/goma/jsonstatus" | 
| 94     ], | 135     ], | 
| 95     "env": { | 136     "env": { | 
| 96       "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account
     -goma-client.json" | 137       "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account
     -goma-client.json" | 
| 97     }, | 138     }, | 
| 98     "name": "goma_jsonstatus" | 139     "name": "goma_jsonstatus" | 
| 99   }, | 140   }, | 
| 100   { | 141   { | 
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 155       "12345" | 196       "12345" | 
| 156     ], | 197     ], | 
| 157     "name": "stop cloudtail" | 198     "name": "stop cloudtail" | 
| 158   }, | 199   }, | 
| 159   { | 200   { | 
| 160     "name": "$result", | 201     "name": "$result", | 
| 161     "recipe_result": null, | 202     "recipe_result": null, | 
| 162     "status_code": 0 | 203     "status_code": 0 | 
| 163   } | 204   } | 
| 164 ] | 205 ] | 
| OLD | NEW | 
|---|