You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

ReleaseInstructions 12 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302
  1. Instructions for making a Release:
  2. Authors: Conor MacNeill
  3. Stefan Bodewig
  4. Magesh Umasankar
  5. Antoine Levy-Lambert
  6. Note: This document was updated in the context of releasing Ant 1.7.
  7. Please interpret the branch names, tags, etc. according to
  8. your context.
  9. 1. Propose a release plan for vote. This should set out the timetable for
  10. the release under ideal circumstances.
  11. The issue of whether to create a branch for the release should be
  12. discussed in the release vote.
  13. The level of bugs reported can delay things. Generally, give a few
  14. weeks to "close" the source tree to further changes so people can
  15. finalise contributions, etc. At this time, the first beta will be
  16. cut and there will be then a period of beta testing, usually 1
  17. month but this should be flexible.
  18. 2. Note that any mention of a deadline causes a flood of bug fixes, new tasks,
  19. etc. This needs to be managed as best it can. Some fixes will be applied,
  20. others held over. Make this clear in the release plan. The committers and
  21. particularly the release manager will need to make judgement calls here.
  22. Anything too "big" is likely to be held over.
  23. 3. Once the freeze date arrives, create a branch for the release builds,
  24. if this was decided in the release vote. This was done for Ant 1.6,
  25. but not for Ant 1.7, nor for Ant 1.8.
  26. You will need to be comfortable in handling SVN branches with multiple
  27. merge-backs to the main branch and even selected merges from the the main
  28. branch to the release branch.
  29. For more information on performing branching and merging, please visit
  30. http://svnbook.red-bean.com/nightly/en/svn-book.html
  31. Label such branches ANT_16_BRANCH.
  32. 4. Once the branch is setup, the version numbers in SVN are changed. On the
  33. branch, the project.version property in build.xml becomes 1.7Beta.
  34. If there were a main branch, its build.xml would have 1.8alpha.
  35. [[ TODO: Check if the documentation files also need to be updated to point
  36. to the right areas of Ant's website. ]]
  37. 5. Before a build :
  38. the first beta on the 1.7 branch has been called 1.7.0Beta1, ...
  39. the project.version property in build.xml governs the output of
  40. ant -version and the naming of the distribution files.
  41. Update the following files for version number:
  42. On the branch only :
  43. * manual/cover.html
  44. * manual/credits.html
  45. * build.xml properties : project-version & manifest-version
  46. * POM files under src/etc/poms and subdirectories
  47. * ivy.xml in release subdirectory
  48. Commit your changes.
  49. On the branch and on the main trunk:
  50. * WHATSNEW
  51. 6. Ensure you have all the external libraries that Ant uses in your
  52. lib/optional directory. In fact NetRexxC/NetRexxR are the only commercial
  53. dependencies as of 1.8.0 which are "hard to find". Other dependencies are
  54. either provided by JDK 1.5.0 or downloadable using
  55. ant -f fetch.xml -Ddest=optional.
  56. To find out whether you have all the libraries you need, execute
  57. the build with -verbose option and scan for lines beginning with
  58. "Unable to load...".
  59. 7. Make sure that your directory tree is clean by running svn status.
  60. Some tests leave behind leftovers which end up in the source
  61. distribution otherwise.
  62. 8. Next bootstrap, build and run the tests. Then build the distribution
  63. on the branch. It is important that this be a clean build. Label this with
  64. a tag ANT_170_B1.
  65. The file release.sh gives an idea of how to do this build process,
  66. currently in two steps, one with JDK 1.4 and one with JDK 1.5
  67. C:\dev\asf\ant-core>
  68. svn copy https://svn.apache.org/repos/asf/ant/core/trunk \
  69. https://svn.apache.org/repos/asf/ant/core/tags/ANT_170_B1 \
  70. -m "Tagging version 1.7.0Beta1 of Ant"
  71. Revision 437509 Uebertragen.
  72. 9. Sign the distribution files using the script release/signit.xml
  73. This script requires using commons-openpgp to sign the artefacts,
  74. This tool can be checked out from
  75. http://svn.apache.org/repos/asf/commons/sandbox/openpgp/trunk
  76. You have to build it using maven
  77. You can create a property file .gnupg.properties in your home directory
  78. with your key id
  79. and pass your key passphrase on the command line with -Dpassword=****
  80. Before you do that, ensure that the key you use is inside the KEYS
  81. file in Ant's SVN repository
  82. <https://svn.apache.org/repos/asf/ant/antlibs/common/trunk/KEYS> -
  83. and that you perform a svn update on the KEYS file in
  84. /www/www.apache.org/dist/ant/common
  85. Also make sure you have sent the key that you use to a public
  86. keyserver.
  87. 10. The beta distribution is now ready to go. Bundle it up into a tar.gz file
  88. and scp to your apache account.
  89. 11. Meanwhile, convert the part of the WHATSNEW file covering the changes
  90. since the last release into HTML for the README file on the
  91. website. See the previous release directories for examples of these files.
  92. Add instructions and warnings (GNU tar format issues, etc).
  93. Use the target txt2html of docs.xml
  94. Name the generated file RELEASE-NOTES-x.y.z.html.
  95. Change the title to something like "Release Notes of Apache Ant
  96. 1.7.0Beta2" (from the default txt2html)
  97. 12. Once this is uploaded, unpack things in your home directory
  98. and call for a release vote on dev@ant. The vote will only pass
  99. if at least three PMC members have voted +1 and more +1s than -1s
  100. have been cast. The vote will run for a week.
  101. 13. Once the vote has passed, create the release directory,
  102. something like v1.7.0Beta1, push the release and RELEASE-NOTES files
  103. into this directory. Create a symbolic link named README.html
  104. that points to the RELEASE-NOTES.
  105. The files should go to /www/www.apache.org/dist/ant/ on people.apache.org.
  106. 14. Address the available release tags in BugZilla. Create a new tag 1.7.0Beta1.
  107. If there is a separate main branch, create a 1.8alpha tag.
  108. Assign all existing 1.7 alpha bugs to 1.7.0Beta1.
  109. Note that such massive changes can be done at once by choosing the
  110. link "Change several bugs at once" at the bottom of the bug list
  111. displaying the 1.7alpha bugs.
  112. 15. Once that is done, do a test download to make sure everything is OK. A
  113. common problem may be:
  114. * the file's mime type is not recognized and is interpreted as
  115. text/plain. Fix it by using some .htaccess magic (AddEncoding stuff)
  116. * Your gz.asc files are not being displayed properly (RemoveEncoding stuff)
  117. If it looks OK, announce it on dev@ant and user@ant. After a few
  118. days pass and there are no major problems, a wider announcement is
  119. made (ant website, main jakarta website, announcements@jakarta.apache.org,
  120. etc).
  121. Announce beta releases at freshmeat.net (Stefan Bodewig is the
  122. owner of Ant's project entry - bug him ;-).
  123. 16. As problems in the beta are discovered, there may be a need for
  124. one or more subsequent betas. The release manager makes this
  125. call. Each time, the versions are updated and the above process is
  126. repeated. Try not to have too many betas.
  127. 17. Try to advertise the need for testing of the betas as much as possible.
  128. This would eliminate the need to release minor patch versions like
  129. we had to do when releasing Ant 1.4.
  130. 18. When the final beta is considered OK, propose a vote on dev@ant to
  131. officially adopt the latest beta as the Ant 1.6 release. If it is passed,
  132. (it usually does,) this would be labelled ANT_16 and built in a similar
  133. fashion to the above process.
  134. It is probably a good idea to have the re-labeled distribution
  135. files ready in time for the vote so that no additional vote on the
  136. actual package is required later.
  137. 19. This time you'll have to do some house-keeping for the old
  138. release:
  139. * upload the new release files to
  140. from distribution
  141. to /www/www.apache.org/dist/ant/[source|binaries|manual].
  142. * upload the maven artifacts located under java-repository/org/apache/ant
  143. these artifacts comprise currently for each ant jar of one POM file, the corresponding jar file
  144. and the corresponding GPG signatures (x.pom, x.jar, x.pom.asc, x.jar.asc)
  145. MD5 and SHA1 are generated by ivy during the upload
  146. to
  147. https://repository.apache.org (nexus repository)
  148. using the build file release/upload.xml
  149. ant -Dupload.user=foo -Dupload.password=secret -lib location_of_ivy_jar -f upload.xml
  150. * after the upload, you need to access the web interface of nexus under https://repository.apache.org
  151. login using your Apache credentials
  152. select the Staging enterprise repository
  153. expand org.apache.ant
  154. right click the upload that you just did
  155. select the context menu entry "Close"
  156. once this is done, you have to again select your upload in the web interface,
  157. right click, and select the menu entry promote.
  158. 4 hours later, the artefacts will be in the maven central repository.
  159. * remove the symbolic links from /www/www.apache.org/dist/ant.
  160. * Create proper -current symlinks in /www/www.apache.org/dist/ant/
  161. * Make sure that the symbolic link README.html points to the new
  162. RELEASE-NOTES.
  163. (*)
  164. 20. Update the ant.apache.org site :
  165. The website is managed here: https://svn.apache.org/repos/asf/ant/site/ant/
  166. Update the following files for version number:
  167. * source/antnews.xml (Announcement)
  168. * source/faq.xml (Ant's history details - not for betas)
  169. * source/index.xml (Announcement, latest release details, link to
  170. manual under "Documentation")
  171. * source/srcdownload.xml
  172. * source/bindownload.xml
  173. * source/manualdownload.xml
  174. Generate the html files by invoking 'ant docs'
  175. Commit the modified/generated files in the 'production' folder, it will go
  176. live on ant.apache.org in a matter on seconds.
  177. Change the version of the manual published on the site: change the URL in the
  178. svn:externals of the 'production' folder.
  179. 21. Clean up.
  180. * remove the remaining files of the previous release and betas from
  181. /www/www.apache.org/dist/ant/[source|binaries|manual].
  182. This includes the old release notes.
  183. (+)
  184. 22. Now and perhaps during previous betas any changes on the branch must
  185. be merged back into the tree.
  186. 23. At this point in time, the release is done and announcements are made.
  187. PGP-sign your announcement posts.
  188. [[TODO: Identify the mailing lists where announcements are to be made.
  189. Also identify the webpages to which the announcements must go. ]]
  190. Apache mailing lists that should get the announcements:
  191. announcements@jakarta.apache.org, announcements@xml.apache.org,
  192. announce@apache.org, dev@ant and user@ant.
  193. Announce release at freshmeat.net
  194. (Stefan Bodewig is the owner of Ant's project entry - bug him ;-).
  195. Announce release in the usenet group comp.lang.java.softwaretools .
  196. 24. Add a new release tag to doap_Ant.rdf in Ant's trunk.
  197. 25. You can now reacquaint yourself with your family and friends.
  198. (*) Mirrors : the srcdownload.html, bindownload.html and
  199. manualdownload.html each list a number of mirrors. For ant 1.6.0
  200. the mirrors picked up the new version in 8 hours or less, the
  201. release having been done at midnight on Dec 18th, the mirrors had
  202. it on Dec 19th at 8 am. The
  203. srcdownload/bindownload/manualdownload pages all contain a note
  204. advising users to be patient immediately after the release.
  205. (+) Don't expect the old releases to disappear from
  206. www.apache.org/dist as soon as the new releases are there.
  207. The rsync process from people.a.o to www.a.o adds files once per
  208. hour but only deletes once per day.
  209. Related Information
  210. http://www.apache.org/dev/#releases
  211. http://commons.apache.org/releases/index.html
  212. http://wiki.apache.org/commons/SigningReleases