This document describes the version policy and release process for the MongoDB Database Tools.
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.
This section describes the steps for releasing a new version of the Tools.
Complete these tasks before tagging a new release.
Move the JIRA ticket for the release to the "In Progress" state. Ensure that its fixVersion matches the version being released.
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.
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).
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.
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.
Ensure you have the master
branch checked out, and that you have pulled the latest commit from mongodb/mongo-tools
.
Create an annotated tag and push it:
git tag -a -m vX.Y.Z X.Y.Z
git push --tags
It's important to use an annotated tag and not a lightweight tag. A lightweight tag will not have its own metadata and may break the release process.
Also ensure you are pushing the tag to the mongodb/mongo-tools
repository and not to your fork.
If necessary, you may find the correct remote using git remote -v
and specify it via git push <remote> --tags
.
Pushing the tag 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.
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.
Complete these tasks after the release builds have completed on evergreen.
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.
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.
You can get the sha256 sum locally using shasum -a 256 <tools zip file>
.
- 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.
Move the JIRA ticket tracking this release to the "Closed" state.
Ensure that downstream tickets have been created in the CLOUDP/DOCSP projects and linked to the release ticket.
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.
Sometimes you may start the release process only to discover that some tasks
that are part of the release, like push
, fail. If the fix for these failures
is to make changes in the repo, you need to partially restart the release
process. Here are the steps to follow:
- Cancel the tasks still running for the release in Evergreen.
- Fix the issue in the repo and merge the fix to master.
- Delete the task from the
origin
remote (GitHub):$> git push origin --delete 100.5.4
- Make a new tag and push it as you do for the normal release process.
Evergreen should kick off a new set of tasks for the release. Then you can continue the normal release process from there.