Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

How To Release Tez

Table of Contents
indent20px
styledisc

GPG Keys Setup

Follow Apache guidelines on setting up your GPG keys and ensure that your fingerprint is updated at id.apache.org.
Also, append your keys to the KEYS file at https://dist.apache.org/repos/dist/release/incubator/tez/KEYS

Code Block

gpg --armor --fingerprint --list-sigs <keyid>
gpg --armor --export <keyid>

...

Create or Checkout the Release Branch
Code Block

git checkout origin/branch-x.y.z
Run Basic Release checks
Code Block

mvn clean install -DskipTests=true
mvn clean apache-rat:check
Update Version Number if Required
Code Block

mvn versions:set -DnewVersion="x.y.z"
Modify CHANGES.txt to set the release date to when the vote will likely end ( +3 or 4 days from the vote start ).
Commit and push the version change.
Create a Release Tag
Code Block

git tag -a release-x.y.z-rc0 -m 'Tez x.y.z RC0'
git push --tags origin

...

Your .m2/settings.xml should have something along these lines:

Code Block

<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
                      http://maven.apache.org/xsd/settings-1.0.0.xsd">
  <servers>
    <server>
     <id>apache.staging.https</id>
     <username>XXXXXX</username>
     <password>YYYYYY</password>
    </server>
  </servers>
  <profiles>
    <profile>
      <id>gpg</id>
      <properties>
        <gpg.passphrase>XXXXXXX</gpg.passphrase>
        <gpg.executable>gpg2</gpg.executable>
      </properties>
    </profile>
  </profiles>
</settings>

To deploy jars, run:

Code Block

mvn clean deploy -Pgpg -DskipTests=true

...

Create a Release tarball for the Source
Code Block

git clean -f -x -d
cd ..
cp -R tez-git-x.y.z tez-x.y.z-incubating
tar --exclude=.git -zcvf tez-x.y.z-incubating.tar.gz tez-x.y.z-incubating
Sign the Release
Code Block

gpg2  --armor --output tez-{x.y.z}-incubating.tar.gz.asc --detach-sig tez-{x.y.z}-incubating.tar.gz
Generate MD5 checksums
Code Block

md5sum tez-x.y.z-incubating.tar.gz > tez-x.y.z-incubating.tar.gz.md5
sha1sum tez-x.y.z-incubating.tar.gz > tez-x.y.z-incubating.tar.gz.sha

or

Code Block

openssl md5 tez-x.y.z-incubating.tar.gz > tez-x.y.z-incubating.tar.gz.md5
openssl sha1 tez-x.y.z-incubating.tar.gz > tez-x.y.z-incubating.tar.gz.sha

...

Update website at tez.incubator.apache.org

TBD Follow instructions from Updating the Tez Website 

Update podling status at incubator.apache.org/projects/tez.html

TBD 

Release Announcement

Send out Announcement to dev@tez.incubator.apache.org, user@tez.incubator.apache.org and general@incubator.apache.org
Suject: [ANNOUNCE] Apache Tez x.y.z. ( Incubating )

...