Preamble: This document covers steps for releasing new versions of MusicBrainz Server which is performed by maintainers only. It includes discussion about private servers, repositories and tools which other contributors don’t have access to. It is made public for transparency and to allow for improvement suggestions.
-
Perl module Locale::PO
For updating translations, also part of
production
server features incpanfile
. -
Transifex client
See the section “Translations” of the installation documentation.
See the private system administration wiki for additional prerequisites.
Assuming the source messages were updated when releasing beta (if not, see that under the beta process below first!), you need to start by updating the translated messages:
- Run
./po/update_translations.sh --commit
to download the latest .po files from Transifex and commit them to thebeta
branch.
-
Merge
beta
toproduction
(git merge --log=876423 --no-ff beta
) and push. Wait until CircleCI and Jenkins (Selenium) are happy with this merge. -
Merge
production
tomaster
(git merge --log=876423 --no-ff production
) and push.
Then, you must build new MusicBrainz Server Docker images from Jenkins:
-
Go to https://ci.metabrainz.org/job/musicbrainz-docker-images/
-
“Build with Parameters” (in the left), and enter
production
for IMAGE_BRANCH.
A build can take some time (from a few minutes to half an hour). Once the image is built you can begin the deployment.
Because any deployment may cause issues for MusicBrainz users and MetaBrainz staff, each deployment should be announced through the IRC channel and the website’s banner.
MusicBrainz servers are being updated, slowdowns may occur for a few minutes, thanks for your patience.
See the private system administration wiki for instructions.
Then unset the banner message on the main website and set the banner message on beta to
Beta website is currently the same as the main website, nothing to be tested for now.
Now that you have done the release, you will need to update Jira:
-
Make sure a new release version is present in the Jira project administration panel.
-
Close all tickets
status = "In Beta Testing" and project = MBS
as "Fixed." -
Make sure all the tickets have a type that makes sense, enough information to be understandable, and the appropriate components set.
-
Release the current version. All open tickets should be moved to the next version.
-
Archive any previous versions still marked as "Released", except for the latest schema change release.
Create a new draft from the template. The list of tickets can be copied from the auto-generated release notes, by going to the Releases tab, selecting the version you just released, and clicking “Release Notes” in the top.
Move sub-tasks of MBS-8609 to the “React Conversion Task” section at the end, and move other sub-tasks under the “Other Task” section (rename to just “Task” if there are no React conversion tasks in this release).
Thank reporters of each addressed issue at least, and every other contributor/tester/translator if possible, but contractors.
Once the draft has been reviewed, publish it, then update the description of the Jira version with the blog post URL.
You should tag production releases by using ./script/tag.sh
, which will ask you
the necessary questions. Skip this step if you're releasing beta or test.
-
Update the current MB version in the musicbrainz-docker repository. See example commit https://github.com/metabrainz/musicbrainz-docker/commit/83da2d3602030da9596a8899513ccda11498f077.
-
Tag the release (
git tag -u CE33CF04 $version_number -m 'Upgrade MusicBrainz Server.'
) and push. -
Do a git release of name
$version_number
(copy the structure from previous releases). -
Release the appropriate Jira version; as its description, set the git release URL (https://github.com/metabrainz/musicbrainz-docker/releases/tag/$version_number). Archive the previous non-schema change releases, if not yet archived. Create a new version for the next expected release, with the description "next release".
-
Edit the blog post to link to the new musicbrainz-docker release.
It has some differences with the production release process; follow these steps:
-
On the translations update step, do not just update translated messages, also update source messages for translation. This involves four steps:
-
Run
./po/update_translations.sh --commit
to download the latest .po files from Transifex and commit them to themaster
branch -
Run
./po/update_pot.sh
to generate new .pot files from the database and templates. It's often a good idea to manually check the changes to the .pot files: this is a good moment to find typos that were missed during code review, or small changes to lines that don't seem useful enough to justify breaking the existing translations. If you find any of these, you might want to correct the issues and generate the files again. Once you're done, commit the changes. -
Push the
.pot
files generated in step 2 to Transifex. To push only the ones that changed, give a comma-separated list:cd po/ tx push -s -r musicbrainz.server,musicbrainz.instruments
If you want to push languages, keep in mind you need to push
musicbrainz.languages-9
(notmusicbrainz.languages
). -
Push the commits from steps 1 & 2 to
master
.
-
-
On the git branches merge step, to update the
beta
branch with the changes from themaster
branch, mergemaster
intobeta
(withgit merge --log=876423 --no-ff master
) and push tobeta
. (Skip this, of course, if you're just deploying changes pushed directly to thebeta
branch.) -
On the build Docker images step, enter
beta
for IMAGE_BRANCH when doing “Build with Parameters”. Wait until the build has completed. -
On the deployment’s announcement step, set the banner message on beta to
Beta website is being updated, slowdowns may occur for a few minutes, thanks for your patience.
-
On the deployment step itself, run
./script/update_containers.sh beta
. Wait until the deployment has completed.Notes:
- Background task runners follow the
production
branch only, which means that new reports are not available on the beta website for now. - The banner’s website is updated only after updating tickets; see below.
- Background task runners follow the
-
On the Jira step, set all the tickets
status = "In Development Branch" and project = MBS
as status "In Beta Testing." For tickets which fixed a beta-only issue not present in production, close the ticket as fixed and set the fix version to "Beta." Make sure all the tickets have a type that makes sense, enough information to be understandable, and the appropriate components set.Notes: None of the following steps are involved in releasing beta:
- Blog
- Add git tag
- Release
musicbrainz-docker
-
Again, set the banner message on beta to
Beta MusicBrainz Server has been updated on Month DD, see the list of <a href="https://tickets.metabrainz.org/issues/?filter=10715">tickets available for beta testing</a>.
Unlike production and beta, test is more flexible:
- The
test
branch is not protected and can be force-pushed, but you should always check with the other developers to make sure they are not currently using it. - The
test.musicbrainz.org
website does not use the production database, which means that background tasks can be tested too and that potential data loss is not an issue, but it might require to recreate the test database for schema changes.
-
Skip the translations; and instead of merging branches do as follows:
- Either cherry-pick the commits you want to test to the
test
branch and push; - Or reset the
test
branch to the branch you want to test and force-push.
- Either cherry-pick the commits you want to test to the
-
Then on the build Docker images step, enter
test
for IMAGE_BRANCH when doing “Build with Parameters”. -
On the deployment step, just run
./script/update_containers.sh test
. Note that only webservice and website can be deployed in test, but background tasks can be manually run from these if needed.