Bug 178480

Summary: Add support for webkitpy tests EWS
Product: WebKit Reporter: Aakash Jain <aakash_jain>
Component: Tools / TestsAssignee: Aakash Jain <aakash_jain>
Status: RESOLVED FIXED    
Severity: Normal CC: aakash_jain, ap, buildbot, commit-queue, dbates, glenn, lforschler
Priority: P2 Keywords: InRadar
Version: Other   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=178539
https://bugs.webkit.org/show_bug.cgi?id=180302
https://bugs.webkit.org/show_bug.cgi?id=213299
Attachments:
Description Flags
Proposed patch
none
Updated patch none

Aakash Jain
Reported 2017-10-18 12:45:42 PDT
We should have a EWS which runs webkitpy tests. It would help catch webkitpy failures early-on. See <rdar://problem/18231414>.
Attachments
Proposed patch (20.88 KB, patch)
2017-10-19 13:09 PDT, Aakash Jain
no flags
Updated patch (28.32 KB, patch)
2017-11-02 15:58 PDT, Aakash Jain
no flags
Aakash Jain
Comment 1 2017-10-19 13:09:15 PDT
Created attachment 324268 [details] Proposed patch
Aakash Jain
Comment 2 2017-10-19 13:19:59 PDT
Tested on an staging instance.
Aakash Jain
Comment 3 2017-10-25 14:48:50 PDT
Daniel Bates
Comment 4 2017-10-26 22:48:56 PDT
Comment on attachment 324268 [details] Proposed patch View in context: https://bugs.webkit.org/attachment.cgi?id=324268&action=review > Tools/Scripts/webkitpy/common/config/ews.json:62 > + "Webkitpy EWS": { Webkitpy => webkitpy OR WebKitPy > Tools/Scripts/webkitpy/common/net/webkitpytestresults.py:30 > +class BindingsTestResults(AbstractTestResults): Please name the file after this class or vice versa. > Tools/Scripts/webkitpy/common/net/webkitpytestresults_unittest.py:28 > +class BindingsTestResultsTest(unittest.TestCase): Ditto. > Tools/Scripts/webkitpy/tool/bot/webkitpytestresultsreader.py:31 > +class BindingsTestResultsReader(AbstractTestResultsReader): Ditto. > Tools/Scripts/webkitpy/tool/bot/webkitpytestresultsreader.py:31 > +class WebkitpyTestResultsReader(AbstractTestResultsReader): Ditto. > Tools/Scripts/webkitpy/tool/commands/earlywarningsystem.py:67 > + self._test_results_reader = WebkitpyTestResultsReader(self._tool, self._port.jsc_results_directory()) We should rename jsc_results_directory() to something more generic since we use this directory for other test results. > Tools/Scripts/webkitpy/tool/commands/earlywarningsystem_unittest.py:204 > + 'webkitpy-ews', Please add this to the list in sorted order according to the UNIX sort command. > Tools/Scripts/webkitpy/tool/steps/runtests.py:84 > + # FIXME: Remove this code since we now have a separate webkitpy EWS. We talked about this in person. It does not seem harmful to support running these tests when using webkit-patch interactively. > Tools/Scripts/webkitpy/tool/steps/runtests.py:187 > + args.append("--json-output=%s" % results_file_path) I believe we prefer String.format() over % operator.
Aakash Jain
Comment 5 2017-11-02 15:58:23 PDT
Created attachment 325789 [details] Updated patch Review comments incorporated. Removed some code duplication. Also enabled checking for patch relevance so that webkitpy-ews bubble only shows for relevant patches. Tested on staging instance.
WebKit Commit Bot
Comment 6 2017-11-07 14:31:00 PST
Comment on attachment 325789 [details] Updated patch Clearing flags on attachment: 325789 Committed r224547: <https://trac.webkit.org/changeset/224547>
WebKit Commit Bot
Comment 7 2017-11-07 14:31:02 PST
All reviewed patches have been landed. Closing bug.
Aakash Jain
Comment 8 2017-11-07 17:28:44 PST
Note You need to log in before you can comment on or make changes to this bug.