Changeset 245433 in webkit


Ignore:
Timestamp:
May 16, 2019 9:30:32 PM (5 years ago)
Author:
aakash_jain@apple.com
Message:

[ews-build] Download archives from S3
https://bugs.webkit.org/show_bug.cgi?id=197949

Reviewed by Jonathan Bedard.

  • BuildSlaveSupport/ews-build/steps.py:

(DownloadBuiltProduct): Updated to use S3 URL.
(DownloadBuiltProduct.getResultSummary): Method to display custom failure string.

  • BuildSlaveSupport/ews-build/steps_unittest.py: Updated unit-tests.
Location:
trunk/Tools
Files:
3 edited

Legend:

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

    r245365 r245433  
    3434
    3535BUG_SERVER_URL = 'https://bugs.webkit.org/'
    36 EWS_URL = 'https://ews-build.webkit.org/'
     36S3URL = 'https://s3-us-west-2.amazonaws.com/'
    3737WithProperties = properties.WithProperties
    3838Interpolate = properties.Interpolate
     
    786786class DownloadBuiltProduct(shell.ShellCommand):
    787787    command = ['python', 'Tools/BuildSlaveSupport/download-built-product',
    788         WithProperties('--platform=%(platform)s'), WithProperties('--%(configuration)s'),
    789         WithProperties(EWS_URL + 'archives/%(fullPlatform)s-%(architecture)s-%(configuration)s/%(patch_id)s.zip')]
     788        WithProperties('--%(configuration)s'),
     789        WithProperties(S3URL + 'ews-archives.webkit.org/%(fullPlatform)s-%(architecture)s-%(configuration)s/%(patch_id)s.zip')]
    790790    name = 'download-built-product'
    791791    description = ['downloading built product']
     
    793793    haltOnFailure = True
    794794    flunkOnFailure = True
     795
     796    def getResultSummary(self):
     797        if self.results != SUCCESS:
     798            return {u'step': u'Failed to download built product from S3'}
     799        return super(DownloadBuiltProduct, self).getResultSummary()
    795800
    796801
  • trunk/Tools/BuildSlaveSupport/ews-build/steps_unittest.py

    r245141 r245433  
    10081008    def test_success(self):
    10091009        self.setupStep(DownloadBuiltProduct())
    1010         self.setProperty('platform', 'ios')
    10111010        self.setProperty('fullPlatform', 'ios-simulator-12')
    10121011        self.setProperty('configuration', 'release')
     
    10151014        self.expectRemoteCommands(
    10161015            ExpectShell(workdir='wkdir',
    1017                         command=['python', 'Tools/BuildSlaveSupport/download-built-product', '--platform=ios',  '--release', 'https://ews-build.webkit.org/archives/ios-simulator-12-x86_64-release/1234.zip'],
     1016                        command=['python', 'Tools/BuildSlaveSupport/download-built-product', '--release', 'https://s3-us-west-2.amazonaws.com/ews-archives.webkit.org/ios-simulator-12-x86_64-release/1234.zip'],
    10181017                        )
    10191018            + 0,
     
    10241023    def test_failure(self):
    10251024        self.setupStep(DownloadBuiltProduct())
    1026         self.setProperty('platform', 'mac')
    10271025        self.setProperty('fullPlatform', 'mac-sierra')
    10281026        self.setProperty('configuration', 'debug')
     
    10311029        self.expectRemoteCommands(
    10321030            ExpectShell(workdir='wkdir',
    1033                         command=['python', 'Tools/BuildSlaveSupport/download-built-product', '--platform=mac',  '--debug', 'https://ews-build.webkit.org/archives/mac-sierra-x86_64-debug/123456.zip'],
     1031                        command=['python', 'Tools/BuildSlaveSupport/download-built-product', '--debug', 'https://s3-us-west-2.amazonaws.com/ews-archives.webkit.org/mac-sierra-x86_64-debug/123456.zip'],
    10341032                        )
    10351033            + ExpectShell.log('stdio', stdout='Unexpected failure.')
    10361034            + 2,
    10371035        )
    1038         self.expectOutcome(result=FAILURE, state_string='Downloaded built product (failure)')
     1036        self.expectOutcome(result=FAILURE, state_string='Failed to download built product from S3')
    10391037        return self.runStep()
    10401038
  • trunk/Tools/ChangeLog

    r245430 r245433  
     12019-05-16  Aakash Jain  <aakash_jain@apple.com>
     2
     3        [ews-build] Download archives from S3
     4        https://bugs.webkit.org/show_bug.cgi?id=197949
     5
     6        Reviewed by Jonathan Bedard.
     7
     8        * BuildSlaveSupport/ews-build/steps.py:
     9        (DownloadBuiltProduct): Updated to use S3 URL.
     10        (DownloadBuiltProduct.getResultSummary): Method to display custom failure string.
     11        * BuildSlaveSupport/ews-build/steps_unittest.py: Updated unit-tests.
     12
    1132019-05-16  David Kilzer  <ddkilzer@apple.com>
    214
Note: See TracChangeset for help on using the changeset viewer.