The CHT Core Framework makes it faster to build responsive, offline-first digital health apps that equip health workers to provide better care in their communities. It is a central resource of the Community Health Toolkit.
[x] Create a GH Milestone for the release. We use semver so if there are breaking changes increment the major, otherwise if there are new features increment the minor, otherwise increment the service pack. Breaking changes in our case relate to updated software requirements (egs: CouchDB, node, minimum browser versions), broken backwards compatibility in an api, or a major visual update that requires user retraining.
[ ] Add all the issues to be worked on to the Milestone. Ideally each minor release will have one or two features, a handful of improvements, and plenty of bug fixes.
[ ] Identify any features and improvements in the release that need end-user documentation (beyond eng team documentation improvements) and create corresponding issues in the cht-docs repo.
[x] Assign an engineer as Release Engineer for this release.
Development - Release Engineer
When development is ready to begin one of the engineers should be nominated as a Release Engineer. They will be responsible for making sure the following tasks are completed though not necessarily completing them.
[x] Checkout to a new <issue>-update-version branch (eg: 1234-update-version) and set the version number in the package.json and package-lock.json. The easiest way to do this is to use npm --no-git-tag-version version <major|minor>. Once the version is updated, submit a PR to master branch.
[x] Ensure that issues associated with commits merged to master since the last release are closed and mapped to the milestone.
Releasing - Release Engineer
Once the PR has been merged into master, and the master branch has the new version number, then the release process can start:
[x] Create a new release branch from master named <major>.<minor>.x in cht-core. Post a message to #development Slack channel using this template:
@channel I've just created the `<major>.<minor>.x` release branch. Please be aware that any further changes intended for this release will have to be merged to `master` then backported. Thanks!
[x] Build a beta named <major>.<minor>.<patch>-beta.1 by creating a lightweight git tag (e.g. git tag <major>.<minor>.<patch>-beta.1) and then push the created tag.
[x] Once the CI completes successfully notify the team by writing a message in the #development Slack channel:
@channel, I’ve just created the `<major>.<minor>.<patch>-beta.1` tag.
Please let me know if there’s any final update we need to make.
If all is good, then in 24h, I will start the release. Thanks!
[ ] The beta tag will automatically trigger the scalability build. Once it passes, download the scalability results on S3 at medic-e2e/scalability/$TAG_NAME. If you do not have access to the scalability results ask someone in the #product-team who has access. Add the release .json file to cht-core/tests/scalability/previous_results. More info in the scalability documentation.
[x] Go to the Issues tab and filter the issues with is:issue label:"Affects: 4.x.x" , replace 4.x.x with the previous version number. Add any open "known issues" from the prior release that were not fixed in this release. Done by adding the correct Affects: 4.x.x label.
[x] Create a new document for the release in the releases folder.
[x] Ensure all issues are in the GH Milestone, they have human readable descriptions, and that they're correctly labelled. In particular: they have one "Type" label, "UI/UX" if they change the UI, and "Breaking change" if appropriate.
[x] Use this script to export the issues into our release note format.
[x] Collect known migration steps, descriptions, screenshots, videos, data, and anything else to help communicate particularly important changes. This information should already be on the issue, but if not, prompt the change author to provide it.
[x] Document any required or recommended upgrades to our other products (eg: cht-conf, cht-gateway, cht-android).
[x] Add the release to the Supported versions and update the EOL date of the previous release. Update the status of any releases that are past their End Of Life date. Also add a link in the Release Notes section to the new release page.
[x] Create a new release in GitHub, with the naming convention <major>.<minor>.<patch>, from the release branch created above as the target branch. Click on the "Choose a tag" dropdown and create a tag for the release with the naming convention <major>.<minor>.<patch>. Ensure the release notes PR from above are merged. Add a link to the release notes in the description of the release.
[x] Once you publish the release, confirm the release build completes successfully and the new release is available on the market. Make sure that the document has new entry with id: medic:medic:<major>.<minor>.<patch>
[x] Upgrade the demo instance to the newly released version.
[x] Use cht-conf to upload the configuration from the cht-core/config/demo folder to the demo-cht.dev server.
[x] Announce the release on the CHT forum, under the "Product - Releases" category using this template:
*We're excited to announce the release of {{version}} of {{product}}*
See below for some highlights, read the release notes for full details.
Following our support policy, versions {{versions}} are no longer supported. Projects running these versions should start planning to upgrade in the near future. For more details read our software support documentation.
Check out our roadmap to see what else is currently being working on.
{{version}} Highlights
[{{Highlight 1}}]({{}})
{{description of highlight section}}
[{{Highlight 2}}]({{}})
{{description of highlight section}}
[And more...]({{paste-url to section}})
We’ve also implemented loads of other improvements and fixed a heap of bugs.
- [x] Add one last update to the #product-team Slack channel and use the thread to lead an internal release retrospective covering what went well and areas to improve for next time.
- [x] Mark this issue "done" and close the Milestone.
Planning - Product Manager
Development - Release Engineer
When development is ready to begin one of the engineers should be nominated as a Release Engineer. They will be responsible for making sure the following tasks are completed though not necessarily completing them.
<issue>-update-version
branch (eg:1234-update-version
) and set the version number in thepackage.json
andpackage-lock.json
. The easiest way to do this is to usenpm --no-git-tag-version version <major|minor>
. Once the version is updated, submit a PR tomaster
branch.master
since the last release are closed and mapped to the milestone.Releasing - Release Engineer
Once the PR has been merged into
master
, and themaster
branch has the new version number, then the release process can start:master
named<major>.<minor>.x
incht-core
. Post a message to #development Slack channel using this template:<major>.<minor>.<patch>-beta.1
by creating a lightweight git tag (e.g.git tag <major>.<minor>.<patch>-beta.1
) and then push the created tag..json
file tocht-core/tests/scalability/previous_results
. More info in the scalability documentation.is:issue label:"Affects: 4.x.x"
, replace4.x.x
with the previous version number. Add any open "known issues" from the prior release that were not fixed in this release. Done by adding the correctAffects: 4.x.x
label.Release Notes
section to the new release page.<major>.<minor>.<patch>
, from the release branch created above as the target branch. Click on the "Choose a tag" dropdown and create a tag for the release with the naming convention<major>.<minor>.<patch>
. Ensure the release notes PR from above are merged. Add a link to the release notes in the description of the release.id: medic:medic:<major>.<minor>.<patch>
cht-core/config/demo
folder to thedemo-cht.dev
server.See below for some highlights, read the release notes for full details.
Following our support policy, versions {{versions}} are no longer supported. Projects running these versions should start planning to upgrade in the near future. For more details read our software support documentation.
Check out our roadmap to see what else is currently being working on.
{{version}} Highlights
[{{Highlight 1}}]({{}})
{{description of highlight section}}
[{{Highlight 2}}]({{}})
{{description of highlight section}}
[And more...]({{paste-url to section}})
We’ve also implemented loads of other improvements and fixed a heap of bugs.