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

Side by Side Diff: tools/roll_webrtc.py

Issue 1877203008: Add trybots running the sizes step using CQ_EXTRA_TRYBOTS (Closed) Base URL: http://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 | no next file » | 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 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 20 matching lines...) Expand all
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 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.
42 EXTRA_TRYBOTS = ('tryserver.chromium.linux:linux_chromium_archive_rel_ng,'
43 'tryserver.chromium.mac:mac_chromium_archive_rel_ng')
41 44
42 # 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
43 # 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.
44 TRYJOB_STATUS = { 47 TRYJOB_STATUS = {
45 -1: 'RUNNING', 48 -1: 'RUNNING',
46 0: 'SUCCESS', 49 0: 'SUCCESS',
47 1: 'WARNINGS', 50 1: 'WARNINGS',
48 2: 'FAILURE', 51 2: 'FAILURE',
49 3: 'SKIPPED', 52 3: 'SKIPPED',
50 4: 'EXCEPTION', 53 4: 'EXCEPTION',
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 libjingle_new.git_commit) 180 libjingle_new.git_commit)
178 181
179 description = [ '-m', 'Roll ' + webrtc_str + delim + libjingle_str ] 182 description = [ '-m', 'Roll ' + webrtc_str + delim + libjingle_str ]
180 if webrtc_str: 183 if webrtc_str:
181 description.extend(['-m', webrtc_str]) 184 description.extend(['-m', webrtc_str])
182 description.extend(['-m', 'Changes: %s' % webrtc_changelog_url]) 185 description.extend(['-m', 'Changes: %s' % webrtc_changelog_url])
183 if libjingle_str: 186 if libjingle_str:
184 description.extend(['-m', libjingle_str]) 187 description.extend(['-m', libjingle_str])
185 description.extend(['-m', 'Changes: %s' % libjingle_changelog_url]) 188 description.extend(['-m', 'Changes: %s' % libjingle_changelog_url])
186 description.extend(['-m', 'TBR=']) 189 description.extend(['-m', 'TBR='])
190 description.extend(['-m', 'CQ_EXTRA_TRYBOTS=%s' % EXTRA_TRYBOTS])
187 return description 191 return description
188 192
189 193
190 class AutoRoller(object): 194 class AutoRoller(object):
191 def __init__(self, chromium_src): 195 def __init__(self, chromium_src):
192 self._chromium_src = chromium_src 196 self._chromium_src = chromium_src
193 197
194 def _RunCommand(self, command, working_dir=None, ignore_exit_code=False, 198 def _RunCommand(self, command, working_dir=None, ignore_exit_code=False,
195 extra_env=None): 199 extra_env=None):
196 """Runs a command and returns the stdout from that command. 200 """Runs a command and returns the stdout from that command.
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
433 if args.abort: 437 if args.abort:
434 return autoroller.Abort() 438 return autoroller.Abort()
435 elif args.wait_for_trybots: 439 elif args.wait_for_trybots:
436 return autoroller.WaitForTrybots() 440 return autoroller.WaitForTrybots()
437 else: 441 else:
438 return autoroller.PrepareRoll(args.dry_run, args.ignore_checks, 442 return autoroller.PrepareRoll(args.dry_run, args.ignore_checks,
439 args.no_commit, args.close_previous_roll) 443 args.no_commit, args.close_previous_roll)
440 444
441 if __name__ == '__main__': 445 if __name__ == '__main__':
442 sys.exit(main()) 446 sys.exit(main())
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698