| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright 2015 The Chromium Authors. All rights reserved. | 2 # Copyright 2015 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 import argparse | 6 import argparse |
| 7 import collections | 7 import collections |
| 8 import logging | 8 import logging |
| 9 import os | 9 import os |
| 10 import re | 10 import re |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 RIETVELD_URL_RE = re.compile('^https?://(.*)/(.*)') | 32 RIETVELD_URL_RE = re.compile('^https?://(.*)/(.*)') |
| 33 ROLL_BRANCH_NAME = 'special_webrtc_roll_branch' | 33 ROLL_BRANCH_NAME = 'special_webrtc_roll_branch' |
| 34 TRYJOB_STATUS_SLEEP_SECONDS = 30 | 34 TRYJOB_STATUS_SLEEP_SECONDS = 30 |
| 35 | 35 |
| 36 # Use a shell for subcommands on Windows to get a PATH search. | 36 # Use a shell for subcommands on Windows to get a PATH search. |
| 37 IS_WIN = sys.platform.startswith('win') | 37 IS_WIN = sys.platform.startswith('win') |
| 38 WEBRTC_PATH = os.path.join('third_party', 'webrtc') | 38 WEBRTC_PATH = os.path.join('third_party', 'webrtc') |
| 39 LIBJINGLE_PATH = os.path.join('third_party', 'libjingle', 'source', 'talk') | 39 LIBJINGLE_PATH = os.path.join('third_party', 'libjingle', 'source', 'talk') |
| 40 LIBJINGLE_README = os.path.join('third_party', 'libjingle', 'README.chromium') | 40 LIBJINGLE_README = os.path.join('third_party', 'libjingle', 'README.chromium') |
| 41 # Run these CQ trybots in addition to the default ones in infra/config/cq.cfg. | 41 # Run these CQ trybots in addition to the default ones in infra/config/cq.cfg. |
| 42 EXTRA_TRYBOTS = ('tryserver.chromium.linux:linux_chromium_archive_rel_ng,' | 42 EXTRA_TRYBOTS = ('tryserver.chromium.linux:linux_chromium_archive_rel_ng;' |
| 43 'tryserver.chromium.mac:mac_chromium_archive_rel_ng') | 43 'tryserver.chromium.mac:mac_chromium_archive_rel_ng') |
| 44 | 44 |
| 45 # Result codes from build/third_party/buildbot_8_4p1/buildbot/status/results.py | 45 # Result codes from build/third_party/buildbot_8_4p1/buildbot/status/results.py |
| 46 # plus the -1 code which is used when there's no result yet. | 46 # plus the -1 code which is used when there's no result yet. |
| 47 TRYJOB_STATUS = { | 47 TRYJOB_STATUS = { |
| 48 -1: 'RUNNING', | 48 -1: 'RUNNING', |
| 49 0: 'SUCCESS', | 49 0: 'SUCCESS', |
| 50 1: 'WARNINGS', | 50 1: 'WARNINGS', |
| 51 2: 'FAILURE', | 51 2: 'FAILURE', |
| 52 3: 'SKIPPED', | 52 3: 'SKIPPED', |
| (...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 437 if args.abort: | 437 if args.abort: |
| 438 return autoroller.Abort() | 438 return autoroller.Abort() |
| 439 elif args.wait_for_trybots: | 439 elif args.wait_for_trybots: |
| 440 return autoroller.WaitForTrybots() | 440 return autoroller.WaitForTrybots() |
| 441 else: | 441 else: |
| 442 return autoroller.PrepareRoll(args.dry_run, args.ignore_checks, | 442 return autoroller.PrepareRoll(args.dry_run, args.ignore_checks, |
| 443 args.no_commit, args.close_previous_roll) | 443 args.no_commit, args.close_previous_roll) |
| 444 | 444 |
| 445 if __name__ == '__main__': | 445 if __name__ == '__main__': |
| 446 sys.exit(main()) | 446 sys.exit(main()) |
| OLD | NEW |