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

Side by Side Diff: third_party/WebKit/Tools/Scripts/webkitpy/w3c/test_importer.py

Issue 2827093004: Change TBR on import CLs to jeffcarp. (Closed)
Patch Set: Created 3 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 | third_party/WebKit/Tools/Scripts/webkitpy/w3c/test_importer_unittest.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 """Fetches a copy of the latest state of a W3C test repository and commits. 5 """Fetches a copy of the latest state of a W3C test repository and commits.
6 6
7 If this script is given the argument --auto-update, it will also: 7 If this script is given the argument --auto-update, it will also:
8 1. Upload a CL. 8 1. Upload a CL.
9 2. Trigger try jobs and wait for them to complete. 9 2. Trigger try jobs and wait for them to complete.
10 3. Make any changes that are required for new failing tests. 10 3. Make any changes that are required for new failing tests.
(...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after
410 Args: 410 Args:
411 directory_owners: A dict of tuples of owner names to lists of direct ories. 411 directory_owners: A dict of tuples of owner names to lists of direct ories.
412 """ 412 """
413 description = self.check_run(['git', 'log', '-1', '--format=%B']) 413 description = self.check_run(['git', 'log', '-1', '--format=%B'])
414 build_link = current_build_link(self.host) 414 build_link = current_build_link(self.host)
415 if build_link: 415 if build_link:
416 description += 'Build: %s\n\n' % build_link 416 description += 'Build: %s\n\n' % build_link
417 417
418 if directory_owners: 418 if directory_owners:
419 description += self._format_directory_owners(directory_owners) + '\n \n' 419 description += self._format_directory_owners(directory_owners) + '\n \n'
420 description += 'TBR=qyearsley@chromium.org\n' 420 description += 'TBR=jeffcarp@chromium.org\n'
421 421
422 # Move any NOEXPORT tag to the end of the description. 422 # Move any NOEXPORT tag to the end of the description.
423 description = description.replace('NOEXPORT=true', '') 423 description = description.replace('NOEXPORT=true', '')
424 description = description.replace('\n\n\n\n', '\n\n') 424 description = description.replace('\n\n\n\n', '\n\n')
425 description += 'NOEXPORT=true' 425 description += 'NOEXPORT=true'
426 return description 426 return description
427 427
428 @staticmethod 428 @staticmethod
429 def _format_directory_owners(directory_owners): 429 def _format_directory_owners(directory_owners):
430 message_lines = ['Directory owners for changes in this CL:'] 430 message_lines = ['Directory owners for changes in this CL:']
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
482 """Returns a dict mapping source to dest name for layout tests that have been renamed.""" 482 """Returns a dict mapping source to dest name for layout tests that have been renamed."""
483 out = self.check_run(['git', 'diff', 'origin/master', '-M100%', '--diff- filter=R', '--name-status']) 483 out = self.check_run(['git', 'diff', 'origin/master', '-M100%', '--diff- filter=R', '--name-status'])
484 renamed_tests = {} 484 renamed_tests = {}
485 for line in out.splitlines(): 485 for line in out.splitlines():
486 _, source_path, dest_path = line.split() 486 _, source_path, dest_path = line.split()
487 source_test = self.finder.layout_test_name(source_path) 487 source_test = self.finder.layout_test_name(source_path)
488 dest_test = self.finder.layout_test_name(dest_path) 488 dest_test = self.finder.layout_test_name(dest_path)
489 if source_test and dest_test: 489 if source_test and dest_test:
490 renamed_tests[source_test] = dest_test 490 renamed_tests[source_test] = dest_test
491 return renamed_tests 491 return renamed_tests
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Tools/Scripts/webkitpy/w3c/test_importer_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698