Release Notes Contributor Guide

Release notes for StarlingX projects are managed using Reno allowing release notes go through the same review process used for managing code changes. Release documentation information comes from YAML source files stored in the project repository, that when built in conjunction with RST source files, generate HTML files. More details about the Reno Release Notes Manager can be found at: https://docs.openstack.org/reno

Locations

StarlingX release notes documentation exists in the following projects:

Directory structures

The directory structure of release documentation under each StarlingX project repository is fixed. This example shows the stx-confi project:

releasenotes/
├── notes
│   └── release-summary-6738ff2f310f9b57.yaml
└── source
    ├── conf.py
    ├── index.rst
    └── unreleased.rst

The initial modifications and additions to enable the API Documentation service in each StarlingX project are as follows:

.gitignore

Modifications to ignore the building directories and HTML files for the release notes.

.zuul.yaml

Modifications to add jobs to build and publish the api-ref document.

releasenotes/notes

Directory created to store your release notes files in YAML format.

releasenotes/source

Directory created to store your API reference project directory.

releasenotes/source/conf.py

Configuration file to determine the HTML theme, Sphinx extensions, and project information.

releasenotes/source/index.rst

Source file to create your index RST source file.

releasenotes/source/unrelased.rst

Source file to avoid breaking the real release notes build job on the master branch.

doc/requiremets.txt

Modifications to add the os-api-ref Sphinx extension.

tox.ini

Modifications to add the configuration to build the API reference locally.

See stx-config [Doc] Release Notes Management as an example of this first commit: https://review.opendev.org/#/c/603257/

Once the Release Notes Documentation service has been enabled, you can create a new release notes.

Release notes files

The following shows the YAML source file for the stx-config project:

Release Summary R1.0

stx-config/releasenotes/
├── notes
│   └── release-summary-6738ff2f310f9b57.yaml

To create a new release note that documents your code changes via the tox newnote environment:

$ tox -e newnote hello-my-change

A YAML source file is created with a unique name under releasenote/notes/ directory:

stx-config/releasenotes/
├── notes
│   ├── hello-my-change-dcef4b934a670160.yaml

The content is grouped into logical sections based in the default template used by reno:

features
issues
upgrade
deprecations
critical
security
fixes
other

Modify the content in the YAML source file based on reStructuredText format.

Developer workflow

  1. Start common development workflow to create your change: “Hello My Change”.

  2. Create its release notes, no major effort since title and content might be reused from the Git commit information.

  3. Add your change including its release notes and submit for review.

Release team workflow

  1. Start development work to prepare the release. This might include a Git tag.

  2. Generate the Reno Report.

  3. Add your change and submit for review.