-
-
Notifications
You must be signed in to change notification settings - Fork 111
Release workflow
While we are doing active development on a product, every evening we have an alpha master/nightly build. The nightly build simply takes the last successful alpha master build and publishes it to downloads.keyman.com as "alpha".
Before transitioning to beta or stable phase and announcing, an acceptance test must be performed according to the documented protocol for the platform. The protocol will be documented on this wiki.
When going into beta, make sure that the checklist in the Wiki is updated to reflect recent feature changes.
- Platform Acceptance Test for Android
- Platform Acceptance Test for Developer
- Platform Acceptance Test for iOS
- Platform Acceptance Test for Linux
- Platform Acceptance Test for Mac
- Platform Acceptance Test for Web
- Platform Acceptance Test for Windows
At a certain point, we will declare the alpha/nightly build to be approaching stability. At that point, we will fork to a new branch, e.g. beta
. At the same time, the minor version number on the master build will be incremented (or major number if we are doing a major increment), and the build number will be reset on master. Typically no new features will be accepted into the release branch, just bug fixes, but multiple betas may be released. The branch will fork again to stable-10.0
. After the fork to stable, the beta branch can be deleted, as no further work can be done in beta for that release.
Note for Android: In the Google Play Store console, deactivate the list of closed-alpha testers, leaving only the Placeholder
list. This way, Beta testers will not be served alpha versions during the beta phase.
The steps to move to beta, then, are:
-
Make sure the
master
branch is clean, up to date and ready to go (ideally all pull requests merged, etc). Make sure that the latest nightly is tested and working to an appropriate level. -
Ensure the changelog (
/HISTORY.md
) has all relevant change information for beta and stable. -
Freeze
master
branch so no one pushes to it (freeze can be either through technology or by communicating this to the team). -
Run the user test protocol against the
master
branch. -
Delete the existing
beta
branch on keymanapp/keyman repo (including unprotecting it as necessary). -
git checkout -b beta master
- Add an entry to HISTORY.md for the beta release
- Update TIER.md to
beta
- Increment VERSION.md
- Commit these three files
git push -u origin beta git checkout -b alpha master
-
Update
/VERSION.md
to the new version number, add and commit it. -
git push -u origin alpha
-
On GitHub, protect the
beta
branch; subsequent changes will be accepted via PR. -
Unfreeze
master
branch
Note: search, e.g. \b14\.0\b
and exclude: history.md,*.svg,*.dproj,package*.json,windows/src/ext/*,version.rc,manifest.xml
. This gives a reasonable list of files where version number may have crept in.
- Create a PR for
alpha
, merge it. This starts a x.y.1 alpha build for master.
Make sure the environment variable TIER
is correctly set on the build agent. (Refer to PR #1670 )
-
keyman.com/_includes/2020/KeymanVersion.php
: update stable and beta version numbers
Note: this should never be done with PRs in beta that have not been merged.
- Freeze the beta branch
- Add embargo.txt to the root of downloads.keyman.com to prevent the new version being publicised before it is all ready.
- Add stable-xx.0 trigger definitions to trigger-definitions.sh (e.g. see #6774)
-
git checkout -b stable-10.0 beta echo stable > TIER.md git commit ... git push origin stable-10.0
- Protect the branch in GitHub
- Trigger the stable build for the stable-x.y branch in TeamCity
- Once all builds have finished successfully, and you are ready to publicise, remove embargo.txt from downloads.keyman.com again
The following locations are API versions and should be adjusted with caution:
- Compiler.cpp VERSION_100 generation -> this is important to track because the versioning here is API level, not presentation.
- kmcomapi.ridl - API version, stick with 10.0 I think? --> this is important to track because again the versioning here is API level.
Jenkins must be updated to track the new stable-
branch. The Groovy scripts for configuring it are at
https://github.com/sillsdev/ci-builder-scripts with changes made via Gerrit. Follow CONTRIBUTING.md for setup. You will also need the following commit hook to push to Jenkins:
curl -Lo .git/hooks/commit-msg https://gerrit.lsdev.sil.org/tools/hooks/commit-msg
Note for the new stable-x branch, the regex in the /linux/*/debian/watch
files will need to be modified to only watch stable. Otherwise, the scripts will detect the latest beta versions first.