Skip to content

Latest commit

 

History

History
147 lines (107 loc) · 7.72 KB

RELEASE.md

File metadata and controls

147 lines (107 loc) · 7.72 KB

Releasing the MongoDB Database Tools

This document describes the version policy and release process for the MongoDB Database Tools.

Versioning

The MongoDB Database Tools use Semantic Versioning.

We will use the following guidelines to determine when each version component will be updated:

  • major: backwards-breaking changes to the CLI API or other behaviors (e.g. exit codes) that could break scripts using the Tools
  • minor: new features, including new server version support
  • patch: bug fixes and cosmetic changes

The team recognizes that log messages, while intended to be informational, may cause breakage if scripts attempt to parse output. While we will not commit to a formal versioning policy for log message changes, we will attempt to adhere to the following guidelines:

  • log.Always level (the default): adding logging is a "minor" change; changing or removing logging is a "major" change.
  • log.Info and higher levels (-v to -vvv): additions, modifications and removals are "patch" changes. We make no promises about message stability at these levels.

At the moment, there are no pre-release (alpha, beta, rc, etc.) versions of the Tools. If there is a need to support pre-release versions of the Tools, we will need to update our release infrastructure to support them.

Releasing

This section describes the steps for releasing a new version of the Tools.

Pre-Release Tasks

Complete these tasks before tagging a new release.

Start Release Ticket

Move the JIRA ticket for the release to the "In Progress" state. Ensure that its fixVersion matches the version being released.

Ensure Evergreen Passing

Ensure that the build you are releasing is passing the tests on the evergreen waterfall. A completely green build is not mandatory, since we do have flaky tests; however, failing tasks should be manually investigated to ensure they are not actual test failures.

Complete the Release in JIRA

Go to the Tools releases page, and ensure that all the tickets in the fixVersion to be released are closed. Ensure that all the tickets have the correct type. Take this opportunity to edit ticket titles if they can be made more descriptive. The ticket titles will be published in the changelog.

If you are releasing a patch version but a ticket needs a minor bump, update the fixVersion to be a minor version bump. If you are releasing a patch or minor version but a ticket needs a major bump, stop the release process immediately.

The only uncompleted ticket in the release should be the release ticket. If there are any remaining tickets that will not be included in this release, remove the fixVersion and assign them a new one if appropriate.

Close the release on JIRA, adding the current date (you may need to ask the TOOLS project manager to do this).

Update the release ticket

Mark the release ticket as "Docs Changes Needed". In "Docs Changes Summary", indicate that the release notes will be found in CHANGELOG.md after the release ticket is closed.

Releasing

Major Release

There are some parts of the release infrastructure that will need to be changed in order to support a major release. Those changes will need to be made before we can do a new major release. At the time when the major release process is formalized, this section will be replaced with more specific instructions.

Minor/Patch Release

Ensure master up to date

Ensure you have the master branch checked out, and that you have pulled the latest commit from mongodb/mongo-tools.

Create the tag and push

Create an annotated tag and push it:

git tag -a -m vX.Y.Z X.Y.Z
git push --tags

This should trigger an Evergreen version that can be viewed on the Database Tools Waterfall. If it doesn't, you may have to ask the project manager to give you the right permissions to do so.

Set Evergreen Priorities

Some evergreen variants (particularly zSeries and PowerPC variants) may have a long schedule queue. To speed up release tasks, you can set the task priority for any variant to 101 for release candidates and 200 for actual releases.

Post-Release Tasks

Complete these tasks after the release builds have completed on evergreen.

Verify Release Downloads

Go to the Download Center and verify that the new release is available there. Download the package for your OS and confirm that mongodump --version prints the correct version.

Update Homebrew Tap

In order to make the latest release available via our Homebrew tap, submit a pull request to mongodb/homebrew-brew, updating the download link and sha256 sum.

Update the changelog

  • Checkout a new branch.
  • Copy the following to the top of CHANGELOG.md under the title:
## X.Y.Z

_Released YYYY-MM-DD_

We are pleased to announce version X.Y.Z of the MongoDB Database Tools.

<INSERT-DESCRIPTION>

The Database Tools are available on the [MongoDB Download Center](https://www.mongodb.com/try/download/database-tools).
Installation instructions and documentation can be found on [docs.mongodb.com/database-tools](https://docs.mongodb.com/database-tools/).
Questions and inquiries can be asked on the [MongoDB Developer Community Forum](https://developer.mongodb.com/community/forums/tags/c/developer-tools/49/database-tools).
Please make sure to tag forum posts with `database-tools`.
Bugs and feature requests can be reported in the [Database Tools Jira](https://jira.mongodb.org/browse/TOOLS) where a list of current issues can be found.

<INSERT-LIST-OF-TICKETS>
  • Update the release date to the date the release-json task finished on Evergreen in Eastern Time. You can set your timezone in "User Settings".

  • Go to Configure Release Notes on JIRA. Choose the version you are releasing and HTML as the style. This will show you the list of tickets tagged with the release version. (If the link doesn't work, you can access this through the release page for the version you are releasing.)

  • Go through the list of tickets and check that each ticket is categorized correctly (as a task, bugfix etc.). Also make sure there is nothing in the list that might have been tagged with the wrong fix version.

  • Copy the HTML list of tickets from JIRA and paste it in CHANGELOG.md in place of <INSERT-LIST-OF-TICKETS>.

  • Remove the top line of the list of tickets that says Release Notes - MongoDB Database Tools - Version X.Y.Z

  • Change the ticket type titles from <h2>s to <h3>s. For example,

    <h2>        Build Failure
    </h2>
    

    Becomes:

    ### Build Failure
    
  • Insert a brief description of the release in place of <INSERT-DESCRIPTION>. Don't go into too much unnecessary detail.

  • Submit a PR with your changes under the release ticket number, and merge once approved.

Close Release Ticket

Move the JIRA ticket tracking this release to the "Closed" state.

Ensure Downstream Tickets Created

Ensure that downstream tickets have been created in the CLOUDP/DOCSP projects and linked to the release ticket.

Announce the release

Copy your entry from CHANGELOG.md and post it to the MongoDB Community Forums in the "Developer Tools" section with the tag database-tools. Also post it in the #mongo-tools slack channel to announce it internally.