Coder Social home page Coder Social logo

presto-release-tools's Introduction

Presto Release Tools

Maven Central Build Status

Tools to prepare Presto releases.

To download the release tools executable.

curl -L -o /tmp/presto_release "https://oss.sonatype.org/service/local/artifact/maven/redirect?g=com.facebook.presto&a=presto-release-tools&v=RELEASE&r=releases&c=executable&e=jar"
chmod 755 /tmp/presto_release

Cut Release

The cut-release command performs the following actions:

  • Check that there is no uncommitted local changes.
  • Checkout and fast-forward master branch.
  • Fetch upstream, including tags.
  • Determine the release version.
  • Check that the git tag of last version exists.
  • Check that the git tag of the release version not exist.
  • Check that the release has not been cut, that is, the release branch does not exist.
  • Perform custom updates to the root pom.xml file.
  • Bump version in pom.xml files.
  • Push changes to master branch on upstream.
  • Create a release branch from the master branch.
  • Push changes to the release branch on upstream.

To cut a release from a local repo:

/tmp/presto_release cut-release --directory /path/to/presto

To cut a release with a new clone:

/tmp/presto_release cut-release --directory /path/to/new/presto \
--git-initialize-from-remote true --upstream-repo prestodb/presto

Finalize Release

The finalize-release command performs the following actions:

  • Check that there is no uncommitted local changes.
  • Checkout and fast-forward master branch.
  • Fetch upstream, including tags.
  • Determine the release version.
  • Check that the git tag of last version exists.
  • Check that the git tag of the release version doesn't exist.
  • Check that the release is cut, that is, the release branch exists.
  • Delete the local release branch if exists.
  • Checkout the release branch from upstream.
  • Perform custom updates to the root pom.xml file.
  • Run maven commands to prepare the release.
  • Push changes to the release branch on upstream.

To finalize a release from a local repo:

/tmp/presto_release finalize-release --directory /path/to/presto

To finalize a release with a new clone:

/tmp/presto_release finalize-release --directory /path/to/new/presto \
--git-initialize-from-remote true --upstream-repo prestodb/presto

Generate Release Notes

To collect and generate release notes:

/tmp/presto_release release-notes --github-user <GITHUB_USER> --github-access-token <GITHUB_ACCESS_TOKEN>

The commands will create a local branch containing the collected release notes, and a pull request with description populated with missing release notes, release notes summary, and a list of commits within the release.

presto-release-tools's People

Contributors

ajaygeorge avatar aweisberg avatar caithagoras0 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.