Tools/ChangeLog

 12012-07-13 Adam Barth <abarth@webkit.org>
 2
 3 EWSTools should be able to build a commit-queue instance from scratch
 4 https://bugs.webkit.org/show_bug.cgi?id=91264
 5
 6 Reviewed by NOBODY (OOPS!).
 7
 8 I've been using this script to build commit-queue instances on Google
 9 Compute Engine and it seems to work.
 10
 11 * EWSTools/GoogleComputeEngine/build-commit-queue.sh: Added.
 12
1132012-07-12 Dirk Pranke <dpranke@chromium.org>
214
315 nrwt crashes saving the output for a platform-specific expected test reference

Tools/EWSTools/GoogleComputeEngine/build-commit-queue.sh

 1#!/bin/sh
 2# Copyright (c) 2012 Google Inc. All rights reserved.
 3#
 4# Redistribution and use in source and binary forms, with or without
 5# modification, are permitted provided that the following conditions are
 6# met:
 7#
 8# * Redistributions of source code must retain the above copyright
 9# notice, this list of conditions and the following disclaimer.
 10# * Redistributions in binary form must reproduce the above
 11# copyright notice, this list of conditions and the following disclaimer
 12# in the documentation and/or other materials provided with the
 13# distribution.
 14# * Neither the name of Google Inc. nor the names of its
 15# contributors may be used to endorse or promote products derived from
 16# this software without specific prior written permission.
 17#
 18# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
 19# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
 20# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
 21# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
 22# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
 23# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
 24# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
 25# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
 26# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 27# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 28# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 29
 30if [[ $# -ne 1 ]];then
 31echo "Usage: build-commit-queue.sh BOT_NUMBER"
 32exit 1
 33fi
 34
 35QUEUE_TYPE=commit-queue
 36BOT_ID=gce-cq-$1
 37BUGZILLA_USERNAME=webkit.review.bot@gmail.com
 38read -s -p "Bugzilla Password: " BUGZILLA_PASSWORD && echo
 39
 40SVN_USERNAME=commit-queue@webkit.org
 41read -s -p "Subversion Password: " SVN_PASSWORD && echo
 42
 43# FIXME: We should use gcutil to find a zone that's actually up.
 44ZONE=us-east-b
 45IMAGE=projects/google/images/ubuntu-10-04-v20120621
 46
 47gcutil addinstance $BOT_ID --machine_type=standard-4-cpu-ephemeral-disk --image=$IMAGE --zone=$ZONE --wait_until_running
 48
 49echo "Sleeping for 30s to let the server spin up ssh..."
 50sleep 30
 51
 52gcutil ssh $BOT_ID "sudo apt-get install subversion -y && svn checkout http://svn.webkit.org/repository/webkit/trunk/Tools/EWSTools tools && cd tools && bash configure-svn-auth.sh $SVN_USERNAME $SVN_PASSWORD && bash cold-boot.sh $QUEUE_TYPE $BOT_ID $BUGZILLA_USERNAME $BUGZILLA_PASSWORD"