Title: [141223] trunk/Tools
Revision
141223
Author
[email protected]
Date
2013-01-29 22:02:05 -0800 (Tue, 29 Jan 2013)

Log Message

Need a cr-linux debug EWS bot
https://bugs.webkit.org/show_bug.cgi?id=98957

Patch by Alan Cutter <[email protected]> on 2013-01-29
Reviewed by Eric Seidel.

Added cr-linux-debug-ews bot to webkit-patch, QueueStatusServer and GCE build scripts.

* EWSTools/GoogleComputeEngine/build-cr-linux-debug-ews.sh: Added.
* QueueStatusServer/app.yaml:
* QueueStatusServer/config/queues.py: Added.
* QueueStatusServer/model/queues.py:
(Queue.__init__):
(Queue.queue_with_name):
(Queue.all):
* Scripts/webkitpy/tool/commands/earlywarningsystem.py:
(ChromiumLinuxDebugEWS):

Modified Paths

Added Paths

Diff

Modified: trunk/Tools/ChangeLog (141222 => 141223)


--- trunk/Tools/ChangeLog	2013-01-30 05:43:47 UTC (rev 141222)
+++ trunk/Tools/ChangeLog	2013-01-30 06:02:05 UTC (rev 141223)
@@ -1,5 +1,24 @@
 2013-01-29  Alan Cutter  <[email protected]>
 
+        Need a cr-linux debug EWS bot
+        https://bugs.webkit.org/show_bug.cgi?id=98957
+
+        Reviewed by Eric Seidel.
+
+        Added cr-linux-debug-ews bot to webkit-patch, QueueStatusServer and GCE build scripts.
+
+        * EWSTools/GoogleComputeEngine/build-cr-linux-debug-ews.sh: Added.
+        * QueueStatusServer/app.yaml:
+        * QueueStatusServer/config/queues.py: Added.
+        * QueueStatusServer/model/queues.py:
+        (Queue.__init__):
+        (Queue.queue_with_name):
+        (Queue.all):
+        * Scripts/webkitpy/tool/commands/earlywarningsystem.py:
+        (ChromiumLinuxDebugEWS):
+
+2013-01-29  Alan Cutter  <[email protected]>
+
         Tidy up Sheriffbot's Sheriffs command's unit tests
         https://bugs.webkit.org/show_bug.cgi?id=108262
 

Added: trunk/Tools/EWSTools/GoogleComputeEngine/build-cr-linux-debug-ews.sh (0 => 141223)


