OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2012 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, |
11 unzipping, and opening Chromium for you. After testing the specific revision, | 11 unzipping, and opening Chromium for you. After testing the specific revision, |
12 it will ask you whether it is good or bad before continuing the search. | 12 it will ask you whether it is good or bad before continuing the search. |
13 """ | 13 """ |
14 | 14 |
15 # The root URL for storage. | 15 # The root URL for storage. |
16 BASE_URL = 'http://commondatastorage.googleapis.com/chromium-browser-snapshots' | 16 BASE_URL = 'http://commondatastorage.googleapis.com/chromium-browser-snapshots' |
17 | 17 |
18 # The root URL for official builds. | 18 # The root URL for official builds. |
19 OFFICIAL_BASE_URL = 'http://chrome4linux.mtv.corp.google.com/archives' | 19 OFFICIAL_BASE_URL = 'http://master.chrome.corp.google.com/official_builds' |
20 | 20 |
21 # Changelogs URL. | 21 # Changelogs URL. |
22 CHANGELOG_URL = 'http://build.chromium.org/f/chromium/' \ | 22 CHANGELOG_URL = 'http://build.chromium.org/f/chromium/' \ |
23 'perf/dashboard/ui/changelog.html?url=/trunk/src&range=%d%%3A%d' | 23 'perf/dashboard/ui/changelog.html?url=/trunk/src&range=%d%%3A%d' |
24 | 24 |
25 # Official Changelogs URL. | 25 # Official Changelogs URL. |
26 OFFICIAL_CHANGELOG_URL = 'http://omahaproxy.appspot.com/'\ | 26 OFFICIAL_CHANGELOG_URL = 'http://omahaproxy.appspot.com/'\ |
27 'changelog?old_version=%s&new_version=%s' | 27 'changelog?old_version=%s&new_version=%s' |
28 | 28 |
29 # DEPS file URL. | 29 # DEPS file URL. |
(...skipping 643 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
673 print ' ' + WEBKIT_CHANGELOG_URL % (first_known_bad_webkit_rev, | 673 print ' ' + WEBKIT_CHANGELOG_URL % (first_known_bad_webkit_rev, |
674 last_known_good_webkit_rev) | 674 last_known_good_webkit_rev) |
675 print 'CHANGELOG URL:' | 675 print 'CHANGELOG URL:' |
676 if opts.official_builds: | 676 if opts.official_builds: |
677 print OFFICIAL_CHANGELOG_URL % (last_known_good_rev, first_known_bad_rev) | 677 print OFFICIAL_CHANGELOG_URL % (last_known_good_rev, first_known_bad_rev) |
678 else: | 678 else: |
679 print ' ' + CHANGELOG_URL % (last_known_good_rev, first_known_bad_rev) | 679 print ' ' + CHANGELOG_URL % (last_known_good_rev, first_known_bad_rev) |
680 | 680 |
681 if __name__ == '__main__': | 681 if __name__ == '__main__': |
682 sys.exit(main()) | 682 sys.exit(main()) |
OLD | NEW |