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

Side by Side Diff: scripts/slave/recipes/chromium_codesearch.expected/full_ChromiumOS_Codesearch_Builder.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 "RECIPE_MODULE[depot_tools::bot_update]/resources/bot_update.py", 6 "RECIPE_MODULE[depot_tools::bot_update]/resources/bot_update.py",
7 "--spec", 7 "--spec",
8 "cache_dir = '[GIT_CACHE]'\nsolutions = [{'deps_file': '.DEPS.git', 'manag ed': True, 'name': 'src', 'url': 'https://chromium.googlesource.com/chromium/src .git'}, {'deps_file': '.DEPS.git', 'managed': True, 'name': 'tools/chrome-devtoo ls-frontend', 'url': 'https://chromium.googlesource.com/chromium/tools/chrome-de vtools-frontend'}, {'deps_file': '.DEPS.git', 'managed': True, 'name': 'tools/gs d_generate_index', 'url': 'https://chromium.googlesource.com/chromium/tools/gsd_ generate_index'}, {'deps_file': '.DEPS.git', 'managed': True, 'name': 'tools/per f', 'url': 'https://chromium.googlesource.com/chromium/tools/perf'}, {'deps_file ': '.DEPS.git', 'managed': True, 'name': 'tools/command_wrapper/bin', 'url': 'ht tps://chromium.googlesource.com/chromium/tools/command_wrapper/bin'}, {'deps_fil e': '.DEPS.git', 'managed': True, 'name': 'tools/depot_tools', 'url': 'https://c hromium.googlesource.com/chromium/tools/depot_tools'}, {'deps_file': '.DEPS.git' , 'managed': True, 'name': 'tools/chromium-jobqueue', 'url': 'https://chromium.g ooglesource.com/chromium/tools/chromium-jobqueue'}, {'deps_file': '.DEPS.git', ' managed': True, 'name': 'tools/chromium-shortener', 'url': 'https://chromium.goo glesource.com/chromium/tools/chromium-shortener'}, {'deps_file': '.DEPS.git', 'm anaged': True, 'name': 'infra', 'url': 'https://chromium.googlesource.com/infra/ infra'}]", 8 "cache_dir = '[GIT_CACHE]'\nsolutions = [{'deps_file': '.DEPS.git', 'manag ed': True, 'name': 'src', 'url': 'https://chromium.googlesource.com/chromium/src .git'}, {'deps_file': '.DEPS.git', 'managed': True, 'name': 'tools/chrome-devtoo ls-frontend', 'url': 'https://chromium.googlesource.com/chromium/tools/chrome-de vtools-frontend'}, {'deps_file': '.DEPS.git', 'managed': True, 'name': 'tools/gs d_generate_index', 'url': 'https://chromium.googlesource.com/chromium/tools/gsd_ generate_index'}, {'deps_file': '.DEPS.git', 'managed': True, 'name': 'tools/per f', 'url': 'https://chromium.googlesource.com/chromium/tools/perf'}, {'deps_file ': '.DEPS.git', 'managed': True, 'name': 'tools/command_wrapper/bin', 'url': 'ht tps://chromium.googlesource.com/chromium/tools/command_wrapper/bin'}, {'deps_fil e': '.DEPS.git', 'managed': True, 'name': 'tools/depot_tools', 'url': 'https://c hromium.googlesource.com/chromium/tools/depot_tools'}, {'deps_file': '.DEPS.git' , 'managed': True, 'name': 'tools/chromium-jobqueue', 'url': 'https://chromium.g ooglesource.com/chromium/tools/chromium-jobqueue'}, {'deps_file': '.DEPS.git', ' managed': True, 'name': 'tools/chromium-shortener', 'url': 'https://chromium.goo glesource.com/chromium/tools/chromium-shortener'}, {'deps_file': '.DEPS.git', 'm anaged': True, 'name': 'infra', 'url': 'https://chromium.googlesource.com/infra/ infra'}]",
9 "--patch_root", 9 "--patch_root",
10 "src", 10 "src",
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 "cmd": [ 193 "cmd": [
194 "[SLAVE_BUILD]/src/buildtools/linux64/gn", 194 "[SLAVE_BUILD]/src/buildtools/linux64/gn",
195 "gen", 195 "gen",
196 "[SLAVE_BUILD]/src/out/Debug", 196 "[SLAVE_BUILD]/src/out/Debug",
197 "--args=is_clang=true is_component_build=true is_debug=true symbol_level=1 target_cpu=\"x64\" target_os=\"chromeos\" use_ozone=true use_goma=true goma_dir =\"[CACHE]/cipd/goma\"" 197 "--args=is_clang=true is_component_build=true is_debug=true symbol_level=1 target_cpu=\"x64\" target_os=\"chromeos\" use_ozone=true use_goma=true goma_dir =\"[CACHE]/cipd/goma\""
198 ], 198 ],
199 "cwd": "[SLAVE_BUILD]/src", 199 "cwd": "[SLAVE_BUILD]/src",
200 "name": "generate build files for chromeos" 200 "name": "generate build files for chromeos"
201 }, 201 },
202 { 202 {
203 "cmd": [
204 "python",
205 "-u",
206 "\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"
207 ],
208 "name": "calculate the number of recommended jobs",
209 "stdout": "/path/to/tmp/",
210 "~followup_annotations": [
211 "@@@STEP_LOG_LINE@python.inline@@@@",
212 "@@@STEP_LOG_LINE@python.inline@import multiprocessing@@@",
213 "@@@STEP_LOG_LINE@python.inline@import sys@@@",
214 "@@@STEP_LOG_LINE@python.inline@@@@",
215 "@@@STEP_LOG_LINE@python.inline@job_limit = 200@@@",
216 "@@@STEP_LOG_LINE@python.inline@if sys.platform.startswith('linux'):@@@",
217 "@@@STEP_LOG_LINE@python.inline@ # Use 80 for linux not to load goma back end.@@@",
218 "@@@STEP_LOG_LINE@python.inline@ job_limit = 80@@@",
219 "@@@STEP_LOG_LINE@python.inline@@@@",
220 "@@@STEP_LOG_LINE@python.inline@try:@@@",
221 "@@@STEP_LOG_LINE@python.inline@ jobs = min(job_limit, multiprocessing.cp u_count() * 10)@@@",
222 "@@@STEP_LOG_LINE@python.inline@except NotImplementedError:@@@",
223 "@@@STEP_LOG_LINE@python.inline@ jobs = 50@@@",
224 "@@@STEP_LOG_LINE@python.inline@@@@",
225 "@@@STEP_LOG_LINE@python.inline@print jobs@@@",
226 "@@@STEP_LOG_END@python.inline@@@"
227 ]
228 },
229 {
230 "cmd": [], 203 "cmd": [],
231 "name": "preprocess_for_goma" 204 "name": "preprocess_for_goma"
232 }, 205 },
233 { 206 {
234 "cmd": [ 207 "cmd": [
235 "python", 208 "python",
236 "-u", 209 "-u",
237 "[CACHE]/cipd/goma/goma_ctl.py", 210 "[CACHE]/cipd/goma/goma_ctl.py",
238 "restart" 211 "restart"
239 ], 212 ],
(...skipping 19 matching lines...) Expand all
259 "env": { 232 "env": {
260 "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"
261 }, 234 },
262 "name": "preprocess_for_goma.start cloudtail", 235 "name": "preprocess_for_goma.start cloudtail",
263 "~followup_annotations": [ 236 "~followup_annotations": [
264 "@@@STEP_NEST_LEVEL@1@@@" 237 "@@@STEP_NEST_LEVEL@1@@@"
265 ] 238 ]
266 }, 239 },
267 { 240 {
268 "cmd": [ 241 "cmd": [
242 "python",
243 "-u",
244 "\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"
245 ],
246 "name": "calculate the number of recommended jobs",
247 "stdout": "/path/to/tmp/",
248 "~followup_annotations": [
249 "@@@STEP_LOG_LINE@python.inline@@@@",
250 "@@@STEP_LOG_LINE@python.inline@import multiprocessing@@@",
251 "@@@STEP_LOG_LINE@python.inline@import sys@@@",
252 "@@@STEP_LOG_LINE@python.inline@@@@",
253 "@@@STEP_LOG_LINE@python.inline@job_limit = 200@@@",
254 "@@@STEP_LOG_LINE@python.inline@if sys.platform.startswith('linux'):@@@",
255 "@@@STEP_LOG_LINE@python.inline@ # Use 80 for linux not to load goma back end.@@@",
256 "@@@STEP_LOG_LINE@python.inline@ job_limit = 80@@@",
257 "@@@STEP_LOG_LINE@python.inline@@@@",
258 "@@@STEP_LOG_LINE@python.inline@try:@@@",
259 "@@@STEP_LOG_LINE@python.inline@ jobs = min(job_limit, multiprocessing.cp u_count() * 10)@@@",
260 "@@@STEP_LOG_LINE@python.inline@except NotImplementedError:@@@",
261 "@@@STEP_LOG_LINE@python.inline@ jobs = 50@@@",
262 "@@@STEP_LOG_LINE@python.inline@@@@",
263 "@@@STEP_LOG_LINE@python.inline@print jobs@@@",
264 "@@@STEP_LOG_END@python.inline@@@"
265 ]
266 },
267 {
268 "cmd": [
269 "ninja", 269 "ninja",
270 "-j",
271 "50",
270 "-C", 272 "-C",
271 "[SLAVE_BUILD]/src/out/Debug", 273 "[SLAVE_BUILD]/src/out/Debug",
272 "all", 274 "all",
273 "-t", 275 "-t",
274 "compdb", 276 "compdb",
275 "cc", 277 "cc",
276 "cxx", 278 "cxx",
277 "objc", 279 "objc",
278 "objcxx", 280 "objcxx"
279 "-j",
280 "50"
281 ], 281 ],
282 "name": "generate compilation database for chromeos", 282 "name": "generate compilation database for chromeos",
283 "stdout": "/path/to/tmp/" 283 "stdout": "/path/to/tmp/"
284 }, 284 },
285 { 285 {
286 "cmd": [], 286 "cmd": [],
287 "name": "postprocess_for_goma" 287 "name": "postprocess_for_goma"
288 }, 288 },
289 { 289 {
290 "cmd": [ 290 "cmd": [
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 "-u", 338 "-u",
339 "RECIPE_PACKAGE_REPO[build]/scripts/slave/upload_goma_logs.py", 339 "RECIPE_PACKAGE_REPO[build]/scripts/slave/upload_goma_logs.py",
340 "--upload-compiler-proxy-info", 340 "--upload-compiler-proxy-info",
341 "--json-status", 341 "--json-status",
342 "[CACHE]/cipd/goma/jsonstatus", 342 "[CACHE]/cipd/goma/jsonstatus",
343 "--ninja-log-outdir", 343 "--ninja-log-outdir",
344 "[SLAVE_BUILD]/src/out/Debug", 344 "[SLAVE_BUILD]/src/out/Debug",
345 "--ninja-log-compiler", 345 "--ninja-log-compiler",
346 "goma", 346 "goma",
347 "--ninja-log-command", 347 "--ninja-log-command",
348 "['ninja', '-C', Path('checkout', 'out','Debug'), 'all', '-t', 'compdb', ' cc', 'cxx', 'objc', 'objcxx', '-j', 50]", 348 "['ninja', '-j', 50, '-C', Path('checkout', 'out','Debug'), 'all', '-t', ' compdb', 'cc', 'cxx', 'objc', 'objcxx']",
349 "--ninja-log-exit-status", 349 "--ninja-log-exit-status",
350 "0", 350 "0",
351 "--buildbot-buildername", 351 "--buildbot-buildername",
352 "ChromiumOS Codesearch Builder", 352 "ChromiumOS Codesearch Builder",
353 "--buildbot-mastername", 353 "--buildbot-mastername",
354 "chromium.infra.cron", 354 "chromium.infra.cron",
355 "--buildbot-slavename", 355 "--buildbot-slavename",
356 "TestSlavename" 356 "TestSlavename"
357 ], 357 ],
358 "env": { 358 "env": {
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
436 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json" 436 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json"
437 }, 437 },
438 "name": "preprocess_for_goma.start cloudtail (2)", 438 "name": "preprocess_for_goma.start cloudtail (2)",
439 "~followup_annotations": [ 439 "~followup_annotations": [
440 "@@@STEP_NEST_LEVEL@1@@@" 440 "@@@STEP_NEST_LEVEL@1@@@"
441 ] 441 ]
442 }, 442 },
443 { 443 {
444 "cmd": [ 444 "cmd": [
445 "RECIPE_PACKAGE_REPO[depot_tools]/ninja", 445 "RECIPE_PACKAGE_REPO[depot_tools]/ninja",
446 "-j",
447 "50",
446 "-w", 448 "-w",
447 "dupbuild=err", 449 "dupbuild=err",
448 "-C", 450 "-C",
449 "[SLAVE_BUILD]/src/out/Debug", 451 "[SLAVE_BUILD]/src/out/Debug",
450 "-k", 452 "-k",
451 "0", 453 "0",
452 "-j",
453 "50",
454 "all" 454 "all"
455 ], 455 ],
456 "env": { 456 "env": {
457 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json" 457 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json"
458 }, 458 },
459 "name": "compile with ninja" 459 "name": "compile with ninja"
460 }, 460 },
461 { 461 {
462 "cmd": [], 462 "cmd": [],
463 "name": "postprocess_for_goma (2)" 463 "name": "postprocess_for_goma (2)"
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
514 "-u", 514 "-u",
515 "RECIPE_PACKAGE_REPO[build]/scripts/slave/upload_goma_logs.py", 515 "RECIPE_PACKAGE_REPO[build]/scripts/slave/upload_goma_logs.py",
516 "--upload-compiler-proxy-info", 516 "--upload-compiler-proxy-info",
517 "--json-status", 517 "--json-status",
518 "[CACHE]/cipd/goma/jsonstatus", 518 "[CACHE]/cipd/goma/jsonstatus",
519 "--ninja-log-outdir", 519 "--ninja-log-outdir",
520 "[SLAVE_BUILD]/src/out/Debug", 520 "[SLAVE_BUILD]/src/out/Debug",
521 "--ninja-log-compiler", 521 "--ninja-log-compiler",
522 "goma-clang", 522 "goma-clang",
523 "--ninja-log-command", 523 "--ninja-log-command",
524 "['RECIPE_PACKAGE_REPO[depot_tools]/ninja', '-w', 'dupbuild=err', '-C', '[ SLAVE_BUILD]/src/out/Debug', '-k', '0', '-j', 50, 'all']", 524 "['RECIPE_PACKAGE_REPO[depot_tools]/ninja', '-j', 50, '-w', 'dupbuild=err' , '-C', '[SLAVE_BUILD]/src/out/Debug', '-k', '0', 'all']",
525 "--ninja-log-exit-status", 525 "--ninja-log-exit-status",
526 "0", 526 "0",
527 "--buildbot-buildername", 527 "--buildbot-buildername",
528 "ChromiumOS Codesearch Builder", 528 "ChromiumOS Codesearch Builder",
529 "--buildbot-mastername", 529 "--buildbot-mastername",
530 "chromium.infra.cron", 530 "chromium.infra.cron",
531 "--buildbot-slavename", 531 "--buildbot-slavename",
532 "TestSlavename" 532 "TestSlavename"
533 ], 533 ],
534 "env": { 534 "env": {
(...skipping 17 matching lines...) Expand all
552 "~followup_annotations": [ 552 "~followup_annotations": [
553 "@@@STEP_NEST_LEVEL@1@@@" 553 "@@@STEP_NEST_LEVEL@1@@@"
554 ] 554 ]
555 }, 555 },
556 { 556 {
557 "name": "$result", 557 "name": "$result",
558 "recipe_result": null, 558 "recipe_result": null,
559 "status_code": 0 559 "status_code": 0
560 } 560 }
561 ] 561 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698