OLD | NEW |
---|---|
1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 2013 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 from infra.libs.infra_types import freeze | 5 from infra.libs.infra_types import freeze |
6 | 6 |
7 DEPS = [ | 7 DEPS = [ |
8 'bot_update', | 8 'bot_update', |
9 'chromium', | 9 'chromium', |
10 'chromium_android', | 10 'chromium_android', |
(...skipping 444 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
455 | 455 |
456 compile_targets, tests_including_triggered = \ | 456 compile_targets, tests_including_triggered = \ |
457 api.chromium_tests.get_compile_targets_and_tests( | 457 api.chromium_tests.get_compile_targets_and_tests( |
458 bot_config['mastername'], | 458 bot_config['mastername'], |
459 bot_config['buildername'], | 459 bot_config['buildername'], |
460 master_dict, | 460 master_dict, |
461 test_spec, | 461 test_spec, |
462 override_bot_type='builder_tester', | 462 override_bot_type='builder_tester', |
463 override_tests=tests) | 463 override_tests=tests) |
464 | 464 |
465 targets_for_analyze = sorted(set( | |
466 all_compile_targets(api, tests + tests_including_triggered) + | |
sky
2015/06/29 02:28:25
This certainly works, but shouldn't we instead war
Paweł Hajdan Jr.
2015/06/29 12:38:22
That's right. Do you think it's blocking this CL?
| |
467 [t for t in compile_targets if t.lower() != 'all'])) | |
465 requires_compile, matching_exes, compile_targets = \ | 468 requires_compile, matching_exes, compile_targets = \ |
466 api.chromium_tests.analyze( | 469 api.chromium_tests.analyze( |
467 affected_files, | 470 affected_files, |
468 all_compile_targets(api, tests + tests_including_triggered), | 471 targets_for_analyze, |
469 compile_targets, | 472 compile_targets, |
470 'trybot_analyze_config.json') | 473 'trybot_analyze_config.json') |
471 | 474 |
472 if not requires_compile: | 475 if not requires_compile: |
473 return | 476 return |
474 | 477 |
475 tests = tests_in_compile_targets(api, matching_exes, tests) | 478 tests = tests_in_compile_targets(api, matching_exes, tests) |
476 tests_including_triggered = tests_in_compile_targets( | 479 tests_including_triggered = tests_in_compile_targets( |
477 api, matching_exes, tests_including_triggered) | 480 api, matching_exes, tests_including_triggered) |
478 | 481 |
(...skipping 588 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1067 | 1070 |
1068 yield ( | 1071 yield ( |
1069 api.test('swarming_paths') + | 1072 api.test('swarming_paths') + |
1070 api.properties.tryserver( | 1073 api.properties.tryserver( |
1071 mastername='tryserver.chromium.linux', | 1074 mastername='tryserver.chromium.linux', |
1072 buildername='linux_chromium_rel_ng', | 1075 buildername='linux_chromium_rel_ng', |
1073 path_config='swarming', | 1076 path_config='swarming', |
1074 ) + | 1077 ) + |
1075 api.platform.name('linux') | 1078 api.platform.name('linux') |
1076 ) | 1079 ) |
OLD | NEW |