Confirmed users
3,104
edits
(13 intermediate revisions by 5 users not shown) | |||
Line 111: | Line 111: | ||
'''NOTE:''' These two files are stored permanently in the [https://bugzilla.mozilla.org/show_bug.cgi?id=549458#c28 ref-platforms repo] | '''NOTE:''' These two files are stored permanently in the [https://bugzilla.mozilla.org/show_bug.cgi?id=549458#c28 ref-platforms repo] | ||
== buildbot | == 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 = | ||
Line 163: | Line 242: | ||
* To be able to run debug unit tests | * To be able to run debug unit tests | ||
* This got deployed with [http://hg.mozilla.org/build/opsi-package-sources/rev/9126788ed78a 9126788ed78a] | * 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]. | * For instruction on how to generate your own debug CRT read [https://bugzilla.mozilla.org/show_bug.cgi?id=562459#c25 this]. | ||
Line 172: | Line 259: | ||
wget -O_dumbwin32proc.py http://hg.mozilla.org/build/opsi-package-sources/raw-file/520de951bbb0/twisted_dumbwin32proc/CLIENT_DATA/_dumbwin32proc.py | 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] | * 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. |