canmove, Confirmed users
6,441
edits
No edit summary |
|||
| (15 intermediate revisions by 3 users not shown) | |||
| Line 11: | Line 11: | ||
* Turned OFF all automatic updates | * Turned OFF all automatic updates | ||
* Turned OFF firewall | * Turned OFF firewall | ||
* Created tester account | * Created tester account (mozqa) | ||
* set up autologin for mozqa account | |||
** run netplwiz | |||
* Turned on RDP; allowed tester and Administrator to connect | * Turned on RDP; allowed tester and Administrator to connect | ||
* Turned off screensavers | * 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 == | == Install supplemental language support == | ||
| Line 20: | Line 26: | ||
== Install UltraVNC == | == Install UltraVNC == | ||
It is important to follow these instructions '''precisely'''. | It is important to follow these instructions '''precisely'''. | ||
* Download and install [http://superb-west.dl.sourceforge.net/sourceforge/ultravnc/ultravnc_Setup_104RC4.exe UltraVNC 1.04 Beta] | * Download and install [http://superb-west.dl.sourceforge.net/sourceforge/ultravnc/ultravnc_Setup_104RC4.exe UltraVNC 1.04 Beta]. Make sure to use RC4! | ||
* Download and install [http://sc.uvnc.com/Ultravnc_Addons_Setup_104RC4.exe UltraVNC Addons] | * Download and install [http://sc.uvnc.com/Ultravnc_Addons_Setup_104RC4.exe UltraVNC Addons]. Make sure to use RC4! | ||
* Stop 'uvnc_service'. | * Stop 'uvnc_service'. | ||
* Browse to c:\program files\ultravnc and run 'winvnc.exe' as administrator (right click => 'run an administrator'). | * Browse to c:\program files\ultravnc and run 'winvnc.exe' as administrator (right click => 'run an administrator'). | ||
| Line 38: | Line 44: | ||
** 'Install for all users' | ** 'Install for all users' | ||
** Append 'C:\python24;c:\python24\scripts' to the PATH. | ** Append 'C:\python24;c:\python24\scripts' to the PATH. | ||
* [http:// | * [http://superb-west.dl.sourceforge.net/pywin32/pywin32-208.win32-py2.4.exe?download Python Win32 Extensions] - Right click, 'Run as Administrator' | ||
* [http://pyyaml.org/download/pyyaml/PyYAML-3.05.win32-py2.4.exe PyYaml] - Right click, 'Run as Administrator' | * [http://pyyaml.org/download/pyyaml/PyYAML-3.05.win32-py2.4.exe PyYaml] - Right click, 'Run as Administrator' | ||
* Info-Zip | * Info-Zip | ||
| Line 52: | Line 58: | ||
*# Append 'c:\program files\gnuwin32\bin' to PATH. | *# Append 'c:\program files\gnuwin32\bin' to PATH. | ||
* [http://tmrc.mit.edu/mirror/twisted/Twisted/2.4/Twisted_NoDocs-2.4.0.win32-py2.4.exe Twisted 2.4.0] (Includes zope-interface) | * [http://tmrc.mit.edu/mirror/twisted/Twisted/2.4/Twisted_NoDocs-2.4.0.win32-py2.4.exe Twisted 2.4.0] (Includes zope-interface) | ||
== Buildbot == | |||
cvs -d:pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot co -r BUILDBOT_0_7_6_BRANCH -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 [http://apache.sunsite.ualberta.ca/httpd/binaries/win32/apache_2.2.6-win32-x86-no_ssl.msi 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> | |||
* Restart Apache from the system tray icon | |||
* Test the install by browsing to 'http://localhost/page_load_test/framecycler.html'. You should see rapidly changing pages. | |||
* Turn off logging, remove any lines that begin with "CustomLog" | |||
== 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 = | |||
== OPSI Installation == | |||
* FOR STAGING SLAVES ONLY: | |||
** Open c:\users\mozqa\install-opsi.bat in Wordpad and change the IP address to 10.2.71.216 | |||
* For all slaves: | |||
** Logon to the OPSI server (production-opsi or staging-opsi) and run the following: | |||
opsi-admin -d method deleteClient $hostname.uib.local | |||
** Start Menu -> Right click 'Command Prompt', hit 'Run as Administrator' | |||
** Run the following in the command line: | |||
cd c:\users\mozqa | |||
install-opsi.bat | |||
You will be prompted twice for a username and password. The first time, use 'pcpatch' and the standard root password. The second time, use 'root' and the standard root password. The console may freeze when or right before the password prompt appears. Simply type the password and hit enter to fix it. | |||
Then, | |||
* Open up the OPSI Client and look for the slave | |||
** Highlight the slave, go to Log Files, and then opsiconfd - look for errors in that log. | |||
If the slave shows up in the OPSI client, and there's no errors in the opsiconfd log, you're done! If it doesn't, or there are errors, do the following and try again (or talk to bhearsum): | |||
On the slave: | |||
Run c:\program files\opsi.org\preloginloader\uninst\deinstall.cmd | |||
On production-opsi: | |||
opsi-admin -d method deleteClient $hostname.uib.local | |||
== The rest == | |||
* Edit c:\talos-slave\buildbot.tac.sample and update '''buildmaster_host''' and '''slavename''' appropriately | |||
* Rename buildbot.tac.sample to buildbot.tac | |||
* Reboot | |||