This page documents the release process for MariaDB.

Release Steps

  1. Developers commit fixes/features/etc into the appropriate tree until Buildbot looks OK (as determined by the Release Coordinator)
  1. The Builbot buildslaves build packages and the Release Coordinator informs the Release Manager
  1. Buildbot builds the packages and when they are ready, or nearly ready, the Release Coordinator notifies the following of the tree, revision, and build number (tarbuildnum, see Note 7, below):
    1. The Release Manager (dbart or sunanda)
    2. The Maria Docs team (maria-docs [at] lists (dot) launchpad (dot) net)
    3. The Maria Dev team (maria-developers [at] lists (dot) launchpad (dot) net)
    4. The community team (community [at] mariadb (dot) org)
  1. The Release Manager logs in to the buildmaster and runs the prep script. This script is found in the mariadb-tools repo (lp:mariadb-tools) on launchpad under the the release/ directory. It prepares the release directory which contains the generic Linux binaries, the Windows builds, and the YUM and APT repositories. Notes 5 and 6 describe the basic process for creating repositories, but the script handles the creation automatically.

Run the script with the -h flag to see the various options. A typical run of the script looks like the following:

~/src/mariadb-tools/release/prep -yl \
  -t 10.0 -v 10.0.20 -b 8266 \
  -r a6087e7dc1ef3561d8189c8db15e9591d0f9b520

The script relies on a configuration file being present in the home directory: /.prep.conf. This file will be created if it doesn't exist, but it won't have the correct values. An admin can give you a copy of file with the correct configuration values set.

After the prep script is run, and if this is not an MGC or 10.1+ release, the galera-old script must be edited and run. There are plans in place for this script to be called automatically by the prep script when needed, but it hasn't happened yet. The purpose of this script is to copy in MariaDB Galera Server packages from the previous MariaDB release.

Note: For MariaDB Galera Cluster releases:ls dbart/.prep.conf

  1. There are some special options in the prep script for galera, when they are set certain things, such as renaming the source tar.gz file to have '-galera' in the name, are done automatically.
  2. If the galera package has been updated, the MariaDB Galera dev team will provide new galera packages. These must be added to the galera folder in their own galera-<version> subfolder, and the prep-release script must be updated accordingly.
  1. Once the prep script is finished, files are uploaded to osuosl (an example command is given on the command-line when the script finishes) then a trigger script is run on the osuosl server to push the new files out to the public server:
    ./trigger-mariadb
  1. Packages get uploaded to mirrors automatically depending on when they next pull from the osuosl mirror.
  1. The Release Manager imports the new release into the MariaDB Download system
  1. The Docs team fills in, edits, and finishes the release notes and changelog pages and removes the unreleased template (if it is there) about the information on the page being about an unreleased version
  1. The Docs team creates release notes and changelog pages for the next release (so that the developers can fill them in as they work on the release)
    • The unreleased banner should be placed on these pages to let users know that the information on the page is about an unreleased version. The creole syntax for including the template is: <<include slug="unreleased">>
  1. The Docs team preps updates to other documentation as necessary
    • Check with the Release Coordinator to see if there are any new features that should be added to the series pages (links below)
  1. The Release Coordinator (or the Release Manager) adds a release tag to the release tree (e.g. mariadb-10.1.4 for the 10.1.4 release, see Note 1, below, for sample command lines).
  1. Once all packages have been mirrored, the Release Manager activates the new release on the MariaDB Downloads page and activates any other documentation changes/additions
    • Use the "Check Mirrors" feature of the downloads system to check if the files are fully mirrored.
  1. If this is a MariaDB 5.3 release, copy the CentOS 5 MariaDB-shared-5.3 rpms (x86_64 and i386) over to /media/backup/archive/rpm/ on hasky and update the sym-links in that folder to point at them.
  1. Check the MariaDB Deprecation Policy page to see if this will be the last release for any platforms. Be sure to mention them in the Release Notes and in the Announce emails. Update the page as necessary. After the release is out, edit the buildbot config to turn them off. Do not remove the VMs.
  1. Announce the release
    1. Consolidate release announcements when possible (e.g. one release email for a set of 5.1/5.2/5.3 releases in a single week).
    2. The Docs team updates (if applicable):
      1. the applicable "What is MariaDB x.x" page with the new version
    3. Update the 'latest' template for the release, and include it at the top of the previous release's release notes page (e.g. with '<<include slug="latest-55">>'):
    4. An IRC op (dbart, etc...) updates the topic in #maria (if release is the current stable)
    5. The community team announces the release on the announce and maria-discuss mailing lists, and via blogs and other methods (e.g. Facebook, Twitter, Google+, & LinkedIn)
    6. For major releases, send the release announcement through PR Newswire (Colin does this now)

Notes

Note 1: Tagging releases

  1. bzr: Here is an example bzr command line to make the tag:
bzr tag --revision=3402 --directory=lp:~maria-captains/maria/5.3 mariadb-5.3.4
  1. git: Here is an example git command line to make the tag:
git tag <tagname> <commit-hash> ; git push origin <tagname>

Note 2: Creating md5sums

Here are the commands I (Daniel) use to create the md5sums of a release:

cd /path/to/dir/with/releases/
release='mariadb-5.2.1-beta'
for dir in $(find ${PWD}/${release} -type d); do echo; echo ${dir};cd ${dir};md5sum *;echo;echo;done

Note 3: Obtaining info for Changelog and Release Notes (BZR):

A raw log of all changes can be obtained from bzr as follows:

