| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 import math | 5 import math |
| 6 import os | 6 import os |
| 7 | 7 |
| 8 import bisect_utils | 8 import bisect_utils |
| 9 import math_utils | 9 import math_utils |
| 10 import source_control | 10 import source_control |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 If the error is None, the following properties are present: | 22 If the error is None, the following properties are present: |
| 23 warnings: List of warnings from the bisect run. | 23 warnings: List of warnings from the bisect run. |
| 24 state: BisectState object from which these results were generated. | 24 state: BisectState object from which these results were generated. |
| 25 first_working_revision: First good revision. | 25 first_working_revision: First good revision. |
| 26 last_broken_revision: Last bad revision. | 26 last_broken_revision: Last bad revision. |
| 27 | 27 |
| 28 If both of above revisions are not None, the follow properties are present: | 28 If both of above revisions are not None, the follow properties are present: |
| 29 culprit_revisions: A list of revisions, which contain the bad change | 29 culprit_revisions: A list of revisions, which contain the bad change |
| 30 introducing the failure. | 30 introducing the failure. |
| 31 other_regressions: A list of tuples representing other regressions, which | 31 other_regressions: A list of tuples representing other regressions, which |
| 32 may have occured. | 32 may have occurred. |
| 33 regression_size: For performance bisects, this is a relative change of | 33 regression_size: For performance bisects, this is a relative change of |
| 34 the mean metric value. For other bisects this field always contains | 34 the mean metric value. For other bisects this field always contains |
| 35 'zero-to-nonzero'. | 35 'zero-to-nonzero'. |
| 36 regression_std_err: For performance bisects, it is a pooled standard error | 36 regression_std_err: For performance bisects, it is a pooled standard error |
| 37 for groups of good and bad runs. Not used for other bisects. | 37 for groups of good and bad runs. Not used for other bisects. |
| 38 confidence: For performance bisects, it is a confidence that the good and | 38 confidence: For performance bisects, it is a confidence that the good and |
| 39 bad runs are distinct groups. Not used for non-performance bisects. | 39 bad runs are distinct groups. Not used for non-performance bisects. |
| 40 """ | 40 """ |
| 41 | 41 |
| 42 def __init__(self, bisect_state=None, depot_registry=None, opts=None, | 42 def __init__(self, bisect_state=None, depot_registry=None, opts=None, |
| (...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 309 sum([last_broken_rev.value['values']], []) | 309 sum([last_broken_rev.value['values']], []) |
| 310 ) | 310 ) |
| 311 confidence = cls.ConfidenceScore(*confidence_params) | 311 confidence = cls.ConfidenceScore(*confidence_params) |
| 312 | 312 |
| 313 bad_greater_than_good = mean_of_bad_runs > mean_of_good_runs | 313 bad_greater_than_good = mean_of_bad_runs > mean_of_good_runs |
| 314 | 314 |
| 315 return {'regression_size': regression_size, | 315 return {'regression_size': regression_size, |
| 316 'regression_std_err': regression_std_err, | 316 'regression_std_err': regression_std_err, |
| 317 'confidence': confidence, | 317 'confidence': confidence, |
| 318 'bad_greater_than_good': bad_greater_than_good} | 318 'bad_greater_than_good': bad_greater_than_good} |
| OLD | NEW |