ReferencePlatforms/Test/Win7: Difference between revisions

Added instructions clarifying what to do locally.
(Added instructions clarifying what to do locally.)
 
(17 intermediate revisions by 5 users not shown)
Line 12: Line 12:
  rm python25win32dlls.zip
  rm python25win32dlls.zip


= buildbot 0.8.0 =
= buildbot =
* Download site-packages.tar.gz and scripts.tar.gz from mofo repo.
=== Install Buildbot ===
* Unpack site-packages.tar.gz into C:\mozilla-build\python25\Lib
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)
* Unpack scripts.tar.gz into C:\mozilla-build\python25
 
* Copy C:\mozilla-build\python25\Lib\site-packages\pywin32_system32\*.dll to C:\windows\system32
<pre><nowiki>
* install the appropriate startTalos.bat from http://hg.mozilla.org/build/puppet-manifests/file/tip/modules/buildslave/files/
@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
</nowiki></pre>
 
== Deploy slave-alloc ==
* {{bug|629692}} - slave-side slave-alloc support for w7/32
* Install [http://hg.mozilla.org/build/puppet-manifests/raw-file/tip/modules/buildslave/files/runslave.py 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.
<pre>
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
</pre>
* Install [http://hg.mozilla.org/build/puppet-manifests/raw-file/default/modules/buildslave/files/startTalos-w7.bat startTalos.bat] with:
<pre>
wget -O "c:\Users\cltbld\Desktop\startTalos2.bat" http://hg.mozilla.org/build/puppet-manifests/raw-file/default/modules/buildslave/files/startTalos-w7.bat
</pre>
 
* set startTalos.bat to start on run
* set startTalos.bat to start on run
** see https://bugzilla.mozilla.org/show_bug.cgi?id=430832#c1 although details are vague
** see https://bugzilla.mozilla.org/show_bug.cgi?id=430832#c1 although details are vague
Line 31: Line 122:
  libEGL.dll
  libEGL.dll
  libGLESv2.dll
  libGLESv2.dll
* You can download them from [https://bugzilla.mozilla.org/attachment.cgi?id=471248 angle_libs.zip]
* You can do this by doing this:
<pre>
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
</pre>
You can download them from []


= Microsoft_VC80_DebugCRT_x86.msi =
= Microsoft_VC80_DebugCRT_x86.msi =
Line 38: Line 138:
* Follow [https://bugzilla.mozilla.org/show_bug.cgi?id=562459#c25 these instructions] to find out how to install it as an MSI file
* Follow [https://bugzilla.mozilla.org/show_bug.cgi?id=562459#c25 these instructions] to find out how to install it as an MSI file
  md5sum -> ab9907210c0f95733cb8465b4dfa28d8  Microsoft_VC80_DebugCRT_x86.msi
  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 [https://bugzilla.mozilla.org/show_bug.cgi?id=562459#c25 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) =
= DirectX runtime (June 2010) =
Line 48: Line 159:
  wget http://us.download.nvidia.com/Windows/260.99/260.99_desktop_win7_winvista_32bit_english_whql.exe
  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
  C:\Users\cltbld\Downloads\260.99_desktop_win7_winvista_32bit_english_whql.exe
= Xperf and mozprofilerprobe.mof =
See {{bug|640829}}.
NOTE: Followed instructions from [https://developer.mozilla.org/En/Profiling_with_Xperf Profiling with Xperf]
These directions work locally as well. To install this package unto your slave:
* Install the [http://www.microsoft.com/en-us/download/details.aspx?id=8279 Windows 7.1 SDK]
* Install C:\Program Files\Microsoft SDKs\Windows\v7.1\Redist\Windows\wpt_x86.msi
{{bug|778856}}
* 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 =
{{bug|704578}}
* 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:
<pre>
C:\mozilla-build\wget\wget.exe -q -Odeploy_dumbwin32proc.bat https://bugzilla.mozilla.org/attachment.cgi?id=725099
deploy_dumbwin32proc.bat
</pre>
This allows us to use "stop build" from buildbot.
= Post re-imaging steps =
Just change the hostname and reboot the machine.
canmove, Confirmed users
58

edits