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

Unified Diff: scripts/slave/recipe_modules/auto_bisect/bisector.py

Issue 1825993003: Making check_initial_confidence verify return_code bisects. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: Created 4 years, 9 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/recipe_modules/auto_bisect/bisector.py
diff --git a/scripts/slave/recipe_modules/auto_bisect/bisector.py b/scripts/slave/recipe_modules/auto_bisect/bisector.py
index b2002b08ce0931a0639d6a13743388ed0a833c87..835ceef7a14ef0b84fa7d7eb9ba666da7b531e9f 100644
--- a/scripts/slave/recipe_modules/auto_bisect/bisector.py
+++ b/scripts/slave/recipe_modules/auto_bisect/bisector.py
@@ -487,8 +487,11 @@ class Bisector(object):
other in a statistically significant manner. False if such difference could
not be established in the time or sample size allowed.
"""
- if self.test_type != 'perf':
- return True
+ if self.test_type == 'return_code':
+ # In return_code bisects, mean_value represents the overall return value
+ # of the test, i.e. 0 if all runs returned 0, 1 otherwise.
qyearsley 2016/03/23 20:54:40 mean_value is a potentially confusing or misleadin
RobertoCN 2016/03/23 21:52:09 Created a new member of the revision class called
+ return self.good_rev.mean_value != self.bad_rev.mean_value
+
if self.bypass_stats_check:
dummy_result = self.good_rev.values != self.bad_rev.values

Powered by Google App Engine
This is Rietveld 408576698