Skip to content

Automatic testing of nightly builds

Antoine Delvaux edited this page Jun 17, 2015 · 2 revisions

Automatic testing of nightly builds

Our building infrastructure is producing new packages every night that can then be installed on testing hosts. The instructions provided on this page are meant for testing only, these packages should not be installed on production infrastructure.

Install on Debian hosts

If you want to configure your Debian testing host to use the snapshot repository containing the nightly builds, you should use the following apt source file: http://downloads.perfsonar.net/debian/perfsonar-wheezy-snapshot.list

Run this as root to get the repo signing key:

wget -qO - http://downloads.perfsonar.net/debian/perfsonar-wheezy-snapshot.gpg.key | apt-key add -

You can then install the perfsonar-endpoint package that should get you started with most of the perfSONAR packages available for Debian.

Automatic updates

As new packages are produced every night, you also need to setup automatic upgrade of packages to run every night. There are different useful Debian tools taking care of that. cron-apt is one of them and should be easy to install and configure.

You’ll need to configure it to actually install the available updates and not just download the newly available packages (which is the default configuration). This can be done by adding a new configuration file in the /etc/cron-apt/action.d/ named 5-install and containing the following content:

upgrade -y -o APT::Get::Show-Upgraded=true -o Dir::Etc::SourceList=/etc/apt/sources.list.d/perfsonar-wheezy-snapshot.list -o Dir::Etc::SourceParts="/dev/null"

A cronjob will automatically install new packages present in the perfsonar-wheezy-snapshot repository every night (check /etc/cron.d/cron-apt). You may want to do the same with the security updates provided by Debian.

A trace of all updates applied will be stored in /var/log/cron-apt/log

Clone this wiki locally