Diff
Modified: trunk/Tools/ChangeLog (224546 => 224547)
--- trunk/Tools/ChangeLog 2017-11-07 21:36:07 UTC (rev 224546)
+++ trunk/Tools/ChangeLog 2017-11-07 22:30:57 UTC (rev 224547)
@@ -1,3 +1,28 @@
+2017-11-07 Aakash Jain <[email protected]>
+
+ Add support for webkitpy tests EWS
+ https://bugs.webkit.org/show_bug.cgi?id=178480
+
+ Reviewed by Alexey Proskuryakov.
+
+ * Scripts/webkitpy/common/config/ews.json: Added webkitpy EWS.
+ * Scripts/webkitpy/common/net/generictestresults.py: Renamed from Scripts/webkitpy/common/net/bindingstestresults.py.
+ * Scripts/webkitpy/common/net/generictestresults_unittest.py: Renamed from Scripts/webkitpy/common/net/bindingstestresults_unittest.py.
+ * Scripts/webkitpy/tool/bot/patchanalysistask.py:
+ (PatchAnalysisTask._test_patch): Do not retry webkitpy test since they are not flaky.
+ * Scripts/webkitpy/tool/bot/bindingstestresultsreader.py: Updated import for BindingsTestResult.
+ * Scripts/webkitpy/tool/bot/retrylogic_unittest.py: Ditto.
+ * Scripts/webkitpy/tool/bot/webkitpytestresultsreader.py: Copied from Scripts/webkitpy/tool/bot/bindingstestresultsreader.py.
+ * Scripts/webkitpy/tool/commands/earlywarningsystem.py:
+ (AbstractEarlyWarningSystem.begin_work_queue): Added webkitpy test result reader.
+ * Scripts/webkitpy/tool/commands/earlywarningsystem_unittest.py: Updated unit-tests.
+ * Scripts/webkitpy/tool/steps/checkpatchrelevance.py: Run webkitpy EWS only for relevant changes.
+ * Scripts/webkitpy/tool/steps/runtests.py:
+ (RunTests.run): Run webkitpy tests when --group=webkitpy is passed.
+ (RunTests._run_webkitpy_tests): Method to invoke webkitpy tests.
+ * Scripts/webkitpy/tool/steps/steps_unittest.py:
+ (test_runtests_webkitpy): Added unit-test.
+
2017-11-07 Commit Queue <[email protected]>
Unreviewed, rolling out r224512 and r224521.
Modified: trunk/Tools/Scripts/webkitpy/common/config/ews.json (224546 => 224547)
--- trunk/Tools/Scripts/webkitpy/common/config/ews.json 2017-11-07 21:36:07 UTC (rev 224546)
+++ trunk/Tools/Scripts/webkitpy/common/config/ews.json 2017-11-07 22:30:57 UTC (rev 224547)
@@ -59,6 +59,13 @@
"runTests": true,
"shouldBuild": false
},
+ "webkitpy EWS": {
+ "port": "mac",
+ "name": "webkitpy-ews",
+ "group": "webkitpy",
+ "runTests": true,
+ "shouldBuild": false
+ },
"WPE EWS": {
"port": "wpe",
"watchers": [
Deleted: trunk/Tools/Scripts/webkitpy/common/net/bindingstestresults.py (224546 => 224547)
--- trunk/Tools/Scripts/webkitpy/common/net/bindingstestresults.py 2017-11-07 21:36:07 UTC (rev 224546)
+++ trunk/Tools/Scripts/webkitpy/common/net/bindingstestresults.py 2017-11-07 22:30:57 UTC (rev 224547)
@@ -1,59 +0,0 @@
-# Copyright (C) 2017 Apple Inc. All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 1. Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-#
-# THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' AND
-# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-# DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS BE LIABLE FOR
-# ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
-# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-import logging
-
-from webkitpy.common.net.abstracttestresults import AbstractTestResults
-
-_log = logging.getLogger(__name__)
-
-
-class BindingsTestResults(AbstractTestResults):
- def __init__(self, failures):
- self._failures = failures
-
- @classmethod
- def results_from_string(cls, string):
- parsed_results = cls.parse_json_string(string)
- if not parsed_results:
- return None
-
- if 'failures' not in parsed_results:
- return None
-
- return cls(parsed_results['failures'])
-
- def is_subset(self, other):
- return set(self._failures) <= set(other._failures)
-
- def equals(self, other):
- return set(self._failures) == set(other._failures)
-
- def all_passed(self):
- return not self._failures
-
- def failing_tests(self):
- return self._failures
-
- # No defined failure limit for bindings tests.
- def did_exceed_test_failure_limit(self):
- return False
Deleted: trunk/Tools/Scripts/webkitpy/common/net/bindingstestresults_unittest.py (224546 => 224547)
--- trunk/Tools/Scripts/webkitpy/common/net/bindingstestresults_unittest.py 2017-11-07 21:36:07 UTC (rev 224546)
+++ trunk/Tools/Scripts/webkitpy/common/net/bindingstestresults_unittest.py 2017-11-07 22:30:57 UTC (rev 224547)
@@ -1,41 +0,0 @@
-# Copyright (C) 2017 Apple Inc. All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 1. Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-#
-# THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' AND
-# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-# DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS BE LIABLE FOR
-# ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
-# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-import unittest
-
-from webkitpy.common.net.bindingstestresults import BindingsTestResults
-
-
-class BindingsTestResultsTest(unittest.TestCase):
- def test_results_from_string(self):
- incomplete_json = '{"key2": []}'
- self.assertEqual(None, BindingsTestResults.results_from_string(incomplete_json))
-
- def test_results_from_string_success(self):
- no_failures_string = '{"failures": []}'
- no_failures_results = BindingsTestResults([])
- self.assertTrue(no_failures_results.equals(BindingsTestResults.results_from_string(no_failures_string)))
- self.assertTrue(no_failures_results.all_passed())
-
- test_string = '{"failures": ["failure1"]}'
- test_results = BindingsTestResults(["failure1"])
- self.assertTrue(test_results.equals(BindingsTestResults.results_from_string(test_string)))
Copied: trunk/Tools/Scripts/webkitpy/common/net/generictestresults.py (from rev 224546, trunk/Tools/Scripts/webkitpy/common/net/bindingstestresults.py) (0 => 224547)
--- trunk/Tools/Scripts/webkitpy/common/net/generictestresults.py (rev 0)
+++ trunk/Tools/Scripts/webkitpy/common/net/generictestresults.py 2017-11-07 22:30:57 UTC (rev 224547)
@@ -0,0 +1,67 @@
+# Copyright (C) 2017 Apple Inc. All rights reserved.
+#
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions
+# are met:
+# 1. Redistributions of source code must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+# 2. Redistributions in binary form must reproduce the above copyright
+# notice, this list of conditions and the following disclaimer in the
+# documentation and/or other materials provided with the distribution.
+#
+# THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' AND
+# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+# DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS BE LIABLE FOR
+# ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+import logging
+
+from webkitpy.common.net.abstracttestresults import AbstractTestResults
+
+_log = logging.getLogger(__name__)
+
+
+class GenericTestResults(AbstractTestResults):
+ def __init__(self, failures):
+ self._failures = failures
+
+ @classmethod
+ def results_from_string(cls, string):
+ parsed_results = cls.parse_json_string(string)
+ if not parsed_results:
+ return None
+
+ if 'failures' not in parsed_results:
+ return None
+
+ return cls(parsed_results['failures'])
+
+ def is_subset(self, other):
+ return set(self._failures) <= set(other._failures)
+
+ def equals(self, other):
+ return set(self._failures) == set(other._failures)
+
+ def all_passed(self):
+ return not self._failures
+
+ def failing_tests(self):
+ return self._failures
+
+ # No defined failure limit for bindings tests.
+ def did_exceed_test_failure_limit(self):
+ return False
+
+
+class BindingsTestResults(GenericTestResults):
+ pass
+
+
+class WebkitpyTestResults(GenericTestResults):
+ pass
Copied: trunk/Tools/Scripts/webkitpy/common/net/generictestresults_unittest.py (from rev 224546, trunk/Tools/Scripts/webkitpy/common/net/bindingstestresults_unittest.py) (0 => 224547)
--- trunk/Tools/Scripts/webkitpy/common/net/generictestresults_unittest.py (rev 0)
+++ trunk/Tools/Scripts/webkitpy/common/net/generictestresults_unittest.py 2017-11-07 22:30:57 UTC (rev 224547)
@@ -0,0 +1,41 @@
+# Copyright (C) 2017 Apple Inc. All rights reserved.
+#
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions
+# are met:
+# 1. Redistributions of source code must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+# 2. Redistributions in binary form must reproduce the above copyright
+# notice, this list of conditions and the following disclaimer in the
+# documentation and/or other materials provided with the distribution.
+#
+# THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' AND
+# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+# DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS BE LIABLE FOR
+# ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+import unittest
+
+from webkitpy.common.net.generictestresults import GenericTestResults
+
+
+class GenericTestResultsTest(unittest.TestCase):
+ def test_results_from_string(self):
+ incomplete_json = '{"key2": []}'
+ self.assertEqual(None, GenericTestResults.results_from_string(incomplete_json))
+
+ def test_results_from_string_success(self):
+ no_failures_string = '{"failures": []}'
+ no_failures_results = GenericTestResults([])
+ self.assertTrue(no_failures_results.equals(GenericTestResults.results_from_string(no_failures_string)))
+ self.assertTrue(no_failures_results.all_passed())
+
+ test_string = '{"failures": ["failure1"]}'
+ test_results = GenericTestResults(["failure1"])
+ self.assertTrue(test_results.equals(GenericTestResults.results_from_string(test_string)))
Modified: trunk/Tools/Scripts/webkitpy/tool/bot/bindingstestresultsreader.py (224546 => 224547)
--- trunk/Tools/Scripts/webkitpy/tool/bot/bindingstestresultsreader.py 2017-11-07 21:36:07 UTC (rev 224546)
+++ trunk/Tools/Scripts/webkitpy/tool/bot/bindingstestresultsreader.py 2017-11-07 22:30:57 UTC (rev 224547)
@@ -22,7 +22,7 @@
import logging
-from webkitpy.common.net.bindingstestresults import BindingsTestResults
+from webkitpy.common.net.generictestresults import BindingsTestResults
from webkitpy.tool.bot.abstracttestresultsreader import AbstractTestResultsReader
_log = logging.getLogger(__name__)
Modified: trunk/Tools/Scripts/webkitpy/tool/bot/patchanalysistask.py (224546 => 224547)
--- trunk/Tools/Scripts/webkitpy/tool/bot/patchanalysistask.py 2017-11-07 21:36:07 UTC (rev 224546)
+++ trunk/Tools/Scripts/webkitpy/tool/bot/patchanalysistask.py 2017-11-07 22:30:57 UTC (rev 224547)
@@ -368,6 +368,8 @@
return self._retry_jsc_tests()
elif hasattr(self._delegate, 'group') and self._delegate.group() == "bindings":
return self._retry_bindings_tests()
+ elif hasattr(self._delegate, 'group') and self._delegate.group() == "webkitpy":
+ return False
else:
return self._retry_layout_tests()
Modified: trunk/Tools/Scripts/webkitpy/tool/bot/retrylogic_unittest.py (224546 => 224547)
--- trunk/Tools/Scripts/webkitpy/tool/bot/retrylogic_unittest.py 2017-11-07 21:36:07 UTC (rev 224546)
+++ trunk/Tools/Scripts/webkitpy/tool/bot/retrylogic_unittest.py 2017-11-07 22:30:57 UTC (rev 224547)
@@ -23,7 +23,7 @@
import logging
import unittest
-from webkitpy.common.net.bindingstestresults import BindingsTestResults
+from webkitpy.common.net.generictestresults import BindingsTestResults
from webkitpy.common.net.jsctestresults import JSCTestResults
from webkitpy.common.system.executive import ScriptError
from webkitpy.tool.bot.patchanalysistask import *
Copied: trunk/Tools/Scripts/webkitpy/tool/bot/webkitpytestresultsreader.py (from rev 224546, trunk/Tools/Scripts/webkitpy/tool/bot/bindingstestresultsreader.py) (0 => 224547)
--- trunk/Tools/Scripts/webkitpy/tool/bot/webkitpytestresultsreader.py (rev 0)
+++ trunk/Tools/Scripts/webkitpy/tool/bot/webkitpytestresultsreader.py 2017-11-07 22:30:57 UTC (rev 224547)
@@ -0,0 +1,35 @@
+# Copyright (C) 2017 Apple Inc. All rights reserved.
+#
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions
+# are met:
+# 1. Redistributions of source code must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+# 2. Redistributions in binary form must reproduce the above copyright
+# notice, this list of conditions and the following disclaimer in the
+# documentation and/or other materials provided with the distribution.
+#
+# THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' AND
+# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+# DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS BE LIABLE FOR
+# ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+import logging
+
+from webkitpy.common.net.generictestresults import WebkitpyTestResults
+from webkitpy.tool.bot.abstracttestresultsreader import AbstractTestResultsReader
+
+_log = logging.getLogger(__name__)
+
+
+class WebkitpyTestResultsReader(AbstractTestResultsReader):
+ def results(self):
+ results_path = self._host.filesystem.join(self._results_directory, 'webkitpy_test_results.json')
+ contents = self._read_file_contents(results_path)
+ return WebkitpyTestResults.results_from_string(contents)
Modified: trunk/Tools/Scripts/webkitpy/tool/commands/earlywarningsystem.py (224546 => 224547)
--- trunk/Tools/Scripts/webkitpy/tool/commands/earlywarningsystem.py 2017-11-07 21:36:07 UTC (rev 224546)
+++ trunk/Tools/Scripts/webkitpy/tool/commands/earlywarningsystem.py 2017-11-07 22:30:57 UTC (rev 224547)
@@ -39,6 +39,7 @@
from webkitpy.tool.bot.earlywarningsystemtask import EarlyWarningSystemTask, EarlyWarningSystemTaskDelegate
from webkitpy.tool.bot.bindingstestresultsreader import BindingsTestResultsReader
from webkitpy.tool.bot.layouttestresultsreader import LayoutTestResultsReader
+from webkitpy.tool.bot.webkitpytestresultsreader import WebkitpyTestResultsReader
from webkitpy.tool.bot.jsctestresultsreader import JSCTestResultsReader
from webkitpy.tool.bot.patchanalysistask import UnableToApplyPatch, PatchIsNotValid, PatchIsNotApplicable
from webkitpy.tool.bot.queueengine import QueueEngine
@@ -62,6 +63,8 @@
self._test_results_reader = JSCTestResultsReader(self._tool, self._port.jsc_results_directory())
elif self.group() == "bindings":
self._test_results_reader = BindingsTestResultsReader(self._tool, self._port.jsc_results_directory())
+ elif self.group() == "webkitpy":
+ self._test_results_reader = WebkitpyTestResultsReader(self._tool, self._port.python_unittest_results_directory())
else:
self._test_results_reader = LayoutTestResultsReader(self._tool, self._port.results_directory(), self._log_directory())
Modified: trunk/Tools/Scripts/webkitpy/tool/commands/earlywarningsystem_unittest.py (224546 => 224547)
--- trunk/Tools/Scripts/webkitpy/tool/commands/earlywarningsystem_unittest.py 2017-11-07 21:36:07 UTC (rev 224546)
+++ trunk/Tools/Scripts/webkitpy/tool/commands/earlywarningsystem_unittest.py 2017-11-07 22:30:57 UTC (rev 224547)
@@ -30,7 +30,8 @@
from webkitpy.thirdparty.mock import Mock
from webkitpy.common.host import Host
from webkitpy.common.host_mock import MockHost
-from webkitpy.common.net.bindingstestresults import BindingsTestResults
+from webkitpy.common.net.generictestresults import BindingsTestResults
+from webkitpy.common.net.generictestresults import WebkitpyTestResults
from webkitpy.common.net.jsctestresults import JSCTestResults
from webkitpy.common.net.layouttestresults import LayoutTestResults
from webkitpy.common.system.outputcapture import OutputCapture
@@ -63,6 +64,12 @@
_group = "bindings"
+class TestWebkitpyEWS(AbstractEarlyWarningSystem):
+ port_name = "mac"
+ _build_style = None
+ _group = "webkitpy"
+
+
class AbstractEarlyWarningSystemTest(QueuesTest):
def _test_message(self, ews, results, message):
ews.bind_to_tool(MockTool())
@@ -94,7 +101,13 @@
message = "New failing tests:\n(JS) TestMapLike.idl\n(JS) TestNode.idl"
self._test_message(ews, results, message)
+ def test_failing_webkitpy_tests_message(self):
+ ews = TestWebkitpyEWS()
+ results = lambda a: WebkitpyTestResults(["webkitpy.tool.commands.earlywarningsystem_unittest.EarlyWarningSystemTest.test_ews_name"])
+ message = "New failing tests:\nwebkitpy.tool.commands.earlywarningsystem_unittest.EarlyWarningSystemTest.test_ews_name"
+ self._test_message(ews, results, message)
+
class MockEarlyWarningSystemTaskForInconclusiveJSCResults(EarlyWarningSystemTask):
def _test_patch(self):
self._test()
@@ -179,16 +192,17 @@
def test_ews_name(self):
# These are the names EWS's infrastructure expects, check that they work
expected_names = {
+ 'bindings-ews',
'gtk-wk2-ews',
- 'win-ews',
'ios-ews',
'ios-sim-ews',
+ 'jsc-ews',
+ 'mac-32bit-ews',
+ 'mac-debug-ews',
'mac-ews',
'mac-wk2-ews',
- 'mac-debug-ews',
- 'mac-32bit-ews',
- 'bindings-ews',
- 'jsc-ews',
+ 'webkitpy-ews',
+ 'win-ews',
'wpe-ews',
}
classes = AbstractEarlyWarningSystem.load_ews_classes()
Modified: trunk/Tools/Scripts/webkitpy/tool/steps/checkpatchrelevance.py (224546 => 224547)
--- trunk/Tools/Scripts/webkitpy/tool/steps/checkpatchrelevance.py 2017-11-07 21:36:07 UTC (rev 224546)
+++ trunk/Tools/Scripts/webkitpy/tool/steps/checkpatchrelevance.py 2017-11-07 22:30:57 UTC (rev 224547)
@@ -64,9 +64,15 @@
"Tools/Scripts/webkitdirs.pm",
]
+ webkitpy_paths = [
+ "Tools/Scripts/webkitpy/",
+ "Tools/QueueStatusServer/",
+ ]
+
group_to_paths_mapping = {
'bindings': bindings_paths,
'jsc': jsc_paths,
+ 'webkitpy': webkitpy_paths,
}
def _changes_are_relevant(self, changed_files):
Modified: trunk/Tools/Scripts/webkitpy/tool/steps/runtests.py (224546 => 224547)
--- trunk/Tools/Scripts/webkitpy/tool/steps/runtests.py 2017-11-07 21:36:07 UTC (rev 224546)
+++ trunk/Tools/Scripts/webkitpy/tool/steps/runtests.py 2017-11-07 22:30:57 UTC (rev 224547)
@@ -70,6 +70,10 @@
self._run_bindings_tests()
return
+ if self._options.group == "webkitpy":
+ self._run_webkitpy_tests()
+ return
+
if self._options.iterate_on_new_tests:
_log.info("Running run-webkit-tests on new tests")
self._run_webkit_tests(self._options.iterate_on_new_tests)
@@ -165,6 +169,14 @@
args.append("--json-output=%s" % results_file_path)
self._tool.executive.run_and_throw_if_fail(args, cwd=self._tool.scm().checkout_root)
+ def _run_webkitpy_tests(self):
+ args = self._tool.deprecated_port().run_python_unittests_command()
+ results_directory = self._tool.port_factory.get(options=self._options).python_unittest_results_directory()
+ self._tool.filesystem.maybe_make_directory(results_directory)
+ results_file_path = self._tool.filesystem.join(results_directory, "webkitpy_test_results.json")
+ args.append("--json-output={}".format(results_file_path))
+ self._tool.executive.run_and_throw_if_fail(args, cwd=self._tool.scm().checkout_root)
+
def _run_api_tests(self):
args = self._tool.deprecated_port().run_api_tests_command(self._options.build_style)
results_directory = self._tool.port_factory.get(options=self._options).api_results_directory()
Modified: trunk/Tools/Scripts/webkitpy/tool/steps/steps_unittest.py (224546 => 224547)
--- trunk/Tools/Scripts/webkitpy/tool/steps/steps_unittest.py 2017-11-07 21:36:07 UTC (rev 224546)
+++ trunk/Tools/Scripts/webkitpy/tool/steps/steps_unittest.py 2017-11-07 22:30:57 UTC (rev 224547)
@@ -261,6 +261,19 @@
"""
OutputCapture().assert_outputs(self, step.run, [{}], expected_logs=expected_logs)
+ def test_runtests_webkitpy(self):
+ mock_options = self._step_options()
+ mock_options.non_interactive = False
+ mock_options.group = "webkitpy"
+ step = steps.RunTests(MockTool(log_executive=True), mock_options)
+ tool = MockTool(log_executive=True)
+ # FIXME: We shouldn't use a real port-object here, but there is too much to mock at the moment.
+ tool._deprecated_port = DeprecatedPort()
+ step = steps.RunTests(tool, mock_options)
+ expected_logs = """MOCK run_and_throw_if_fail: ['Tools/Scripts/test-webkitpy', '--json-output=/tmp/python-unittest-results/webkitpy_test_results.json'], cwd=/mock-checkout
+"""
+ OutputCapture().assert_outputs(self, step.run, [{}], expected_logs=expected_logs)
+
def test_patch_relevant_bindings(self):
self.maxDiff = None
mock_options = self._step_options()