These are notes on the (labourious) process of upgrading Buildbot and bbmass on the zone. Buildbot is a bitch to upgrade, since it essentially doesn't offer much backwards compat at all
Installing / Upgrading Buildbot on the zone
No Format |
---|
sudo mkdir /local/buildbot-0.7.5
sudo gcp -arl /local/lib /local/buildbot-0.7.5/lib
cd /home/buildbot/src/Twisted-2.5.0/zope.interface-3.3.0
sudo python ./setup.py install --home=/local/buildbot-0.7.5
cd /home/buildbot/src/Twisted-2.5.0
PYTHONPATH=/local/buildbot-0.7.5/lib/python sudo python ./setup.py install --home=/local/buildbot-0.7.5
cd /home/buildbot/src/buildbot-0.7.5
PYTHONPATH=/local/buildbot-0.7.5/lib/python sudo python ./setup.py install --home=/local/buildbot-0.7.5
|
Upgrading the continuous-testing Buildbot
No Format |
---|
sudo ln -s /local/buildbot-0.7.5 /local/buildbot-live
cd /home/buildbot/bots
sudo mv sa sa.old
cd /home/buildbot/slaves
sudo mv sol10-perl561 sol10-perl561.old
sudo mv zone-sol10 zone-sol10.old
sudo vi /etc/init.d/buildbot
[update to add:]
PATH=/local/buildbot-live/bin:$PATH
PYTHONPATH=/local/buildbot-live/lib/python
export PATH PYTHONPATH
[and invoke all buildbots as
nice su buildbot -c "buildbot $1 /home/buildbot/slaves/zone-sol10"
adding the "su buildbot" part]
[as "buildbot" user]
PATH=/local/buildbot-live/bin:$PATH
PYTHONPATH=/local/buildbot-live/lib/python
export PATH PYTHONPATH
buildbot create-master /home/buildbot/bots/sa
[as normal user again]
sudo mv /home/buildbot/bots/sa.old/master.cfg /home/buildbot/bots/sa
sudo vi /home/buildbot/bots/sa/master.cfg
[read "NEWS" file from buildbot.sf.net, painfully rewrite
config file to match new formats, swear a lot]
PASSWORD=[secret]
NAME=sol10-perl561
sudo mkdir -p /home/buildbot/slaves/$NAME
sudo chown buildbot /home/buildbot/slaves/$NAME
cd /home/buildbot/slaves/$NAME
sudo su buildbot -c "buildbot create-slave --usepty=0 \
/home/buildbot/slaves/$NAME \
buildbot.spamassassin.org:9989 $NAME $PASSWORD"
PASSWORD=[secret]
NAME=zone-sol10
sudo mkdir -p /home/buildbot/slaves/$NAME
sudo chown buildbot /home/buildbot/slaves/$NAME
cd /home/buildbot/slaves/$NAME
sudo su buildbot -c "buildbot create-slave --usepty=0 \
/home/buildbot/slaves/$NAME \
buildbot.spamassassin.org:9989 $NAME $PASSWORD"
sudo chown -R buildbot /home/buildbot/bots/sa
sudo chown -R buildbot /home/buildbot/slaves/
sudo /etc/init.d/buildbot restart
[errors!]
sudo tail -20 /home/buildbot/bots/sa/twistd.log
sudo vi /home/buildbot/bots/sa/master.cfg
[and reiterate until it works]
|
Upgrading the bbmass Buildbot
No Format |
---|
sudo ln -s /local/buildbot-0.7.5 /local/bbmass-buildbot-live
cd /home/buildbot/bots
sudo mv bbmass bbmass.old
cd /home/bbmass/slaves
sudo mv mc-fast{,.old}
sudo mv mc-med{,.old}
sudo mv mc-slow{,.old}
sudo mv mc-slower{,.old}
sudo vi /etc/init.d/bbmass
[update to add:]
PATH=/local/bbmass-buildbot-live/bin:$PATH
PYTHONPATH=/local/bbmass-buildbot-live/lib/python
export PATH PYTHONPATH
sudo chmod 1777 /home/buildbot/bots
[and invoke all buildbots as
nice su buildbot -c "buildbot $1 /home/buildbot/slaves/zone-sol10"
adding the "su buildbot" part]
[as "bbmass" user]
PATH=/local/bbmass-buildbot-live/bin:$PATH
PYTHONPATH=/local/bbmass-buildbot-live/lib/python
export PATH PYTHONPATH
buildbot create-master /home/buildbot/bots/bbmass
[as normal user again]
sudo mv /home/buildbot/bots/bbmass.old/master.cfg /home/buildbot/bots/bbmass
sudo vi /home/buildbot/bots/bbmass/master.cfg
[read "NEWS" file from buildbot.sf.net, painfully rewrite
config file to match new formats, swear a lot]
PASSWORD=[secret]
NAME=mc-fast
sudo mkdir -p /home/bbmass/slaves/$NAME
sudo chown buildbot /home/bbmass/slaves/$NAME
cd /home/bbmass/slaves/$NAME
sudo su buildbot -c "buildbot create-slave --usepty=0 \
/home/bbmass/slaves/$NAME \
buildbot.spamassassin.org:9988 $NAME $PASSWORD"
PASSWORD=[secret]
NAME=mc-slow
sudo mkdir -p /home/bbmass/slaves/$NAME
sudo chown buildbot /home/bbmass/slaves/$NAME
cd /home/bbmass/slaves/$NAME
sudo su buildbot -c "buildbot create-slave --usepty=0 \
/home/bbmass/slaves/$NAME \
buildbot.spamassassin.org:9988 $NAME $PASSWORD"
PASSWORD=[secret]
NAME=mc-slower
sudo mkdir -p /home/bbmass/slaves/$NAME
sudo chown buildbot /home/bbmass/slaves/$NAME
cd /home/bbmass/slaves/$NAME
sudo su buildbot -c "buildbot create-slave --usepty=0 \
/home/bbmass/slaves/$NAME \
buildbot.spamassassin.org:9988 $NAME $PASSWORD"
PASSWORD=[secret]
NAME=mc-med
sudo mkdir -p /home/bbmass/slaves/$NAME
sudo chown buildbot /home/bbmass/slaves/$NAME
cd /home/bbmass/slaves/$NAME
sudo su buildbot -c "buildbot create-slave --usepty=0 \
/home/bbmass/slaves/$NAME \
buildbot.spamassassin.org:9988 $NAME $PASSWORD"
sudo chown -R buildbot /home/buildbot/bots/bbmass
sudo chown -R bbmass /home/bbmass/slaves/
sudo /etc/init.d/bbmass restart
[errors!]
sudo tail -20 /home/buildbot/bots/bbmass/twistd.log
sudo vi /home/buildbot/bots/bbmass/master.cfg
[and reiterate until it works]
|