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

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

Issue 2375843005: Stop redirect stdout/stderr and remove close_fds=True (Closed)
Patch Set: add comment Created 4 years, 2 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 }, 78 },
79 "name": "start_goma" 79 "name": "start_goma"
80 }, 80 },
81 { 81 {
82 "cmd": [ 82 "cmd": [
83 "python", 83 "python",
84 "-u", 84 "-u",
85 "RECIPE_MODULE[build::goma]/resources/cloudtail_utils.py", 85 "RECIPE_MODULE[build::goma]/resources/cloudtail_utils.py",
86 "start", 86 "start",
87 "--cloudtail-path", 87 "--cloudtail-path",
88 "[CACHE]/cipd/goma/cloudtail" 88 "[CACHE]/cipd/goma/cloudtail",
89 "--pid-file",
90 "[TMP_BASE]/cloudtail.pid"
89 ], 91 ],
90 "env": { 92 "env": {
91 "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"
92 }, 94 },
93 "name": "start cloudtail", 95 "name": "start cloudtail"
94 "stdout": "/path/to/tmp/"
95 }, 96 },
96 { 97 {
97 "cmd": [ 98 "cmd": [
98 "python", 99 "python",
99 "-u", 100 "-u",
100 "\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" 101 "\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"
101 ], 102 ],
102 "name": "calculate the number of recommended jobs", 103 "name": "calculate the number of recommended jobs",
103 "stdout": "/path/to/tmp/", 104 "stdout": "/path/to/tmp/",
104 "~followup_annotations": [ 105 "~followup_annotations": [
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json" 195 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json"
195 }, 196 },
196 "name": "upload_log" 197 "name": "upload_log"
197 }, 198 },
198 { 199 {
199 "cmd": [ 200 "cmd": [
200 "python", 201 "python",
201 "-u", 202 "-u",
202 "RECIPE_MODULE[build::goma]/resources/cloudtail_utils.py", 203 "RECIPE_MODULE[build::goma]/resources/cloudtail_utils.py",
203 "stop", 204 "stop",
204 "--killed-pid", 205 "--killed-pid-file",
205 "12345" 206 "[TMP_BASE]/cloudtail.pid"
206 ], 207 ],
207 "name": "stop cloudtail" 208 "name": "stop cloudtail"
208 }, 209 },
209 { 210 {
210 "name": "$result", 211 "name": "$result",
211 "recipe_result": null, 212 "recipe_result": null,
212 "status_code": 0 213 "status_code": 0
213 } 214 }
214 ] 215 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698