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

Side by Side Diff: tools_webrtc/autoroller/roll_deps.py

Issue 2997523002: Reland of move linux_internal from the autoroller CQ. (Closed)
Patch Set: Created 3 years, 4 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 (c) 2015 The WebRTC project authors. All Rights Reserved. 2 # Copyright (c) 2015 The WebRTC project authors. All Rights Reserved.
3 # 3 #
4 # Use of this source code is governed by a BSD-style license 4 # Use of this source code is governed by a BSD-style license
5 # that can be found in the LICENSE file in the root of the source 5 # that can be found in the LICENSE file in the root of the source
6 # tree. An additional intellectual property rights grant can be found 6 # tree. An additional intellectual property rights grant can be found
7 # in the file PATENTS. All contributing project authors may 7 # in the file PATENTS. All contributing project authors may
8 # be found in the AUTHORS file in the root of the source tree. 8 # be found in the AUTHORS file in the root of the source tree.
9 9
10 """Script to automatically roll dependencies in the WebRTC DEPS file.""" 10 """Script to automatically roll dependencies in the WebRTC DEPS file."""
11 11
12 import argparse 12 import argparse
13 import base64 13 import base64
14 import collections 14 import collections
15 import logging 15 import logging
16 import os 16 import os
17 import re 17 import re
18 import subprocess 18 import subprocess
19 import sys 19 import sys
20 import urllib 20 import urllib
21 21
22 22
23 # Skip these dependencies (list without solution name prefix). 23 # Skip these dependencies (list without solution name prefix).
24 DONT_AUTOROLL_THESE = [ 24 DONT_AUTOROLL_THESE = [
25 'src/third_party/gflags/src', 25 'src/third_party/gflags/src',
26 'src/third_party/winsdk_samples', 26 'src/third_party/winsdk_samples',
27 'src/webrtc/examples/androidtests/third_party/gradle', 27 'src/webrtc/examples/androidtests/third_party/gradle',
28 ] 28 ]
29 29
30 # Run these CQ trybots in addition to the default ones in infra/config/cq.cfg.
31 EXTRA_TRYBOTS = (
32 'master.internal.tryserver.corp.webrtc:linux_internal'
33 )
34
35 WEBRTC_URL = 'https://chromium.googlesource.com/external/webrtc' 30 WEBRTC_URL = 'https://chromium.googlesource.com/external/webrtc'
36 CHROMIUM_SRC_URL = 'https://chromium.googlesource.com/chromium/src' 31 CHROMIUM_SRC_URL = 'https://chromium.googlesource.com/chromium/src'
37 CHROMIUM_COMMIT_TEMPLATE = CHROMIUM_SRC_URL + '/+/%s' 32 CHROMIUM_COMMIT_TEMPLATE = CHROMIUM_SRC_URL + '/+/%s'
38 CHROMIUM_LOG_TEMPLATE = CHROMIUM_SRC_URL + '/+log/%s' 33 CHROMIUM_LOG_TEMPLATE = CHROMIUM_SRC_URL + '/+log/%s'
39 CHROMIUM_FILE_TEMPLATE = CHROMIUM_SRC_URL + '/+/%s/%s' 34 CHROMIUM_FILE_TEMPLATE = CHROMIUM_SRC_URL + '/+/%s/%s'
40 35
41 COMMIT_POSITION_RE = re.compile('^Cr-Commit-Position: .*#([0-9]+).*$') 36 COMMIT_POSITION_RE = re.compile('^Cr-Commit-Position: .*#([0-9]+).*$')
42 CLANG_REVISION_RE = re.compile(r'^CLANG_REVISION = \'(\d+)\'$') 37 CLANG_REVISION_RE = re.compile(r'^CLANG_REVISION = \'(\d+)\'$')
43 ROLL_BRANCH_NAME = 'roll_chromium_revision' 38 ROLL_BRANCH_NAME = 'roll_chromium_revision'
44 39
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 commit_msg.append('Clang version changed %s:%s' % 307 commit_msg.append('Clang version changed %s:%s' %
313 (clang_change.current_rev, clang_change.new_rev)) 308 (clang_change.current_rev, clang_change.new_rev))
314 change_url = CHROMIUM_FILE_TEMPLATE % (rev_interval, 309 change_url = CHROMIUM_FILE_TEMPLATE % (rev_interval,
315 CLANG_UPDATE_SCRIPT_URL_PATH) 310 CLANG_UPDATE_SCRIPT_URL_PATH)
316 commit_msg.append('Details: %s\n' % change_url) 311 commit_msg.append('Details: %s\n' % change_url)
317 else: 312 else:
318 commit_msg.append('No update to Clang.\n') 313 commit_msg.append('No update to Clang.\n')
319 314
320 commit_msg.append('TBR=%s' % tbr_authors) 315 commit_msg.append('TBR=%s' % tbr_authors)
321 commit_msg.append('BUG=None') 316 commit_msg.append('BUG=None')
322 commit_msg.append('CQ_INCLUDE_TRYBOTS=%s' % EXTRA_TRYBOTS)
323 return '\n'.join(commit_msg) 317 return '\n'.join(commit_msg)
324 318
325 319
326 def UpdateDepsFile(deps_filename, old_cr_revision, new_cr_revision, 320 def UpdateDepsFile(deps_filename, old_cr_revision, new_cr_revision,
327 changed_deps): 321 changed_deps):
328 """Update the DEPS file with the new revision.""" 322 """Update the DEPS file with the new revision."""
329 323
330 # Update the chromium_revision variable. 324 # Update the chromium_revision variable.
331 with open(deps_filename, 'rb') as deps_file: 325 with open(deps_filename, 'rb') as deps_file:
332 deps_content = deps_file.read() 326 deps_content = deps_file.read()
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
481 logging.info("No DEPS changes detected, skipping CL creation.") 475 logging.info("No DEPS changes detected, skipping CL creation.")
482 else: 476 else:
483 _LocalCommit(commit_msg, opts.dry_run) 477 _LocalCommit(commit_msg, opts.dry_run)
484 _UploadCL(opts.dry_run, opts.rietveld_email) 478 _UploadCL(opts.dry_run, opts.rietveld_email)
485 _SendToCQ(opts.dry_run, opts.skip_cq) 479 _SendToCQ(opts.dry_run, opts.skip_cq)
486 return 0 480 return 0
487 481
488 482
489 if __name__ == '__main__': 483 if __name__ == '__main__':
490 sys.exit(main()) 484 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