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 13 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320
  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. see at the end of this document the list of files containing version information
  43. 6. Ensure you have all the external libraries that Ant uses in your
  44. lib/optional directory. All dependencies are either provided by
  45. JDK 1.5.0 or downloadable using
  46. ant -f fetch.xml -Ddest=optional.
  47. To find out whether you have all the libraries you need, execute
  48. the build with -verbose option and scan for lines beginning with
  49. "Unable to load...".
  50. 7. Make sure that your directory tree is clean by running svn status.
  51. Some tests leave behind leftovers which end up in the source
  52. distribution otherwise.
  53. 8. Next bootstrap, build and run the tests. Then build the distribution
  54. on the branch. It is important that this be a clean build. Label this with
  55. a tag ANT_170_B1.
  56. The file release.sh gives an idea of how to do this build process.
  57. buid.xml specifies that the code should be compiled with source=1.5 and target=1.5.
  58. C:\dev\asf\ant-core>
  59. svn copy https://svn.apache.org/repos/asf/ant/core/trunk \
  60. https://svn.apache.org/repos/asf/ant/core/tags/ANT_170_B1 \
  61. -m "Tagging version 1.7.0Beta1 of Ant"
  62. Revision 437509 Uebertragen.
  63. 9. Sign the distribution files using the script release/signit.xml
  64. This script requires using commons-openpgp to sign the artefacts,
  65. This tool can be checked out from
  66. http://svn.apache.org/repos/asf/commons/sandbox/openpgp/trunk
  67. You have to build it using maven
  68. You can create a property file .gnupg.properties in your home directory
  69. with your key id
  70. and pass your key passphrase on the command line with -Dpassword=****
  71. Before you do that, ensure that the key you use is inside the KEYS
  72. file in Ant's SVN repository
  73. <https://svn.apache.org/repos/asf/ant/antlibs/common/trunk/KEYS> -
  74. and that you copy the KEYS file to
  75. /www/www.apache.org/dist/ant
  76. Also make sure you have sent the key that you use to a public
  77. keyserver.
  78. 10. The beta distribution is now ready to go. Commit it to
  79. https://dist.apache.org/repos/dist/dev/ant
  80. 11. Meanwhile, convert the part of the WHATSNEW file covering the changes
  81. since the last release into HTML for the README file on the
  82. website. See the previous release directories for examples of these files.
  83. Add instructions and warnings (GNU tar format issues, etc).
  84. Use the target txt2html of docs.xml
  85. Name the generated file RELEASE-NOTES-x.y.z.html.
  86. Change the title to something like "Release Notes of Apache Ant
  87. 1.7.0Beta2" (from the default txt2html)
  88. 12. Once this is committed call for a release vote on dev@ant. The
  89. vote will only pass if at least three PMC members have voted +1
  90. and more +1s than -1s have been cast. The vote will run for a
  91. week.
  92. 13. Update the files listed at the end of the document (files containing
  93. version information) to prepare the development of the next version of Ant
  94. 14. Once the vote has passed, the distrib artifacts should be published the
  95. apache dist. It is managed via svnpubsub so the release should be
  96. committed to the subversion repository
  97. https://dist.apache.org/repos/dist/release/ant/.
  98. In order to keep the main dist area of a reasonable size, old releases
  99. should be removed. They will disapear from the main dist but will still be
  100. available via the archive. To do so, just use the "svn rm" command against
  101. the artifacts or folders to remove.
  102. 15. Address the available release tags in BugZilla. Create a new tag 1.7.0Beta1.
  103. If there is a separate main branch, create a 1.8alpha tag.
  104. Assign all existing 1.7 alpha bugs to 1.7.0Beta1.
  105. Note that such massive changes can be done at once by choosing the
  106. link "Change several bugs at once" at the bottom of the bug list
  107. displaying the 1.7alpha bugs.
  108. 16. Once that is done, do a test download to make sure everything is OK. A
  109. common problem may be:
  110. * the file's mime type is not recognized and is interpreted as
  111. text/plain. Fix it by using some .htaccess magic (AddEncoding stuff)
  112. * Your gz.asc files are not being displayed properly (RemoveEncoding stuff)
  113. If it looks OK, announce it on dev@ant and user@ant. After a few
  114. days pass and there are no major problems, a wider announcement is
  115. made (ant website, announce@apache.org, etc).
  116. Announce beta releases at freecode.com (Stefan Bodewig is the
  117. owner of Ant's project entry - bug him ;-).
  118. 17. As problems in the beta are discovered, there may be a need for
  119. one or more subsequent betas. The release manager makes this
  120. call. Each time, the versions are updated and the above process is
  121. repeated. Try not to have too many betas.
  122. 18. Try to advertise the need for testing of the betas as much as possible.
  123. This would eliminate the need to release minor patch versions like
  124. we had to do when releasing Ant 1.4.
  125. 19. When the final beta is considered OK, propose a vote on dev@ant to
  126. officially adopt the latest beta as the Ant 1.6 release. If it is passed,
  127. (it usually does,) this would be labelled ANT_16 and built in a similar
  128. fashion to the above process.
  129. It is probably a good idea to have the re-labeled distribution
  130. files ready in time for the vote so that no additional vote on the
  131. actual package is required later.
  132. 20. This time you'll have to do some house-keeping for the old
  133. release:
  134. * commit the new release files to
  135. from distribution
  136. to https://dist.apache.org/repos/dist/release/ant/[source|binaries|manual].
  137. * upload the maven artifacts located under java-repository/org/apache/ant
  138. these artifacts comprise currently for each ant jar of one POM file, the corresponding jar file
  139. and the corresponding GPG signatures (x.pom, x.jar, x.pom.asc, x.jar.asc)
  140. MD5 and SHA1 are generated by ivy during the upload
  141. to
  142. https://repository.apache.org (nexus repository)
  143. using the build file release/upload.xml
  144. ant -Dupload.user=foo -Dupload.password=secret -lib location_of_ivy_jar -f upload.xml
  145. * after the upload, you need to access the web interface of nexus under https://repository.apache.org
  146. login using your Apache credentials
  147. select the Staging enterprise repository
  148. expand org.apache.ant
  149. right click the upload that you just did
  150. select the context menu entry "Close"
  151. once this is done, you have to again select your upload in the web interface,
  152. right click, and select the menu entry promote.
  153. 4 hours later, the artefacts will be in the maven central repository.
  154. * Make README.html points to the new RELEASE-NOTES or is a copy of
  155. it.
  156. (*)
  157. 21. Update the ant.apache.org site :
  158. The website is managed here: https://svn.apache.org/repos/asf/ant/site/ant/
  159. Update the following files for version number:
  160. * source/antnews.xml (Announcement)
  161. * source/faq.xml (Ant's history details - not for betas)
  162. * source/index.xml (Announcement, latest release details, link to
  163. manual under "Documentation")
  164. * source/srcdownload.xml
  165. * source/bindownload.xml
  166. * source/manualdownload.xml
  167. Generate the html files by invoking 'ant'
  168. Commit the modified/generated files in the 'production' folder, it will go
  169. live on ant.apache.org in a matter on seconds.
  170. Change the version of the manual published on the site: change the URL in the
  171. svn:externals of the 'production' folder.
  172. 22. Clean up.
  173. * remove the remaining files of the previous release and betas from
  174. https://dist.apache.org/repos/dist/release/ant/[source|binaries|manual].
  175. This includes the old release notes.
  176. (+)
  177. 23. Now and perhaps during previous betas any changes on the branch must
  178. be merged back into the tree.
  179. 24. At this point in time, the release is done and announcements are made.
  180. PGP-sign your announcement posts.
  181. [[TODO: Identify the mailing lists where announcements are to be made.
  182. Also identify the webpages to which the announcements must go. ]]
  183. Apache mailing lists that should get the announcements:
  184. announce@apache.org, dev@ant and user@ant.
  185. Announce release at freecode.com
  186. (Stefan Bodewig is the owner of Ant's project entry - bug him ;-).
  187. 25. Add a new release tag to doap_Ant.rdf in Ant's site.
  188. 26. You can now reacquaint yourself with your family and friends.
  189. (*) Mirrors : the srcdownload.html, bindownload.html and
  190. manualdownload.html each list a number of mirrors. For ant 1.6.0
  191. the mirrors picked up the new version in 8 hours or less, the
  192. release having been done at midnight on Dec 18th, the mirrors had
  193. it on Dec 19th at 8 am. The
  194. srcdownload/bindownload/manualdownload pages all contain a note
  195. advising users to be patient immediately after the release.
  196. (+) Don't expect the old releases to disappear from
  197. www.apache.org/dist as soon as the new releases are there.
  198. The rsync process from people.a.o to www.a.o adds files once per
  199. hour but only deletes once per day.
  200. Related Information
  201. http://www.apache.org/dev/#releases
  202. http://commons.apache.org/releases/index.html
  203. http://wiki.apache.org/commons/SigningReleases
  204. Files containing version information
  205. ------------------------------------
  206. * manual/cover.html
  207. * manual/credits.html
  208. * build.xml properties : project.version,manifest-version,pom.version
  209. * POM files under src/etc/poms and subdirectories
  210. * ivy.xml in release subdirectory
  211. * WHATSNEW
  212. * src/etc/testcases/taskdefs/conditions/antversion.xml
  213. cover.html, credits.html, POM files, antversion.xml should be
  214. adjusted for the [newversion] right after the build and tagging
  215. of the release
  216. build.xml
  217. ---------
  218. right before a release :
  219. the project.version gets bumped to the exact release
  220. number, for instance 1.9.2
  221. right after a release :
  222. project.version property in build.xml gets bumped to
  223. [newversion]alpha, for example 1.9.2alpha
  224. manifest-version gets bumped to the exact next release number
  225. for example 1.9.2
  226. pom.version gets bumped to [newversion]-SNAPSHOT