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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 | 69 |
70 # Maximum time in seconds to wait after posting build request to the try server. | 70 # Maximum time in seconds to wait after posting build request to the try server. |
71 # TODO: Change these values based on the actual time taken by buildbots on | 71 # TODO: Change these values based on the actual time taken by buildbots on |
72 # the try server. | 72 # the try server. |
73 MAX_MAC_BUILD_TIME = 14400 | 73 MAX_MAC_BUILD_TIME = 14400 |
74 MAX_WIN_BUILD_TIME = 14400 | 74 MAX_WIN_BUILD_TIME = 14400 |
75 MAX_LINUX_BUILD_TIME = 14400 | 75 MAX_LINUX_BUILD_TIME = 14400 |
76 | 76 |
77 # The confidence percentage we require to consider the initial range a | 77 # The confidence percentage we require to consider the initial range a |
78 # regression based on the test results of the inital good and bad revisions. | 78 # regression based on the test results of the inital good and bad revisions. |
79 REGRESSION_CONFIDENCE = 95 | 79 REGRESSION_CONFIDENCE = 80 |
80 | 80 |
81 # Patch template to add a new file, DEPS.sha under src folder. | 81 # Patch template to add a new file, DEPS.sha under src folder. |
82 # This file contains SHA1 value of the DEPS changes made while bisecting | 82 # This file contains SHA1 value of the DEPS changes made while bisecting |
83 # dependency repositories. This patch send along with DEPS patch to try server. | 83 # dependency repositories. This patch send along with DEPS patch to try server. |
84 # When a build requested is posted with a patch, bisect builders on try server, | 84 # When a build requested is posted with a patch, bisect builders on try server, |
85 # once build is produced, it reads SHA value from this file and appends it | 85 # once build is produced, it reads SHA value from this file and appends it |
86 # to build archive filename. | 86 # to build archive filename. |
87 DEPS_SHA_PATCH = """diff --git DEPS.sha DEPS.sha | 87 DEPS_SHA_PATCH = """diff --git DEPS.sha DEPS.sha |
88 new file mode 100644 | 88 new file mode 100644 |
89 --- /dev/null | 89 --- /dev/null |
(...skipping 2502 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2592 # bugs. If you change this, please update the perf dashboard as well. | 2592 # bugs. If you change this, please update the perf dashboard as well. |
2593 bisect_utils.OutputAnnotationStepStart('Results') | 2593 bisect_utils.OutputAnnotationStepStart('Results') |
2594 print 'Runtime Error: %s' % e | 2594 print 'Runtime Error: %s' % e |
2595 if opts.output_buildbot_annotations: | 2595 if opts.output_buildbot_annotations: |
2596 bisect_utils.OutputAnnotationStepClosed() | 2596 bisect_utils.OutputAnnotationStepClosed() |
2597 return 1 | 2597 return 1 |
2598 | 2598 |
2599 | 2599 |
2600 if __name__ == '__main__': | 2600 if __name__ == '__main__': |
2601 sys.exit(main()) | 2601 sys.exit(main()) |
OLD | NEW |