Release Steps Overview¶
There are two distinct sets of artifacts that are released on independent schedules: rave-master & rave-project. The rave-master is the project metadata (committers, roles, etc) and only needs to be released when there is a change in the structure of the project itself (committers, mentors, etc). The rave-project artifacts are comprised of all rave source code, binaries and a standalone demo.
All of the steps below apply to both the master and project releases, unless otherwise specified. As an alternative to releasing separately, the projects MAY be released together as one combined release. The steps for this can be found below. (Combined Release Steps)
Additionally, most of the steps in the release process can be automated using the release scripts found in the repository. Steps for the release scripts are found below. (Scripted Release Steps).
Common Release Steps¶
-
Environment setup for releasing artifacts (same for SNAPSHOTs and releases)
-
Increase the default Java heap available to Maven (required for Java SE 6)
export MAVEN_OPTS="-Xmx1024m -XX:MaxPermSize=256m"
-
Use the latest Sun 1.6.0 JDK
-
Use Maven 3.0.3 or later
-
Make sure the Release Setup steps have been performed.
-
-
Prepare the source for release:
- Cleanup JIRA so the Fix Version in issues resolved since the last release includes this release version correctly.
- Update the text files in a working copy of the project root -
- Update the CHANGELOG based on the Text release reports from JIRA.
- Review and update README.txt if needed.
- Commit any changes back to svn
- Stage any Roadmap or Release landing pages on the site.
-
Checkout a clean copy of the trunk to release using command line svn.
Do not use Eclipse to do the checkout. The extra dot (.) files created by Eclipse throws off the rat:check processing.
-
Verify the source has the required license headers before trying to release:
$ mvn -P pedantic verify -DskipTests
-
Do a dry run of the release:prepare step:
$ mvn -P apache-release release:prepare -DautoVersionSubmodules=true -DdryRun=true
The dry run will not commit any changes back to SVN and gives you the opportunity to verify that the release process will complete as expected. You will be prompted for the following information :
- Release version - take the default
- SCM release tag - DO NOT TAKE THE DEFAULT - ${project.version}
- New development version - take the default
- GPG Passprhase
If you cancel a release:prepare before it updates the pom.xml versions, then use the release:clean goal to just remove the extra files that were created.
The Maven release plugin checks for SNAPSHOT dependencies in pom's. It will not complete the prepare goal until all SNAPSHOT dependencies are resolved.
-
Verify that the release process completed as expected
- The release plugin will create pom.xml.tag files which contain the changes that would have been committed to SVN. The only differences between pom.xml.tag and it's corresponding pom.xml file should be the version number.
- Check release.properties and make sure that the scm properties have the right version. Sometimes the scm location can be the previous version not the next version.
- Verify signatures (Verifying release signatures)
-
Cleanup the release prepare files again:
$ mvn -P apache-release release:clean
-
Prepare the release
-
Run the "release:prepare" step for real this time. You'll be prompted for the same version information.
$ mvn -P apache-release release:prepare -DautoVersionSubmodules=true
-
Backup (zip or tar) your local release candidate directory in case you need to rollback the release after the next step is performed.
-
-
Perform the release
-
This step will create a maven staging repository and site for use in testing and voting.
$ mvn release:perform -Papache-release
-
If your local OS userid doesn't match your Apache userid, then you'll have to also override the value provided by the OS to Maven for the site-deploy step to work. This is known to work for Linux, but not for Mac and unknown for Windows.
-Duser.name=[your_apache_uid]
-
-
Verify the Nexus release artifacts
-
Verify the staged artifacts in the nexus repo
- https://repository.apache.org/index.html
- Staging repositories (under Build Promotion) --> Name column --> org.apache.rave
- Navigate through the artifact tree and make sure that all javadoc, sources, tests, jars, ... have .asc (GPG signature) and .md5 files. See http://people.apache.org/~henkp/repo/faq.html and http://www.apache.org/dev/release-signing.html#openpgp-ascii-detach-sig
-
Close the nexus staging repo
- https://repository.apache.org/index.html
- Staging repositories (under Build Promotion) --> Name column --> org.apache.rave
- Click checkbox for the open staging repo (org.apache.rave-XXX) and press Close in the menu bar.
-
-
Build and stage the Demo artifacts (Rave Project releases Only)
-
Build and sign the standalone demo (with JPA):
- Checkout the tag from SVN
- $ mvn -P jpa,dist
- $ cd rave-portal/target
- $ gpg -ab ./apache-rave-${project.version}-bin.zip
- $ gpg -ab ./apache-rave-${project.version}-bin.tar.gz
- $ gpg --print-md SHA512 apache-rave-${project.version}-bin.zip > apache-rave-${project.version}.bin.zip.sha
- $ gpg --print-md SHA512 apache-rave-${project.version}-bin.tar.gz > apache-rave-${project.version}.bin.tar.gz.sha
- $ gpg --print-md MD5 apache-rave-${project.version}-bin.zip > apache-rave-${project.version}.bin.zip.md5
- $ gpg --print-md MD5 apache-rave-${project.version}-bin.tar.gz > apache-rave-${project.version}.bin.tar.gz.md5
-
Copy the artifacts to the staging area
- $ ssh people.apache.org mkdir /www/people.apache.org/builds/rave/${project.version}
- $ scp ./rave-portal/target/apache-rave-${project.version}.bin.* ${user.name}@people.apache.org:/www/people.apache.org/builds/rave/${project.version}/
- Verify they are downloadable from http://people.apache.org/builds/rave/${project.version}/
-
-
Put the release candidate up for a vote
- Create a VOTE email thread on dev@ to record votes as replies, like this
- Create a DISCUSS email thread on dev@ for any vote questions, this
-
Perform a review of the release and cast your vote. See the following for more details on Apache releases
-
A -1 vote does not necessarily mean that the vote must be redone, however it is usually a good idea to rollback the release if a -1 vote is received. See - Recovering from a vetoed release
- After the vote has been open for at least 72 hours, has at least three +1 PMC votes and no -1 votes, then post the results to the vote thread by -
- reply to the initial email and prepend to the original subject "[RESULT]"
- Include a list of everyone who voted +1, 0 or -1.
-
Finalizing a release
-
Promote the staged nexus artifacts
- https://repository.apache.org/index.html
- Staging repositories (under Build Promotion) --> Name column --> org.apache.rave
- Click checkbox of the closed staging repo (org.apache.rave-XXX) and select Release.
-
Copy the source artifacts over to the distribution area
- $ svn co https://dist.apache.org/repos/dist/release/rave/sources ./rave-sources (KEEP this directory until after the release process has been completed)
- $ cd ./rave-sources
- $ wget https://repository.apache.org/content/repositories/releases/org/apache/rave/${project.name}/${project.version}/${project.name}-${project.version}-source-release.zip
- $ wget https://repository.apache.org/content/repositories/releases/org/apache/rave/${project.name}/${project.version}/${project.name}-${project.version}-source-release.zip.asc
- $ wget https://repository.apache.org/content/repositories/releases/org/apache/rave/${project.name}/${project.version}/${project.name}-${project.version}-source-release.zip.md5
- $ wget https://repository.apache.org/content/repositories/releases/org/apache/rave/${project.name}/${project.version}/${project.name}-${project.version}-source-release.zip.sha1
- $ svn add ${project.name}-*
- $ svn commit -m "Committing Source Release for ${project.name}-${project.version}
-
Copy the binary artifacts over to the distribution area (for rave-project only)
- $ svn co https://dist.apache.org/repos/dist/release/rave/binaries ./rave-binaries (KEEP this directory until after the release process has been completed)
- $ cd rave-binaries
- $ scp people.apache.org:/www/people.apache.org/builds/rave/${project.version}/* ./
- $ svn add *
- $ svn commit -m "Committing Binary Release for ${project.name}-${project.version}
-
Update the staged website
- Update the downloads page to add new version using the mirrored URLs
- Modify the URL for the prior release to the archived URL for the release
-
Publish the website
- WAIT 24hrs after committing releases for mirrors to replicate
- Publish updates to the download page
-
Delete the prior versions
- Navigate to the release directories checked out in the prior steps
- Delete the prior release artifacts using the svn delete command
- Commit the deletion
-
-
Update the JIRA versions page to close all issues, mark the version as "released", and set the date to the date that the release was approved. You may also need to make a new release entry for the next release.
-
Announcing the release
- Make a news announcement on the Rave homepage.
- Make an announcement about the release on the users@rave.apache.org, dev@rave.apache.org, and announce@apache.org list as per the Apache Announcement Mailing Lists page)
Recovering from a vetoed release¶
-
Reply to the initial vote email and prepend to the original subject -
[CANCELED]
-
Delete the svn tag created by the release:perform step -
$ svn del https://svn.apache.org/repos/asf/rave/tags/${project.version} -m "deleting tag from rolled back release"
-
Delete the build artifacts on people & www
- $ rm -rfv /www/people.apache.org/builds/rave/${project.version}
- $ rm -rfv /www/www.apache.org/dist/rave/${project.version}
-
Drop the nexus staging repo
- https://repository.apache.org/index.html
- Enterprise --> Staging
- Staging tab --> Name column --> org.apache.rave
- Right click on the closed staging repo (org.apache.rave-XXX) and select Drop.
-
Remove the staged site
-
Make the required updates that caused the vote to be canceled during the next release cycle
Verifying release signatures¶
On unix platforms the following command can be executed -
for file in `find . -type f -iname '*.asc'` do gpg --verify ${file} done
You'll need to look at the output to ensure it contains only good signatures -
gpg: Good signature from ... gpg: Signature made ...
Combined Release¶
In order to perform a combined release of the rave-master and rave-project trunks, do the following:
- Perform Steps 1-9 of the release for Rave Master & Rave Project
- Do NOT perform step 10 until steps 1-9 have been completed for BOTH projects
- Build the rave-master FIRST
- When prompted to change the rave-project dependency on rave-master SNAPSHOT, do so to the release that you just built
- Execute the remaining steps using the following e-mail templates
Scripted Release¶
There are two scripts in the repository created to facilitate simpler releases: release.sh & publish.sh. The release script handles steps up to the VOTE e-mails and the publish script handles publishing the artifacts to the mirrors once a successful vote has been achieved.
To use the scripts, do the following:
- Export release.sh to a temporary directory
- Execute
./release.sh ${project.version} /Absolute/Path/To/Apache/SSH/Key
- When prompted, provide the same responses that you would in step 5 of the release steps above. Note that the submodules are autoversioned, so you should only need to input the release version once.
- After a successful execution follow steps 10 & 12
After a successful vote, do the following:
- Execute step 12.1 from the above list
- Export publish.sh to a temporary directory
- Execute
./publish.sh ${project.name} ${project.version} /Absolute/Path/To/Apache/SSH/Key
- Execute steps 12.4-15