third_party/blink/tools/blinkpy/w3c/import_notifier.py
def create_bugs_for_product(self, wpt_revision_start, wpt_revision_end,
                                gerrit_url, product, expectation_lines):
        """Files bug reports for new failures per product

        Args:
            wpt_revision_start: The start of the imported WPT revision range
                (exclusive), i.e. the last imported revision.
            wpt_revision_end: The end of the imported WPT revision range
                (inclusive), i.e. the current imported revision.
            gerrit_url: Gerrit URL of the CL.
            product: the product for which to file bugs for.
            expectation_lines: list of new expectations for this product

        Return:
            A MonorailIssue object that should be filed.
        """
        bugs = []
        summary = '[WPT] New failures introduced by import {}'.format(gerrit_url)

        prologue = ('WPT import {} introduced new failures:\n\n'
                    'List of new failures:\n'.format(gerrit_url))

        failure_list = ''
        for _, failure in expectation_lines.items():
            failure_list += str(failure) + '\n'

        expectations_statement = (
            '\nExpectations have been automatically added for '
            'the failing results to keep the bots green. Please '
            'investigate the new failures and triage as appropriate.\n')

        range_statement = '\nThis import contains upstream changes from {} to {}:\n'.format(
            wpt_revision_start, wpt_revision_end)

        description = (prologue + failure_list + expectations_statement +
                       range_statement)

        bug = MonorailIssue.new_chromium_issue(
            summary,
            description,
            cc=[],
            components=self.components_for_product[product],
            labels=self.labels_for_product[product])
        bugs.append(bug)
        return bugs
Files bug reports for new failures per product

        Args:
            wpt_revision_start: The start of the imported WPT revision range
                (exclusive), i.e. the last imported revision.
            wpt_revision_end: The end of the imported WPT revision range
                (inclusive), i.e. the current imported revision.
            gerrit_url: Gerrit URL of the CL.
            product: the product for which to file bugs for.
            expectation_lines: list of new expectations for this product

        Return:
            A MonorailIssue object that should be filed.
        
Files bug reports for new failures per product
Files bug reports for new failures per product
def create_bugs_for_product(self, wpt_revision_start, wpt_revision_end,
                                gerrit_url, product, expectation_lines):
        bugs = []
        summary = '[WPT] New failures introduced by import {}'.format(gerrit_url)
        prologue = ('WPT import {} introduced new failures:\n\n'
                    'List of new failures:\n'.format(gerrit_url))
        failure_list = ''
        for _, failure in expectation_lines.items():
            failure_list += str(failure) + '\n'
        expectations_statement = (
            '\nExpectations have been automatically added for '
            'the failing results to keep the bots green. Please '
            'investigate the new failures and triage as appropriate.\n')
        range_statement = '\nThis import contains upstream changes from {} to {}:\n'.format(
            wpt_revision_start, wpt_revision_end)
        description = (prologue + failure_list + expectations_statement +
                       range_statement)
        bug = MonorailIssue.new_chromium_issue(
            summary,
            description,
            cc=[],
            components=self.components_for_product[product],
            labels=self.labels_for_product[product])
        bugs.append(bug)
        return bugs
def create_bugs_for_product ( self , wpt_revision_start , wpt_revision_end , gerrit_url , product , expectation_lines ) : bugs = [ ] summary = '[WPT] New failures introduced by import {}' . format ( gerrit_url ) prologue = ( 'WPT import {} introduced new failures:\n\n' 'List of new failures:\n' . format ( gerrit_url ) ) failure_list = '' for _ , failure in expectation_lines . items ( ) : failure_list += str ( failure ) + '\n' expectations_statement = ( '\nExpectations have been automatically added for ' 'the failing results to keep the bots green. Please ' 'investigate the new failures and triage as appropriate.\n' ) range_statement = '\nThis import contains upstream changes from {} to {}:\n' . format ( wpt_revision_start , wpt_revision_end ) description = ( prologue + failure_list + expectations_statement + range_statement ) bug = MonorailIssue . new_chromium_issue ( summary , description , cc = [ ] , components = self . components_for_product [ product ] , labels = self . labels_for_product [ product ] ) bugs . append ( bug ) return bugs
Files bug reports for new failures per product
Files bug reports for new failures per product
"""Files bug reports for new failures per product

        Args:
            wpt_revision_start: The start of the imported WPT revision range
                (exclusive), i.e. the last imported revision.
            wpt_revision_end: The end of the imported WPT revision range
                (inclusive), i.e. the current imported revision.
            gerrit_url: Gerrit URL of the CL.
            product: the product for which to file bugs for.
            expectation_lines: list of new expectations for this product

        Return:
            A MonorailIssue object that should be filed.
        """
self
wpt_revision_start
The start of the imported WPT revision range
(exclusive), i.e. the last imported revision.
The start of the imported WPT revision range ( exclusive ) i . e . the last imported revision .
wpt_revision_end
The end of the imported WPT revision range
(inclusive), i.e. the current imported revision.
The end of the imported WPT revision range ( inclusive ) i . e . the current imported revision .
gerrit_url
Gerrit URL of the CL.
Gerrit URL of the CL .
product
the product for which to file bugs for.
the product for which to file bugs for .
expectation_lines
list of new expectations for this product
list of new expectations for this product