Bug 187549

Summary: [ews-build] EWS should unapply patch and re-run jsc tests when patch fails jsc tests
Product: WebKit Reporter: Aakash Jain <aakash_jain>
Component: Tools / TestsAssignee: Aakash Jain <aakash_jain>
Status: RESOLVED FIXED    
Severity: Normal CC: aakash_jain, ap, commit-queue, 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 none

Description Aakash Jain 2018-07-10 22:40:02 PDT
When a patch fails to build jsc, EWS should unapply the patch and build ToT in order to confirm that it is not a pre-existing issue (Similar to https://bugs.webkit.org/show_bug.cgi?id=187358).

Also, when a patch fails jsc tests, EWS should re-run the tests (since these tests are flaky), and if the re-run still fails, it should un-apply the patch and re-run tests on clean tree (similar to current EWS).
Comment 1 Aakash Jain 2018-07-10 22:49:10 PDT
Created attachment 344755 [details]
Proposed patch

We should also analyze the test results from all the re-runs, that would be in a separate step.
Comment 2 Aakash Jain 2018-07-10 22:56:44 PDT
Tested in: http://ews-build.webkit-uat.org/#/builders/17/builds/23
Comment 3 EWS Watchlist 2018-07-11 11:48:37 PDT Comment hidden (obsolete)
Comment 4 Aakash Jain 2018-07-11 12:02:55 PDT
Style checker warnings are false positive.
Comment 5 Aakash Jain 2018-07-11 12:26:10 PDT
> We should also analyze the test results from all the re-runs, that would be in a separate step.
I was exploring if Build Factory can access step results and do the analysis, but it seems like they can not be. See: 
https://lists.buildbot.net/pipermail/devel/2018-July/012543.html
The other option suggested here is to have one step dynamically add next step, but I think in this case that would result in confusing and unreadable code.

Adding a separate step to do the analysis of all the re-runs seems like the best option.
Comment 6 WebKit Commit Bot 2018-07-11 21:08:27 PDT
Comment on attachment 344755 [details]
Proposed patch

Clearing flags on attachment: 344755

Committed r233757: <https://trac.webkit.org/changeset/233757>
Comment 7 WebKit Commit Bot 2018-07-11 21:08:29 PDT
All reviewed patches have been landed.  Closing bug.
Comment 8 Radar WebKit Bug Importer 2018-07-11 21:09:20 PDT
<rdar://problem/42102573>