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

286 lines
10 KiB

18 years ago
18 years ago
18 years ago
18 years ago
18 years ago
18 years ago
18 years ago
18 years ago
18 years ago
18 years ago
18 years ago
17 years ago
18 years ago
17 years ago
18 years ago
17 years ago
17 years ago
18 years ago
17 years ago
17 years ago
18 years ago
17 years ago
18 years ago
17 years ago
18 years ago
17 years ago
18 years ago
18 years ago
18 years ago
18 years ago
18 years ago
18 years ago
18 years ago
18 years ago
18 years ago
18 years ago
17 years ago
18 years ago
17 years ago
18 years ago
17 years ago
17 years ago
18 years ago
17 years ago
17 years ago
18 years ago
17 years ago
17 years ago
18 years ago
17 years ago
17 years ago
18 years ago
18 years ago
18 years ago
18 years ago
18 years ago
18 years ago
18 years ago
18 years ago
18 years ago
18 years ago
18 years ago
18 years ago
18 years ago
  1. =======================
  2. PHP Release Process
  3. =======================
  4. General notes and tips
  5. ----------------------
  6. 1. Do not release on Fridays, Saturdays or Sundays
  7. because the sysadmins can not upgrade stuff then.
  8. 2. Package the day before a release. So if the release is to be on Thursday,
  9. package on Wednesday.
  10. 3. Ensure that Windows builds will work before packaging
  11. 4. Follow all steps to the letter. When unclear ask previous RM's (Derick/Ilia)
  12. before proceeding. Ideally make sure that for the first releases one of the
  13. previous RM's is around to answer questions. For the steps related to the
  14. php/QA/bug websites try to have someone from the webmaster team (Bjori) on hand.
  15. 5. Verify the tags to be extra sure everything was tagged properly.
  16. 6. Moving extensions from/to PECL requires root level access to the CVS server.
  17. Contact systems@php.net to get this taken care of.
  18. Moving extensions from php-src to PECL
  19. - Filesystem: cp -r php-src/ext/foo pecl/foo
  20. - cvs rm php-src/ext/foo
  21. If the extension is still usable or not dead, in cooperation with the extension
  22. maintainers if any:
  23. - create the pecl.php.net/foo package and its content, license, maintainer
  24. - create the package.xml, commit
  25. - release the package
  26. Moving extensions from PECL to php-src
  27. - Filesystem: cp -r pecl/foo php-src/ext/foo
  28. OR depending on the wishes from the PECL extension maintainer.
  29. - Filesystem: ln -s pecl/foo php-src/ext/foo
  30. Rolling a non stable release (alpha/beta/RC)
  31. --------------------------------------------
  32. 1. Check windows snapshot builder logs (http://snaps.php.net/win32/snapshot-STABLE.log f.e.)
  33. 2. Bump the version numbers in ``main/php_version.h``, ``configure.in`` and possibly ``NEWS``.
  34. Do not use abbreviations for alpha and beta.
  35. 3. Commit those changes
  36. 4. run the "scripts/dev/credits" script in php-src and commit the changes in the
  37. credits files in ext/standard.
  38. 5. tag the repository with the version f.e. "``cvs tag php_4_4_1RC1``"
  39. (of course, you need to change that to the version you're rolling an RC for).
  40. 6. Bump up the version numbers in ``main/php_version.h``, ``configure.in``
  41. and possibly ``NEWS`` again, to the **next** version. F.e. if the release
  42. candidate was "4.4.1RC1" then the new one should be "4.4.1RC2-dev" - regardless
  43. if we get a new RC or not. This is to make sure ``version_compare()`` can
  44. correctly work.
  45. 7. Commit those changes
  46. 8. Log in onto the snaps box and go into the correct tree (f.e. the PHP_4_4
  47. branch if you're rolling 4.4.x releases).
  48. 9. You do not have to update the tree, but of course you can with "``cvs up -dP``".
  49. 10. run: ``./makedist php 4.4.1RC1``, this will export the tree, create configure
  50. and build two tarballs (one gz and one bz2).
  51. 11. Copy those two tarballs to www.php.net, in your homedir there should be a
  52. directory "downloads/". Copy them into there, so that the system can generate
  53. MD5 sums. If you do not have this directory, talk to Derick.
  54. 12. Now the RC can be found on http://downloads.php.net/yourname,
  55. f.e. http://downloads.php.net/derick/
  56. 13. Once the release has been tagged, contact the PHP Windows development team
  57. (internals-win@lists.php.net) so that Windows binaries can be created. Once
  58. those are made, they should be placed into the same directory as the source snapshots.
  59. Getting the non stable release (alpha/beta/RC) announced
  60. --------------------------------------------------------
  61. 1. Send an email (see example here: http://news.php.net/php.internals/19486)
  62. **To** ``internals@lists.php.net`` and ``php-general@lists.php.net`` lists
  63. pointing out "the location of the release" and "the possible release date of
  64. either the next RC, or the final release".
  65. 2. Send an email (see example here http://news.php.net/php.pear.qa/5201) **To**
  66. ``php-qa@lists.php.net`` and ``primary-qa-tests@lists.php.net``.
  67. This email is to notify the selected projects about a new release so that they
  68. can make sure their projects keep working. Make sure that you have been setup
  69. as a moderator for ``primary-qa-tests@lists.php.net`` by having someone (Wez,
  70. Derick) run the following commands for you:
  71. ``ssh lists.php.net``
  72. ``sudo -u ezmlm ezmlm-sub ~ezmlm/primary-qa-tester/mod moderator-email-address``
  73. 3. Update the MD5 sums in ``web/qa/trunk/include/rc-md5sums.txt`` (no empty lines).
  74. 4. Update in ``web/qa/trunk/include/release-qa.php`` constants with the new RC and
  75. commit this.
  76. a. ``$BUILD_TEST_RELEASES`` = array("4.4.7RC1", "5.2.2RC1")
  77. b. ``$CURRENT_QA_RELEASE_4`` = "4.4.7RC1" (``$CURRENT_QA_RELEASE_5`` for PHP5)
  78. c. ``$RELEASE_PROCESS`` = array(4 => true, 5 => true)
  79. 1. Update in ``php-bugs/trunk/include/functions.inc`` the ``show_version_option``
  80. function to include the new RC and commit.
  81. 2. Update ``phpweb/include/version.inc`` (x=major version number)
  82. a. ``$PHP_x_RC`` = "5.3.0RC1"
  83. b. ``$PHP_x_RC_DATE`` = "06 September 2007"
  84. 3. Commit those changes:
  85. a. ``cvs commit include/version.inc include/releases.inc``
  86. 4. For the first RC, write the doc team (phpdoc@lists.php.net) about updating the
  87. INSTALL and win32/install.txt files which are generated from the PHP manual sources.
  88. Rolling a stable release
  89. ------------------------
  90. 1. Check windows snapshot builder logs (http://snaps.php.net/win32/snapshot-STABLE.log f.e.)
  91. 2. Bump the version numbers in ``main/php_version.h``, ``configure.in`` and possibly ``NEWS``.
  92. 3. **Merge** all related sections in NEWS (f.e. merge the 4.4.1RC1 and 4.4.0 sections)
  93. 4. Commit those changes
  94. 5. run the "scripts/dev/credits" script in php-src and commit the changes in the
  95. credits files in ext/standard.
  96. 6. tag the repository with the version f.e. "``cvs tag php_4_4_1``"
  97. (of course, you need to change that to the version you're rolling an RC for).
  98. When making 5.X release, you need to tag the Zend directory separately!!
  99. 7. Bump up the version numbers in ``main/php_version.h``, ``configure.in`` and
  100. possibly ``NEWS`` again, to the **next** version. F.e. if the release candidate
  101. was "4.4.1RC1" then the new one should be "4.4.1RC2-dev" - regardless if we get
  102. a new RC or not. This is to make sure ``version_compare()`` can correctly work.
  103. 8. Commit those changes
  104. 9. Log in onto the snaps box and go into the correct tree (f.e. the PHP_4_4
  105. branch if you're rolling 4.4.x releases).
  106. 10. You do not have to update the tree, but of course you can with "``cvs up -dP``".
  107. 11. run: ``./makedist php 4.4.1``, this will export the tree, create configure
  108. and build two tarballs (one gz and one bz2).
  109. 12. Commit those two tarballs to CVS (phpweb/distributions)
  110. 13. Once the release has been tagged, contact the PHP Windows development team
  111. (internals-win@lists.php.net) so that Windows binaries can be created. Once
  112. those are made, they should be committed to CVS too.
  113. 14. Check if the pear files are updated (phar for 5.1+ or run pear/make-pear-bundle.php with 4.4)
  114. 15. When making a final release, also remind the PHP Windows development team
  115. (internals-win@lists.php.net) to prepare the installer packages for Win32.
  116. Getting the stable release announced
  117. ------------------------------------
  118. 1. Run the bumpRelease script for phpweb on your local checkout
  119. a. ``php bin/bumpRelease 5`` (or ``php bin/bumpRelease 4`` for PHP4)
  120. 2. Edit ``phpweb/include/version.inc`` and change (X=major release number):
  121. a. ``$PHP_X_VERSION`` to the correct version
  122. b. ``$PHP_X_DATE`` to the release date
  123. c. ``$PHP_X_MD5`` array and update all the md5 sums
  124. d. set ``$PHP_X_RC`` to false!
  125. e. Make sure there are no outdated "notes" or edited "date" keys in the
  126. ``$RELEASES[X][$PHP_X_VERSION]["source"]`` array
  127. f. if the windows builds aren't ready yet prefix the "windows" key with a dot (".windows")
  128. 3. Update the ChangeLog file for the given major version
  129. f.e. ``ChangeLog-4.php`` from the NEWS file
  130. a. go over the list and put every element on one line
  131. b. check for &, < and > and escape them if necessary
  132. c. remove all the names at the ends of lines
  133. d. for marking up, you can do the following (with VI):
  134. I. ``s/^- /<li>/``
  135. II. ``s/$/<\/li>/``
  136. III. ``s/Fixed bug #\([0-9]\+\)/<?php bugfix(\1); ?>/``
  137. IV. ``s/Fixed PECL bug #\([0-9]\+\)/<?php peclbugfix(\1); ?>/``
  138. V. ``s/FR #\([0-9]\+\)/FR <?php bugl(\1); ?>/``
  139. 4. ``cp releases/4_4_0.php releases/4_4_1.php``
  140. 5. ``cvs add releases/4_4_1.php``
  141. 6. Update the ``releases/*.php`` file with relevant data. The release
  142. announcement file should list in detail:
  143. a. security fixes,
  144. b. changes in behavior (whether due to a bug fix or not)
  145. 7. Add a short notice to phpweb stating that there is a new release, and
  146. highlight the major important things (security fixes) and when it is important
  147. to upgrade.
  148. a. Call php bin/createNewsEntry in your local phpweb checkout
  149. b. Add the content for the news entry
  150. 8. Commit all the changes.
  151. 9. Wait an hour or two, then send a mail to php-announce@lists.php.net,
  152. php-general@lists.php.net and internals@lists.php.net with a text similar to
  153. http://news.php.net/php.internals/17222.
  154. 10. Update ``php-bugs-web/include/functions.php`` to include the new version
  155. number, and remove the RC from there.
  156. 11. Update ``qaweb/include/release-qa.php``
  157. a. Update the $BUILD_TEST_RELEASES array with the release name
  158. b. Update $RELEASE_PROCESS array (set to false)
  159. I. For PHP4: Set $CURRENT_QA_RELEASE_4 to false
  160. II. For PHP5: Set $CURRENT_QA_RELEASE_5 to false
  161. Re-releasing the same version (or -pl)
  162. --------------------------------------
  163. 1. Commit the new binaries to ``phpweb/distributions/``
  164. 2. Edit ``phpweb/include/version.inc`` and change (X=major release number):
  165. a. If only releasing for one OS, make sure you edit only those variables
  166. b. ``$PHP_X_VERSION`` to the correct version
  167. c. ``$PHP_X_DATE`` to the release date
  168. d. ``$PHP_X_MD5`` array and update all the md5 sums
  169. e. Make sure there are no outdated "notes" or edited "date" keys in the
  170. ``$RELEASES[X][$PHP_X_VERSION]["source"]`` array
  171. 3. Add a short notice to phpweb stating that there is a new release, and
  172. highlight the major important things (security fixes) and when it is important
  173. to upgrade.
  174. a. Call php bin/createNewsEntry in your local phpweb checkout
  175. b. Add the content for the news entry
  176. 4. Commit all the changes (``include/version.inc``, ``archive/archive.xml``,
  177. ``archive/entries/YYYY-MM-DD-N.xml``)
  178. 5. Wait an hour or two, then send a mail to php-announce@lists.php.net,
  179. php-general@lists.php.net and internals@lists.php.net with a text similar to
  180. the news entry.