--- trunk/Tools/EWSTools/GoogleComputeEngine/build-cr-linux-debug-ews.sh	                        (rev 0)
+++ trunk/Tools/EWSTools/GoogleComputeEngine/build-cr-linux-debug-ews.sh	2013-01-30 06:02:05 UTC (rev 141223)
@@ -0,0 +1,63 @@
+#!/bin/sh
+# Copyright (c) 2013 Google 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:
+#
+#     * Redistributions of source code must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#     * 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.
+#     * Neither the name of Google Inc. nor the names of its
+# contributors may be used to endorse or promote products derived from
+# this software without specific prior written permission.
+#
+# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND 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 THE COPYRIGHT
+# OWNER OR 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.
+
+if [[ $# -ne 1 ]];then
+echo "Usage: build-cr-linux-debug-ews.sh BOT_NUMBER"
+exit 1
+fi
+
+CWD="$(pwd)"
+cd "$(dirname "$0")"
+
+QUEUE_TYPE=cr-linux-debug-ews
+BOT_ID=gce-cr-linux-debug-$1
[email protected]
+read -s -p "Bugzilla Password: " BUGZILLA_PASSWORD && echo
+
+PROJECT=google.com:webkit
+ZONE=$(bash findzone.sh $PROJECT)
+IMAGE=projects/google/images/ubuntu-10-04-v20120621
+MACHINE_TYPE=n1-standard-4-d
+
+gcutil --project=$PROJECT addinstance $BOT_ID --machine_type=$MACHINE_TYPE --image=$IMAGE --zone=$ZONE --wait_until_running
+
+echo "Sleeping for 30s to let the server spin up ssh..."
+sleep 30
+
+gcutil --project=$PROJECT ssh $BOT_ID "
+    sudo apt-get install subversion -y &&
+    svn checkout http://svn.webkit.org/repository/webkit/trunk/Tools/EWSTools tools &&
+    cd tools &&
+    bash build-vm.sh &&
+    bash build-repo.sh $QUEUE_TYPE $BUGZILLA_USERNAME $BUGZILLA_PASSWORD &&
+    bash build-boot-cmd.sh \"screen -t kr ./start-queue.sh $QUEUE_TYPE $BOT_ID 10\" &&
+    bash boot.sh
+"
+
+cd "$CWD"
Property changes on: trunk/Tools/EWSTools/GoogleComputeEngine/build-cr-linux-debug-ews.sh
___________________________________________________________________

Added: svn:executable

Modified: trunk/Tools/QueueStatusServer/app.yaml (141222 => 141223)


--- trunk/Tools/QueueStatusServer/app.yaml	2013-01-30 05:43:47 UTC (rev 141222)
+++ trunk/Tools/QueueStatusServer/app.yaml	2013-01-30 06:02:05 UTC (rev 141223)
@@ -1,5 +1,5 @@
 application: webkit-commit-queue
-version: 107659 # Bugzilla bug ID of last major change
+version: 98957 # Bugzilla bug ID of last major change
 runtime: python
 api_version: 1
 

Added: trunk/Tools/QueueStatusServer/config/queues.py (0 => 141223)


--- trunk/Tools/QueueStatusServer/config/queues.py	                        (rev 0)
+++ trunk/Tools/QueueStatusServer/config/queues.py	2013-01-30 06:02:05 UTC (rev 141223)
@@ -0,0 +1,43 @@
+# Copyright (C) 2013 Google 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:
+#
+#     * Redistributions of source code must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#     * 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.
+#     * Neither the name of Google Inc. nor the names of its
+# contributors may be used to endorse or promote products derived from
+# this software without specific prior written permission.
+#
+# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND 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 THE COPYRIGHT
+# OWNER OR 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.
+
+# Eventually the list of queues may be stored in the data store.
+all_queue_names = [
+    "commit-queue",
+    "style-queue",
+    "chromium-ews",  # aka cr-linux-ews
+    "cr-linux-debug-ews",
+    "cr-android-ews",
+    "qt-ews",
+    "qt-wk2-ews",
+    "gtk-ews",
+    "mac-ews",
+    "mac-wk2-ews",
+    "win-ews",
+    "efl-ews",
+]

Modified: trunk/Tools/QueueStatusServer/model/queues.py (141222 => 141223)


--- trunk/Tools/QueueStatusServer/model/queues.py	2013-01-30 05:43:47 UTC (rev 141222)
+++ trunk/Tools/QueueStatusServer/model/queues.py	2013-01-30 06:02:05 UTC (rev 141223)
@@ -29,40 +29,25 @@
 
 import re
 
+from config.queues import all_queue_names
 from model.activeworkitems import ActiveWorkItems
 from model.workitems import WorkItems
 
 
 class Queue(object):
-
-    # Eventually the list of queues may be stored in the data store.
-    _all_queue_names = [
-        "commit-queue",
-        "style-queue",
-        "chromium-ews",  # aka cr-linux-ews
-        "cr-android-ews",
-        "qt-ews",
-        "qt-wk2-ews",
-        "gtk-ews",
-        "mac-ews",
-        "mac-wk2-ews",
-        "win-ews",
-        "efl-ews",
-    ]
-
     def __init__(self, name):
-        assert(name in self._all_queue_names)
+        assert(name in all_queue_names)
         self._name = name
 
     @classmethod
     def queue_with_name(cls, queue_name):
-        if queue_name not in cls._all_queue_names:
+        if queue_name not in all_queue_names:
             return None
         return Queue(queue_name)
 
     @classmethod
     def all(cls):
-        return [Queue(name) for name in cls._all_queue_names]
+        return [Queue(name) for name in all_queue_names]
 
     @classmethod
     def all_ews(cls):

Modified: trunk/Tools/Scripts/webkitpy/tool/commands/earlywarningsystem.py (141222 => 141223)


--- trunk/Tools/Scripts/webkitpy/tool/commands/earlywarningsystem.py	2013-01-30 05:43:47 UTC (rev 141222)
+++ trunk/Tools/Scripts/webkitpy/tool/commands/earlywarningsystem.py	2013-01-30 06:02:05 UTC (rev 141223)
@@ -195,6 +195,12 @@
     _default_run_tests = True
 
 
+class ChromiumLinuxDebugEWS(AbstractChromiumEWS):
+    name = "cr-linux-debug-ews"
+    port_name = "chromium-xvfb"
+    _build_style = "debug"
+
+
 class ChromiumWindowsEWS(AbstractChromiumEWS):
     name = "cr-win-ews"
 
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to