| 1 |
.. _adding_release_notes: |
| 2 |
|
| 3 |
Release Notes |
| 4 |
============= |
| 5 |
|
| 6 |
What are release notes? |
| 7 |
~~~~~~~~~~~~~~~~~~~~~~~ |
| 8 |
|
| 9 |
Release notes are important for change management within manila. Since manila |
| 10 |
follows a release cycle with milestones, release notes provide a way for the |
| 11 |
community and users to quickly grasp what changes occurred within a development |
| 12 |
milestone. To the OpenStack release management and documentation teams, |
| 13 |
release notes are a way to compile changes per milestone. These notes are |
| 14 |
published on the `OpenStack Releases website <http://releases.openstack.org>`_. |
| 15 |
Automated tooling is built around ``releasenotes`` and they get appropriately |
| 16 |
handled per release milestone, including any back-ports to stable releases. |
| 17 |
|
| 18 |
What needs a release note? |
| 19 |
~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 20 |
|
| 21 |
* Changes that impact an upgrade, most importantly, those that require a |
| 22 |
deployer to take some action while upgrading |
| 23 |
|
| 24 |
* A new feature is implemented |
| 25 |
* An existing feature is deprecated |
| 26 |
* An existing feature is removed |
| 27 |
* Behavior of an existing feature has changed in a discernible way to an end |
| 28 |
user or administrator |
| 29 |
* A security bug is fixed |
| 30 |
* New configuration option is added |
| 31 |
|
| 32 |
What does not need a release note? |
| 33 |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 34 |
|
| 35 |
* A code change that doesn't change the general behavior of any |
| 36 |
feature such as code refactor or logging changes. One case of this could be |
| 37 |
the removal of the python 2.x compatibility layer, i.e., the "six" library |
| 38 |
from code. |
| 39 |
* Functional or unit test coverage enhancement |
| 40 |
* Any change submitted with a justified TrivialFix flag added in the commit |
| 41 |
message |
| 42 |
* Adding or changing documentation within in-tree documentation guides |
| 43 |
|
| 44 |
How do I add a release note? |
| 45 |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 46 |
|
| 47 |
We use `Reno <https://docs.openstack.org/reno/latest/>`_ to create and manage |
| 48 |
release notes. The new subcommand combines a random suffix with a "slug" value |
| 49 |
to make the new file with a unique name that is easy to identify again later. |
| 50 |
To create a release note for your change, use: |
| 51 |
|
| 52 |
.. code-block:: console |
| 53 |
|
| 54 |
$ reno new slug-goes-here |
| 55 |
|
| 56 |
If reno is not installed globally on your system, you can use a tox |
| 57 |
environment in manila: |
| 58 |
|
| 59 |
.. code-block:: console |
| 60 |
|
| 61 |
$ tox -e newnote -- slug-goes-here |
| 62 |
|
| 63 |
.. note:: |
| 64 |
|
| 65 |
When you are adding a bug-fix reno, name your file using the template: |
| 66 |
"bug-<launchpad-bug-id>-slug-goes-here". |
| 67 |
|
| 68 |
Then add the notes in ``yaml`` format in the file created. Pay attention to the |
| 69 |
type of section. The following are general sections to use: |
| 70 |
|
| 71 |
prelude |
| 72 |
|
| 73 |
General comments about the change. The prelude from all notes in a |
| 74 |
release are combined, in note order, to produce a single prelude |
| 75 |
introducing the release. |
| 76 |
|
| 77 |
features |
| 78 |
|
| 79 |
New features introduced |
| 80 |
|
| 81 |
issues |
| 82 |
|
| 83 |
A list of known issues with respect to the change being introduced. For |
| 84 |
example, if the new feature in the change is experimental or known to not |
| 85 |
work in some cases, it should be mentioned here. |
| 86 |
|
| 87 |
upgrade |
| 88 |
|
| 89 |
A list of upgrade notes in the release. Any removals that affect upgrades are |
| 90 |
to be noted here. |
| 91 |
|
| 92 |
deprecations |
| 93 |
|
| 94 |
Any features, APIs, configuration options that the change has deprecated. |
| 95 |
Deprecations are not removals. Deprecations suggest that there will be |
| 96 |
support for a certain timeline. Deprecation should allow time for users |
| 97 |
to make necessary changes for the removal to happen in a future release. |
| 98 |
It is important to note the timeline of deprecation in this section. |
| 99 |
|
| 100 |
critical |
| 101 |
|
| 102 |
A list of *fixed* critical bugs (descriptions only). |
| 103 |
|
| 104 |
security |
| 105 |
|
| 106 |
A list of *fixed* security issues (descriptions only). |
| 107 |
|
| 108 |
fixes |
| 109 |
|
| 110 |
A list of other *fixed* bugs (descriptions only). |
| 111 |
|
| 112 |
other |
| 113 |
|
| 114 |
Other notes that are important but do not fall into any of the given |
| 115 |
categories. |
| 116 |
|
| 117 |
:: |
| 118 |
|
| 119 |
--- |
| 120 |
prelude: > |
| 121 |
Replace this text with content to appear at the |
| 122 |
top of the section for this change. |
| 123 |
features: |
| 124 |
- List new features here, or remove this section. |
| 125 |
issues: |
| 126 |
- List known issues here, or remove this section. |
| 127 |
upgrade: |
| 128 |
- List upgrade notes here, or remove this section. |
| 129 |
deprecations: |
| 130 |
- List deprecation notes here, or remove this section |
| 131 |
critical: |
| 132 |
- Add critical notes here, or remove this section. |
| 133 |
security: |
| 134 |
- Add security notes here, or remove this section. |
| 135 |
fixes: |
| 136 |
- Add normal bug fixes here, or remove this section. |
| 137 |
other: |
| 138 |
- Add other notes here, or remove this section. |
| 139 |
|
| 140 |
|
| 141 |
Dos and Don'ts |
| 142 |
~~~~~~~~~~~~~~ |
| 143 |
* Release notes need to be succinct. Short and unambiguous descriptions are |
| 144 |
preferred |
| 145 |
* Write in past tense, unless you are writing an imperative statement |
| 146 |
* Do not have blank sections in the file |
| 147 |
* Do not include code or links |
| 148 |
* Avoid special rst formatting unless absolutely necessary |
| 149 |
* Always prefer including a release note in the same patch |
| 150 |
* Release notes are not a replacement for developer/user/admin documentation |
| 151 |
* Release notes are not a way of conveying behavior of any features or usage of |
| 152 |
any APIs |
| 153 |
* Limit a release note to fewer than 2-3 lines per change per section |
| 154 |
* OpenStack prefers atomic changes. So remember that your change may need the |
| 155 |
fewest sections possible |
| 156 |
* General writing guidelines can be found |
| 157 |
`here <https://docs.openstack |
| 158 |
.org/doc-contrib-guide/writing-style/general-writing-guidelines.html>`_ |
| 159 |
* Proofread your note. Pretend you are a user or a deployer who is reading |
| 160 |
the note after a milestone or a release has been cut |