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

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

Issue 2480193002: Stop to use contextmanager for goma.build_with_goma (Closed)
Patch Set: 1 -> true Created 4 years, 1 month 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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 "GOMA_DUMP_STATS_FILE": "build_data_dir/goma_stats_proto", 137 "GOMA_DUMP_STATS_FILE": "build_data_dir/goma_stats_proto",
138 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json" 138 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json"
139 }, 139 },
140 "name": "preprocess_for_goma.upload_goma_start_failed_logs", 140 "name": "preprocess_for_goma.upload_goma_start_failed_logs",
141 "~followup_annotations": [ 141 "~followup_annotations": [
142 "@@@STEP_NEST_LEVEL@1@@@" 142 "@@@STEP_NEST_LEVEL@1@@@"
143 ] 143 ]
144 }, 144 },
145 { 145 {
146 "cmd": [ 146 "cmd": [
147 "python",
148 "-u",
149 "\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"
150 ],
151 "name": "calculate the number of recommended jobs",
152 "stdout": "/path/to/tmp/",
153 "~followup_annotations": [
154 "@@@STEP_LOG_LINE@python.inline@@@@",
155 "@@@STEP_LOG_LINE@python.inline@import multiprocessing@@@",
156 "@@@STEP_LOG_LINE@python.inline@import sys@@@",
157 "@@@STEP_LOG_LINE@python.inline@@@@",
158 "@@@STEP_LOG_LINE@python.inline@job_limit = 200@@@",
159 "@@@STEP_LOG_LINE@python.inline@if sys.platform.startswith('linux'):@@@",
160 "@@@STEP_LOG_LINE@python.inline@ # Use 80 for linux not to load goma back end.@@@",
161 "@@@STEP_LOG_LINE@python.inline@ job_limit = 80@@@",
162 "@@@STEP_LOG_LINE@python.inline@@@@",
163 "@@@STEP_LOG_LINE@python.inline@try:@@@",
164 "@@@STEP_LOG_LINE@python.inline@ jobs = min(job_limit, multiprocessing.cp u_count() * 10)@@@",
165 "@@@STEP_LOG_LINE@python.inline@except NotImplementedError:@@@",
166 "@@@STEP_LOG_LINE@python.inline@ jobs = 50@@@",
167 "@@@STEP_LOG_LINE@python.inline@@@@",
168 "@@@STEP_LOG_LINE@python.inline@print jobs@@@",
169 "@@@STEP_LOG_END@python.inline@@@"
170 ]
171 },
172 {
173 "cmd": [
174 "echo",
175 "50"
176 ],
177 "name": "echo goma jobs"
178 },
179 {
180 "cmd": [
181 "echo",
182 "50"
183 ],
184 "name": "echo goma jobs second"
185 },
186 {
187 "cmd": [
147 "ninja", 188 "ninja",
148 "-C", 189 "-C",
149 "out/Release" 190 "out/Release",
191 "-j",
192 "500"
shinyak 2016/11/07 11:28:14 -j500 for goma disabled? weird.
tikuta 2016/11/07 11:35:24 Done.
150 ], 193 ],
151 "env": { 194 "env": {
152 "GOMA_DISABLED": "true" 195 "GOMA_DISABLED": "true"
153 }, 196 },
154 "name": "ninja" 197 "name": "ninja"
155 }, 198 },
156 { 199 {
157 "cmd": [ 200 "cmd": [
158 "python", 201 "python",
159 "-u", 202 "-u",
(...skipping 30 matching lines...) Expand all
190 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json" 233 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json"
191 }, 234 },
192 "name": "upload log goma start failed" 235 "name": "upload log goma start failed"
193 }, 236 },
194 { 237 {
195 "name": "$result", 238 "name": "$result",
196 "recipe_result": null, 239 "recipe_result": null,
197 "status_code": 0 240 "status_code": 0
198 } 241 }
199 ] 242 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698