WebKit Bugzilla
Attachment 370044 Details for
Bug 197949
: [ews-build] Download archives from S3
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch
bug-197949-20190516112245.patch (text/plain), 4.16 KB, created by
Aakash Jain
on 2019-05-16 08:22:46 PDT
(
hide
)
Description:
Patch
Filename:
MIME Type:
Creator:
Aakash Jain
Created:
2019-05-16 08:22:46 PDT
Size:
4.16 KB
patch
obsolete
>Index: Tools/ChangeLog >=================================================================== >--- Tools/ChangeLog (revision 245396) >+++ Tools/ChangeLog (working copy) >@@ -1,3 +1,15 @@ >+2019-05-16 Aakash Jain <aakash_jain@apple.com> >+ >+ [ews-build] Download archives from S3 >+ https://bugs.webkit.org/show_bug.cgi?id=197949 >+ >+ Reviewed by NOBODY (OOPS!). >+ >+ * 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. >+ > 2019-05-15 Aakash Jain <aakash_jain@apple.com> > > Replace double-quotes with single quotes in steps.py >Index: Tools/BuildSlaveSupport/ews-build/steps.py >=================================================================== >--- Tools/BuildSlaveSupport/ews-build/steps.py (revision 245396) >+++ Tools/BuildSlaveSupport/ews-build/steps.py (working copy) >@@ -33,7 +33,7 @@ import re > import requests > > BUG_SERVER_URL = 'https://bugs.webkit.org/' >-EWS_URL = 'https://ews-build.webkit.org/' >+S3URL = 'https://s3-us-west-2.amazonaws.com/' > WithProperties = properties.WithProperties > Interpolate = properties.Interpolate > >@@ -786,13 +786,18 @@ class UploadBuiltProduct(transfer.FileUp > class DownloadBuiltProduct(shell.ShellCommand): > command = ['python', 'Tools/BuildSlaveSupport/download-built-product', > WithProperties('--platform=%(platform)s'), WithProperties('--%(configuration)s'), >- WithProperties(EWS_URL + 'archives/%(fullPlatform)s-%(architecture)s-%(configuration)s/%(patch_id)s.zip')] >+ WithProperties(S3URL + 'ews-archives.webkit.org/%(fullPlatform)s-%(architecture)s-%(configuration)s/%(patch_id)s.zip')] > name = 'download-built-product' > description = ['downloading built product'] > descriptionDone = ['Downloaded built product'] > haltOnFailure = True > flunkOnFailure = True > >+ def getResultSummary(self): >+ if self.results != SUCCESS: >+ return {u'step': u'Failed to download built product from S3'} >+ return super(DownloadBuiltProduct, self).getResultSummary() >+ > > class ExtractBuiltProduct(shell.ShellCommand): > command = ['python', 'Tools/BuildSlaveSupport/built-product-archive', >Index: Tools/BuildSlaveSupport/ews-build/steps_unittest.py >=================================================================== >--- Tools/BuildSlaveSupport/ews-build/steps_unittest.py (revision 245396) >+++ Tools/BuildSlaveSupport/ews-build/steps_unittest.py (working copy) >@@ -1014,7 +1014,7 @@ class TestDownloadBuiltProduct(BuildStep > self.setProperty('patch_id', '1234') > self.expectRemoteCommands( > ExpectShell(workdir='wkdir', >- command=['python', 'Tools/BuildSlaveSupport/download-built-product', '--platform=ios', '--release', 'https://ews-build.webkit.org/archives/ios-simulator-12-x86_64-release/1234.zip'], >+ command=['python', 'Tools/BuildSlaveSupport/download-built-product', '--platform=ios', '--release', 'https://s3-us-west-2.amazonaws.com/ews-archives.webkit.org/ios-simulator-12-x86_64-release/1234.zip'], > ) > + 0, > ) >@@ -1030,12 +1030,12 @@ class TestDownloadBuiltProduct(BuildStep > self.setProperty('patch_id', '123456') > self.expectRemoteCommands( > ExpectShell(workdir='wkdir', >- command=['python', 'Tools/BuildSlaveSupport/download-built-product', '--platform=mac', '--debug', 'https://ews-build.webkit.org/archives/mac-sierra-x86_64-debug/123456.zip'], >+ command=['python', 'Tools/BuildSlaveSupport/download-built-product', '--platform=mac', '--debug', 'https://s3-us-west-2.amazonaws.com/ews-archives.webkit.org/mac-sierra-x86_64-debug/123456.zip'], > ) > + ExpectShell.log('stdio', stdout='Unexpected failure.') > + 2, > ) >- self.expectOutcome(result=FAILURE, state_string='Downloaded built product (failure)') >+ self.expectOutcome(result=FAILURE, state_string='Failed to download built product from S3') > return self.runStep() > >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Formatted Diff
|
Diff
Attachments on
bug 197949
:
370044
|
370099