RESOLVED FIXED 218440
Use FileDownload to fetch built product from master
https://bugs.webkit.org/show_bug.cgi?id=218440
Summary Use FileDownload to fetch built product from master
Angelos Oikonomopoulos
Reported 2020-11-02 05:37:06 PST
Use FileDownload to fetch built product from master
Attachments
Patch (2.59 KB, patch)
2020-11-02 05:39 PST, Angelos Oikonomopoulos
no flags
Patch (7.25 KB, patch)
2020-11-04 07:40 PST, Angelos Oikonomopoulos
no flags
Patch (7.77 KB, patch)
2020-11-11 06:51 PST, Angelos Oikonomopoulos
no flags
Angelos Oikonomopoulos
Comment 1 2020-11-02 05:39:06 PST
Aakash Jain
Comment 2 2020-11-02 06:36:17 PST
unit-tests in TestDownloadBuiltProductFromMaster would need to be updated, it would become similar to TestUploadBuiltProduct.
Angelos Oikonomopoulos
Comment 3 2020-11-04 07:40:43 PST
Radar WebKit Bug Importer
Comment 4 2020-11-09 05:38:12 PST
Aakash Jain
Comment 5 2020-11-09 18:21:51 PST
Comment on attachment 413160 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=413160&action=review Patch looks good. various minor comments. Also you can remove EWS_BUILD_URL variable, it's unused after this patch. > Tools/CISupport/ews-build/steps.py:2443 > +class DownloadBuiltProductFromMaster(transfer.FileDownload): Please add step name, e.g.: name = 'download-built-product-from-master' > Tools/CISupport/ews-build/steps.py:2458 > def getResultSummary(self): Nit: missing empty line before method. > Tools/CISupport/ews-build/steps_unittest.py:211 > +def downloadFileRecordingContents(recorder): Maybe it's better to keep this method inside TestDownloadBuiltProductFromMaster class since it's used only there. > Tools/CISupport/ews-build/steps_unittest.py:2601 > + self.setupStep(step) Can write this as one line: self.setupStep(DownloadBuiltProductFromMaster(mastersrc=__file__)) > Tools/CISupport/ews-build/steps_unittest.py:2621 > + buf = b''.join(buf) is 'b' required in b''? > Tools/CISupport/ews-build/steps_unittest.py:2622 > + self.assertEqual(len(buf), 1000) Can store this 1000 in a variable and re-use that variable. > Tools/CISupport/ews-build/steps_unittest.py:2623 > + with open(__file__, 'rb') as mf: can improve the variable name for 'mf'
Angelos Oikonomopoulos
Comment 6 2020-11-11 06:51:51 PST
EWS
Comment 7 2020-11-11 07:53:23 PST
Committed r269683: <https://trac.webkit.org/changeset/269683> All reviewed patches have been landed. Closing bug and clearing flags on attachment 413818 [details].
Note You need to log in before you can comment on or make changes to this bug.