Add Mac WK2 EWS bots
authorrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 10 Jan 2013 21:27:54 +0000 (21:27 +0000)
committerrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 10 Jan 2013 21:27:54 +0000 (21:27 +0000)
https://bugs.webkit.org/show_bug.cgi?id=106590

Reviewed by Adam Barth.

Added MacWK2EWS, and made myself a watcher for MacEWS and MacWK2EWS.
Also add a deprecated MacWK2Port class.

* QueueStatusServer/model/queues.py:
(Queue):
* Scripts/webkitpy/common/config/ports.py:
(DeprecatedPort.port):
(MacWK2Port):
(MacWK2Port.run_webkit_tests_command):
* Scripts/webkitpy/tool/commands/earlywarningsystem.py:
(MacEWS):
(MacWK2EWS):
* Scripts/webkitpy/tool/commands/earlywarningsystem_unittest.py:
(_test_ewses):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@139357 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Tools/ChangeLog
Tools/QueueStatusServer/model/queues.py
Tools/Scripts/webkitpy/common/config/ports.py
Tools/Scripts/webkitpy/tool/commands/earlywarningsystem.py
Tools/Scripts/webkitpy/tool/commands/earlywarningsystem_unittest.py

index b78bfe1..29a2112 100644 (file)
@@ -1,3 +1,25 @@
+2013-01-10  Ryosuke Niwa  <rniwa@webkit.org>
+
+        Add Mac WK2 EWS bots
+        https://bugs.webkit.org/show_bug.cgi?id=106590
+
+        Reviewed by Adam Barth.
+
+        Added MacWK2EWS, and made myself a watcher for MacEWS and MacWK2EWS.
+        Also add a deprecated MacWK2Port class.
+
+        * QueueStatusServer/model/queues.py:
+        (Queue):
+        * Scripts/webkitpy/common/config/ports.py:
+        (DeprecatedPort.port):
+        (MacWK2Port):
+        (MacWK2Port.run_webkit_tests_command):
+        * Scripts/webkitpy/tool/commands/earlywarningsystem.py:
+        (MacEWS):
+        (MacWK2EWS):
+        * Scripts/webkitpy/tool/commands/earlywarningsystem_unittest.py:
+        (_test_ewses):
+
 2013-01-10  Dan Carney  <dcarney@google.com>
 
         [chromium] move webpermissionclient related methods to TestRunner library
index afdd9ea..ba74b08 100644 (file)
@@ -45,6 +45,7 @@ class Queue(object):
         "qt-wk2-ews",
         "gtk-ews",
         "mac-ews",
+        "mac-wk2-ews"
         "win-ews",
         "efl-ews",
     ]
index bb4924a..6ea0f33 100644 (file)
@@ -66,6 +66,7 @@ class DeprecatedPort(object):
             "chromium-xvfb": ChromiumXVFBPort,
             "gtk": GtkPort,
             "mac": MacPort,
+            "mac-wk2": MacWK2Port,
             "win": WinPort,
             "qt": QtPort,
             "efl": EflPort,
@@ -121,6 +122,15 @@ class MacPort(DeprecatedPort):
     port_flag_name = "mac"
 
 
+class MacWK2Port(DeprecatedPort):
+    port_flag_name = "mac"
+
+    def run_webkit_tests_command(self):
+        command = super(MacWK2Port, self).run_webkit_tests_command()
+        command.append("-2")
+        return command
+
+
 class WinPort(DeprecatedPort):
     port_flag_name = "win"
 
index e1b7d49..5615150 100644 (file)
@@ -210,3 +210,15 @@ class MacEWS(AbstractEarlyWarningSystem):
     name = "mac-ews"
     port_name = "mac"
     _default_run_tests = True
+    watchers = AbstractEarlyWarningSystem.watchers + [
+        "rniwa@webkit.org",
+    ]
+
+
+class MacWK2EWS(AbstractEarlyWarningSystem):
+    name = "mac-wk2-ews"
+    port_name = "mac-wk2"
+    _default_run_tests = True
+    watchers = AbstractEarlyWarningSystem.watchers + [
+        "rniwa@webkit.org",
+    ]
index 1218dc2..2717e06 100644 (file)
@@ -85,6 +85,7 @@ MOCK: release_work_item: %(name)s 10000
 
     def _test_ewses(self):
         self._test_ews(MacEWS())
+        self._test_ews(MacWK2EWS())
         self._test_ews(ChromiumLinuxEWS())
         self._test_ews(ChromiumWindowsEWS())
         self._test_ews(ChromiumAndroidEWS())