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

Side by Side Diff: scripts/slave/recipes/chromium_trybot.py

Issue 1212413002: Pass all compile targets to "analyze" (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: do not include 'all' Created 5 years, 6 months 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
« no previous file with comments | « no previous file | scripts/slave/recipes/chromium_trybot.expected/analyze_finds_invalid_target.json » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 )
OLDNEW
« no previous file with comments | « no previous file | scripts/slave/recipes/chromium_trybot.expected/analyze_finds_invalid_target.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698