| 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 19 matching lines...) Expand all Loading... |
| 30 COMMIT_POSITION_RE = re.compile('^Cr-Original-Commit-Position: .*#([0-9]+).*$') | 30 COMMIT_POSITION_RE = re.compile('^Cr-Original-Commit-Position: .*#([0-9]+).*$') |
| 31 CL_ISSUE_RE = re.compile('^Issue number: ([0-9]+) \((.*)\)$') | 31 CL_ISSUE_RE = re.compile('^Issue number: ([0-9]+) \((.*)\)$') |
| 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 # Run these CQ trybots in addition to the default ones in infra/config/cq.cfg. | 39 # Run these CQ trybots in addition to the default ones in infra/config/cq.cfg. |
| 40 EXTRA_TRYBOTS = ('tryserver.chromium.linux:linux_chromium_archive_rel_ng;' | 40 EXTRA_TRYBOTS = ( |
| 41 'tryserver.chromium.mac:mac_chromium_archive_rel_ng') | 41 'master.tryserver.chromium.linux:linux_chromium_archive_rel_ng;' |
| 42 'master.tryserver.chromium.mac:mac_chromium_archive_rel_ng' |
| 43 ) |
| 42 | 44 |
| 43 # 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 |
| 44 # 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. |
| 45 TRYJOB_STATUS = { | 47 TRYJOB_STATUS = { |
| 46 -1: 'RUNNING', | 48 -1: 'RUNNING', |
| 47 0: 'SUCCESS', | 49 0: 'SUCCESS', |
| 48 1: 'WARNINGS', | 50 1: 'WARNINGS', |
| 49 2: 'FAILURE', | 51 2: 'FAILURE', |
| 50 3: 'SKIPPED', | 52 3: 'SKIPPED', |
| 51 4: 'EXCEPTION', | 53 4: 'EXCEPTION', |
| (...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 412 if args.abort: | 414 if args.abort: |
| 413 return autoroller.Abort() | 415 return autoroller.Abort() |
| 414 elif args.wait_for_trybots: | 416 elif args.wait_for_trybots: |
| 415 return autoroller.WaitForTrybots() | 417 return autoroller.WaitForTrybots() |
| 416 else: | 418 else: |
| 417 return autoroller.PrepareRoll(args.dry_run, args.ignore_checks, | 419 return autoroller.PrepareRoll(args.dry_run, args.ignore_checks, |
| 418 args.no_commit, args.close_previous_roll) | 420 args.no_commit, args.close_previous_roll) |
| 419 | 421 |
| 420 if __name__ == '__main__': | 422 if __name__ == '__main__': |
| 421 sys.exit(main()) | 423 sys.exit(main()) |
| OLD | NEW |