You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by Apache Wiki <wi...@apache.org> on 2006/11/15 15:44:36 UTC

[Spamassassin Wiki] Update of "ContinuousTesting" by JustinMason

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Spamassassin Wiki" for change notification.

The following page has been changed by JustinMason:
http://wiki.apache.org/spamassassin/ContinuousTesting

The comment on the change is:
update to match what actually works nowadays

------------------------------------------------------------------------------
  cd buildbot-0.6.1 ; sudo python setup.py install
  }}}
  
- And create a user account to run the slave as, then set up the slave:
+ And create a user account to run the slave as:
  
  {{{
  sudo useradd -c "SpamAssassin Buildbot" buildbot
  sudo su - buildbot
  mkdir -p /home/buildbot/slaves
- 
-     [now, you need the buildbot password.  ask on the IRC channel
-     and one of the PMC should be able to set you up with one.
-     If you're a PMC member, take a look at /home/buildbot/README
-     on bugzilla.]
- 
- PASSWORD=[password]
- 
-     [give your slave a good name, like "jm-debian-stable" or
-     "jm-ubuntu-hoary-perl585"]
- 
- HOST_OS="username-hostname-osname"
- 
- mkdir /home/buildbot/slaves/$HOST_OS
- cd /home/buildbot/slaves/$HOST_OS
- mktap buildbot slave --basedir /home/buildbot/slaves/$HOST_OS --master \
-         buildbot.spamassassin.org:9989 --name $HOST_OS \
-         --passwd $PASSWORD --usepty 0 --keepalive 300
  }}}
  
+ === Commands to create a new buildbot slave ===
- (note: use "mktap" directly instead of "buildbot slave so you can set usepty
- and keepalive.) Mail dev/at/SpamAssassin.apache.org the $HOST_OS string you've chosen.
  
- With buildbot 0.6.6, you don't need to run "mktap" directly and should run this
- command:
+ You need a buildbot password be set up for you -- a random string in a file in
+ /home/buildbot/pwds/.  ask on the IRC channel and one of the PMC should be able
+ to set you up with one.
  
  {{{
- buildbot slave --usepty 0 --keepalive 300 /home/sabuildbot/slaves/$HOST_OS \
-         buildbot.spamassassin.org:9989 $HOST_OS $PASSWORD
+ PASSWORD=[password]
+ NAME=t-sol10-561
+ 
+ sudo mkdir -p /home/buildbot/slaves/$NAME
+ sudo chown buildbot /home/buildbot/slaves/$NAME
+ 
+ cd /home/buildbot/slaves/$NAME
+ sudo su buildbot -c \
+          "mktap buildbot slave --basedir /home/buildbot/slaves/$NAME \
+          --master buildbot.spamassassin.org:9989 --name $NAME \
+          --passwd $PASSWORD --usepty=0"
+ }}}
+ 
+ on the zone:
+ 
+ {{{
+ echo $PASSWORD > $HOME/pwd
+ sudo mv $HOME/pwd /home/buildbot/pwds/$NAME
+ sudo chown buildbot /home/buildbot/pwds/$NAME
+ sudo chmod 600 /home/buildbot/pwds/$NAME
+ 
+ sudo vi /home/buildbot/bots/buildbot/master.cfg
+ 
+         [add new lines/entries for $NAME]
+ 
+ sudo vi /etc/init.d/buildbot 
+ 
+         [add new lines/entries for $NAME, if it's running on the zone]
  }}}
  
  Command to start the slave process: