Skip to content

Latest commit

 

History

History
40 lines (34 loc) · 2.73 KB

RELEASING.md

File metadata and controls

40 lines (34 loc) · 2.73 KB

Releasing

This document summarizes the process of doing a new release of this project. Release can only be performed by Datadog maintainers of this repository.

Schedule

This project does not have a strict release schedule. However, we would make a release at least every 2 months.

  • No release will be done if no changes got merged to the master branch during the above mentioned window.
  • Releases may be done more frequently than the above mentioned window.

Make Sure Everything Works

  • Check and upgrade dependencies where it applies and makes sense. Example
    • Create a distinct pull request and test your changes since it may introduce regressions.
    • While using the latest versions of dependencies is advised, it may not always be possible due to potential compatibility issues.
    • Upgraded dependencies should be thoroughly considered and tested to ensure they are safe!
  • Make sure tests are passing.
    • Locally and in the continuous integration system.
  • Make sure documentation is up-to-date and building correctly.
  • Build the package locally (e.g. python3 setup.py sdist), install it into a fresh virtualenv and test the changes that have been made since the last release.

Release Process

Our team will trigger the release pipeline.

Prerequisite

  • Install datadog_checks_dev using Python 3.
  • Setup PyPI, see the internal documentation for more details

Update Changelog

Commands

  • See changes ready for release by running ddev release show changes . at the root of this project. Add any missing labels to PRs if needed.
  • Run ddev release changelog . <NEW_VERSION> to update the CHANGELOG.md file at the root of this repository
  • Commit the changes to the repository in a release branch and open a PR. Do not merge yet.

Release

  1. Bump the version in setup.py and push it to your changelog PR. Example
  2. Merge the PR to master.
  3. Create the release on GitHub. Example
  4. Checkout the tag created at the previous step.
  5. Run ddev release build . and ddev release upload --sdist . .
  1. Bump the version again in setup.py to a dev version (e.g. 0.34.0 -> 0.35.0.dev), open a PR and merge it to master.