blob: 3115b6d071f9dc8dcdf90464b942d8e9eb57c101 [file] [log] [blame] [view]
David Brownc3370252017-09-12 10:36:19 -06001# Release Process
2
3The following documents the release process used with mcuboot.
4
5## Version numbering
6
7MCUboot uses [semantic versioning][semver], where version numbers
8follow a MAJOR.MINOR.PATCH format with the following guidelines on
9incremeting the numbers:
10
111. MAJOR version when you make incompatible API changes,
122. MINOR version when you add functionality in a backwards-compatible
13 manner, and
143. PATCH version when you make backwards-compatible bug fixes.
15
16We add pre-release tags of the format MAJOR.MINOR.PATCH-rc1.
17
Andrzej Puzdrowskidfc7c5f2020-10-30 12:17:59 +010018We mark in documentation an MCUBoot development version using
19the format MAJOR.MINOR.PATCH-dev.
20
David Browna3032912017-09-12 12:07:45 -060021## Release Notes
22
23Before making a release, be sure to update the `docs/release-notes.md`
24to describe the release. This should be a high-level description of
25the changes, not a list of the git commits.
26
David Brownc3370252017-09-12 10:36:19 -060027## Release Candidates
28
29Prior to each release, tags are made (see below) for at least one
30release candidate (a.b.c-rc1, followed by a.b.c-rc2, etc, followed by
31the official a.b.c release). The intent is to freeze the code for a
32time, and allow testing to happen.
33
34During the time between rc1 and the final release, the only changes
35that should be merged into master are those to fix bugs found in the
Fabio Utzige1727d92019-04-18 17:33:16 -030036rc and Mynewt metadata as described in the next section.
37
Fabio Utzigc7fe3b02019-10-10 07:35:40 -030038## imgtool release
39
40imgtool is released through pypi.org (The Python package index) and
41requires that its version to be updated by editing
42`scripts/imgtool/__init__.py` and modifying the exported version:
43
44`imgtool_version = "X.Y.ZrcN"`
45
46where `rcX`, `aX` and `bX` are accepted pre-release versions (just
47numbers for final releases). For more info see:
48
49https://www.python.org/dev/peps/pep-0440/#pre-releases
50
Fabio Utzige1727d92019-04-18 17:33:16 -030051## Mynewt release information
52
53On Mynewt, `newt` always fetches a versioned MCUBoot release, so after
54the rc step is finished, the release needs to be exported by modifying
55`repository.yml` in the root directory; it must be updated with the
56new release version, including updates to the pseudo keys
Fabio Utzig20e747c2020-01-24 09:55:27 -030057(`*-(latest|dev)`).
David Brownc3370252017-09-12 10:36:19 -060058
59## Tagging and Release
60
61To make a release, make sure your local repo is on the tip version by
62fetching from origin. Typically, the releaser should create a branch
63named after the particular release.
64
65Create a commit on top of the branch that modifies the version number
66in the top-level `README.md`, and create a commit, with just this
67change, with a commit text similar to “Bump to version
68a.b.c”. Having the version bump helps to make the releases
69easier to find, as each release has a commit associated with it, and
70not just a tag pointing to another commit.
71
72Once this is done, the release should create a signed tag:
73``` bash
74git tag -s va.b.c-rcn
75```
76with the appropriate tag name. The releaser will need to make sure
77that git is configured to use the proper signing key, and that the
78public key is signed by enough parties to be trusted.
79
80At this point, the tag can be pushed to github to make the actual
81release happen:
82``` bash
David Browna3032912017-09-12 12:07:45 -060083git push origin HEAD:refs/heads/master
David Brownc3370252017-09-12 10:36:19 -060084git push origin va.b.c-rcn
85```
86
Andrzej Puzdrowskidfc7c5f2020-10-30 12:17:59 +010087## Post release actions
88
89Mark the MCUBoot version as a development version. The version number used
90should be specified for the next expected release.
91It should be larger than the last release version by incrementing the MAJOR or
92the MINOR number. It is not necessary to define the next version precisely as
93the next release version might still be different as it might be needed to do:
94
95- a patch release
96- a MINOR release while a MAJOR release was expected
97- a MAJOR release while a MINOR release was expected
98
99
David Brownc3370252017-09-12 10:36:19 -0600100[semver]: http://semver.org/