Bug 187357

Summary: [ews-build] Add build step to UnApply patch
Product: WebKit Reporter: Aakash Jain <aakash_jain>
Component: Tools / TestsAssignee: Aakash Jain <aakash_jain>
Status: RESOLVED FIXED    
Severity: Normal CC: aakash_jain, ap, dbates, ddkilzer, ews-watchlist, lforschler, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Other   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=187358
Attachments:
Description Flags
Proposed patch
ap: review+, ews-watchlist: commit-queue-
Archive of layout-test-results from ews204 for win-future none

Description Aakash Jain 2018-07-05 12:41:50 PDT
When a patch fails to build or fails layout-tests, EWS should unapply the patch and build/test again. We should add the build step to unapply the patch.
Comment 1 Aakash Jain 2018-07-05 13:38:57 PDT
Created attachment 344360 [details]
Proposed patch

Tested in http://ews-build.webkit-uat.org/#/builders/9/builds/22
Comment 2 EWS Watchlist 2018-07-05 13:41:27 PDT Comment hidden (obsolete)
Comment 3 EWS Watchlist 2018-07-05 17:16:16 PDT Comment hidden (obsolete)
Comment 4 EWS Watchlist 2018-07-05 17:16:26 PDT Comment hidden (obsolete)
Comment 5 Aakash Jain 2018-07-10 16:43:27 PDT
Committed r233708: <https://trac.webkit.org/changeset/233708>
Comment 6 Radar WebKit Bug Importer 2018-07-10 16:45:16 PDT
<rdar://problem/42047134>
Comment 7 Daniel Bates 2018-07-16 15:41:17 PDT
Comment on attachment 344360 [details]
Proposed patch

View in context: https://bugs.webkit.org/attachment.cgi?id=344360&action=review

> Tools/BuildSlaveSupport/ews-build/steps.py:73
> +        super(UnApplyPatchIfRequired, self).__init__(alwaysUseLatest=True, **kwargs)

From my understanding setting alwaysUseLatest to true both cleans the working directory and pulls down new source changes. This represents a behavior change from the current EWS. The current EWS actually unapplies the patch. It does this implicitly by cleaning the working directory. That is, it does not both clean the working directory and pull down new source changes.