OLD | NEW |
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 "--master", | 7 "--master", |
8 "chromium.linux", | 8 "chromium.linux", |
9 "--builder", | 9 "--builder", |
10 "Android Tests", | 10 "Android Tests", |
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
216 "-u", | 216 "-u", |
217 "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n", | 217 "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n", |
218 "[SLAVE_BUILD]/src/testing/buildbot/chromium.linux.json", | 218 "[SLAVE_BUILD]/src/testing/buildbot/chromium.linux.json", |
219 "/path/to/tmp/json" | 219 "/path/to/tmp/json" |
220 ], | 220 ], |
221 "name": "read test spec (chromium.linux.json)", | 221 "name": "read test spec (chromium.linux.json)", |
222 "~followup_annotations": [ | 222 "~followup_annotations": [ |
223 "@@@STEP_TEXT@path: [SLAVE_BUILD]/src/testing/buildbot/chromium.linux.json
@@@", | 223 "@@@STEP_TEXT@path: [SLAVE_BUILD]/src/testing/buildbot/chromium.linux.json
@@@", |
224 "@@@STEP_LOG_LINE@json.output@{@@@", | 224 "@@@STEP_LOG_LINE@json.output@{@@@", |
225 "@@@STEP_LOG_LINE@json.output@ \"Android Tests\": {@@@", | 225 "@@@STEP_LOG_LINE@json.output@ \"Android Tests\": {@@@", |
226 "@@@STEP_LOG_LINE@json.output@ \"junit_tests\": [@@@", | 226 "@@@STEP_LOG_LINE@json.output@ \"gtest_tests\": [@@@", |
227 "@@@STEP_LOG_LINE@json.output@ {@@@", | 227 "@@@STEP_LOG_LINE@json.output@ {@@@", |
228 "@@@STEP_LOG_LINE@json.output@ \"test\": \"base_junit_tests\"@@@", | 228 "@@@STEP_LOG_LINE@json.output@ \"override_compile_targets\": [@@@", |
| 229 "@@@STEP_LOG_LINE@json.output@ \"chrome_public_test_apk\"@@@", |
| 230 "@@@STEP_LOG_LINE@json.output@ ], @@@", |
| 231 "@@@STEP_LOG_LINE@json.output@ \"override_isolate_target\": \"chrom
e_public_test_apk\", @@@", |
| 232 "@@@STEP_LOG_LINE@json.output@ \"swarming\": {@@@", |
| 233 "@@@STEP_LOG_LINE@json.output@ \"can_use_on_swarming_builders\":
true, @@@", |
| 234 "@@@STEP_LOG_LINE@json.output@ \"cipd_packages\": [@@@", |
| 235 "@@@STEP_LOG_LINE@json.output@ {@@@", |
| 236 "@@@STEP_LOG_LINE@json.output@ \"cipd_package\": \"some/other
/package\", @@@", |
| 237 "@@@STEP_LOG_LINE@json.output@ \"location\": \"bin\", @@@", |
| 238 "@@@STEP_LOG_LINE@json.output@ \"revision\": \"git_revision:d
eadbeef\"@@@", |
| 239 "@@@STEP_LOG_LINE@json.output@ }, @@@", |
| 240 "@@@STEP_LOG_LINE@json.output@ {@@@", |
| 241 "@@@STEP_LOG_LINE@json.output@ \"cipd_package\": \"another/pa
ckage\", @@@", |
| 242 "@@@STEP_LOG_LINE@json.output@ \"location\": \"bin\", @@@", |
| 243 "@@@STEP_LOG_LINE@json.output@ \"revision\": \"git_revision:d
eadbeef\"@@@", |
| 244 "@@@STEP_LOG_LINE@json.output@ }@@@", |
| 245 "@@@STEP_LOG_LINE@json.output@ ], @@@", |
| 246 "@@@STEP_LOG_LINE@json.output@ \"dimension_sets\": [@@@", |
| 247 "@@@STEP_LOG_LINE@json.output@ {@@@", |
| 248 "@@@STEP_LOG_LINE@json.output@ \"build.id\": \"KTU84P\", @@@"
, |
| 249 "@@@STEP_LOG_LINE@json.output@ \"product.board\": \"hammerhea
d\"@@@", |
| 250 "@@@STEP_LOG_LINE@json.output@ }@@@", |
| 251 "@@@STEP_LOG_LINE@json.output@ ]@@@", |
| 252 "@@@STEP_LOG_LINE@json.output@ }, @@@", |
| 253 "@@@STEP_LOG_LINE@json.output@ \"test\": \"chrome_public_test_apk\"
@@@", |
229 "@@@STEP_LOG_LINE@json.output@ }@@@", | 254 "@@@STEP_LOG_LINE@json.output@ }@@@", |
230 "@@@STEP_LOG_LINE@json.output@ ]@@@", | 255 "@@@STEP_LOG_LINE@json.output@ ]@@@", |
231 "@@@STEP_LOG_LINE@json.output@ }@@@", | 256 "@@@STEP_LOG_LINE@json.output@ }@@@", |
232 "@@@STEP_LOG_LINE@json.output@}@@@", | 257 "@@@STEP_LOG_LINE@json.output@}@@@", |
233 "@@@STEP_LOG_END@json.output@@@" | 258 "@@@STEP_LOG_END@json.output@@@" |
234 ] | 259 ] |
235 }, | 260 }, |
236 { | 261 { |
237 "cmd": [ | 262 "cmd": [ |
238 "python", | 263 "python", |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
321 "chromium.linux", | 346 "chromium.linux", |
322 "--build-number", | 347 "--build-number", |
323 "571" | 348 "571" |
324 ], | 349 ], |
325 "name": "extract build" | 350 "name": "extract build" |
326 }, | 351 }, |
327 { | 352 { |
328 "cmd": [ | 353 "cmd": [ |
329 "python", | 354 "python", |
330 "-u", | 355 "-u", |
| 356 "RECIPE_MODULE[build::isolate]/resources/find_isolated_tests.py", |
| 357 "--build-dir", |
| 358 "[SLAVE_BUILD]/src/out/Release", |
| 359 "--output-json", |
| 360 "/path/to/tmp/json" |
| 361 ], |
| 362 "env": { |
| 363 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account
-goma-client.json", |
| 364 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S
LAVE_BUILD]/src/build/android:%(PATH)s" |
| 365 }, |
| 366 "name": "find isolated tests", |
| 367 "~followup_annotations": [ |
| 368 "@@@STEP_LOG_LINE@json.output@{@@@", |
| 369 "@@@STEP_LOG_LINE@json.output@ \"dummy_target_1\": \"[dummy hash for dumm
y_target_1]\", @@@", |
| 370 "@@@STEP_LOG_LINE@json.output@ \"dummy_target_2\": \"[dummy hash for dumm
y_target_2]\"@@@", |
| 371 "@@@STEP_LOG_LINE@json.output@}@@@", |
| 372 "@@@STEP_LOG_END@json.output@@@", |
| 373 "@@@SET_BUILD_PROPERTY@swarm_hashes@{\"dummy_target_1\": \"[dummy hash for
dummy_target_1]\", \"dummy_target_2\": \"[dummy hash for dummy_target_2]\"}@@@" |
| 374 ] |
| 375 }, |
| 376 { |
| 377 "cmd": [ |
| 378 "python", |
| 379 "-u", |
331 "RECIPE_MODULE[build::adb]/resources/list_devices.py", | 380 "RECIPE_MODULE[build::adb]/resources/list_devices.py", |
332 "['[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools/adb', 'd
evices']", | 381 "['[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools/adb', 'd
evices']", |
333 "/path/to/tmp/json" | 382 "/path/to/tmp/json" |
334 ], | 383 ], |
335 "env": { | 384 "env": { |
336 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account
-goma-client.json", | 385 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account
-goma-client.json", |
337 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S
LAVE_BUILD]/src/build/android:%(PATH)s" | 386 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S
LAVE_BUILD]/src/build/android:%(PATH)s" |
338 }, | 387 }, |
339 "name": "List adb devices", | 388 "name": "List adb devices", |
340 "~followup_annotations": [ | 389 "~followup_annotations": [ |
(...skipping 26 matching lines...) Expand all Loading... |
367 "@@@STEP_LOG_LINE@python.inline@ subprocess.check_call([adb_path, '-s', d
evice, 'root'])@@@", | 416 "@@@STEP_LOG_LINE@python.inline@ subprocess.check_call([adb_path, '-s', d
evice, 'root'])@@@", |
368 "@@@STEP_LOG_LINE@python.inline@ subprocess.check_call([adb_path, '-s', d
evice, 'wait-for-device'])@@@", | 417 "@@@STEP_LOG_LINE@python.inline@ subprocess.check_call([adb_path, '-s', d
evice, 'wait-for-device'])@@@", |
369 "@@@STEP_LOG_LINE@python.inline@ print 'Finished rooting device %s' % (de
vice)@@@", | 418 "@@@STEP_LOG_LINE@python.inline@ print 'Finished rooting device %s' % (de
vice)@@@", |
370 "@@@STEP_LOG_END@python.inline@@@" | 419 "@@@STEP_LOG_END@python.inline@@@" |
371 ] | 420 ] |
372 }, | 421 }, |
373 { | 422 { |
374 "cmd": [ | 423 "cmd": [ |
375 "python", | 424 "python", |
376 "-u", | 425 "-u", |
377 "[SLAVE_BUILD]/src/build/android/test_runner.py", | 426 "[SLAVE_BUILD]/src/tools/swarming_client/swarming.py", |
378 "junit", | 427 "trigger", |
379 "-s", | 428 "--swarming", |
380 "base_junit_tests", | 429 "https://chromium-swarm.appspot.com", |
381 "--verbose", | 430 "--isolate-server", |
382 "--release", | 431 "https://isolateserver.appspot.com", |
383 "--json-results-file", | 432 "--priority", |
| 433 "25", |
| 434 "--shards", |
| 435 "1", |
| 436 "--task-name", |
| 437 "chrome_public_test_apk/Android/cccccccccc/Android Tests/571", |
| 438 "--dump-json", |
384 "/path/to/tmp/json", | 439 "/path/to/tmp/json", |
385 "--adb-path", | 440 "--expiration", |
386 "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools/adb" | 441 "3600", |
| 442 "--io-timeout", |
| 443 "1200", |
| 444 "--hard-timeout", |
| 445 "3600", |
| 446 "--dimension", |
| 447 "android_devices", |
| 448 "6", |
| 449 "--dimension", |
| 450 "build.id", |
| 451 "KTU84P", |
| 452 "--dimension", |
| 453 "os", |
| 454 "Android", |
| 455 "--dimension", |
| 456 "pool", |
| 457 "Chrome", |
| 458 "--dimension", |
| 459 "product.board", |
| 460 "hammerhead", |
| 461 "--tag", |
| 462 "buildername:Android Tests", |
| 463 "--tag", |
| 464 "buildnumber:571", |
| 465 "--tag", |
| 466 "data:cccccccccccccccccc", |
| 467 "--tag", |
| 468 "master:chromium.linux", |
| 469 "--tag", |
| 470 "name:chrome_public_test_apk", |
| 471 "--tag", |
| 472 "os:Android", |
| 473 "--tag", |
| 474 "project:chromium", |
| 475 "--tag", |
| 476 "purpose:CI", |
| 477 "--tag", |
| 478 "purpose:post-commit", |
| 479 "--tag", |
| 480 "slavename:TestSlavename", |
| 481 "--tag", |
| 482 "stepname:chrome_public_test_apk on Android", |
| 483 "--idempotent", |
| 484 "--cipd-package", |
| 485 "bin:some/other/package:git_revision:deadbeef", |
| 486 "--cipd-package", |
| 487 "bin:another/package:git_revision:deadbeef", |
| 488 "cccccccccccccccccc", |
| 489 "--", |
| 490 "--test-launcher-summary-output=${ISOLATED_OUTDIR}/output.json" |
387 ], | 491 ], |
388 "env": { | 492 "env": { |
389 "CHROMIUM_OUTPUT_DIR": "[SLAVE_BUILD]/src/out/Release", | |
390 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account
-goma-client.json", | 493 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account
-goma-client.json", |
391 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S
LAVE_BUILD]/src/build/android:%(PATH)s" | 494 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S
LAVE_BUILD]/src/build/android:%(PATH)s" |
392 }, | 495 }, |
393 "name": "base_junit_tests", | 496 "name": "[trigger] chrome_public_test_apk on Android", |
394 "~followup_annotations": [ | 497 "~followup_annotations": [ |
395 "step returned non-zero exit code: 1", | 498 "@@@STEP_LOG_LINE@json.output@{@@@", |
396 "@@@STEP_TEXT@<br/>failures:<br/>Test.Two<br/>@@@", | 499 "@@@STEP_LOG_LINE@json.output@ \"base_task_name\": \"chrome_public_test_a
pk/Android/cccccccccc/Android Tests/571\", @@@", |
397 "@@@STEP_FAILURE@@@" | 500 "@@@STEP_LOG_LINE@json.output@ \"tasks\": {@@@", |
| 501 "@@@STEP_LOG_LINE@json.output@ \"chrome_public_test_apk/Android/ccccccc
ccc/Android Tests/571\": {@@@", |
| 502 "@@@STEP_LOG_LINE@json.output@ \"shard_index\": 0, @@@", |
| 503 "@@@STEP_LOG_LINE@json.output@ \"task_id\": \"10000\", @@@", |
| 504 "@@@STEP_LOG_LINE@json.output@ \"view_url\": \"https://chromium-swarm
.appspot.com/user/task/10000\"@@@", |
| 505 "@@@STEP_LOG_LINE@json.output@ }@@@", |
| 506 "@@@STEP_LOG_LINE@json.output@ }@@@", |
| 507 "@@@STEP_LOG_LINE@json.output@}@@@", |
| 508 "@@@STEP_LOG_END@json.output@@@", |
| 509 "@@@STEP_LINK@shard #0@https://chromium-swarm.appspot.com/user/task/10000@
@@" |
398 ] | 510 ] |
399 }, | 511 }, |
400 { | 512 { |
| 513 "allow_subannotations": true, |
| 514 "cmd": [ |
| 515 "python", |
| 516 "-u", |
| 517 "RECIPE_PACKAGE_REPO[build]/scripts/tools/runit.py", |
| 518 "python", |
| 519 "RECIPE_MODULE[build::swarming]/resources/collect_gtest_task.py", |
| 520 "--swarming-client-dir", |
| 521 "[SLAVE_BUILD]/src/tools/swarming_client", |
| 522 "--temp-root-dir", |
| 523 "[TMP_BASE]", |
| 524 "--merged-test-output", |
| 525 "/path/to/tmp/json", |
| 526 "--", |
| 527 "collect", |
| 528 "--swarming", |
| 529 "https://chromium-swarm.appspot.com", |
| 530 "--decorate", |
| 531 "--print-status-updates", |
| 532 "--json", |
| 533 "{\"base_task_name\": \"chrome_public_test_apk/Android/cccccccccc/Android
Tests/571\", \"tasks\": {\"chrome_public_test_apk/Android/cccccccccc/Android Tes
ts/571\": {\"shard_index\": 0, \"task_id\": \"10000\", \"view_url\": \"https://c
hromium-swarm.appspot.com/user/task/10000\"}}}" |
| 534 ], |
| 535 "env": { |
| 536 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account
-goma-client.json", |
| 537 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S
LAVE_BUILD]/src/build/android:%(PATH)s" |
| 538 }, |
| 539 "name": "chrome_public_test_apk on Android", |
| 540 "~followup_annotations": [ |
| 541 "@@@STEP_LINK@shard #0 isolated out@blah@@@" |
| 542 ] |
| 543 }, |
| 544 { |
401 "cmd": [ | 545 "cmd": [ |
402 "python", | 546 "python", |
403 "-u", | 547 "-u", |
404 "RECIPE_MODULE[build::test_results]/resources/upload_gtest_test_results.py
", | 548 "RECIPE_MODULE[build::test_results]/resources/upload_gtest_test_results.py
", |
405 "--input-gtest-json", | 549 "--input-gtest-json", |
406 "{\"per_iteration_data\": [{\"Test.One\": [{\"elapsed_time_ms\": 0, \"outp
ut_snippet\": \"\", \"status\": \"SUCCESS\"}], \"Test.Three\": [{\"elapsed_time_
ms\": 0, \"output_snippet\": \"\", \"status\": \"SUCCESS\"}], \"Test.Two\": [{\"
elapsed_time_ms\": 0, \"output_snippet\": \"\", \"status\": \"FAILURE\"}]}]}", | 550 "{\"per_iteration_data\": [{\"Test.One\": [{\"elapsed_time_ms\": 0, \"outp
ut_snippet\": \"\", \"status\": \"SUCCESS\"}], \"Test.Three\": [{\"elapsed_time_
ms\": 0, \"output_snippet\": \"\", \"status\": \"SUCCESS\"}], \"Test.Two\": [{\"
elapsed_time_ms\": 0, \"output_snippet\": \"\", \"status\": \"SUCCESS\"}]}], \"s
warming_summary\": {\"shards\": [{\"outputs_ref\": {\"view_url\": \"blah\"}}]}}"
, |
407 "--master-name", | 551 "--master-name", |
408 "chromium.linux", | 552 "chromium.linux", |
409 "--builder-name", | 553 "--builder-name", |
410 "Android Tests", | 554 "Android Tests", |
411 "--build-number", | 555 "--build-number", |
412 "571", | 556 "571", |
413 "--test-type", | 557 "--test-type", |
414 "base_junit_tests", | 558 "chrome_public_test_apk on Android", |
415 "--test-results-server", | 559 "--test-results-server", |
416 "test-results.appspot.com", | 560 "test-results.appspot.com", |
417 "--chrome-revision", | 561 "--chrome-revision", |
418 "refs/heads/master@{#170242}" | 562 "170242" |
419 ], | 563 ], |
420 "env": { | 564 "env": { |
421 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account
-goma-client.json", | 565 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account
-goma-client.json", |
422 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S
LAVE_BUILD]/src/build/android:%(PATH)s" | 566 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S
LAVE_BUILD]/src/build/android:%(PATH)s" |
423 }, | 567 }, |
424 "name": "Upload to test-results [base_junit_tests]" | 568 "name": "Upload to test-results [chrome_public_test_apk on Android]" |
425 }, | 569 }, |
426 { | 570 { |
427 "cmd": [ | 571 "cmd": [ |
428 "python", | 572 "python", |
429 "-u", | 573 "-u", |
430 "\nimport glob, os, sys\nfor report in glob.glob(sys.argv[1]):\n with ope
n(report, 'r') as f:\n for l in f.readlines():\n print l\n os.remove(re
port)\n", | 574 "\nimport glob, os, sys\nfor report in glob.glob(sys.argv[1]):\n with ope
n(report, 'r') as f:\n for l in f.readlines():\n print l\n os.remove(re
port)\n", |
431 "[SLAVE_BUILD]/src/out/Release/test_logs/*.log" | 575 "[SLAVE_BUILD]/src/out/Release/test_logs/*.log" |
432 ], | 576 ], |
433 "env": { | 577 "env": { |
434 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account
-goma-client.json", | 578 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account
-goma-client.json", |
435 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S
LAVE_BUILD]/src/build/android:%(PATH)s" | 579 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S
LAVE_BUILD]/src/build/android:%(PATH)s" |
436 }, | 580 }, |
437 "name": "test_report", | 581 "name": "test_report", |
438 "~followup_annotations": [ | 582 "~followup_annotations": [ |
439 "@@@STEP_LOG_LINE@python.inline@@@@", | 583 "@@@STEP_LOG_LINE@python.inline@@@@", |
440 "@@@STEP_LOG_LINE@python.inline@import glob, os, sys@@@", | 584 "@@@STEP_LOG_LINE@python.inline@import glob, os, sys@@@", |
441 "@@@STEP_LOG_LINE@python.inline@for report in glob.glob(sys.argv[1]):@@@", | 585 "@@@STEP_LOG_LINE@python.inline@for report in glob.glob(sys.argv[1]):@@@", |
442 "@@@STEP_LOG_LINE@python.inline@ with open(report, 'r') as f:@@@", | 586 "@@@STEP_LOG_LINE@python.inline@ with open(report, 'r') as f:@@@", |
443 "@@@STEP_LOG_LINE@python.inline@ for l in f.readlines():@@@", | 587 "@@@STEP_LOG_LINE@python.inline@ for l in f.readlines():@@@", |
444 "@@@STEP_LOG_LINE@python.inline@ print l@@@", | 588 "@@@STEP_LOG_LINE@python.inline@ print l@@@", |
445 "@@@STEP_LOG_LINE@python.inline@ os.remove(report)@@@", | 589 "@@@STEP_LOG_LINE@python.inline@ os.remove(report)@@@", |
446 "@@@STEP_LOG_END@python.inline@@@" | 590 "@@@STEP_LOG_END@python.inline@@@" |
447 ] | 591 ] |
448 }, | 592 }, |
449 { | 593 { |
450 "name": "$result", | 594 "name": "$result", |
451 "reason": "1 tests failed: ['base_junit_tests']", | |
452 "recipe_result": null, | 595 "recipe_result": null, |
453 "status_code": 1 | 596 "status_code": 0 |
454 } | 597 } |
455 ] | 598 ] |
OLD | NEW |