⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 277465 in webkit


Ignore:
Timestamp:
May 13, 2021, 4:31:11 PM (5 years ago)
Author:
aakash_jain@apple.com
Message:

[ews] Style fixes in steps.py
​https://bugs.webkit.org/show_bug.cgi?id=225784

Reviewed by Dewei Zhu.

  • CISupport/ews-build/steps.py:

(CheckOutSource.init):
(ShowIdentifier.hideStepIf):
(BugzillaMixin.get_bugzilla_api_key):
(RunJavaScriptCoreTests.commandComplete):
(AnalyzeJSCTestsResults.send_email_for_pre_existing_failure):
(AnalyzeLayoutTestsResults._report_flaky_tests):
(DownloadBuiltProduct):
(AnalyzeAPITestsResults.analyzeResults.getAPITestFailures):
(AnalyzeAPITestsResults.send_email_for_pre_existing_failure):

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/CISupport/ews-build/steps.py

    r277444 r277465  
    112112    def __init__(self, repourl='https://github.com/WebKit/WebKit.git', **kwargs):
    113113        super(CheckOutSource, self).__init__(repourl=repourl,
    114                                                 retry=self.CHECKOUT_DELAY_AND_MAX_RETRIES_PAIR,
    115                                                 timeout=2 * 60 * 60,
    116                                                 alwaysUseLatest=True,
    117                                                 logEnviron=False,
    118                                                 method='clean',
    119                                                 progress=True,
    120                                                 **kwargs)
     114                                             retry=self.CHECKOUT_DELAY_AND_MAX_RETRIES_PAIR,
     115                                             timeout=2 * 60 * 60,
     116                                             alwaysUseLatest=True,
     117                                             logEnviron=False,
     118                                             method='clean',
     119                                             progress=True,
     120                                             **kwargs)
    121121
    122122    def getResultSummary(self):
    … …  
    255255        return results == SUCCESS
    256256
     257
    257258class CleanWorkingDirectory(shell.ShellCommand):
    258259    name = 'clean-working-directory'
    … …  
    716717            passwords = json.load(open('passwords.json'))
    717718            return passwords.get('BUGZILLA_API_KEY', '')
    718         except:
     719        except Exception as e:
    719720            print('Error in reading Bugzilla api key')
    720721            return ''
    … …  
    18371838            return
    18381839
    1839         if jsc_results.get('allMasmTestsPassed') == False:
     1840        if jsc_results.get('allMasmTestsPassed') is False:
    18401841            self.binaryFailures.append('testmasm')
    1841         if jsc_results.get('allAirTestsPassed') == False:
     1842        if jsc_results.get('allAirTestsPassed') is False:
    18421843            self.binaryFailures.append('testair')
    1843         if jsc_results.get('allB3TestsPassed') == False:
     1844        if jsc_results.get('allB3TestsPassed') is False:
    18441845            self.binaryFailures.append('testb3')
    1845         if jsc_results.get('allDFGTestsPassed') == False:
     1846        if jsc_results.get('allDFGTestsPassed') is False:
    18461847            self.binaryFailures.append('testdfg')
    1847         if jsc_results.get('allApiTestsPassed') == False:
     1848        if jsc_results.get('allApiTestsPassed') is False:
    18481849            self.binaryFailures.append('testapi')
    18491850
    … …  
    20262027
    20272028
    2028 
    20292029class CleanBuild(shell.Compile):
    20302030    name = 'delete-WebKitBuild-directory'
    … …  
    25442544
    25452545    def _report_flaky_tests(self, flaky_tests):
    2546         #TODO: implement this
     2546        # TODO: implement this
    25472547        pass
    25482548
    … …  
    27012701class DownloadBuiltProduct(shell.ShellCommand):
    27022702    command = ['python', 'Tools/CISupport/download-built-product',
    2703         WithProperties('--%(configuration)s'),
    2704         WithProperties(S3URL + 'ews-archives.webkit.org/%(fullPlatform)s-%(architecture)s-%(configuration)s/%(patch_id)s.zip')]
     2703               WithProperties('--%(configuration)s'),
     2704               WithProperties(S3URL + 'ews-archives.webkit.org/%(fullPlatform)s-%(architecture)s-%(configuration)s/%(patch_id)s.zip')]
    27052705    name = 'download-built-product'
    27062706    description = ['downloading built product']
    … …  
    28752875            # TODO: Analyze Time-out, Crash and Failure independently
    28762876            return set([failure.get('name') for failure in result.get('Timedout', [])] +
    2877                 [failure.get('name') for failure in result.get('Crashed', [])] +
    2878                 [failure.get('name') for failure in result.get('Failed', [])])
     2877                       [failure.get('name') for failure in result.get('Crashed', [])] +
     2878                       [failure.get('name') for failure in result.get('Failed', [])])
    28792879
    28802880        first_run_failures = getAPITestFailures(first_run_results)
    … …  
    29892989            print('Error in sending email for pre-existing failure: {}'.format(e))
    29902990
     2991
    29912992class ArchiveTestResults(shell.ShellCommand):
    29922993    command = ['python', 'Tools/CISupport/test-result-archive',
  • trunk/Tools/ChangeLog

    r277460 r277465  
     12021-05-13  Aakash Jain  <aakash_jain@apple.com>
     2
     3        [ews] Style fixes in steps.py
     4        https://bugs.webkit.org/show_bug.cgi?id=225784
     5
     6        Reviewed by Dewei Zhu.
     7
     8        * CISupport/ews-build/steps.py:
     9        (CheckOutSource.__init__):
     10        (ShowIdentifier.hideStepIf):
     11        (BugzillaMixin.get_bugzilla_api_key):
     12        (RunJavaScriptCoreTests.commandComplete):
     13        (AnalyzeJSCTestsResults.send_email_for_pre_existing_failure):
     14        (AnalyzeLayoutTestsResults._report_flaky_tests):
     15        (DownloadBuiltProduct):
     16        (AnalyzeAPITestsResults.analyzeResults.getAPITestFailures):
     17        (AnalyzeAPITestsResults.send_email_for_pre_existing_failure):
     18
    1192021-05-13  Chris Dumez  <cdumez@apple.com>
    220
Note: See TracChangeset for help on using the changeset viewer.