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

Side by Side Diff: scripts/slave/recipes/webrtc/standalone.expected/tryserver_webrtc_android_compile_x86_dbg.json

Issue 2480193002: Stop to use contextmanager for goma.build_with_goma (Closed)
Patch Set: fix pylint 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_x86_dbg", 7 "[BUILDER_CACHE]/android_compile_x86_dbg",
8 "511" 8 "511"
9 ], 9 ],
10 "name": "makedirs checkout path", 10 "name": "makedirs checkout path",
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 "--gyp-script=[BUILDER_CACHE]/android_compile_x86_dbg/src/webrtc/build/gyp _webrtc.py", 211 "--gyp-script=[BUILDER_CACHE]/android_compile_x86_dbg/src/webrtc/build/gyp _webrtc.py",
212 "//out/Debug" 212 "//out/Debug"
213 ], 213 ],
214 "cwd": "[BUILDER_CACHE]/android_compile_x86_dbg/src", 214 "cwd": "[BUILDER_CACHE]/android_compile_x86_dbg/src",
215 "env": { 215 "env": {
216 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json" 216 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json"
217 }, 217 },
218 "name": "generate_build_files" 218 "name": "generate_build_files"
219 }, 219 },
220 { 220 {
221 "cmd": [
222 "python",
223 "-u",
224 "\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"
225 ],
226 "name": "calculate the number of recommended jobs",
227 "stdout": "/path/to/tmp/",
228 "~followup_annotations": [
229 "@@@STEP_LOG_LINE@python.inline@@@@",
230 "@@@STEP_LOG_LINE@python.inline@import multiprocessing@@@",
231 "@@@STEP_LOG_LINE@python.inline@import sys@@@",
232 "@@@STEP_LOG_LINE@python.inline@@@@",
233 "@@@STEP_LOG_LINE@python.inline@job_limit = 200@@@",
234 "@@@STEP_LOG_LINE@python.inline@if sys.platform.startswith('linux'):@@@",
235 "@@@STEP_LOG_LINE@python.inline@ # Use 80 for linux not to load goma back end.@@@",
236 "@@@STEP_LOG_LINE@python.inline@ job_limit = 80@@@",
237 "@@@STEP_LOG_LINE@python.inline@@@@",
238 "@@@STEP_LOG_LINE@python.inline@try:@@@",
239 "@@@STEP_LOG_LINE@python.inline@ jobs = min(job_limit, multiprocessing.cp u_count() * 10)@@@",
240 "@@@STEP_LOG_LINE@python.inline@except NotImplementedError:@@@",
241 "@@@STEP_LOG_LINE@python.inline@ jobs = 50@@@",
242 "@@@STEP_LOG_LINE@python.inline@@@@",
243 "@@@STEP_LOG_LINE@python.inline@print jobs@@@",
244 "@@@STEP_LOG_END@python.inline@@@"
245 ]
246 },
247 {
248 "cmd": [], 221 "cmd": [],
249 "name": "preprocess_for_goma" 222 "name": "preprocess_for_goma"
250 }, 223 },
251 { 224 {
252 "cmd": [ 225 "cmd": [
253 "python", 226 "python",
254 "-u", 227 "-u",
255 "[CACHE]/cipd/goma/goma_ctl.py", 228 "[CACHE]/cipd/goma/goma_ctl.py",
256 "restart" 229 "restart"
257 ], 230 ],
(...skipping 23 matching lines...) Expand all
281 "env": { 254 "env": {
282 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json" 255 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json"
283 }, 256 },
284 "name": "preprocess_for_goma.start cloudtail", 257 "name": "preprocess_for_goma.start cloudtail",
285 "~followup_annotations": [ 258 "~followup_annotations": [
286 "@@@STEP_NEST_LEVEL@1@@@" 259 "@@@STEP_NEST_LEVEL@1@@@"
287 ] 260 ]
288 }, 261 },
289 { 262 {
290 "cmd": [ 263 "cmd": [
264 "python",
265 "-u",
266 "\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"
267 ],
268 "name": "calculate the number of recommended jobs",
269 "stdout": "/path/to/tmp/",
270 "~followup_annotations": [
271 "@@@STEP_LOG_LINE@python.inline@@@@",
272 "@@@STEP_LOG_LINE@python.inline@import multiprocessing@@@",
273 "@@@STEP_LOG_LINE@python.inline@import sys@@@",
274 "@@@STEP_LOG_LINE@python.inline@@@@",
275 "@@@STEP_LOG_LINE@python.inline@job_limit = 200@@@",
276 "@@@STEP_LOG_LINE@python.inline@if sys.platform.startswith('linux'):@@@",
277 "@@@STEP_LOG_LINE@python.inline@ # Use 80 for linux not to load goma back end.@@@",
278 "@@@STEP_LOG_LINE@python.inline@ job_limit = 80@@@",
279 "@@@STEP_LOG_LINE@python.inline@@@@",
280 "@@@STEP_LOG_LINE@python.inline@try:@@@",
281 "@@@STEP_LOG_LINE@python.inline@ jobs = min(job_limit, multiprocessing.cp u_count() * 10)@@@",
282 "@@@STEP_LOG_LINE@python.inline@except NotImplementedError:@@@",
283 "@@@STEP_LOG_LINE@python.inline@ jobs = 50@@@",
284 "@@@STEP_LOG_LINE@python.inline@@@@",
285 "@@@STEP_LOG_LINE@python.inline@print jobs@@@",
286 "@@@STEP_LOG_END@python.inline@@@"
287 ]
288 },
289 {
290 "cmd": [
291 "RECIPE_PACKAGE_REPO[depot_tools]/ninja", 291 "RECIPE_PACKAGE_REPO[depot_tools]/ninja",
292 "-j",
293 "50",
292 "-w", 294 "-w",
293 "dupbuild=err", 295 "dupbuild=err",
294 "-C", 296 "-C",
295 "[BUILDER_CACHE]/android_compile_x86_dbg/src/out/Debug", 297 "[BUILDER_CACHE]/android_compile_x86_dbg/src/out/Debug"
296 "-j",
297 "50"
298 ], 298 ],
299 "env": { 299 "env": {
300 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json", 300 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json",
301 "PATH": "[BUILDER_CACHE]/android_compile_x86_dbg/src/third_party/android_t ools/sdk/platform-tools:[BUILDER_CACHE]/android_compile_x86_dbg/src/build/androi d:%(PATH)s" 301 "PATH": "[BUILDER_CACHE]/android_compile_x86_dbg/src/third_party/android_t ools/sdk/platform-tools:[BUILDER_CACHE]/android_compile_x86_dbg/src/build/androi d:%(PATH)s"
302 }, 302 },
303 "name": "compile with ninja" 303 "name": "compile with ninja"
304 }, 304 },
305 { 305 {
306 "cmd": [], 306 "cmd": [],
307 "name": "postprocess_for_goma" 307 "name": "postprocess_for_goma"
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
358 "-u", 358 "-u",
359 "RECIPE_PACKAGE_REPO[build]/scripts/slave/upload_goma_logs.py", 359 "RECIPE_PACKAGE_REPO[build]/scripts/slave/upload_goma_logs.py",
360 "--upload-compiler-proxy-info", 360 "--upload-compiler-proxy-info",
361 "--json-status", 361 "--json-status",
362 "[CACHE]/cipd/goma/jsonstatus", 362 "[CACHE]/cipd/goma/jsonstatus",
363 "--ninja-log-outdir", 363 "--ninja-log-outdir",
364 "[BUILDER_CACHE]/android_compile_x86_dbg/src/out/Debug", 364 "[BUILDER_CACHE]/android_compile_x86_dbg/src/out/Debug",
365 "--ninja-log-compiler", 365 "--ninja-log-compiler",
366 "goma", 366 "goma",
367 "--ninja-log-command", 367 "--ninja-log-command",
368 "['RECIPE_PACKAGE_REPO[depot_tools]/ninja', '-w', 'dupbuild=err', '-C', '[ BUILDER_CACHE]/android_compile_x86_dbg/src/out/Debug', '-j', 50]", 368 "['RECIPE_PACKAGE_REPO[depot_tools]/ninja', '-j', 50, '-w', 'dupbuild=err' , '-C', '[BUILDER_CACHE]/android_compile_x86_dbg/src/out/Debug']",
369 "--ninja-log-exit-status", 369 "--ninja-log-exit-status",
370 "0", 370 "0",
371 "--buildbot-buildername", 371 "--buildbot-buildername",
372 "android_compile_x86_dbg", 372 "android_compile_x86_dbg",
373 "--buildbot-mastername", 373 "--buildbot-mastername",
374 "tryserver.webrtc", 374 "tryserver.webrtc",
375 "--buildbot-slavename", 375 "--buildbot-slavename",
376 "slavename" 376 "slavename"
377 ], 377 ],
378 "env": { 378 "env": {
(...skipping 17 matching lines...) Expand all
396 "~followup_annotations": [ 396 "~followup_annotations": [
397 "@@@STEP_NEST_LEVEL@1@@@" 397 "@@@STEP_NEST_LEVEL@1@@@"
398 ] 398 ]
399 }, 399 },
400 { 400 {
401 "name": "$result", 401 "name": "$result",
402 "recipe_result": null, 402 "recipe_result": null,
403 "status_code": 0 403 "status_code": 0
404 } 404 }
405 ] 405 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698