neutron/doc/source/contributor/policies/release-checklist.rst
Boden R fc6e9a71d8 add doc link validation to release checklist and tox
This patch updates our doc conf.py to support the linkcheck builder in
addition to adding a new 'linkcheck' target in tox to run the builder.
Also the release checklist is updated suggesting the linkcheck tox
target be run prior to a release.

Change-Id: Ia7c282b7331f0b624bb3324f27dfec223cf414f7
Closes-Bug: #1716005
2017-09-21 15:24:03 -06:00

5.2 KiB

Pre-release check list

This page lists things to cover before a Neutron release and will serve as a guide for next release managers.

Server

Major release

Major release is cut off once per development cycle and has an assigned name (Liberty, Mitaka, ...)

Prior to major release,

  1. consider blocking all patches that are not targeted for the new release;
  2. consider blocking trivial patches to keep the gate clean;
  3. revise the current list of blueprints and bugs targeted for the release; roll over anything that does not fit there, or won't make it (note that no new features land master after so called feature freeze is claimed by release team; there is a feature freeze exception (FFE) process described in release engineering documentation in more details: http://docs.openstack.org/project-team-guide/release-management.html);
  4. start collecting state for targeted features from the team. For example, propose a postmortem patch for neutron-specs as in: https://review.openstack.org/#/c/286413/
  5. revise deprecation warnings collected in latest Jenkins runs: some of them may indicate a problem that should be fixed prior to release (see deprecations.txt file in those log directories); also, check whether any Launchpad bugs with the 'deprecation' tag need a clean-up or a follow-up in the context of the release planned;
  6. check that release notes and sample configuration files render correctly, arrange clean-up if needed.
  7. ensure all doc links are valid by running tox -e linkcheck and addressing any broken links.

New major release process contains several phases:

  1. master branch is blocked for patches that are not targeted for the release;
  2. the whole team is expected to work on closing remaining pieces targeted for the release;
  3. once the team is ready to release the first release candidate (RC1), either PTL or one of release liaisons proposes a patch for openstack/releases repo. For example, see: https://review.openstack.org/#/c/292445/
  4. once the openstack/releases patch land, release team creates a new stable branch using hash values specified in the patch;
  5. at this point, master branch is open for patches targeted to the next release; PTL unblocks all patches that were blocked in step 1;
  6. if additional patches are identified that are critical for the release and must be shipped in the final major build, corresponding bugs are tagged with <release>-rc-potential in Launchpad, fixes are prepared and land in master branch, and are then backported to the newly created stable branch;
  7. if patches landed in the release stable branch as per the previous step, a new release candidate that would include those patches should be requested by PTL in openstack/releases repo.
  8. eventually, the latest release candidate requested by PTL becomes the final major release of the project.

Release candidate (RC) process allows for stabilization of the final release.

The following technical steps should be taken before the final release is cut off:

  1. the latest alembic scripts are tagged with a milestone label. For example, see: https://review.openstack.org/#/c/288212/

In the new stable branch, you should make sure that:

  1. .gitreview file points to the new branch;
  2. if the branch uses constraints to manage gated dependency versions, the default constraints file name points to corresponding stable branch in openstack/requirements repo;
  3. if the branch fetches any other projects as dependencies, f.e. by using tox_install.sh as an install_command in tox.ini, git repository links point to corresponding stable branches of those dependency projects.

Note that some of those steps may be covered by OpenStack release team.

In the opened master branch, you should:

  1. update CURRENT_RELEASE in neutron.db.migration.cli to point to the next release name.

While preparing the next release and even in the middle of development, it's worth keeping the infrastructure clean. Consider using those tools to declutter the project infrastructure:

  1. declutter Gerrit:

    <neutron>/tools/abandon_old_reviews.sh
  2. declutter Launchpad:

    <release-tools>/pre_expire_bugs.py neutron --day <back-to-the-beginning-of-the-release>

Minor release

Minor release is a release created from existing stable branch after the initial major release, and that usually contains bug fixes and small improvements only.

The following steps should be taken before claiming a successful minor release:

  1. a patch for openstack/releases repo is proposed and merged.

Client

Most tips from the Server section apply to client releases too. Several things to note though:

  1. when preparing for a major release, pay special attention to client bits that are targeted for the release. Global openstack/requirements freeze happens long before first RC release of server components. So if you plan to land server patches that depend on a new client, make sure you don't miss the requirements freeze. After the freeze is in action, there is no easy way to land more client patches for the planned target. All this may push an affected feature to the next development cycle.