Release Process

This page aims to document our release process. It documents the release cycle, but also the steps required to make a release.

The release cycle

In general, each major Aegir release comprises a simultaneous release of all the modules that are part of the project. We generally go through several testing releases (alphas, betas & RCs) before doing the first stable release on a branch.

  • First an alpha is released to test new functionalities and to accomplish the goals decided in the project roadmap for that major version. Example: 3.0-alpha1
  • When we have covered most of the functionalities outlined in the roadmap, we push out beta releases until no more critical issues show up. This is generally considered a soft feature freeze. Example: 3.0-beta1
  • Then we go into full feature freeze and release a first release candidate (RC). Then a stable release branch is created, and the development branch is kept opened for development for the next stable release. This is generally considered a soft API freeze. Release candidates are made as long as critical bugs are found. Example: 3.0-rc1.
  • Once the development branch has no known critical bugs, the stable release is announced. From there on only critical fixes (security, critical performance and critical bugfixes) are committed to the stable branch, and stable releases are published (without alpha/beta/RC) directly on the stable branch. The stable branch is in full API freeze. New features are generally committed to the development branch.

Steps for a release

1. Make sure our tests are all green

Look into GitLab CI and Travis to see if all tasks have been performed without errors since the last commit. If there is an error, fix it before the release.

2. Verify drupal-org.make

Ensure Subprojects are up-to-date

In the hostmaster project we maintain our own drupal-org.make file. Verify that drupal-org.make specifies up-to-date versions. Check that e.g. the ctools version specified is not out-dated. Using the update status page of a dev installation is one way, checking the latest hostmaster release to see if the 'In this package' table has any marked packages is another way.

Validate the make file syntax

If you haven't done so already, set up the Drush extension by following How to set up drush.

Run the special Drush command to validate the syntax:

drush verify-makefile

If you encounter errors, see Common Drush Make errors and their solutions.

3. Generating the release notes

We build complete release notes for every release. Those are made up of a summary of the release, an outline of key changes, of known issues, install and upgrade instructions and a full list of bugfixes and new features. As we have a number of projects to cover we try to centralize our release notes combined with the documentation. Published under the release notes section. On we add a link to the version specific release notes page on the release nodes for all projects we cover.

Using Git Release Notes for Drush with a patch for the MD format:

drush rn --baseurl= --md 7.x-3.10 HEAD

or after placing the tags

drush rn --baseurl= --md 7.x-3.3 7.x-3.4

This is done for the different git projects. Changing the first line to add 'to $name'. The script can be used to automate this step.

provision$ ./scripts/ 7.x-3.160

The developers then proceed to format/edit the list of fixes as well as list other significant information/changes for this release. These notes end up becoming the Release Notes for the release. Things to remove are lines like 'change version information for release' and multiple commits for a single issue can be summarized.

Add it as a new file under release-notes, and add a line to mkdocs.yml. And update the default page for the 'Release notes' section.

4. Running the script

Each time we make a new release, we run a script called in provision. This script does all the 'hard' work in that it doesn't forget all the very many places to edit version numbers etc of relevant documentation and other scripts. This includes updating


Ensure that you have the necessary packages installed:

sudo apt install devscripts


It's best to start in a freshy cloned provision checkout. An extra remote to GitLab is needed for the packaging by GitLab CI.

git clone
cd provision/
git remote add gitlab

Paraphrasing from the script itself:

$ ./scripts/ 3.130 3.120

Aegir release script

This script should only be used by the core dev team when doing an
official release. If you are not one of those people, you probably
shouldn't be running this.

This script is going to modify the configs and documentation to
release 7.x-3.7.

The following operations will be done:
 0. prompt you for a debian/changelog entry
 1. change the makefile to download tarball
 2. change the version
 3. change the .gitlab-ci.yml to build a release package
 4. display the resulting diff
 5. commit those changes to git
 6. lay down the tag
 7. revert the commit
 8. clone fresh copies of hosting/hostmaster and eldir to lay down the tag
 9. (optionally) push those changes
10. clone fresh copies of golden contrib to lay down the tag
11. (optionally) push those changes

The operation can be aborted before step 8. Don't forget that as
long as changes are not pushed upstream, this can all be reverted (see
git-reset(1) and git-revert(1) ).

Notice how we just provide the Aegir release number (3.11) to the release script, not the Drupal branch (7.x), which is hardcoded in the script to remove potential confusion.

5. Watch the GitLab CI pipelines

After the release script pushes it's commits you should give Ci some time to finish it's tests. Watch it live on:

If any of these builds fail, one option might be to delete the remote tags (using git push origin :7.x-3.4, for example), fix the bugs and start again.

The script prompts to WAIT before pushing the revert commit... leave that terminal open until after you completed the 'Publish the Debian packages' step.

6. Fix Debian packages only

See Creating a Debian mini release

7. Creating release nodes on

Once the tags are pushed and release notes published, we create a release node with an excerpt of (and a link to) the release notes so that tarballs are created and issue queue versions updated.

Using the template (change the version number):

See the full release notes at:

Use something like Aegir Hostmaster 3.14.4 for the 'Short description' field.

This needs to be done for the core modules:

And for Golden Contrib...

WAIT.... And only after those are fully built...

Build errors don't show up on the release node page ... but on the releases list

Note: this could be automated with the right stuff on

8. Manually test install and upgrade

Just to make sure you should test the install and upgrade to the new version in a local VM, using the Aegir Dev VM project. Ideally, this would be from the old stable to the new stable, but as of the time of this writing, this isn't documented yet.

At this point, the unstable repo actually contains the future stable version (ie 3.1 instead of 3.1-dev-abc). Check that it actually does:

To test the install, just use the instructions on but replace "stable" by "unstable". You should end up with a stable version.

To test the upgrade, create a new VM, install normally with the instructions, then replace stable by unstable in your lists (/etc/apt/), and run

apt update && apt full-upgrade

It should ask you if you want to upgrade Aegir3. Say yes and make sure there are no errors.

If you don't encounter errors in this procedure, you're good to go.

9. Publish the Debian packages

Finally, when the Debian packages are tested you will need to pull them into the stable release channel:

We pull to stable (since the betas), manually:

sudo --login --user=reprepro
reprepro copy stable unstable aegir3
reprepro copy stable unstable aegir3-hostmaster
reprepro copy stable unstable aegir3-provision
reprepro copy stable unstable aegir3-cluster-slave

If CI has managed to build .debs and upload them before you've have a chance to pull them into testing/stable, you can manually remove them like so:

reprepro remove unstable aegir3-cluster-slave aegir3 aegir3-provision aegir3-hostmaster

You can then re-upload the new .debs you've generated, using the '-f' (force) flag:

dput -f aegir build-area/aegir2-provision_2.3_amd64.changes

After doing that, you can re-run the 'copy' commands to publish the .debs to the appropriate releases.

10. Push the revert commit

This is the final step in the script.

11. Create a specific Docker file

This step is optional as the project hasn't been maintained lately, and folks haven't complained.

Create a new file like releases/Dockerfile-3.11 in the dockerfiles repo. Then create a build for it on:

12. Publish the release notes widely

Once all this is done and the tarballs are generated, the release notes are published in:

Optionally, blog posts on,, and elsewhere may go into further detail about significant changes, screencasts etc.

13. Debian repository management

The repo is managed with a tool called reprepro. Gitlab scp's to /var/www/repos/incoming/ on the repo server. It has an ssh key stored as a secret variable.

On the repo server incrond waits for new files and trigers reprepro using /usr/local/bin/reprepro_process_incomming for them.