Test Farm Build Servers
Build Tools
Build servers have the following tools:
- SunStudio 12 compiler and tools (/opt/SUNWspro/bin)
- SunStudio 11 compiler and tools (/opt/SUNWspro/SS11/bin)
- ON Build Tools (/opt/onbld/bin)
Network Name Resolution
We plan to provide better network name resolution. In the meantime, there are some useful entries in the /etc/hosts file.
72.5.123.5 hg.opensolaris.org 72.5.123.19 cr.opensolaris.org 72.5.123.21 pkg.opensolaris.org 72.5.124.114 dlc.sun.com
File Transfer
The scp (secure copy) command can be used to transfer files to and from the build server:
-bash-3.2$ scp source_code jwalker@132.88.135.75:/bpool/jwalker source_code 100% |*****************************| 576 00:00 -bash-3.2$ scp jwalker@132.88.135.75:/bpool/jwalker/source_code source_code.bak source_code 100% |*****************************| 576 00:00
Once logged in, the curl command can be used to download source and binary files from websites:
jwalker@x4600-010101:~$ curl -O http://dlc.sun.com/osol/on/downloads/current/on-closed-bins.i386.tar.bz2
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 8275k 100 8275k 0 0 825k 0 0:00:10 0:00:10 ~--:~--:~-- 860k
User Accounts
Each user account on the build server has the following properties:
- zfs file system (home directory)
- zfs file system quota
- delegated zfs file system permissions including: canmount, clone, compression, create, destroy, mount, mountpoint, receive, rename, rollback, send, share, sharenfs, snapshot
For example:
jwalker@x4600-010101:~$ zfs list
NAME USED AVAIL REFER MOUNTPOINT
bpool 30.8G 237G 38.6K /bpool
bpool/ceri 12.4G 2.57G 12.4G /bpool/ceri
bpool/imp 27.3K 15.0G 27.3K /bpool/imp
bpool/jbk 7.71G 7.29G 7.71G /bpool/jbk
bpool/jimgris 27.3K 15.0G 27.3K /bpool/jimgris
bpool/jwalker 55.9K 15.0G 32.6K /bpool/jwalker
bpool/jwalker@snap1 23.3K - 30.0K -
bpool/jwalker@20081109 0 - 32.6K -
bpool/mgerdts 10.7G 4.31G 10.7G /bpool/mgerdts
bpool/palle 27.3K 15.0G 27.3K /bpool/palle
bpool/swalker 27.3K 15.0G 27.3K /bpool/swalker
jwalker@x4600-010101:~$ zfs allow bpool/jwalker
~-------------------------------------------------------------
Local+Descendent permissions on (bpool/jwalker)
user jwalker
canmount,clone,compression,create,destroy,mount,mountpoint,receive,rename,rollback,send,share,sharenfs,snapshot
~-------------------------------------------------------------
jwalker@x4600-010101:~$ pwd
/bpool/jwalker
jwalker@x4600-010101:~$ ls
testprog.c testresults.out
jwalker@x4600-010101:~$ zfs snapshot bpool/jwalker@20081109
jwalker@x4600-010101:~$ rm *
jwalker@x4600-010101:~$ ls
jwalker@x4600-010101:~$ zfs rollback bpool/jwalker@20081109
jwalker@x4600-010101:~$ ls
testprog.c testresults.out
jwalker@x4600-010101:~$
cr.opensolaris.org
You will need to add your build server account public ssh key to your opensolaris user profile to update webrev's on cr.opensolaris.org. See cr.opensolaris.org for instructions.
Planned Enhancements
The following enhancements are planned:
- Add network name resolution
- Add common shared download directory
- Copy new versions of download files as needed automatically
- Establish a local ON hg clone
on 2009/10/26 20:18