| OLD | NEW |
| 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]/Android32_Clang__dbg_", | 7 "[BUILDER_CACHE]/Android32_Clang__dbg_", |
| 8 "511" | 8 "511" |
| 9 ], | 9 ], |
| 10 "name": "makedirs checkout path", | 10 "name": "makedirs checkout path", |
| (...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 219 }, | 219 }, |
| 220 "name": "clang_revision", | 220 "name": "clang_revision", |
| 221 "~followup_annotations": [ | 221 "~followup_annotations": [ |
| 222 "@@@STEP_LOG_LINE@json.output@{@@@", | 222 "@@@STEP_LOG_LINE@json.output@{@@@", |
| 223 "@@@STEP_LOG_LINE@json.output@ \"clang_revision\": \"123456-7\"@@@", | 223 "@@@STEP_LOG_LINE@json.output@ \"clang_revision\": \"123456-7\"@@@", |
| 224 "@@@STEP_LOG_LINE@json.output@}@@@", | 224 "@@@STEP_LOG_LINE@json.output@}@@@", |
| 225 "@@@STEP_LOG_END@json.output@@@" | 225 "@@@STEP_LOG_END@json.output@@@" |
| 226 ] | 226 ] |
| 227 }, | 227 }, |
| 228 { | 228 { |
| 229 "cmd": [ | |
| 230 "python", | |
| 231 "-u", | |
| 232 "\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" | |
| 233 ], | |
| 234 "name": "calculate the number of recommended jobs", | |
| 235 "stdout": "/path/to/tmp/", | |
| 236 "~followup_annotations": [ | |
| 237 "@@@STEP_LOG_LINE@python.inline@@@@", | |
| 238 "@@@STEP_LOG_LINE@python.inline@import multiprocessing@@@", | |
| 239 "@@@STEP_LOG_LINE@python.inline@import sys@@@", | |
| 240 "@@@STEP_LOG_LINE@python.inline@@@@", | |
| 241 "@@@STEP_LOG_LINE@python.inline@job_limit = 200@@@", | |
| 242 "@@@STEP_LOG_LINE@python.inline@if sys.platform.startswith('linux'):@@@", | |
| 243 "@@@STEP_LOG_LINE@python.inline@ # Use 80 for linux not to load goma back
end.@@@", | |
| 244 "@@@STEP_LOG_LINE@python.inline@ job_limit = 80@@@", | |
| 245 "@@@STEP_LOG_LINE@python.inline@@@@", | |
| 246 "@@@STEP_LOG_LINE@python.inline@try:@@@", | |
| 247 "@@@STEP_LOG_LINE@python.inline@ jobs = min(job_limit, multiprocessing.cp
u_count() * 10)@@@", | |
| 248 "@@@STEP_LOG_LINE@python.inline@except NotImplementedError:@@@", | |
| 249 "@@@STEP_LOG_LINE@python.inline@ jobs = 50@@@", | |
| 250 "@@@STEP_LOG_LINE@python.inline@@@@", | |
| 251 "@@@STEP_LOG_LINE@python.inline@print jobs@@@", | |
| 252 "@@@STEP_LOG_END@python.inline@@@" | |
| 253 ] | |
| 254 }, | |
| 255 { | |
| 256 "cmd": [], | 229 "cmd": [], |
| 257 "name": "preprocess_for_goma" | 230 "name": "preprocess_for_goma" |
| 258 }, | 231 }, |
| 259 { | 232 { |
| 260 "cmd": [ | 233 "cmd": [ |
| 261 "python", | 234 "python", |
| 262 "-u", | 235 "-u", |
| 263 "[CACHE]/cipd/goma/goma_ctl.py", | 236 "[CACHE]/cipd/goma/goma_ctl.py", |
| 264 "restart" | 237 "restart" |
| 265 ], | 238 ], |
| (...skipping 23 matching lines...) Expand all Loading... |
| 289 "env": { | 262 "env": { |
| 290 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account
-goma-client.json" | 263 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account
-goma-client.json" |
| 291 }, | 264 }, |
| 292 "name": "preprocess_for_goma.start cloudtail", | 265 "name": "preprocess_for_goma.start cloudtail", |
| 293 "~followup_annotations": [ | 266 "~followup_annotations": [ |
| 294 "@@@STEP_NEST_LEVEL@1@@@" | 267 "@@@STEP_NEST_LEVEL@1@@@" |
| 295 ] | 268 ] |
| 296 }, | 269 }, |
| 297 { | 270 { |
| 298 "cmd": [ | 271 "cmd": [ |
| 272 "python", |
| 273 "-u", |
| 274 "\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" |
| 275 ], |
| 276 "name": "calculate the number of recommended jobs", |
| 277 "stdout": "/path/to/tmp/", |
| 278 "~followup_annotations": [ |
| 279 "@@@STEP_LOG_LINE@python.inline@@@@", |
| 280 "@@@STEP_LOG_LINE@python.inline@import multiprocessing@@@", |
| 281 "@@@STEP_LOG_LINE@python.inline@import sys@@@", |
| 282 "@@@STEP_LOG_LINE@python.inline@@@@", |
| 283 "@@@STEP_LOG_LINE@python.inline@job_limit = 200@@@", |
| 284 "@@@STEP_LOG_LINE@python.inline@if sys.platform.startswith('linux'):@@@", |
| 285 "@@@STEP_LOG_LINE@python.inline@ # Use 80 for linux not to load goma back
end.@@@", |
| 286 "@@@STEP_LOG_LINE@python.inline@ job_limit = 80@@@", |
| 287 "@@@STEP_LOG_LINE@python.inline@@@@", |
| 288 "@@@STEP_LOG_LINE@python.inline@try:@@@", |
| 289 "@@@STEP_LOG_LINE@python.inline@ jobs = min(job_limit, multiprocessing.cp
u_count() * 10)@@@", |
| 290 "@@@STEP_LOG_LINE@python.inline@except NotImplementedError:@@@", |
| 291 "@@@STEP_LOG_LINE@python.inline@ jobs = 50@@@", |
| 292 "@@@STEP_LOG_LINE@python.inline@@@@", |
| 293 "@@@STEP_LOG_LINE@python.inline@print jobs@@@", |
| 294 "@@@STEP_LOG_END@python.inline@@@" |
| 295 ] |
| 296 }, |
| 297 { |
| 298 "cmd": [ |
| 299 "RECIPE_PACKAGE_REPO[depot_tools]/ninja", | 299 "RECIPE_PACKAGE_REPO[depot_tools]/ninja", |
| 300 "-w", | 300 "-w", |
| 301 "dupbuild=err", | 301 "dupbuild=err", |
| 302 "-C", | 302 "-C", |
| 303 "[BUILDER_CACHE]/Android32_Clang__dbg_/src/out/Debug", | 303 "[BUILDER_CACHE]/Android32_Clang__dbg_/src/out/Debug", |
| 304 "-j", | 304 "-j", |
| 305 "50" | 305 "50" |
| 306 ], | 306 ], |
| 307 "env": { | 307 "env": { |
| 308 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account
-goma-client.json", | 308 "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 Loading... |
| 404 "~followup_annotations": [ | 404 "~followup_annotations": [ |
| 405 "@@@STEP_NEST_LEVEL@1@@@" | 405 "@@@STEP_NEST_LEVEL@1@@@" |
| 406 ] | 406 ] |
| 407 }, | 407 }, |
| 408 { | 408 { |
| 409 "name": "$result", | 409 "name": "$result", |
| 410 "recipe_result": null, | 410 "recipe_result": null, |
| 411 "status_code": 0 | 411 "status_code": 0 |
| 412 } | 412 } |
| 413 ] | 413 ] |
| OLD | NEW |