예제 #1
0
    def _cl_description(self, directory_owners):
        """Returns a CL description string.

        Args:
            directory_owners: A dict of tuples of owner names to lists of directories.
        """
        description = self.check_run(['git', 'log', '-1', '--format=%B'])
        build_link = current_build_link(self.host)
        if build_link:
            description += 'Build: %s\n\n' % build_link

        description += (
            'Note to sheriffs: This CL imports external tests and adds\n'
            'expectations for those tests; if this CL is large and causes\n'
            'a few new failures, please fix the failures by adding new\n'
            'lines to TestExpectations rather than reverting. See:\n'
            'https://chromium.googlesource.com'
            '/chromium/src/+/master/docs/testing/web_platform_tests.md\n\n')

        if directory_owners:
            description += self._format_directory_owners(
                directory_owners) + '\n\n'

        # Move any No-Export tag to the end of the description.
        description = description.replace('No-Export: true', '')
        description = description.replace('\n\n\n\n', '\n\n')
        description += 'No-Export: true'
        return description
    def _cl_description(self, directory_owners):
        """Returns a CL description string.

        Args:
            directory_owners: A dict of tuples of owner names to lists of directories.
        """
        description = self.check_run(['git', 'log', '-1', '--format=%B'])
        build_link = current_build_link(self.host)
        if build_link:
            description += 'Build: %s\n\n' % build_link

        description += (
            'Background: https://chromium.googlesource.com'
            '/chromium/src/+/master/docs/testing/web_platform_tests.md\n\n'
            'Note to sheriffs: If this CL causes a small number of new layout\n'
            'test failures, it may be easier to add lines to TestExpectations\n'
            'rather than reverting.\n')

        if directory_owners:
            description += self._format_directory_owners(directory_owners) + '\n\n'
        description += '[email protected]\n'

        # Move any NOEXPORT tag to the end of the description.
        description = description.replace('NOEXPORT=true', '')
        description = description.replace('\n\n\n\n', '\n\n')
        description += 'NOEXPORT=true'
        return description
예제 #3
0
 def commit_message(self, author, revision, commit, bugs):
     message = 'Auto-rebaseline for r%s\n\n' % revision
     build_link = current_build_link(self._tool)
     if build_link:
         message += 'Build: %s\n\n' % build_link
     message += '%s\n\n' % self.link_to_patch(commit)
     if bugs:
         message += 'BUG=%s\n' % ','.join(bugs)
     message += 'TBR=%s\n' % author
     return message
예제 #4
0
 def _cl_description(self):
     description = self.check_run(['git', 'log', '-1', '--format=%B'])
     build_link = current_build_link(self.host)
     if build_link:
         description += 'Build: %s\n\n' % build_link
     description += '[email protected]\n'
     # Move any NOEXPORT tag to the end of the description.
     description = description.replace('NOEXPORT=true', '')
     description = description.replace('\n\n\n\n', '\n\n')
     description += 'NOEXPORT=true'
     return description
예제 #5
0
    def _cl_description(self, directory_owners):
        """Returns a CL description string.

        Args:
            directory_owners: A dict of tuples of owner names to lists of directories.
        """
        description = self.check_run(['git', 'log', '-1', '--format=%B'])
        build_link = current_build_link(self.host)
        if build_link:
            description += 'Build: %s\n\n' % build_link

        if directory_owners:
            description += self._format_directory_owners(directory_owners) + '\n\n'
        description += '[email protected]\n'

        # Move any NOEXPORT tag to the end of the description.
        description = description.replace('NOEXPORT=true', '')
        description = description.replace('\n\n\n\n', '\n\n')
        description += 'NOEXPORT=true'
        return description