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

Side by Side Diff: scripts/slave/recipes/libyuv/libyuv.expected/tryserver_libyuv_android.json

Issue 2480193002: Stop to use contextmanager for goma.build_with_goma (Closed)
Patch Set: update 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 "python", 4 "python",
5 "-u", 5 "-u",
6 "RECIPE_PACKAGE_REPO[build]/scripts/tools/runit.py", 6 "RECIPE_PACKAGE_REPO[build]/scripts/tools/runit.py",
7 "--show-path", 7 "--show-path",
8 "python", 8 "python",
9 "RECIPE_PACKAGE_REPO[build]/scripts/slave/cleanup_temp.py" 9 "RECIPE_PACKAGE_REPO[build]/scripts/slave/cleanup_temp.py"
10 ], 10 ],
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 "RECIPE_PACKAGE_REPO[depot_tools]/gn.py", 148 "RECIPE_PACKAGE_REPO[depot_tools]/gn.py",
149 "--root=[SLAVE_BUILD]/src", 149 "--root=[SLAVE_BUILD]/src",
150 "gen", 150 "gen",
151 "//out/Debug", 151 "//out/Debug",
152 "--args=is_component_build=false symbol_level=2 dcheck_always_on=true is_d ebug=true target_os=\"android\" target_cpu=\"arm\" use_goma=true goma_dir=\"[CAC HE]/cipd/goma\"" 152 "--args=is_component_build=false symbol_level=2 dcheck_always_on=true is_d ebug=true target_os=\"android\" target_cpu=\"arm\" use_goma=true goma_dir=\"[CAC HE]/cipd/goma\""
153 ], 153 ],
154 "cwd": "[SLAVE_BUILD]/src", 154 "cwd": "[SLAVE_BUILD]/src",
155 "name": "gn" 155 "name": "gn"
156 }, 156 },
157 { 157 {
158 "cmd": [
159 "python",
160 "-u",
161 "\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"
162 ],
163 "name": "calculate the number of recommended jobs",
164 "stdout": "/path/to/tmp/",
165 "~followup_annotations": [
166 "@@@STEP_LOG_LINE@python.inline@@@@",
167 "@@@STEP_LOG_LINE@python.inline@import multiprocessing@@@",
168 "@@@STEP_LOG_LINE@python.inline@import sys@@@",
169 "@@@STEP_LOG_LINE@python.inline@@@@",
170 "@@@STEP_LOG_LINE@python.inline@job_limit = 200@@@",
171 "@@@STEP_LOG_LINE@python.inline@if sys.platform.startswith('linux'):@@@",
172 "@@@STEP_LOG_LINE@python.inline@ # Use 80 for linux not to load goma back end.@@@",
173 "@@@STEP_LOG_LINE@python.inline@ job_limit = 80@@@",
174 "@@@STEP_LOG_LINE@python.inline@@@@",
175 "@@@STEP_LOG_LINE@python.inline@try:@@@",
176 "@@@STEP_LOG_LINE@python.inline@ jobs = min(job_limit, multiprocessing.cp u_count() * 10)@@@",
177 "@@@STEP_LOG_LINE@python.inline@except NotImplementedError:@@@",
178 "@@@STEP_LOG_LINE@python.inline@ jobs = 50@@@",
179 "@@@STEP_LOG_LINE@python.inline@@@@",
180 "@@@STEP_LOG_LINE@python.inline@print jobs@@@",
181 "@@@STEP_LOG_END@python.inline@@@"
182 ]
183 },
184 {
185 "cmd": [], 158 "cmd": [],
186 "name": "preprocess_for_goma" 159 "name": "preprocess_for_goma"
187 }, 160 },
188 { 161 {
189 "cmd": [ 162 "cmd": [
190 "python", 163 "python",
191 "-u", 164 "-u",
192 "[CACHE]/cipd/goma/goma_ctl.py", 165 "[CACHE]/cipd/goma/goma_ctl.py",
193 "restart" 166 "restart"
194 ], 167 ],
(...skipping 23 matching lines...) Expand all
218 "env": { 191 "env": {
219 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json" 192 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json"
220 }, 193 },
221 "name": "preprocess_for_goma.start cloudtail", 194 "name": "preprocess_for_goma.start cloudtail",
222 "~followup_annotations": [ 195 "~followup_annotations": [
223 "@@@STEP_NEST_LEVEL@1@@@" 196 "@@@STEP_NEST_LEVEL@1@@@"
224 ] 197 ]
225 }, 198 },
226 { 199 {
227 "cmd": [ 200 "cmd": [
201 "python",
202 "-u",
203 "\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"
204 ],
205 "name": "calculate the number of recommended jobs",
206 "stdout": "/path/to/tmp/",
207 "~followup_annotations": [
208 "@@@STEP_LOG_LINE@python.inline@@@@",
209 "@@@STEP_LOG_LINE@python.inline@import multiprocessing@@@",
210 "@@@STEP_LOG_LINE@python.inline@import sys@@@",
211 "@@@STEP_LOG_LINE@python.inline@@@@",
212 "@@@STEP_LOG_LINE@python.inline@job_limit = 200@@@",
213 "@@@STEP_LOG_LINE@python.inline@if sys.platform.startswith('linux'):@@@",
214 "@@@STEP_LOG_LINE@python.inline@ # Use 80 for linux not to load goma back end.@@@",
215 "@@@STEP_LOG_LINE@python.inline@ job_limit = 80@@@",
216 "@@@STEP_LOG_LINE@python.inline@@@@",
217 "@@@STEP_LOG_LINE@python.inline@try:@@@",
218 "@@@STEP_LOG_LINE@python.inline@ jobs = min(job_limit, multiprocessing.cp u_count() * 10)@@@",
219 "@@@STEP_LOG_LINE@python.inline@except NotImplementedError:@@@",
220 "@@@STEP_LOG_LINE@python.inline@ jobs = 50@@@",
221 "@@@STEP_LOG_LINE@python.inline@@@@",
222 "@@@STEP_LOG_LINE@python.inline@print jobs@@@",
223 "@@@STEP_LOG_END@python.inline@@@"
224 ]
225 },
226 {
227 "cmd": [
228 "RECIPE_PACKAGE_REPO[depot_tools]/ninja", 228 "RECIPE_PACKAGE_REPO[depot_tools]/ninja",
229 "-w", 229 "-w",
230 "dupbuild=err", 230 "dupbuild=err",
231 "-C", 231 "-C",
232 "[SLAVE_BUILD]/src/out/Debug", 232 "[SLAVE_BUILD]/src/out/Debug",
233 "-j", 233 "-j",
234 "50" 234 "50"
235 ], 235 ],
236 "env": { 236 "env": {
237 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json", 237 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json",
(...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after
657 "@@@STEP_LOG_LINE@python.inline@ os.remove(report)@@@", 657 "@@@STEP_LOG_LINE@python.inline@ os.remove(report)@@@",
658 "@@@STEP_LOG_END@python.inline@@@" 658 "@@@STEP_LOG_END@python.inline@@@"
659 ] 659 ]
660 }, 660 },
661 { 661 {
662 "name": "$result", 662 "name": "$result",
663 "recipe_result": null, 663 "recipe_result": null,
664 "status_code": 0 664 "status_code": 0
665 } 665 }
666 ] 666 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698