Closed Bug 652391 Opened 13 years ago Closed 13 years ago

Install {*} OPSI packages manually into Windows Slaves

Categories

(SeaMonkey :: Release Engineering, defect)

x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: Callek, Assigned: Callek)

References

Details

OPSI Packages Already Installed:
* python-scripts-path
* profilevars
* disable-jit-debugger

OPSI Packages To Install:
* disable-shutdown-tracker
* buildbot-startup
* disable-cad

Can't do without OPSI:
* cleanup
** This is a "every boot" cleanup script. I'll probably write a .bat file I can ssh into the machines and just run when I need to. But a different bug.

-------------------------------
HOW TO INSTALL
-------------------------------
---
disable-shutdown-tracker:
http://hg.mozilla.org/build/opsi-package-sources/file/786e771a6a3d/disable-shutdown-tracker

Easily just simple regedits:
Create/open: "[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Reliability]"
set "ShutdownReasonOn"=REG_DWORD:0x0

---
buildbot-startup:
Missing at least: http://mxr.mozilla.org/build/source/opsi-package-sources/buildbot-startup/CLIENT_DATA/guess-msvc.bat?raw=1

* added (from bash with cwd: D:/mozilla-build)
** wget http://mxr.mozilla.org/build/source/opsi-package-sources/buildbot-startup/CLIENT_DATA/guess-msvc.bat?raw=1 -O guess-msvc.bat
* start-buildbot.sh was in dos format line endings, for sanity I pulled from server as well:
** wget http://mxr.mozilla.org/build/source/opsi-package-sources/buildbot-startup/CLIENT_DATA/start-buildbot.sh?raw=1 -O start-buildbot.sh
* start-buildbot.bat already updated

---
disable-cad:

Simple registry update:
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\policies\system]
set "disablecad"=REG_DWORD:1
(In reply to comment #0)
> OPSI Packages Already Installed:

Checked on cb-sea-win32-tbox
(also done there)

cb-seamonkey-win32-01 NEEDED (done now):
* disable-shutdown-tracker
* disable-cad
* python-scripts-path
* start-buildbot.bat


-------


HOW TO CHECK FOR STUFF:

(Run in win cmd line)
* REG QUERY "HKLM\SYSTEM\CurrentControlSet\control\Session Manager\Environment" /v Path
** Checks to see if python-scripts-path is installed properly;
** if "d:\mozilla-build\python25\scripts" is there, it is.
* REG QUERY "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Reliability" /v ShutdownReasonOn
** Checks for disable-shutdown-tracker
** If it does not error and ShutdownReasonOn is 0 then good.
* REG QUERY "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AeDebug" /s
** Checks disable-jit-debugger
** Look for key Auto set as 1
** Look for absense of Debugger and VDebugger
* REG QUERY "HKLM\Software\Microsoft\Windows\CurrentVersion\policies\system" /v disablecad
** checks disable-cad
** should have a value of 1

(run in msys cmd line)
* cd /d/mozilla-build
* cat msys/etc/profile
** check for export HOSTTYPE MACHTYPE OSTYPE SHELL
** comment mentioning Bug 505552 optional.
** Above For profilevars
Below For start-buildbot.bat
* cd /d/mozilla-build
* wget http://mxr.mozilla.org/build/source/opsi-package-sources/buildbot-startup/CLIENT_DATA/guess-msvc.bat?raw=1 -O guess-msvc.bat.new; echo "<<<<>>>>"; diff -u4 guess-msvc.bat guess-msvc.bat.new
** If there is a diff, overwrite guess-msvc.bat with .new here, rather than wait :-)
* wget http://mxr.mozilla.org/build/source/opsi-package-sources/buildbot-startup/CLIENT_DATA/start-buildbot.bat?raw=1 -O start-buildbot.bat.new; echo "<<<<>>>>"; diff -u4 start-buildbot.bat start-buildbot.bat.new
** If there is a diff, overwrite guess-msvc.bat with .new here, rather than wait :-)
* wget http://mxr.mozilla.org/build/source/opsi-package-sources/buildbot-startup/CLIENT_DATA/start-buildbot.sh?raw=1 -O start-buildbot.sh.new; echo "<<<<>>>>"; diff -u4 start-buildbot.sh start-buildbot.sh.new
** If there is a diff, overwrite guess-msvc.bat with .new here, rather than wait :-)
* rm *.new
** Just cleanup


REG QUERY "HKLM\Software\Microsoft\Windows\CurrentVersion\policies\system" /v disablecad
REG QUERY "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AeDebug" /s
REG QUERY "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Reliability" /v ShutdownReasonOn
REG QUERY "HKLM\SYSTEM\CurrentControlSet\control\Session Manager\Environment" /v Path

-------------
CMD LINE reg Updates
------------
* disable-cad
** REG ADD "HKLM\Software\Microsoft\Windows\CurrentVersion\policies\system" /v disablecad /d 0x1 /f
* disable-shutdown-tracker
** REG ADD "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Reliability" /v ShutdownReasonOn /d 0 /t REG_DWORD
* python-scripts-path
C:\Documents and Settings\Administrator>REG ADD "HKLM\SYSTEM\CurrentControlSet\c
ontrol\Session Manager\Environment" /v Path /d "%PATH%;d:\mozilla-build\python25
\scripts"
cb-seamonkey-win32-02 NEEDED (done now):
* disable-shutdown-tracker
* disable-cad
* python-scripts-path
* start-buildbot.bat

cb-seamonkey-win32-03 NEEDED (done now):
* disable-shutdown-tracker
* disable-cad
* python-scripts-path
* start-buildbot.bat

cb-sea-wm-win2k3-01 NEEDED (done now):
* disable-shutdown-tracker
* disable-cad
* python-scripts-path
* start-buildbot.bat

All the above machines are getting clobbers and TEMP cleaning while I'm at it, will restart when done (convenient time as all machines are idle from a slow day)
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Just FYI: still to check/do:
* twisted_dumbwin32proc
* nagios (lots involved, low priority)
* tegra-sdk (not needed for SeaMonkey at this time, still plan to add, lowest priority)
* tools-repo (I don't see a need for this, but it doesn't hurt to mimic "just in case" at some point, lowest priority)
You need to log in before you can comment on or make changes to this bug.