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

Unified Diff: scripts/slave/recipes/chromium_trybot.py

Issue 1419643002: Ignore compile_targets returned by analyze and rely completely on matching_exes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Created 5 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: scripts/slave/recipes/chromium_trybot.py
diff --git a/scripts/slave/recipes/chromium_trybot.py b/scripts/slave/recipes/chromium_trybot.py
index e10f86e973d7ba34529b8372362c64a4feb8d733..0fda5f818b6cfcee553dd8aa652cfe0810abea19 100644
--- a/scripts/slave/recipes/chromium_trybot.py
+++ b/scripts/slave/recipes/chromium_trybot.py
@@ -737,11 +737,11 @@ def _RunStepsInternal(api):
targets_for_analyze = sorted(set(
all_compile_targets(api, tests + tests_including_triggered) +
compile_targets))
- requires_compile, matching_exes, compile_targets = \
+ requires_compile, matching_exes, _ = \
api.chromium_tests.analyze(
Dirk Pranke 2015/10/20 20:10:06 why not change the signature of analyze() to not t
sky 2015/10/21 16:16:13 Especially since the return values of the two are
affected_files,
targets_for_analyze,
- compile_targets,
+ targets_for_analyze,
'trybot_analyze_config.json')
if bot_config.get('analyze_mode') == 'compile':
# Do not pass tests to compile_specific_targets below. It assumes
@@ -754,18 +754,7 @@ def _RunStepsInternal(api):
tests = []
tests_including_triggered = []
- # TODO(sergiyb): This is a hotfix that should be removed if we implement a
- # proper long-term fix. It is currently needed to ensure that we compile
- # matching_exes also when a bot is running analyze in compile-only mode and
- # stay consistent with corresponding waterfall bots. Please see
- # http://crbug.com/529798 for more context.
- compile_targets = sorted(set(compile_targets + matching_exes))
- else:
- # Note that compile_targets doesn't necessarily include matching_exes,
- # and for correctness we need to add them. Otherwise it's possible we'd
- # only build say foo_unittests but not foo_unittests_run and fail when
- # trying to isolate the tests. Also see above comment.
- compile_targets = sorted(set(compile_targets + matching_exes))
+ compile_targets = sorted(set(matching_exes))
# Blink tests have to bypass "analyze", see below.
if requires_compile or add_blink_tests:

Powered by Google App Engine
This is Rietveld 408576698