ReferencePlatforms/Test/Vista: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
No edit summary
Line 153: Line 153:
run 'control schedtasks'
run 'control schedtasks'
import task 'startTalosSlave.xml' from desktop
import task 'startTalosSlave.xml' from desktop
= Post-cloning Setup for Pool =
*  Edit c:\talos-slave\buildbot.tac.sample and update '''buildmaster_host''' and '''slavename''' appropriately
* Rename buildbot.tac.sample to buildbot.tac
* Reboot

Revision as of 14:38, 22 July 2009

Configuration Details

From Vista Business

Downloaded Software Updates

Download all software updates as of August 8, 2008

Configuration Changes

  • Turned OFF all automatic updates
  • Turned OFF firewall
  • Created tester account (mozqa)
  • set up autologin for mozqa account
    • run netplwiz
  • Turned on RDP; allowed tester and Administrator to connect
  • Turned off screensavers

Throttling

  • Access Control Panel -> Hardware & Sound -> Power Options -> Edit Plan Settings -> Change advanced Settings
    • Alter Max processor state to '50%'

Install supplemental language support

  • ?? need help here

Install UltraVNC

It is important to follow these instructions precisely.

  • Download and install UltraVNC 1.04 Beta. Make sure to use RC4!
  • Download and install UltraVNC Addons. Make sure to use RC4!
  • Stop 'uvnc_service'.
  • Browse to c:\program files\ultravnc and run 'winvnc.exe' as administrator (right click => 'run an administrator').
  • Use the following options:
    • Ports:
      • Main: 5900
    • [ ] Use Java Viewer
    • File Transfer
      • [ ] Enable
      • [ ] User Impersonation
  • Restart the computer

From this point forward do NOT logon with RDP. It will break the VNC service.

Install Third-party applications

  • Python 2.4.4
    • 'Install for all users'
    • Append 'C:\python24;c:\python24\scripts' to the PATH.
  • Python Win32 Extensions - Right click, 'Run as Administrator'
  • PyYaml - Right click, 'Run as Administrator'
  • Info-Zip
    1. Download and extract Info-Zip
    2. Place 'unzip.exe' and 'unzip32.dll' in c:\windows
  • CVS
    1. Download CVS
    2. Extract to c:\windows
  • Wget
    1. Download Wget to c:\windows
  • Chmod, rm, etc.
    1. Download and install Coreutils
    2. Append 'c:\program files\gnuwin32\bin' to PATH.
  • Twisted 2.4.0 (Includes zope-interface)

Buildbot

cvs -d:pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot co -d buildbot mozilla/tools/buildbot
cd buildbot
c:\python24\python setup.py build
c:\python24\python setup.py install

Change the contents of c:\python24\scripts\buildbot.bat to '@python c:\python24\scripts\buildbot %*

Setting up a Buildbot Slave

How to setup a Buildbot Talos slave (replace the master.host, username, and password with the correct values)

cd c:\
mkdir talos-slave
buildbot create-slave talos-slave master.host:9989 username password

Edit the buildbot.tac file to have keepalive = None

You should then start the slave once to create the proper directory structure.

buildbot start talos-slave
buildbot stop talos-slave

Apache

The DocumentRoot will be dependent on the builddir of your Buildbot slave. In this section that directory will be referred to as $BUILDDIR.

For machines in the pool of slaves, $BUILDDIR should be 'talos-data'.

Pageset

You will need to install a page set in c:\pages.

The rest

  • Download and install Apache 2.2.6
  • Set 'Network Domain' and 'Server Name' to 'localhost'.
  • Create an empty directory so Apache doesn't complain:
mkdir c:/talos-slave/$BUILDDIR/talos
  • Change DocumentRoot and 'C:/Program Files..." <Directory> tag to 'c:/talos-slave/$BUILDDIR/talos'.
  • Add an alias so Apache knows where the pageset is. Add this to your httpd.conf:
Alias /page_load_test/pages c:/pages
<Directory c:/pages>
    Options Indexes
    Order allow,deny
    Allow from all
</Directory>

Set up buildbot auto start

Create startTalos.batch on desktop

cd c:\
buildbot start talos-slave

Create startTalosSlave.xml on desktop

??<?xml version="1.0" encoding="UTF-16"?>
<Task version="1.2" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task">
  <RegistrationInfo>
    <Date>2008-08-21T16:44:41.758</Date>
    <Author>QM-PVISTA-STAGE\Mozilla Test</Author>
  </RegistrationInfo>
  <Triggers>
    <LogonTrigger id="43997481-fd90-4584-9841-9739de9662f2">
      <Enabled>true</Enabled>
    </LogonTrigger>
  </Triggers>
  <Principals>
    <Principal id="Author">
      <UserId>QM-PVISTA-STAGE\Mozilla Test</UserId>
      <LogonType>InteractiveToken</LogonType>
      <RunLevel>HighestAvailable</RunLevel>
    </Principal>
  </Principals>
  <Settings>
    <IdleSettings>
      <Duration>PT10M</Duration>
      <WaitTimeout>PT1H</WaitTimeout>
      <StopOnIdleEnd>true</StopOnIdleEnd>
      <RestartOnIdle>false</RestartOnIdle>
    </IdleSettings>
    <MultipleInstancesPolicy>IgnoreNew</MultipleInstancesPolicy>
    <DisallowStartIfOnBatteries>false</DisallowStartIfOnBatteries>
    <StopIfGoingOnBatteries>true</StopIfGoingOnBatteries>
    <AllowHardTerminate>true</AllowHardTerminate>
    <StartWhenAvailable>false</StartWhenAvailable>
    <RunOnlyIfNetworkAvailable>false</RunOnlyIfNetworkAvailable>
    <AllowStartOnDemand>true</AllowStartOnDemand>
    <Enabled>true</Enabled>
    <Hidden>false</Hidden>
    <RunOnlyIfIdle>false</RunOnlyIfIdle>
    <WakeToRun>false</WakeToRun>
    <ExecutionTimeLimit>PT0S</ExecutionTimeLimit>
    <Priority>7</Priority>
  </Settings>
  <Actions Context="Author">
    <Exec>
      <Command>"C:\Users\Mozilla Test\Desktop\startTalos.bat"</Command>
    </Exec>
  </Actions>

run 'control schedtasks' import task 'startTalosSlave.xml' from desktop

Post-cloning Setup for Pool

  • Edit c:\talos-slave\buildbot.tac.sample and update buildmaster_host and slavename appropriately
  • Rename buildbot.tac.sample to buildbot.tac
  • Reboot