ReferencePlatforms/Test/Win7
No full reference exists, but Alice says she followed the Vista instructions when creating this ref machine.
Contents
- 1 Setup
- 2 MozillaBuild 1.4
- 3 buildbot
- 4 ANGLE libraries
- 5 Microsoft_VC80_DebugCRT_x86.msi
- 6 Microsoft_VC100_DebugCRT_x86.msi
- 7 DirectX runtime (June 2010)
- 8 NVidia drivers update (Version: 260.99; Date: 2010.10.25)
- 9 Xperf and mozprofilerprobe.mof
- 10 Mozilla maintenance service, associated registry keys, Mozilla test CA root
- 11 Deploy _dumbwin32proc.py
- 12 Post re-imaging steps
Setup
- disable sound
MozillaBuild 1.4
- In bug 549458 we installed MozillaBuild 1.4
- Checkout 'mozilla-build-1.4.zip' and 'python25win32dlls.zip' from the mofo repo. Read this comment to know where they are located.
unzip mozilla-build-1.4.zip -d C:\ unzip python25win32dlls.zip -d C:\mozilla-build\python25\Scripts rm mozilla-build-1.4.zip rm python25win32dlls.zip
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. Note that runas /administrator doesn't work in W7, so you'll need to use VNC to install runslave.py (below)
@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
Deploy slave-alloc
- bug 629692 - slave-side slave-alloc support for w7/32
- Install runslave.py in C:\
- You will need to do this with administrator privs. The only way to get these privs is to right-click "Command Prompt" on the start menu, and select "Run as Administrator". Then use 'wget' to download the file.
REM REMEMBER: "Run as Administrator" wget -O c:\runslave.py http://hg.mozilla.org/build/puppet-manifests/raw-file/tip/modules/buildslave/files/runslave.py dir C:\runslave.py
- Install startTalos.bat with:
wget -O "c:\Users\cltbld\Desktop\startTalos2.bat" http://hg.mozilla.org/build/puppet-manifests/raw-file/default/modules/buildslave/files/startTalos-w7.bat
- set startTalos.bat to start on run
- see https://bugzilla.mozilla.org/show_bug.cgi?id=430832#c1 although details are vague
- In Task Manager, add a new task:
- Run in C:\, run as cltbld, run only when logged in, run with highest priviledges
- Triggers: at log on
- Action: start c:\Users\cltbld\Desktop\startTalos.bat
- Conditions: stop if idle ceases, start only on AC power, stop on switch to battery
- Settings: Allow to run on demand, stop if running for more than 3 days, force stop if it does not stop when requested
ANGLE libraries
- In bug 589814 we deployed the ANGLE libraries into C:\libs (revision r411)
libEGL.dll libGLESv2.dll
- You can do this by doing this:
mkdir C:\libs wget https://bugzilla.mozilla.org/attachment.cgi?id=471248 angle_libs.zip REM if on the build network do this instead REM wget http://dev-stage01.build.mozilla.org/pub/mozilla.org/mozilla/libraries/win32/angle-libs_r411.zip unzip angle-libs_r411.zip -d C:\libs rm angle-libs_r411.zip
You can download them from []
Microsoft_VC80_DebugCRT_x86.msi
- We need to run debug builds on test machines which don't have Visual Studio installed
- This is explained in "Preparing a Test Machine To Run a Debug Executable"
- Follow these instructions to find out how to install it as an MSI file
md5sum -> ab9907210c0f95733cb8465b4dfa28d8 Microsoft_VC80_DebugCRT_x86.msi
- Verify that the following registry keys do NOT exist (they should not), i.e. JIT debugging is disabled. Remove the keys if they do exist. From the command-line:
reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AeDebug\Debugger" reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\DbgManagedDebugger"
Microsoft_VC100_DebugCRT_x86.msi
- We need to run debug builds on test machines which don't have Visual Studio 2010 installed
- Follow these instructions to find out how to install it as an MSI file
md5sum -> 2011610c458cbfc71cc7ede13c24fb02 Microsoft_VC100_DebugCRT_x86.msi
For releng you can find a copy in here: http://dev-stage01.build.mozilla.org/pub/mozilla.org/mozilla/libraries/win32/Microsoft_VC100_DebugCRT_x86.msi
DirectX runtime (June 2010)
See bug 624044
wget http://download.microsoft.com/download/1/7/1/1718CCC4-6315-4D8E-9543-8E28A4E18C4C/dxwebsetup.exe dxwebsetup.exe
NVidia drivers update (Version: 260.99; Date: 2010.10.25)
See bug 624044
wget http://us.download.nvidia.com/Windows/260.99/260.99_desktop_win7_winvista_32bit_english_whql.exe C:\Users\cltbld\Downloads\260.99_desktop_win7_winvista_32bit_english_whql.exe
Xperf and mozprofilerprobe.mof
See bug 640829. NOTE: Followed instructions from Profiling with Xperf
These directions work locally as well. To install this package unto your slave:
- Install the Windows 7.1 SDK
- Install C:\Program Files\Microsoft SDKs\Windows\v7.1\Redist\Windows\wpt_x86.msi
- ssh as cltbld and download mozprofilerprobe.mof (Download this locally to your xperf directory):
wget http://hg.mozilla.org/mozilla-central/raw-file/360ab7771e27/toolkit/components/startup/mozprofilerprobe.mof
- VNC, use "Run as Administrator" to start a command prompt and run the following:
mofcomp c:\Users\cltbld\mozprofilerprobe.mof (Just run this locally as an admin if running locally)
Mozilla maintenance service, associated registry keys, Mozilla test CA root
- Use "Run as Administrator" to start a command prompt and run the following:
cd c:\ wget -O installservice.bat --no-check-certificate https://bug704578.bugzilla.mozilla.org/attachment.cgi?id=579099 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=579119 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
Deploy _dumbwin32proc.py
Until bug 853609 is fixed, run this:
C:\mozilla-build\wget\wget.exe -q -Odeploy_dumbwin32proc.bat https://bugzilla.mozilla.org/attachment.cgi?id=725099 deploy_dumbwin32proc.bat
This allows us to use "stop build" from buildbot.
Post re-imaging steps
Just change the hostname and reboot the machine.