CI Windows Tester Setup

From Qt Wiki
Jump to: navigation, search


This page explains the steps for setting up a Windows machine for testing of Qt, compatible with the setup used in the Qt Project CI system.

See CI Machine Configuration for more information about the CI machine setup.

Windows 7 32-bit

  • Install Windows 7 32-bit
    • Language to Install: English
    • Time and Currency format: English (United States)
    • Keyboard or input method: (Your choice)
    • Custom(Advanced) Installation: New copy of Windows…
    • username: bld.qt
    • password: (make on up)
    • Computer name: (i.e. ci-win7-x86-00)
    • Updates: Ask Later
    • TimeZone: (Your choice)
    • Automatic adjust clock for DST
    • Network: Home
    • Various assumptions will need to hold for the CI scripts to work without modification: system directories such as "C:" and "C:" should be located at these paths and not elsewhere.
    • Automatic Updates: Never
    • Manually install all "important updates"
    • Set desktop resolution: 1280 x 800.
    • UI elements / theme: we have "Windows Classic" theme enabled (i.e. the old NT style, not Aero). Some devs have previously indicated it could make a difference.
    • Disable all effects from Control Panel\System and Security\System\Advanced System Settings\Performance\Adjust for best performance
    • Environment variable: FACTER_architecture=x86 (It's needed because Facter (tool in Puppet) for some reason reports architecture incorrectly as a x64 instead of x86)
  • If a VM, install any needed VM tools (e.g. VMware tools for a VMware virtual machine).
  • Installing CI software
  • Download and install git for Windows version 1.7.10-preview20120409.exe
    • Important: use the "Run Git from the Windows Command Prompt" option, which places git.cmd (but not git.exe) in PATH.
    • Important: do not install a newer version of git. Newer versions replace the aforementioned git.cmd script with a git.exe. Currently, some puppet scripts require git.cmd, and it is not easy to update these to support both the git.cmd and git.exe cases together.
    • All other options leave as default.
  • Restart computer after above installations.
    • Otherwise the SYSTEM account (and hence the puppet scheduled task) won't have git or perl in PATH.
  • Launch an Administrator shell (Start -> Run, hold ctrl+shift as running 'cmd')
  • Install PSTools
  • Launch "psexec -s cmd.exe" (changes the user to SYSTEM, which is the the one running the scheduled task anyways)
mkdir cd mkdir wintools
"c:Files\Git\bin\curl.exe" https://qt.gitorious.org/qtqa/sysadmin/blobs/raw/master/bootstrap/windows_bootstrap.bat -o windows_bootstrap.bat
"c:Files\Git\bin\curl.exe" https://qt.gitorious.org/qtqa/sysadmin/blobs/raw/master/bootstrap/wintools/downloader.ps1 -o wintools/downloader.ps1
"c:Files\Git\bin\curl.exe" https://qt.gitorious.org/qtqa/sysadmin/blobs/raw/master/bootstrap/wintools/win_bootstrap.pl -o wintools/win_bootstrap.pl
windows_bootstrap.bat puppet-url http://ci-files01-hki.ci.local/input/windows/puppet-3.1.1.msi git://gitorious.org/qtqa/sysadmin.git
  • Options for the interactive part:
    • location: Doesn't matter and is a legacy question that can be removed
    • qtgitreadonly: default (git://qt.gitorious.org/)
    • input: (your local cache)
    • email: (your email address) (used by automated system to send you emails in case Puppet encouters problems)
    • smtp: (your smtp server)
    • Select: (5) ci_testser
    • testuser: default (qt)
    • network_test_server_ip: (IP of your network test server, if you have one. Else just hit entter.)
    • qt_gerrit_mirror: default (leave blank)
    • jenkins_enabled: default (no)
    • vmware_enabled: (depends if you installed this as a virtual machine on vmware)
    • icecc_enabled: no
  • Install Visual Studio 2010 Pro
    • Only Visual C++ and SQL
  • Install Visual Studio 2010 SP1
  • Install vcredist_x86.exe (default options)
  • Install DXSDK_Jun10.exe (default options)

Windows 8 64-bit

  • Install Windows 8 64-bit
    • Language to Install: English
    • Time and Currency format: English (United States)
    • Keyboard or input method: (Your choice)
    • Use Express settings
    • username: bld.qt
    • password: (make on up)
    • Computer name: (i.e. ci-win8-x64-00)
    • Various assumptions will need to hold for the CI scripts to work without modification: system directories such as "C:" and "C:" should be located at these paths and not elsewhere.
    • Automatic Updates: Never
    • Manually install all "important updates"
    • Set desktop resolution: 1280 x 800.
  • If a VM, install any needed VM tools (e.g. VMware tools for a VMware virtual machine).
  • Installing CI software
  • Download and install git for Windows version 1.7.10-preview20120409.exe
    • Important: use the "Run Git from the Windows Command Prompt" option, which places git.cmd (but not git.exe) in PATH.
    • Important: do not install a newer version of git. Newer versions replace the aforementioned git.cmd script with a git.exe. Currently, some puppet scripts require git.cmd, and it is not easy to update these to support both the git.cmd and git.exe cases together.

' All other options leave as default.

  • Restart computer after above installations.
    • Otherwise the SYSTEM account (and hence the puppet scheduled task) won't have git or perl in PATH.
  • Launch an Administrator shell (Start-> Run, hold ctrl+shift as running 'cmd')
  • Install PSTools
  • Launch "psexec -s cmd.exe" (changes the user to SYSTEM, which is the the one running the scheduled task anyways)
mkdir cd mkdir wintools
"c:Files\Git\bin\curl.exe" https://qt.gitorious.org/qtqa/sysadmin/blobs/raw/master/bootstrap/windows_bootstrap.bat -o windows_bootstrap.bat
"c:Files\Git\bin\curl.exe" https://qt.gitorious.org/qtqa/sysadmin/blobs/raw/master/bootstrap/wintools/downloader.ps1 -o wintools/downloader.ps1
"c:Files\Git\bin\curl.exe" https://qt.gitorious.org/qtqa/sysadmin/blobs/raw/master/bootstrap/wintools/win_bootstrap.pl -o wintools/win_bootstrap.pl
windows_bootstrap.bat puppet-url http://ci-files01-hki.ci.local/input/windows/puppet-3.1.1.msi git://gitorious.org/qtqa/sysadmin.git
  • Options for the interactive part:
    • location: Doesn't matter and is a legacy question that can be removed
    • qtgitreadonly: default (git://qt.gitorious.org/)
    • input: (your local cache)
    • email: (your email address) (used by automated system to send you emails in case Puppet encouters problems)
    • smtp: (your smtp server)
    • Select: (5) ci_testser
    • testuser: default (qt)
    • network_test_server_ip: (IP of your network test server, if you have one. Else just hit entter.)
    • qt_gerrit_mirror: default (leave blank)
    • jenkins_enabled: default (no)
    • vmware_enabled: (depends if you installed this as a virtual machine on vmware)
    • icecc_enabled: no
  • Install Visual Studio 2012 Pro
  • Install Visual Studio 2012 SP2
  • Install vcredist_x86.exe (default options)
  • Install Windows 8 SDK (default options)

Windows 8.1 64-bit

tdb