Skip to end of metadata
Go to start of metadata

Setting up the signing keys

Before you do a release you'll need a signing key that is registered with apache. If you already have one, you can skip this section. Otherwise, here are the steps to do:

  1. use gpg2 --gen-key to generate a new key. Make sure that the key size is 4096 bits, the key doesn't expire, and use CODE SIGNING KEY for the comment.
  2. Now you need to register your key at http://pgp.mit.edu/ using the output of gpg --armor --export <keyid>
  3. Add your key to the KEYS file:
    1. ssh people.apache.org
    2. cd /www/www.apache.org/dist/zookeeper
    3. edit the KEYS file
    4. add the output of gpg2 --armor --fingerprint --list-sigs <keyid> and gpg2 --armor --export <keyid> to the file
  4. Upload digest to your account on id.apache.org (gpg2 --fingerprint)

Important Notes

  • when updating JIRA be sure to use the "batch" operator. Disable email notifications when using batch, subsequent to large JIRA operations (moving issues btw releases, closing JIRAs after a release, etc...) send email to the dev@ list detailing the changes.

Updating the release branch

These operations take place in the release branch:

  1. Check out the branch with:

  2. If not already done, merge desired patches from trunk into the branch and commit these changes. You can find the revision numbers using svn log CHANGES.txt in the branch and in trunk.

  3. Update CHANGES.txt to include the release version and date (this change must be committed to trunk and any intermediate branches between trunk and the branch being released).
  4. Update src/docs/releasenotes.html with release notes for this release. You can get the HTML by following the "Release Notes" link for the relevant release on the https://issues.apache.org/jira/browse/ZOOKEEPER?report=com.sourcelabs.jira.plugin.portlet.releases:releases-projecttab#selectedTab=com.atlassian.jira.plugin.system.project%3Aroadmap-panel tab in Jira.
  5. Update the version number in build.xml to be ''X.Y.Z''
  6. Update the version number in src/c/configure.ac and src/c/include/zookeeper_version.h to be ''X.Y.Z''
  7. Commit these changes.

  8. Tag the release candidate (R is the release candidate number, and starts from 0):

Building

  1. Build the release & run unit tests. This is captured in http://svn.apache.org/viewvc/zookeeper/nightly/hudsonBuildZooKeeperRelease.sh?view=markup.

  2. Untar the generated zookeeper-X.Y.Z.tar.gz and do the following:
    1. Sign the toplevel zookeeper-X.Y.Z.jar

    2. Generate the MD5/SHA1 checksums for each file in dist-maven

    3. Sign each file in dist-maven

  3. Tar/GZ the release directory as zookeeper-X.Y.Z.tar.gz

  4. Generate the MD5/SHA1 checksums for the release artifact.

  5. Sign the release

  6. Check that release file looks ok - e.g. install it and run examples from tutorial.
    1. untar the release artifact in a test directory
  7. Copy release files to a public place.

  8. Stage the release artifacts to the Apache Nexus repository
    1. Create ~/.m2/settings.xml introducing the values that are specific to you:

    2. Run the following on the branch check out

    3. Enter Apache Nexus and do the following:
      1. Click on Log In in the upper right corner. Log in using your apache user name and password.  

      2. In the left navigation pane, select Staging Repositories.  

      3. Identify the release candidate you just pushed, by your user name (in parentheses as part of the "Repository" name) and the "Created On" date. Click on the check box to the left of your Repository name to select it. (If you accidentally click on the Repository name itself, another tab will pop open. If so, just close it.)  
      4. Click the Close button above the Repository names. This makes your release candidate available at the Staging level.  

      5. If you have previously staged an older release candidate with the same version number, and it is still showing in the Repository list, you must select and Drop the old one now.  

      6. Confirm that your new release candidate is visible at https://repository.apache.org/content/groups/staging/org/apache/zookeeper/zookeeper/X.Y.Z/ with correct file modification dates.

  9. Call for a rease vote on dev at zookeeper.apache.org.

