Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 """Performance Test Bisect Tool | 6 """Performance Test Bisect Tool |
| 7 | 7 |
| 8 This script bisects a series of changelists using binary search. It starts at | 8 This script bisects a series of changelists using binary search. It starts at |
| 9 a bad revision where a performance metric has regressed, and asks for a last | 9 a bad revision where a performance metric has regressed, and asks for a last |
| 10 known-good revision. It will then binary search across this revision range by | 10 known-good revision. It will then binary search across this revision range by |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 49 | 49 |
| 50 sys.path.append(os.path.join( | 50 sys.path.append(os.path.join( |
| 51 os.path.dirname(__file__), os.path.pardir, 'telemetry')) | 51 os.path.dirname(__file__), os.path.pardir, 'telemetry')) |
| 52 | 52 |
| 53 import bisect_utils | 53 import bisect_utils |
| 54 import builder | 54 import builder |
| 55 import math_utils | 55 import math_utils |
| 56 import request_build | 56 import request_build |
| 57 import source_control as source_control_module | 57 import source_control as source_control_module |
| 58 import ttest | 58 import ttest |
| 59 from telemetry.util import cloud_storage | 59 from telemetry.util import cloud_storage # pylint: disable=F0401 |
|
Sergiy Byelozyorov
2014/09/19 12:35:59
This was necessary for PRESUBMIT to pass
ojan
2014/09/19 17:42:52
I don't think this is the best fix for this. It lo
M-A Ruel
2014/09/20 00:47:44
pylint is not run from src/PRESUBMIT.py because th
Sergiy Byelozyorov
2014/09/22 20:04:15
Done.
| |
| 60 | 60 |
| 61 # Below is the map of "depot" names to information about each depot. Each depot | 61 # Below is the map of "depot" names to information about each depot. Each depot |
| 62 # is a repository, and in the process of bisecting, revision ranges in these | 62 # is a repository, and in the process of bisecting, revision ranges in these |
| 63 # repositories may also be bisected. | 63 # repositories may also be bisected. |
| 64 # | 64 # |
| 65 # Each depot information dictionary may contain: | 65 # Each depot information dictionary may contain: |
| 66 # src: Path to the working directory. | 66 # src: Path to the working directory. |
| 67 # recurse: True if this repository will get bisected. | 67 # recurse: True if this repository will get bisected. |
| 68 # depends: A list of other repositories that are actually part of the same | 68 # depends: A list of other repositories that are actually part of the same |
| 69 # repository in svn. If the repository has any dependent repositories | 69 # repository in svn. If the repository has any dependent repositories |
| (...skipping 3338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 3408 # bugs. If you change this, please update the perf dashboard as well. | 3408 # bugs. If you change this, please update the perf dashboard as well. |
| 3409 bisect_utils.OutputAnnotationStepStart('Results') | 3409 bisect_utils.OutputAnnotationStepStart('Results') |
| 3410 print 'Error: %s' % e.message | 3410 print 'Error: %s' % e.message |
| 3411 if opts.output_buildbot_annotations: | 3411 if opts.output_buildbot_annotations: |
| 3412 bisect_utils.OutputAnnotationStepClosed() | 3412 bisect_utils.OutputAnnotationStepClosed() |
| 3413 return 1 | 3413 return 1 |
| 3414 | 3414 |
| 3415 | 3415 |
| 3416 if __name__ == '__main__': | 3416 if __name__ == '__main__': |
| 3417 sys.exit(main()) | 3417 sys.exit(main()) |
| OLD | NEW |