Terminology
- Release: A tagged release which is visible in git as tag and in github as release
- Hotfix: same as a release but modifies a single master version without side effects
- Release branch: a branch in a repository, based on develop.
Dependency tree
Release procedure
- Repository R needs to release a new version V The name of the release branch is “R-vV” pyprecice-v3.1.2.1
- Prepare the release in the branch (bump version etc)
- Find R in the dependency tree and the subtree with root R
- Every R’ in subtree (R != R) needs to create a release branch with the name deduced above. The branch should be based on develop of the repository R’. The base commit of the release branch is the last commit to be released (feature freeze).
- Run systemtests with the subtree of R using release branches and the rest using
- develop (do all the develop versions still work together)
- master (do all the releases still work together)
- Make sure everything is working
- Release from R down to the leaves of the dependency tree if necessary.
Hotfix procedure
- Repository R needs to release a new version V The name of the release branch is “R-vV” pyprecice-v3.1.2.1
- Prepare the release in the branch (bump version etc)
- Find R in the dependency tree
- Run systemtests with R using release branches and the rest using master
- Make sure everything is working
- Release R
Release schedule
The core library repository follows semantic versioning.
We group together breaking changes and release a new breaking (major) version as needed. There is no fixed schedule for major releases, and we take time to ensure that no further breaking changes are needed soon after. This aims to give time and motivation to users to adopt new versions, and spreads the effort of preparing a release over a longer period of time.
We aim for feature releases twice per year, so that new features can be continuously shipped to new users, but we again don’t get overly burdened by the release process, and feature releases maintain their significance. We define a feature freeze date (date after which no new feature contributions can be merged to the release branch) and a release date (date of merging the release branch to the main branch and tagging the release). Since most of the development happens in universities, we align these dates with the lecture-free periods between semesters in these universities:
- spring release: feature freeze on March 20 at 23:59 CET, release as soon as possible in April
- fall release: feature freeze on September 20 at 23:59 CET, release as soon as possible in October
Bugfix releases are allowed at any time and any frequency.
Umbrella / distribution
- twice per year, following the preCICE feature releases.
- last precice/precice release branch (off every repo) + concrete solver versions.
- Forms the base of the Vagrant box
Example
Goal: Release pyprecice version 1.2.3
.
Root repository: precice/pyprecice
Name of release branch: pyprecice-v1.2.3
- Create branch
pyprecice-v1.2.3
fromprecice/pyprecice:develop
- Prepare the release (bump version etc)
- Create branch
pyprecice-v1.2.3
in repositories:a
,b
- Run systemtests and fix errors until none appear
- for develop version
- for master version
- Release the repositories if required.