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

Side by Side Diff: tools/auto_bisect/bisect_perf_regression.py

Issue 1823803004: Add 'try_job_id' to bisect option. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add try_job_id to run-bisect-perf-regression.py 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 unified diff | Download patch
« no previous file with comments | « no previous file | tools/run-bisect-perf-regression.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright 2013 The Chromium Authors. All rights reserved. 2 # Copyright 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 """Chromium auto-bisect tool 6 """Chromium auto-bisect tool
7 7
8 This script bisects a range of commits using binary search. It starts by getting 8 This script bisects a range of commits using binary search. It starts by getting
9 reference values for the specified "good" and "bad" commits. Then, for revisions 9 reference values for the specified "good" and "bad" commits. Then, for revisions
10 in between, it will get builds, run tests and classify intermediate revisions as 10 in between, it will get builds, run tests and classify intermediate revisions as
(...skipping 2640 matching lines...) Expand 10 before | Expand all | Expand 10 after
2651 choices=[bisect_utils.BISECT_MODE_MEAN, 2651 choices=[bisect_utils.BISECT_MODE_MEAN,
2652 bisect_utils.BISECT_MODE_STD_DEV, 2652 bisect_utils.BISECT_MODE_STD_DEV,
2653 bisect_utils.BISECT_MODE_RETURN_CODE], 2653 bisect_utils.BISECT_MODE_RETURN_CODE],
2654 help='The bisect mode. Choices are to bisect on the ' 2654 help='The bisect mode. Choices are to bisect on the '
2655 'difference in mean, std_dev, or return_code.') 2655 'difference in mean, std_dev, or return_code.')
2656 group.add_argument('--bug_id', default='', 2656 group.add_argument('--bug_id', default='',
2657 help='The id for the bug associated with this bisect. ' + 2657 help='The id for the bug associated with this bisect. ' +
2658 'If this number is given, bisect will attempt to ' + 2658 'If this number is given, bisect will attempt to ' +
2659 'verify that the bug is not closed before ' 2659 'verify that the bug is not closed before '
2660 'starting.') 2660 'starting.')
2661 group.add_argument('--try_job_id', default=None,
2662 help='The id assigned by Perf Dashboard when sending ' +
2663 'try jobs.')
2661 group.add_argument('--required_initial_confidence', type=float, 2664 group.add_argument('--required_initial_confidence', type=float,
2662 default=80.0, 2665 default=80.0,
2663 help='The required confidence score for the initial ' 2666 help='The required confidence score for the initial '
2664 'check to see whether there is a significant ' 2667 'check to see whether there is a significant '
2665 'difference between given good and bad revisions.') 2668 'difference between given good and bad revisions.')
2666 2669
2667 @staticmethod 2670 @staticmethod
2668 def _AddBuildOptionsGroup(parser): 2671 def _AddBuildOptionsGroup(parser):
2669 group = parser.add_argument_group('Build options') 2672 group = parser.add_argument_group('Build options')
2670 group.add_argument('-w', '--working_directory', 2673 group.add_argument('-w', '--working_directory',
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
2891 # bugs. If you change this, please update the perf dashboard as well. 2894 # bugs. If you change this, please update the perf dashboard as well.
2892 bisect_utils.OutputAnnotationStepStart('Results') 2895 bisect_utils.OutputAnnotationStepStart('Results')
2893 print 'Runtime Error: %s' % e 2896 print 'Runtime Error: %s' % e
2894 if opts.output_buildbot_annotations: 2897 if opts.output_buildbot_annotations:
2895 bisect_utils.OutputAnnotationStepClosed() 2898 bisect_utils.OutputAnnotationStepClosed()
2896 return 1 2899 return 1
2897 2900
2898 2901
2899 if __name__ == '__main__': 2902 if __name__ == '__main__':
2900 sys.exit(main()) 2903 sys.exit(main())
OLDNEW
« no previous file with comments | « no previous file | tools/run-bisect-perf-regression.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698