This page is prepared for Hadoop Avro committers. You need committer rights to create a new Hadoop Avro release.
Branching
Skip this section if this is NOT the first release in a series (i.e. release X.Y.0).
- Update
CHANGES.txt
to include the release version and date (useUnreleased
for the date if it is unknown) and removeTrunk (unreleased changes)
. - Commit these changes to trunk. {{
Unknown macro: {svn commit -m "Preparing for release X.Y.Z"}}}
- Create a branch for the release series: {{
Unknown macro: {svn copy https}}
- Update
CHANGES.txt
to add back inTrunk (unreleased changes)
. - Update the default version in
share/VERSION.txt
on trunk to X.Y+1.0-SNAPSHOT. - Commit these changes to trunk. {{
Unknown macro: {svn commit -m "Preparing for X.Y+1.0 development"}}}
Updating Release Branch
These operations take place in the release branch.
- Check out the branch with: {{
Unknown macro: {svn co https}}
- 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). - Update the version number in
share/VERSION.txt
to be ''avro-X.Y.Z''. - Commit these changes. {{
Unknown macro: {svn commit -m "Preparing for release X.Y.Z"}}}
- Add the fix version X.Y.Z to the Avro JIRA
- 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. {{Unknown macro: {cd branch-X.Ysvn merge -rR1}} - For each patch merged, change the fix version for the JIRA issue to be X.Y.Z
- Tag the release candidate (R is the release candidate number): {{
Unknown macro: {svn copy https}}
Building
- Build the release & run unit tests. {{
Unknown macro: {./build.sh clean dist test}}}
- Check that release files look ok - e.g. unpack the sources and run tests.
- Sign the release (see Step-By-Step Guide to Mirroring Releases for more information). {{
Unknown macro: {./build.sh sign}}}
- Copy release files to a public place. {{
Unknown macro: {ssh people.apache.org mkdir public_html/avro-X.Y.Z-RC0scp -pr dist/* people.apache.org}}
- Call a release vote on avro-dev at hadoop.apache.org.
Publishing
Once three PMC members have voted for a release, it may be published.
- Tag the release: {{
Unknown macro: {svn move https}}
- Copy release files to the distribution directory and make them writable by the hadoop group. {{
Unknown macro: {ssh people.apache.orgcp -pr public_html/avro-X.Y.Z-candidate-0 /www/www.apache.org/dist/avro/avro-X.Y.Zcd /www/www.apache.org/dist/avrochgrp -R hadoop avro-X.Y.Zchmod -R g+w avro-X.Y.Z}}}
- 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. {{
Unknown macro: {ssh people.apache.orgcd /www/www.apache.org/dist/avrorm -rf avro-A.B.C; rm stableln -s hadoop-A.B.D stable}}}
- Publish Java artifacts to the Maven repository:{{
Unknown macro: {ssh people.apache.orgmkdir /www/people.apache.org/repo/m2-ibiblio-rsync-repository/org/apache/avro/X.Y.Zcd /www/www.apache.org/dist/avro/avro-X.Y.Z/javacp -p avro-X.Y.Z}Unknown macro: {,-javadoc,-sources}.* /www/people.apache.org/repo/m2-ibiblio-rsync-repository/org/apache/avro/X.Y.Z}}
- Wait 24 hours for release to propagate to mirrors.
- Prepare to edit the website. {{
Unknown macro: {svn co https}}
- Update the documentation links in
author/content/xdocs/site.xml
. - Update the release news in
author/content/xdocs/releases.xml
. - Regenerate the site, review it, then commit it. {{
Unknown macro: {ant -Dforrest.home=/usr/local/forrest -Djava5.home=/usr/local/jdk1.5firefox publish/index.htmlsvn commit -m "Updated site for release X.Y.Z."}}}
- Deploy your site changes. {{
Unknown macro: {ssh people.apache.orgcd /www/hadoop.apache.org/avrosvn up}}}
- Copy the new release docs to
people.apache.org:/www/hadoop.apache.org/avro/docs/rX.Y.Z
and update thedocs/current
link, by doing the following in your home directory on people.apache.org: {{Unknown macro: {ssh people.apache.orgtar xzf /www/www.apache.org/dist/avro/avro-X.Y.Z/avro-doc-X.Y.Z.tar.gzchmod -R 775 avro-doc-X.Y.Zchgrp -R hadoop avro-doc-X.Y.Zcp -rp avro-doc-X.Y.Z /www/hadoop.apache.org/avro/docs/X.Y.Zrm -r avro-doc-X.Y.Zcd /www/hadoop.apache.org/avro/docs/ln -s X.Y.Z current}}} - Send announcements to the user and developer lists once the site changes are visible.
- Update the version number in
share/VERSION.txt
to be ''avro-X.Y.N-SNAPSHOT'', where ''N'' is one greater than the release just made. - In Jira, ensure that only issues in the "Fixed" state have a "Fix Version" set to release X.Y.Z.
- In Jira, "release" the version. Visit the "Administer Project" page, then the "Manage versions" page. You need to have the "Admin" role in Avro's Jira for this step and the next.
- In Jira, close issues resolved in the release. Disable mail notifications for this bulk change.