sourcedir="5.1"
oldrelease="mariadb-5.1.44b"
newrelease="mariadb-5.1.47"
bzr branch --no-tree -rtag:${oldrelease} ${sourcedir} ${oldrelease}
bzr branch --no-tree -rtag:${newrelease} ${sourcedir} ${newrelease}
cd ${newrelease}/
bzr missing --kb-short --include-merged ../${oldrelease} > /tmp/short.txt
bzr missing --kb-long --include-merged ../${oldrelease} > /tmp/long.txt

Assuming that you have kbchangelog bzr plugin, this will generate a list of changes that uses Wiki Creole syntax and is ready to be pasted into the corresponding Changelog page. It might need a little bit of manual polishing, though. if there is no ${oldrelease} then do the following:

cd ${newrelease}/
bzr log --kb-short --include-merged >  /tmp/short.txt
bzr log --kb-long --include-merged >  /tmp/long.txt

Note 4: Obtaining info for Changelog and Release Notes (Git):

A raw log of all changes can be obtained from git as follows:

#------------------------------------------------------------------------------
# Prep (only done once):
#------------------------------------------------------------------------------
cd ~/src/mariadb
git clone git@github.com:MariaDB/server.git
cd server
git remote add mysql https://github.com/mysql/mysql-server
git remote add tokudb-engine   https://github.com/Tokutek/tokudb-engine
git remote add tokudb-ft-index https://github.com/Tokutek/ft-index
git fetch --all --tags
git replace 2a15820e1e 7c240a1b99
git replace 906c8b2794 068416d302
git replace efb32d4644 9cd31bc559
git replace fa7b0180f5 0773c7f422
#------------------------------------------------------------------------------
# Done every time:
#------------------------------------------------------------------------------
product=mariadb # or mariadb-galera
major=10.1
minor=2 # minor version of *previous* release
tree=${major} # sometimes different e.g. 10.0-galera
cd ~/src/mariadb/server
git checkout ${tree}
git fetch --all --tags
git log ^mysql/5.5 ^tokudb-engine/releases/tokudb-7.5 ^tokudb-ft-index/releases/tokudb-7.5 --pretty=format:"* gitrev:%h%n<<style class=\"datetime\">>%ai<</style>>%n** %s" ${product}-${major}.${minor}.. > tmp.creole
#------------------------------------------------------------------------------
# old commands
#------------------------------------------------------------------------------
# second version with merges
git log ^mysql/5.5 ^tokudb-engine/releases/tokudb-7.5 ^tokudb-ft-index/releases/tokudb-7.5 --no-merges --pretty=format:"* gitrev:%h%n<<style class=\"datetime\">>%ai<</style>>%n** %s" ${product}-${major}.${minor}.. > tmp.creole
# first version of command
git log --first-parent --pretty=format:"* gitrev:%h%n<<style class=\"datetime\">>%ai<</style>>%n** %s" 0f64a92..fdd6c11 > tmp.creole

In the 'old command' example above, 0f64a92..fdd6c11 is the range of the changelog being generated with 0f64a92 being the last revision of the old MariaDB release (5.5.41 in the example) and fdd6c11 being the newest revision in the changelog for the current MariaDB release (5.5.42 in the example).

Note 5: Creating Debian and Ubuntu Repositories:

This note is obsolete. It is being preserved here purely for historical purposes.

Prior to doing this, branch mariadb-tools from Launchpad:

bzr branch lp:mariadb-tools/trunk mariadb-tools

(or update a previously branched copy with "bzr pull").

  1. Copy the build over to a working directory.
  1. Run the following commands:
mkdir repo
cd repo
eval $(gpg-agent --daemon)
path/to/mariadb-tools/buildbot/mkrepo-debian.sh debian path/to/build-buildnum
path/to/mariadb-tools/buildbot/mkrepo-ubuntu.sh ubuntu path/to/build-buildnum
cd ../
  1. On the osuosl mirror, move the old repo/5.x dir and upload the new repo to repo/5.x
scp -r repo osuosl:data/repo/5.2
  1. Clean up your working directory by removing the local repo and build-### directories

Note 6: Signing RPM Packages and Creating the YUM repositories:

This note is obsolete. It is being preserved here purely for historical purposes.

  1. Prior to beginning, ensure that you have a .rpmmacros file with the following contents (replace '<keyname>' with the actual key name):
%_signature gpg
%_gpg_path ~/.gnupg
%_gpg_name <keyname>
%_gpgbin /usr/bin/gpg
  1. Create a directory for the files based on the major.minor release numbers (for example: 5.5)
  1. cd into the directory
  1. run the mkrepo-yum.sh script:
path/to/mariadb-tools/buildbot/mkrepo-yum.sh path to build-tarbuildnum

For 5.1, 5.2, 5.3 releases, you will have to temporarily change the script to just process centos5 and rhel5. Fedora, centos6, and rhel6 only support 5.5 and above. Be sure to revert your changes after running the script.

  1. at certain points while the script runs you will be prompted for the signing key password
  1. Upload the files to the primary mirror:
release="mariadb-5.5.24"
for dir in $(ls);do
  rsync -avP ${dir} osuosl:data/${release}/
done
  1. Upload the files to the YUM repo server:
version="5.5"
for dir in $(ls);do
  rsync -avP ${dir} yum-repo-server:${version}/
done
  1. Once uploaded, ssh to the yum repo server and move the files to their proper location, replacing the previous repo ${releasenum} dir.

Note 7: Determining build numbers for releases:

Build numbers come from Buildbot. To get the build number for a specific buid, e.g. for MariaDB 10.1 builds:

  1. Look at the columns here. The headers across the top list the branch (10.1 in this case) and the revision hashes for the last few builds.
  1. Pick the column that corresponds to the revision hash with the with the correct release tag
  1. Select one of the builds in the correct column and look for the property "tarbuildnum". This is the build-### directory you want.

Comments

Comments loading...