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

Side by Side Diff: scripts/slave/recipes/webrtc/standalone.expected/tryserver_webrtc_android_compile_arm64_dbg.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 "\nimport sys, os\npath = sys.argv[1]\nmode = int(sys.argv[2])\nif not os. path.isdir(path):\n if os.path.exists(path):\n print \"%s exists but is not a dir\" % path\n sys.exit(1)\n os.makedirs(path, mode)\n", 6 "\nimport sys, os\npath = sys.argv[1]\nmode = int(sys.argv[2])\nif not os. path.isdir(path):\n if os.path.exists(path):\n print \"%s exists but is not a dir\" % path\n sys.exit(1)\n os.makedirs(path, mode)\n",
7 "[BUILDER_CACHE]/android_compile_arm64_dbg", 7 "[BUILDER_CACHE]/android_compile_arm64_dbg",
8 "511" 8 "511"
9 ], 9 ],
10 "name": "makedirs checkout path", 10 "name": "makedirs checkout path",
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 "--gyp-script=[BUILDER_CACHE]/android_compile_arm64_dbg/src/webrtc/build/g yp_webrtc.py", 202 "--gyp-script=[BUILDER_CACHE]/android_compile_arm64_dbg/src/webrtc/build/g yp_webrtc.py",
203 "//out/Debug" 203 "//out/Debug"
204 ], 204 ],
205 "cwd": "[BUILDER_CACHE]/android_compile_arm64_dbg/src", 205 "cwd": "[BUILDER_CACHE]/android_compile_arm64_dbg/src",
206 "env": { 206 "env": {
207 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json" 207 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json"
208 }, 208 },
209 "name": "generate_build_files" 209 "name": "generate_build_files"
210 }, 210 },
211 { 211 {
212 "cmd": [
213 "python",
214 "-u",
215 "\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"
216 ],
217 "name": "calculate the number of recommended jobs",
218 "stdout": "/path/to/tmp/",
219 "~followup_annotations": [
220 "@@@STEP_LOG_LINE@python.inline@@@@",
221 "@@@STEP_LOG_LINE@python.inline@import multiprocessing@@@",
222 "@@@STEP_LOG_LINE@python.inline@import sys@@@",
223 "@@@STEP_LOG_LINE@python.inline@@@@",
224 "@@@STEP_LOG_LINE@python.inline@job_limit = 200@@@",
225 "@@@STEP_LOG_LINE@python.inline@if sys.platform.startswith('linux'):@@@",
226 "@@@STEP_LOG_LINE@python.inline@ # Use 80 for linux not to load goma back end.@@@",
227 "@@@STEP_LOG_LINE@python.inline@ job_limit = 80@@@",
228 "@@@STEP_LOG_LINE@python.inline@@@@",
229 "@@@STEP_LOG_LINE@python.inline@try:@@@",
230 "@@@STEP_LOG_LINE@python.inline@ jobs = min(job_limit, multiprocessing.cp u_count() * 10)@@@",
231 "@@@STEP_LOG_LINE@python.inline@except NotImplementedError:@@@",
232 "@@@STEP_LOG_LINE@python.inline@ jobs = 50@@@",
233 "@@@STEP_LOG_LINE@python.inline@@@@",
234 "@@@STEP_LOG_LINE@python.inline@print jobs@@@",
235 "@@@STEP_LOG_END@python.inline@@@"
236 ]
237 },
238 {
239 "cmd": [], 212 "cmd": [],
240 "name": "preprocess_for_goma" 213 "name": "preprocess_for_goma"
241 }, 214 },
242 { 215 {
243 "cmd": [ 216 "cmd": [
244 "python", 217 "python",
245 "-u", 218 "-u",
246 "[CACHE]/cipd/goma/goma_ctl.py", 219 "[CACHE]/cipd/goma/goma_ctl.py",
247 "restart" 220 "restart"
248 ], 221 ],
(...skipping 23 matching lines...) Expand all
272 "env": { 245 "env": {
273 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json" 246 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json"
274 }, 247 },
275 "name": "preprocess_for_goma.start cloudtail", 248 "name": "preprocess_for_goma.start cloudtail",
276 "~followup_annotations": [ 249 "~followup_annotations": [
277 "@@@STEP_NEST_LEVEL@1@@@" 250 "@@@STEP_NEST_LEVEL@1@@@"
278 ] 251 ]
279 }, 252 },
280 { 253 {
281 "cmd": [ 254 "cmd": [
255 "python",
256 "-u",
257 "\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"
258 ],
259 "name": "calculate the number of recommended jobs",
260 "stdout": "/path/to/tmp/",
261 "~followup_annotations": [
262 "@@@STEP_LOG_LINE@python.inline@@@@",
263 "@@@STEP_LOG_LINE@python.inline@import multiprocessing@@@",
264 "@@@STEP_LOG_LINE@python.inline@import sys@@@",
265 "@@@STEP_LOG_LINE@python.inline@@@@",
266 "@@@STEP_LOG_LINE@python.inline@job_limit = 200@@@",
267 "@@@STEP_LOG_LINE@python.inline@if sys.platform.startswith('linux'):@@@",
268 "@@@STEP_LOG_LINE@python.inline@ # Use 80 for linux not to load goma back end.@@@",
269 "@@@STEP_LOG_LINE@python.inline@ job_limit = 80@@@",
270 "@@@STEP_LOG_LINE@python.inline@@@@",
271 "@@@STEP_LOG_LINE@python.inline@try:@@@",
272 "@@@STEP_LOG_LINE@python.inline@ jobs = min(job_limit, multiprocessing.cp u_count() * 10)@@@",
273 "@@@STEP_LOG_LINE@python.inline@except NotImplementedError:@@@",
274 "@@@STEP_LOG_LINE@python.inline@ jobs = 50@@@",
275 "@@@STEP_LOG_LINE@python.inline@@@@",
276 "@@@STEP_LOG_LINE@python.inline@print jobs@@@",
277 "@@@STEP_LOG_END@python.inline@@@"
278 ]
279 },
280 {
281 "cmd": [
282 "RECIPE_PACKAGE_REPO[depot_tools]/ninja", 282 "RECIPE_PACKAGE_REPO[depot_tools]/ninja",
283 "-w", 283 "-w",
284 "dupbuild=err", 284 "dupbuild=err",
285 "-C", 285 "-C",
286 "[BUILDER_CACHE]/android_compile_arm64_dbg/src/out/Debug", 286 "[BUILDER_CACHE]/android_compile_arm64_dbg/src/out/Debug",
287 "-j", 287 "-j",
288 "50" 288 "50"
289 ], 289 ],
290 "env": { 290 "env": {
291 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json", 291 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json",
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
387 "~followup_annotations": [ 387 "~followup_annotations": [
388 "@@@STEP_NEST_LEVEL@1@@@" 388 "@@@STEP_NEST_LEVEL@1@@@"
389 ] 389 ]
390 }, 390 },
391 { 391 {
392 "name": "$result", 392 "name": "$result",
393 "recipe_result": null, 393 "recipe_result": null,
394 "status_code": 0 394 "status_code": 0
395 } 395 }
396 ] 396 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698