WebKit Bugzilla
Attachment 343827 Details for
Bug 187148
: [ews-build] Add support for WebKitPy-Tests-EWS
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed patch
ews_webkitpy.patch (text/plain), 5.23 KB, created by
Aakash Jain
on 2018-06-28 11:54:27 PDT
(
hide
)
Description:
Proposed patch
Filename:
MIME Type:
Creator:
Aakash Jain
Created:
2018-06-28 11:54:27 PDT
Size:
5.23 KB
patch
obsolete
>Index: Tools/ChangeLog >=================================================================== >--- Tools/ChangeLog (revision 233314) >+++ Tools/ChangeLog (working copy) >@@ -1,3 +1,15 @@ >+2018-06-28 Aakash Jain <aakash_jain@apple.com> >+ >+ [ews-build] Add support for WebKitPy-Tests-EWS >+ https://bugs.webkit.org/show_bug.cgi?id=187148 >+ >+ Reviewed by NOBODY (OOPS!). >+ >+ * BuildSlaveSupport/ews-build/factories.py: Added WebKitPyFactory. >+ * BuildSlaveSupport/ews-build/steps.py: Added build step RunWebKitPyTests. >+ * BuildSlaveSupport/ews-build/steps_unittest.py: Added unit-tests. >+ * BuildSlaveSupport/ews-build/config.json: Updated to use CamelCase. >+ > 2018-06-28 Daniel Bates <dabates@apple.com> > > Fix the iOS build following r233299 >Index: Tools/BuildSlaveSupport/ews-build/config.json >=================================================================== >--- Tools/BuildSlaveSupport/ews-build/config.json (revision 233314) >+++ Tools/BuildSlaveSupport/ews-build/config.json (working copy) >@@ -269,8 +269,8 @@ > "workernames": ["webkit-misc"] > }, > { >- "name": "Webkitpy-tests-EWS", >- "factory": "WebkitpyFactory", >+ "name": "WebKitPy-Tests-EWS", >+ "factory": "WebKitPyFactory", > "platform": "*", > "workernames": ["webkit-misc"] > }, >@@ -288,7 +288,7 @@ > "port": 5555, > "builderNames": ["Style-EWS", "JSC-tests-EWS", "macOS-Sierra-Release-WK1-EWS", "GTK-Webkit2-EWS", "macOS-Sierra-Release-WK2-EWS", > "macOS-High-Sierra-Release-32bit-WK2-EWS", "WPE-EWS", "Windows-EWS", "iOS-11-EWS", "WinCairo-EWS", "iOS-11-Simulator-EWS", >- "Webkitpy-tests-EWS", "WebKitPerl-Tests-EWS", "macOS-Sierra-Debug-WK1-EWS", "Bindings-tests-EWS"] >+ "WebKitPy-Tests-EWS", "WebKitPerl-Tests-EWS", "macOS-Sierra-Debug-WK1-EWS", "Bindings-tests-EWS"] > } > ] > } >Index: Tools/BuildSlaveSupport/ews-build/factories.py >=================================================================== >--- Tools/BuildSlaveSupport/ews-build/factories.py (revision 233314) >+++ Tools/BuildSlaveSupport/ews-build/factories.py (working copy) >@@ -51,6 +51,12 @@ class WebKitPerlFactory(Factory): > self.addStep(RunWebKitPerlTests()) > > >+class WebKitPyFactory(Factory): >+ def __init__(self, platform, configuration=None, architectures=None, additionalArguments=None, **kwargs): >+ Factory.__init__(self, platform, configuration, architectures, False, additionalArguments) >+ self.addStep(RunWebKitPyTests()) >+ >+ > class BuildFactory(Factory): > def __init__(self, platform, configuration=None, architectures=None, additionalArguments=None, **kwargs): > Factory.__init__(self, platform, configuration, architectures, False, additionalArguments) >@@ -93,7 +99,3 @@ class WPEFactory(Factory): > > class JSCTestsFactory(Factory): > pass >- >- >-class WebkitpyFactory(Factory): >- pass >Index: Tools/BuildSlaveSupport/ews-build/steps.py >=================================================================== >--- Tools/BuildSlaveSupport/ews-build/steps.py (revision 233314) >+++ Tools/BuildSlaveSupport/ews-build/steps.py (working copy) >@@ -90,6 +90,14 @@ class RunWebKitPerlTests(shell.ShellComm > command = ['Tools/Scripts/test-webkitperl'] > > >+class RunWebKitPyTests(shell.ShellCommand): >+ name = 'webkitpy-tests' >+ description = ['webkitpy-tests running'] >+ descriptionDone = ['webkitpy-tests'] >+ flunkOnFailure = True >+ command = ['Tools/Scripts/test-webkitpy'] >+ >+ > def appendCustomBuildFlags(step, platform, fullPlatform): > # FIXME: Make a common 'supported platforms' list. > if platform not in ('gtk', 'wincairo', 'ios', 'jsc-only', 'wpe'): >Index: Tools/BuildSlaveSupport/ews-build/steps_unittest.py >=================================================================== >--- Tools/BuildSlaveSupport/ews-build/steps_unittest.py (revision 233314) >+++ Tools/BuildSlaveSupport/ews-build/steps_unittest.py (working copy) >@@ -295,6 +295,39 @@ Failed 1/40 test programs. 10/630 subtes > return self.runStep() > > >+class TestunWebKitPyTests(BuildStepMixinAdditions, unittest.TestCase): >+ def setUp(self): >+ self.longMessage = True >+ return self.setUpBuildStep() >+ >+ def tearDown(self): >+ return self.tearDownBuildStep() >+ >+ def test_success(self): >+ self.setupStep(RunWebKitPyTests()) >+ self.expectRemoteCommands( >+ ExpectShell(workdir='wkdir', >+ command=['Tools/Scripts/test-webkitpy'], >+ ) >+ + 0, >+ ) >+ self.expectOutcome(result=SUCCESS, state_string='webkitpy-tests') >+ return self.runStep() >+ >+ def test_failure(self): >+ self.setupStep(RunWebKitPyTests()) >+ self.expectRemoteCommands( >+ ExpectShell(workdir='wkdir', >+ command=['Tools/Scripts/test-webkitpy'], >+ ) >+ + ExpectShell.log('stdio', stdout='''Ran 1744 tests in 5.913s >+FAILED (failures=1, errors=0)''') >+ + 2, >+ ) >+ self.expectOutcome(result=FAILURE, state_string='webkitpy-tests (failure)') >+ return self.runStep() >+ >+ > class TestKillOldProcesses(BuildStepMixinAdditions, unittest.TestCase): > def setUp(self): > self.longMessage = True
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
Flags:
lforschler
:
review+
Actions:
View
|
Formatted Diff
|
Diff
Attachments on
bug 187148
: 343827