Publishing

Once three PMC members have voted for a release, it may be published.

  1. Tag the release:

  2. Update the version number to the next logical SNAPSHOT version (e.g. X.Y.Z to X.Y.Z+1-SNAPSHOT)

  3. Copy release files to the distribution directory and make them writable by the zookeeper group. (don't preserve timestamps as it can cause problems for the mirroring s/w)

  4. The release directory usually contains just two releases, the most recent from two branches, with a link named 'stable' to the most recent recommended version.

  5. Release the Maven artifacts on Apache Nexus:
    1. Click on 'Staging repositories'.
    2. Select the repository corresponding to the release candidate.
    3. Click on the 'Release' button and follow instructions.
  6. Wait 24 hours for release to propagate to mirrors.
  7. Prepare to edit the website.

  8. Copy the new release documentation into the content/doc directory

  9. Update the release news in site/trunk/content/releases.textile
  10. Update the nav panel to include X.Y.Z (which may now be "current") site/trunk/templates/sidenav.textile
  11. Regenerate the site, review it, then commit it. (checkout https://svn.apache.org/repos/infra/websites/cms/build if you haven't already)

  12. Update the "current" doc pointer if necessary (as CMS doesn't currently support symlinks in build/staging we need to push this directly to production)

  13. Review your changes on the staging site: http://zookeeper.staging.apache.org
  14. Deploy your site changes.

  15. Send announcements to the user and developer lists once the site changes are visible. Here is a sample email:

    Subject: [ANNOUNCE] Apache ZooKeeper X.Y.Z
    
    The Apache ZooKeeper team is proud to announce Apache ZooKeeper version X.Y.Z
    
    ZooKeeper is a high-performance coordination service for distributed
    applications. It exposes common services - such as naming,
    configuration management, synchronization, and group services - in a
    simple interface so you don't have to write them from scratch. You can
    use it off-the-shelf to implement consensus, group management, leader
    election, and presence protocols. And you can build on it for your
    own, specific needs.
    
    For ZooKeeper release details and downloads, visit:
    http://zookeeper.apache.org/releases.html
    
    ZooKeeper X.Y.Z Release Notes are at:
    http://zookeeper.apache.org/doc/rX.Y.Z/releasenotes.html
    
    We would like to thank the contributors that made the release possible.
    
    Regards,
    
    The ZooKeeper Team
    
  16. In Jira, ensure that only issues in the "Fixed" state have a "Fix Version" set to release X.Y.Z.
  17. In Jira, "release" the version. Visit the "Administer Project" page, then the "Manage versions" page. You need to have the "Admin" role in ZooKeeper's Jira for this step and the next.
  18. In Jira, close issues resolved in the release. Disable mail notifications for this bulk change.

Maven

Support is now available for pushing the jar artifacts to the Apache maven repository.

WARNING: the process has changed but the docs not yet updated, see https://issues.apache.org/jira/browse/ZOOKEEPER-1430

  1. login to people.apache.org
  2. copy the files from the release artifact "dist-maven" directory into /www/people.apache.org/repo/m2-ibiblio-rsync-repository/org/apache/zookeeper/zookeeper/X.Y.Z
  3. chmod -R g+w /www/people.apache.org/repo/m2-ibiblio-rsync-repository/org/apache/zookeeper/zookeeper/X.Y.Z
  4. cd to /www/people.apache.org/repo/m2-ibiblio-rsync-repository/org/apache/zookeeper/zookeeper
  5. edit maven-metadata.xml
    1. add X.Y.Z to versions
    2. update the version to X.Y.Z
    3. update the lastUpdated
  6. sign and md5sum maven-metadata.xml

Smoke Tests

Before the release, run the following smoke tests (at least).

  • Run unit tests on different hardwares: mac, windows, linux.
Labels
  • No labels