OLD | NEW |
1 #!/usr/bin/python | 1 #!/usr/bin/python |
2 # Copyright (c) 2010 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2010 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 """Snapshot Build Bisect Tool | 6 """Snapshot Build Bisect Tool |
7 | 7 |
8 This script bisects a snapshot archive using binary search. It starts at | 8 This script bisects a snapshot archive using binary search. It starts at |
9 a bad revision (it will try to guess HEAD) and asks for a last known-good | 9 a bad revision (it will try to guess HEAD) and asks for a last known-good |
10 revision. It will then binary search across this revision range by downloading, | 10 revision. It will then binary search across this revision range by downloading, |
(...skipping 20 matching lines...) Expand all Loading... |
31 # Directory name inside the archive. | 31 # Directory name inside the archive. |
32 BUILD_DIR_NAME = '' | 32 BUILD_DIR_NAME = '' |
33 | 33 |
34 # Name of the executable. | 34 # Name of the executable. |
35 BUILD_EXE_NAME = '' | 35 BUILD_EXE_NAME = '' |
36 | 36 |
37 # URL to the ViewVC commit page. | 37 # URL to the ViewVC commit page. |
38 BUILD_VIEWVC_URL = 'http://src.chromium.org/viewvc/chrome?view=rev&revision=%d' | 38 BUILD_VIEWVC_URL = 'http://src.chromium.org/viewvc/chrome?view=rev&revision=%d' |
39 | 39 |
40 # Changelogs URL | 40 # Changelogs URL |
41 CHANGELOG_URL = 'http://build.chromium.org/buildbot/' \ | 41 CHANGELOG_URL = 'http://build.chromium.org/f/chromium/' \ |
42 'perf/dashboard/ui/changelog.html?url=/trunk/src&range=%d:%d' | 42 'perf/dashboard/ui/changelog.html?url=/trunk/src&range=%d:%d' |
43 | 43 |
44 ############################################################################### | 44 ############################################################################### |
45 | 45 |
46 import math | 46 import math |
47 import optparse | 47 import optparse |
48 import os | 48 import os |
49 import pipes | 49 import pipes |
50 import re | 50 import re |
51 import shutil | 51 import shutil |
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
291 | 291 |
292 # We're done. Let the user know the results in an official manner. | 292 # We're done. Let the user know the results in an official manner. |
293 print('You are probably looking for build %d.' % revlist[bad]) | 293 print('You are probably looking for build %d.' % revlist[bad]) |
294 print('CHANGELOG URL:') | 294 print('CHANGELOG URL:') |
295 print(CHANGELOG_URL % (last_known_good_rev, revlist[bad])) | 295 print(CHANGELOG_URL % (last_known_good_rev, revlist[bad])) |
296 print('Built at revision:') | 296 print('Built at revision:') |
297 print(BUILD_VIEWVC_URL % revlist[bad]) | 297 print(BUILD_VIEWVC_URL % revlist[bad]) |
298 | 298 |
299 if __name__ == '__main__': | 299 if __name__ == '__main__': |
300 sys.exit(main()) | 300 sys.exit(main()) |
OLD | NEW |