ReferencePlatforms/Test/WinXP: Difference between revisions

 
(20 intermediate revisions by 7 users not shown)
Line 99: Line 99:
* Test the install by browsing to 'http://localhost/page_load_test/framecycler.html'. You should see rapidly changing pages.
* 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"
* Turn off logging, remove any lines that begin with "CustomLog"
== MozillaBuild 1.4 ==
* In [https://bugzilla.mozilla.org/show_bug.cgi?id=549458#c28 bug 549458] we installed MozillaBuild 1.4 by doing this:
wget http://staging-stage.build.mozilla.org/pub/mozilla.org/mozilla/libraries/win32/mozilla-build-1.4.zip -O mozilla-build.zip
wget http://staging-stage.build.mozilla.org/pub/mozilla.org/mozilla/libraries/win32/python25win32dlls.zip -O python25win32dlls.zip
unzip mozilla-build.zip -d C:\
unzip python25win32dlls.zip -d C:\mozilla-build\python25\Scripts
rm mozilla-build.zip
rm python25win32dlls.zip
'''NOTE:''' These two files are stored permanently in the [https://bugzilla.mozilla.org/show_bug.cgi?id=549458#c28 ref-platforms repo]
== buildbot ==
=== Install Buildbot ===
Install Buildbot using the following batch script.  You will need to find a way to get this batch script onto the system.  This installs buildbot into %mozillabuild%\buildbotve, using the version in the SET at the top.  It gets Python packages from the puppet master specified in pkg_root.  The final stanza will install the latest runslave.py at c:\runslave.py.  You will need to enter the administrator password to do so.
<pre><nowiki>
@echo off
SET version=0.8.4-pre-moz2
REM find mozillabuild
SET mozillabuild=d:\mozilla-build
SET mozilladrive=d:
IF NOT EXIST %mozillabuild%\nul (
    SET mozillabuild=c:\mozilla-build
    SET mozilladrive=c:
)
REM find python - some machines have python26, some have python25
SET pythondir=%mozillabuild%\python25\
SET pythondll=python25.dll
IF NOT EXIST %pythondir%\python.exe (
    REM python26 isn't in a versioned directory for some reason
    SET pythondir=%mozillabuild%\python
    SET pythondll=python26.dll
)
SET python=%pythondir%\python.exe
SET pkg_root=http://production-puppet.build.mozilla.org/production/python-packages
SET virtualenv=%mozillabuild%\buildbotve
REM get set up
rmdir /s /q %virtualenv%
if ERRORLEVEL 1 exit /b 1
MKDIR %virtualenv%
if ERRORLEVEL 1 exit /b 1
%mozilladrive%
cd %virtualenv%
REM On systems where Python is not installed systemwide, the python.exe in the virtualenv
REM will not be able to find PYTHON*.DLL, so we copy it there "manually"
MKDIR %virtualenv%\scripts
if ERRORLEVEL 1 exit /b 1
COPY %pythondir%\%pythondll% %virtualenv%\scripts
if ERRORLEVEL 1 exit /b 1
REM get the prerequisites for a virtualenv
%mozillabuild%\wget\wget %pkg_root%/virtualenv.py
if ERRORLEVEL 1 exit /b 1
%mozillabuild%\wget\wget %pkg_root%/pip-0.8.2.tar.gz
if ERRORLEVEL 1 exit /b 1
%mozillabuild%\wget\wget %pkg_root%/distribute-0.6.14.tar.gz
if ERRORLEVEL 1 exit /b 1
REM create the virtualenv
%python% virtualenv.py --python=%python% --distribute %virtualenv%
if ERRORLEVEL 1 exit /b 1
REM populate it
.\scripts\pip install --no-deps --no-index --find-links=%pkg_root% zope.interface==3.6.1
if ERRORLEVEL 1 exit /b 1
.\scripts\pip install --no-deps --no-index --find-links=%pkg_root% buildbot-slave==%version%
if ERRORLEVEL 1 exit /b 1
.\scripts\pip install --no-deps --no-index --find-links=%pkg_root% buildbot==%version%
if ERRORLEVEL 1 exit /b 1
REM note that this version of Twisted has been modified to not require a
REM compiler; see the puppet manifests for details
.\scripts\pip install --no-deps --no-index --find-links=%pkg_root% twisted==10.2.0
if ERRORLEVEL 1 exit /b 1
.\scripts\pip install --no-deps --no-index --find-links=%pkg_root% simplejson==2.1.3
if ERRORLEVEL 1 exit /b 1
runas /user:administrator "%mozillabuild%\wget\wget -OC:\runslave.py http://hg.mozilla.org/build/puppet-manifests/raw-file/tip/modules/buildslave/files/runslave.py"
if ERRORLEVEL 1 exit /b 1
</nowiki></pre>


= Updating Talos =
= Updating Talos =
Assuming your Buildbot master configuration is proper, Buildbot will automatically update Talos on every performance run. If the pageset is updated, you will need to refresh c:/pages.
Assuming your Buildbot master configuration is proper, Buildbot will automatically update Talos on every performance run. If the pageset is updated, you will need to refresh c:/pages.


= Post-cloning Setup for Pool =
= Installing OPSI =
== OPSI Installation ==
 
* Make sure the machine name is acurate and not that of the ref image
* Make sure the machine name is acurate and not that of the ref image
* FOR STAGING SLAVES ONLY:
* FOR STAGING SLAVES ONLY:
Line 127: Line 224:
  opsi-admin -d method deleteClient $hostname.uib.local
  opsi-admin -d method deleteClient $hostname.uib.local


== The rest ==
= Post-cloning Setup for Pool =
There are no longer any post cloning steps for XP machines, you can also ssh into the box to make sure the buildbot.tac is pointing to the right test master if needed.
 
== If you need to change the test master ==
* Edit c:\talos-slave\buildbot.tac.sample and update '''buildmaster_host''' and '''slavename''' appropriately
* Edit c:\talos-slave\buildbot.tac.sample and update '''buildmaster_host''' and '''slavename''' appropriately
* Rename buildbot.tac.sample to buildbot.tac
* Rename buildbot.tac.sample to buildbot.tac
* Reboot
* Reboot (with 'shutdown -t 0 -r' if you're in ssh session)
 
= Post-OPSI packages =
 
== Microsoft Visual C++ 2005 SP1 Redistributable Package (x86) ==
* To be able to run Windows unit tests
* Install [http://www.microsoft.com/downloads/details.aspx?familyid=200b2fd9-ae1a-4a14-984d-389c36f85647&displaylang=en this]
* Deployed with [http://hg.mozilla.org/build/opsi-package-sources/rev/95396be165c7 95396be165c7]
 
== Microsoft Visual C++ 2005 Non-Redistributable Debug CRT (x86) ==
* To be able to run debug unit tests
* This got deployed with [http://hg.mozilla.org/build/opsi-package-sources/rev/9126788ed78a 9126788ed78a]
* For instruction on how to generate your own debug CRT read [https://bugzilla.mozilla.org/show_bug.cgi?id=562459#c25 this].
* need to disable JIT debugging (this is deployed via OPSI now - [http://hg.mozilla.org/build/opsi-package-sources/rev/1f0f166cab4b 1f0f166cab4b]). From the command-line:
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AeDebug" /v Debugger /f
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework" /v DbgManagedDebugger /f
 
== Microsoft Visual C++ 2010 Non-Redistributable Debug CRT (x86) ==
* To be able to run debug unit tests
* This got deployed with [http://hg.mozilla.org/build/opsi-package-sources/rev/4905e94f93e5 4905e94f93e5]
* For instruction on how to generate your own debug CRT read [https://bugzilla.mozilla.org/show_bug.cgi?id=562459#c25 this].
 
== Twisted patch to allow buildbot to kill jobs ==
* This got deployed with [http://hg.mozilla.org/build/opsi-package-sources/rev/520de951bbb0 520de951bbb0]
* You can deploy this manually by:
cd C:\mozilla-build\python25\Lib\site-packages\twisted\internet
del /f /q _dumbwin32proc.py _dumbwin32proc.py.bak
wget -O_dumbwin32proc.py http://hg.mozilla.org/build/opsi-package-sources/raw-file/520de951bbb0/twisted_dumbwin32proc/CLIENT_DATA/_dumbwin32proc.py
* The differences from the original file are in [https://bugzilla.mozilla.org/attachment.cgi?id=499149&action=diff here]
 
== Upgrade NVIDIA driver ==
{{bug|629759}} - upgrade NVIDIA driver to version 260.99
http://www.nvidia.com/object/winxp-260.99-whql-driver.html
 
== Deploy slave-alloc ==
* {{bug|651264}} - slave-side slave-alloc support for XP talos
* deploy [http://hg.mozilla.org/build/puppet-manifests/raw-file/61c0b7a13f40/modules/buildslave/files/startTalos-xp.bat startTalos.bat] and [http://hg.mozilla.org/build/puppet-manifests/raw-file/tip/modules/buildslave/files/runslave.py runslave.py] with:
<pre>
REM get the latest runslave.py and startTalos.bat from hg
wget -O c:\runslave.py http://hg.mozilla.org/build/puppet-manifests/raw-file/tip/modules/buildslave/files/runslave.py
wget -O "c:\Documents and Settings\cltbld\Start Menu\Programs\Startup\startTalos.bat" http://hg.mozilla.org/build/puppet-manifests/raw-file/61c0b7a13f40/modules/buildslave/files/startTalos-xp.bat
</pre>
 
== Mozilla maintenance service, associated registry keys, Mozilla test CA root ==
{{bug|704578}}
cd c:\
wget -O installservice.bat --no-check-certificate https://bug704578.bugzilla.mozilla.org/attachment.cgi?id=579099
runas /user:administrator "schtasks /create /tn mozillamaintenance /tr \"c:\\windows\\system32\\cmd.exe /c \\\"c:\\installservice.bat\\\"\" /sc ONSTART /ru SYSTEM"
wget -O keys.reg --no-check-certificate https://bugzilla.mozilla.org/attachment.cgi?id=577617
regedit /s keys.reg
wget -O MozRoot.crt --no-check-certificate https://bugzilla.mozilla.org/attachment.cgi?id=577619
wget -O add_cert.msc --no-check-certificate https://bugzilla.mozilla.org/attachment.cgi?id=579191
start add_cert.msc
* From menu: Action -> All Tasks -> Import...  launches Certificate Import Wizard
* Click Next
* Browse and use C:\MozRoot.crt
* Next, Next, Finish
* Close the MMC window
 
== Python 2.7 ==
Python 2.7 got deployed through OPSI with [http://hg.mozilla.org/build/opsi-package-sources/rev/bdd41eb2c569 this package].
 
The equivalent command would be this:
msiexec /i %SCRIPTPATH%\python-2.7.3.msi /quiet /norestart  /log c:\tmp\python27_install.log TARGETDIR=$MOZILLABUILDDIR$\python27 ALLUSERS=1
 
The MSI was downloaded from http://www.python.org/ftp/python/2.7.3/python-2.7.3.msi
 
== Deployed correct _dumbwin32proc.py and ref_image_version.txt ==
In {{bug|794617}} we deployed manually the correct version of _dumbwin32proc.py since OPSI was failing to do the work.
<pre>
cd C:\mozilla-build\python25\Lib\site-packages\twisted\internet
mv _dumbwin32proc.py _dumbwin32proc.py.bak
C:\mozilla-build\wget\wget.exe http://hg.mozilla.org/build/opsi-package-sources/raw-file/e55c081cb8cf/twisted_dumbwin32proc/CLIENT_DATA/_dumbwin32proc.py
</pre>
 
We also added to C:\Documents and Settings\cltbld\Desktop\ref_image_version.txt to keep track of snapshots for talos-r3-xp-ref.
Confirmed users
3,104

edits