Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 286 lines (179 sloc) 10.816 kb
193b11c - port from todo wiki to reST (http://wiki.pooteeweet.org/ReleaseChec…
Lukas Smith authored
1 =======================
2 PHP Release Process
3 =======================
4
7ca6f66 lets me all american :)
Lukas Smith authored
5 General notes and tips
13b5ad4 separate tagging of the zend dir should not be necessary, fix reST fo…
Lukas Smith authored
6 ----------------------
f453f56 updated in regards to windows, added some clarifications and addition…
Lukas Smith authored
7
8 1. Do not release on Fridays, Saturdays or Sundays
9 because the sysadmins can not upgrade stuff then.
10
11 2. Package the day before a release. So if the release is to be on Thursday,
12 package on Wednesday.
13
14 3. Ensure that Windows builds will work before packaging
15
16 4. Follow all steps to the letter. When unclear ask previous RM's (Derick/Ilia)
17 before proceeding. Ideally make sure that for the first releases one of the
18 previous RM's is around to answer questions. For the steps related to the
19 php/QA/bug websites try to have someone from the webmaster team (Bjori) on hand.
20
13b5ad4 separate tagging of the zend dir should not be necessary, fix reST fo…
Lukas Smith authored
21 5. Verify the tags to be extra sure everything was tagged properly.
22
1c48a42 added note about how to move extensions from/to pecl
Lukas Smith authored
23 6. Moving extensions from/to PECL requires root level access to the CVS server.
62604ba - added further details on the steps necessary to move ext from/to pecl
Lukas Smith authored
24 Contact systems@php.net to get this taken care of.
25
26 Moving extensions from php-src to PECL
27 - Filesystem: cp -r php-src/ext/foo pecl/foo
28 - cvs rm php-src/ext/foo
29
30 If the extension is still usable or not dead, in cooperation with the extension
31 maintainers if any:
32 - create the pecl.php.net/foo package and its content, license, maintainer
33 - create the package.xml, commit
34 - release the package
35
36 Moving extensions from PECL to php-src
37 - Filesystem: cp -r pecl/foo php-src/ext/foo
38 OR depending on the wishes from the PECL extension maintainer.
39 - Filesystem: ln -s pecl/foo php-src/ext/foo
1c48a42 added note about how to move extensions from/to pecl
Lukas Smith authored
40
f453f56 updated in regards to windows, added some clarifications and addition…
Lukas Smith authored
41 Rolling a non stable release (alpha/beta/RC)
13b5ad4 separate tagging of the zend dir should not be necessary, fix reST fo…
Lukas Smith authored
42 --------------------------------------------
193b11c - port from todo wiki to reST (http://wiki.pooteeweet.org/ReleaseChec…
Lukas Smith authored
43
44 1. Check windows snapshot builder logs (http://snaps.php.net/win32/snapshot-STABLE.log f.e.)
45
9cd4eb3 @johannes Some updates for the release process, mostly cvs->svn things
johannes authored
46 2. run the "scripts/dev/credits" script in php-src and commit the changes in the
47 credits files in ext/standard.
193b11c - port from todo wiki to reST (http://wiki.pooteeweet.org/ReleaseChec…
Lukas Smith authored
48
9cd4eb3 @johannes Some updates for the release process, mostly cvs->svn things
johannes authored
49 3. Bump the version numbers in ``main/php_version.h``, ``configure.in`` and possibly ``NEWS``.
50 Do not use abbreviations for alpha and beta.
193b11c - port from todo wiki to reST (http://wiki.pooteeweet.org/ReleaseChec…
Lukas Smith authored
51
9cd4eb3 @johannes Some updates for the release process, mostly cvs->svn things
johannes authored
52 4. Commit those changes and note the revision id.
f948c2c added note about running scripts/dev/credits
Lukas Smith authored
53
9cd4eb3 @johannes Some updates for the release process, mostly cvs->svn things
johannes authored
54 5. tag the repository with the version. To do the tag in a fast way do a svn copy on the server using full URLs. You should use the revision id from the above commit to prevent mistakes in case there was a commit in between. f.e. "``svn cp https://svn.php.net/repository/php/php-src/branches/PHP_5_3@308399 https://svn.php.net/repository/php/php-src/tags/php_5_3_6RC1``"
f453f56 updated in regards to windows, added some clarifications and addition…
Lukas Smith authored
55 (of course, you need to change that to the version you're rolling an RC for).
193b11c - port from todo wiki to reST (http://wiki.pooteeweet.org/ReleaseChec…
Lukas Smith authored
56
f948c2c added note about running scripts/dev/credits
Lukas Smith authored
57 6. Bump up the version numbers in ``main/php_version.h``, ``configure.in``
89950cc link primary tester URLs and tried to limit lines to 80 chars
Lukas Smith authored
58 and possibly ``NEWS`` again, to the **next** version. F.e. if the release
59 candidate was "4.4.1RC1" then the new one should be "4.4.1RC2-dev" - regardless
60 if we get a new RC or not. This is to make sure ``version_compare()`` can
61 correctly work.
193b11c - port from todo wiki to reST (http://wiki.pooteeweet.org/ReleaseChec…
Lukas Smith authored
62
f948c2c added note about running scripts/dev/credits
Lukas Smith authored
63 7. Commit those changes
193b11c - port from todo wiki to reST (http://wiki.pooteeweet.org/ReleaseChec…
Lukas Smith authored
64
f948c2c added note about running scripts/dev/credits
Lukas Smith authored
65 8. Log in onto the snaps box and go into the correct tree (f.e. the PHP_4_4
89950cc link primary tester URLs and tried to limit lines to 80 chars
Lukas Smith authored
66 branch if you're rolling 4.4.x releases).
193b11c - port from todo wiki to reST (http://wiki.pooteeweet.org/ReleaseChec…
Lukas Smith authored
67
9cd4eb3 @johannes Some updates for the release process, mostly cvs->svn things
johannes authored
68 9. You do not have to update the tree, but of course you can with "``svn up``".
193b11c - port from todo wiki to reST (http://wiki.pooteeweet.org/ReleaseChec…
Lukas Smith authored
69
f948c2c added note about running scripts/dev/credits
Lukas Smith authored
70 10. run: ``./makedist php 4.4.1RC1``, this will export the tree, create configure
89950cc link primary tester URLs and tried to limit lines to 80 chars
Lukas Smith authored
71 and build two tarballs (one gz and one bz2).
193b11c - port from todo wiki to reST (http://wiki.pooteeweet.org/ReleaseChec…
Lukas Smith authored
72
73c9f1f typo fix (thx chris jones for spotting)
Lukas Smith authored
73 11. Copy those two tarballs to www.php.net, in your homedir there should be a
89950cc link primary tester URLs and tried to limit lines to 80 chars
Lukas Smith authored
74 directory "downloads/". Copy them into there, so that the system can generate
75 MD5 sums. If you do not have this directory, talk to Derick.
193b11c - port from todo wiki to reST (http://wiki.pooteeweet.org/ReleaseChec…
Lukas Smith authored
76
f948c2c added note about running scripts/dev/credits
Lukas Smith authored
77 12. Now the RC can be found on http://downloads.php.net/yourname,
89950cc link primary tester URLs and tried to limit lines to 80 chars
Lukas Smith authored
78 f.e. http://downloads.php.net/derick/
193b11c - port from todo wiki to reST (http://wiki.pooteeweet.org/ReleaseChec…
Lukas Smith authored
79
f948c2c added note about running scripts/dev/credits
Lukas Smith authored
80 13. Once the release has been tagged, contact the PHP Windows development team
f453f56 updated in regards to windows, added some clarifications and addition…
Lukas Smith authored
81 (internals-win@lists.php.net) so that Windows binaries can be created. Once
82 those are made, they should be placed into the same directory as the source snapshots.
193b11c - port from todo wiki to reST (http://wiki.pooteeweet.org/ReleaseChec…
Lukas Smith authored
83
0909b1b - made it clear which steps are relevant for RCs only
Lukas Smith authored
84 Getting the non stable release (alpha/beta/RC) announced
85 --------------------------------------------------------
193b11c - port from todo wiki to reST (http://wiki.pooteeweet.org/ReleaseChec…
Lukas Smith authored
86
89950cc link primary tester URLs and tried to limit lines to 80 chars
Lukas Smith authored
87 1. Send an email (see example here: http://news.php.net/php.internals/19486)
88 **To** ``internals@lists.php.net`` and ``php-general@lists.php.net`` lists
89 pointing out "the location of the release" and "the possible release date of
90 either the next RC, or the final release".
193b11c - port from todo wiki to reST (http://wiki.pooteeweet.org/ReleaseChec…
Lukas Smith authored
91
c98e92f primary tester ml needs to be in the TO not CC
Lukas Smith authored
92 2. Send an email (see example here http://news.php.net/php.pear.qa/5201) **To**
93 ``php-qa@lists.php.net`` and ``primary-qa-tests@lists.php.net``.
c2f8ae6 MFB primary testers list is now mailed for every release
Lukas Smith authored
94 This email is to notify the selected projects about a new release so that they
95 can make sure their projects keep working. Make sure that you have been setup
ad97f0b updated due to the creation of the primary testers mailinglist
Lukas Smith authored
96 as a moderator for ``primary-qa-tests@lists.php.net`` by having someone (Wez,
97 Derick) run the following commands for you:
98
99 ``ssh lists.php.net``
100
101 ``sudo -u ezmlm ezmlm-sub ~ezmlm/primary-qa-tester/mod moderator-email-address``
193b11c - port from todo wiki to reST (http://wiki.pooteeweet.org/ReleaseChec…
Lukas Smith authored
102
9cd4eb3 @johannes Some updates for the release process, mostly cvs->svn things
johannes authored
103 3. Update the MD5 sums in ``web/qa/trunk/include/rc-md5sums.txt`` (no empty lines, ordered by filename, odler version number first, .bz2 before .gz).
193b11c - port from todo wiki to reST (http://wiki.pooteeweet.org/ReleaseChec…
Lukas Smith authored
104
bddb822 @johannes Where using svn now, use svn paths
johannes authored
105 4. Update in ``web/qa/trunk/include/release-qa.php`` constants with the new RC and
89950cc link primary tester URLs and tried to limit lines to 80 chars
Lukas Smith authored
106 commit this.
193b11c - port from todo wiki to reST (http://wiki.pooteeweet.org/ReleaseChec…
Lukas Smith authored
107
108 a. ``$BUILD_TEST_RELEASES`` = array("4.4.7RC1", "5.2.2RC1")
109
110 b. ``$CURRENT_QA_RELEASE_4`` = "4.4.7RC1" (``$CURRENT_QA_RELEASE_5`` for PHP5)
111
112 c. ``$RELEASE_PROCESS`` = array(4 => true, 5 => true)
113
9cd4eb3 @johannes Some updates for the release process, mostly cvs->svn things
johannes authored
114 1. Update in ``php-bugs/trunk/include/php_versions.php`` to include the new RC and commit.
193b11c - port from todo wiki to reST (http://wiki.pooteeweet.org/ReleaseChec…
Lukas Smith authored
115
9cd4eb3 @johannes Some updates for the release process, mostly cvs->svn things
johannes authored
116 2. Update ``php/trunk/include/version.inc`` (x=major version number)
193b11c - port from todo wiki to reST (http://wiki.pooteeweet.org/ReleaseChec…
Lukas Smith authored
117
118 a. ``$PHP_x_RC`` = "5.3.0RC1"
119
120 b. ``$PHP_x_RC_DATE`` = "06 September 2007"
121
a5db6a2 @johannes Hannes said this shall not be run for RCs
johannes authored
122 3. Commit those changes:
193b11c - port from todo wiki to reST (http://wiki.pooteeweet.org/ReleaseChec…
Lukas Smith authored
123
9cd4eb3 @johannes Some updates for the release process, mostly cvs->svn things
johannes authored
124 a. ``svn commit include/version.inc include/releases.inc``
193b11c - port from todo wiki to reST (http://wiki.pooteeweet.org/ReleaseChec…
Lukas Smith authored
125
a5db6a2 @johannes Hannes said this shall not be run for RCs
johannes authored
126 4. For the first RC, write the doc team (phpdoc@lists.php.net) about updating the
398e735 @philip MFB: Added the "update INSTALL and win32/install.txt" tasks
philip authored
127 INSTALL and win32/install.txt files which are generated from the PHP manual sources.
128
f453f56 updated in regards to windows, added some clarifications and addition…
Lukas Smith authored
129 Rolling a stable release
13b5ad4 separate tagging of the zend dir should not be necessary, fix reST fo…
Lukas Smith authored
130 ------------------------
193b11c - port from todo wiki to reST (http://wiki.pooteeweet.org/ReleaseChec…
Lukas Smith authored
131
132 1. Check windows snapshot builder logs (http://snaps.php.net/win32/snapshot-STABLE.log f.e.)
133
04aaae3 typo fix (thx chris)
Lukas Smith authored
134 2. Bump the version numbers in ``main/php_version.h``, ``configure.in`` and possibly ``NEWS``.
193b11c - port from todo wiki to reST (http://wiki.pooteeweet.org/ReleaseChec…
Lukas Smith authored
135
136 3. **Merge** all related sections in NEWS (f.e. merge the 4.4.1RC1 and 4.4.0 sections)
137
138 4. Commit those changes
139
f948c2c added note about running scripts/dev/credits
Lukas Smith authored
140 5. run the "scripts/dev/credits" script in php-src and commit the changes in the
141 credits files in ext/standard.
142
143 6. tag the repository with the version f.e. "``cvs tag php_4_4_1``"
f453f56 updated in regards to windows, added some clarifications and addition…
Lukas Smith authored
144 (of course, you need to change that to the version you're rolling an RC for).
145 When making 5.X release, you need to tag the Zend directory separately!!
193b11c - port from todo wiki to reST (http://wiki.pooteeweet.org/ReleaseChec…
Lukas Smith authored
146
f948c2c added note about running scripts/dev/credits
Lukas Smith authored
147 7. Bump up the version numbers in ``main/php_version.h``, ``configure.in`` and
89950cc link primary tester URLs and tried to limit lines to 80 chars
Lukas Smith authored
148 possibly ``NEWS`` again, to the **next** version. F.e. if the release candidate
149 was "4.4.1RC1" then the new one should be "4.4.1RC2-dev" - regardless if we get
150 a new RC or not. This is to make sure ``version_compare()`` can correctly work.
193b11c - port from todo wiki to reST (http://wiki.pooteeweet.org/ReleaseChec…
Lukas Smith authored
151
f948c2c added note about running scripts/dev/credits
Lukas Smith authored
152 8. Commit those changes
193b11c - port from todo wiki to reST (http://wiki.pooteeweet.org/ReleaseChec…
Lukas Smith authored
153
f948c2c added note about running scripts/dev/credits
Lukas Smith authored
154 9. Log in onto the snaps box and go into the correct tree (f.e. the PHP_4_4
89950cc link primary tester URLs and tried to limit lines to 80 chars
Lukas Smith authored
155 branch if you're rolling 4.4.x releases).
193b11c - port from todo wiki to reST (http://wiki.pooteeweet.org/ReleaseChec…
Lukas Smith authored
156
f948c2c added note about running scripts/dev/credits
Lukas Smith authored
157 10. You do not have to update the tree, but of course you can with "``cvs up -dP``".
193b11c - port from todo wiki to reST (http://wiki.pooteeweet.org/ReleaseChec…
Lukas Smith authored
158
f948c2c added note about running scripts/dev/credits
Lukas Smith authored
159 11. run: ``./makedist php 4.4.1``, this will export the tree, create configure
89950cc link primary tester URLs and tried to limit lines to 80 chars
Lukas Smith authored
160 and build two tarballs (one gz and one bz2).
193b11c - port from todo wiki to reST (http://wiki.pooteeweet.org/ReleaseChec…
Lukas Smith authored
161
f948c2c added note about running scripts/dev/credits
Lukas Smith authored
162 12. Commit those two tarballs to CVS (phpweb/distributions)
193b11c - port from todo wiki to reST (http://wiki.pooteeweet.org/ReleaseChec…
Lukas Smith authored
163
f948c2c added note about running scripts/dev/credits
Lukas Smith authored
164 13. Once the release has been tagged, contact the PHP Windows development team
f453f56 updated in regards to windows, added some clarifications and addition…
Lukas Smith authored
165 (internals-win@lists.php.net) so that Windows binaries can be created. Once
166 those are made, they should be committed to CVS too.
193b11c - port from todo wiki to reST (http://wiki.pooteeweet.org/ReleaseChec…
Lukas Smith authored
167
f948c2c added note about running scripts/dev/credits
Lukas Smith authored
168 14. Check if the pear files are updated (phar for 5.1+ or run pear/make-pear-bundle.php with 4.4)
193b11c - port from todo wiki to reST (http://wiki.pooteeweet.org/ReleaseChec…
Lukas Smith authored
169
f948c2c added note about running scripts/dev/credits
Lukas Smith authored
170 15. When making a final release, also remind the PHP Windows development team
f453f56 updated in regards to windows, added some clarifications and addition…
Lukas Smith authored
171 (internals-win@lists.php.net) to prepare the installer packages for Win32.
193b11c - port from todo wiki to reST (http://wiki.pooteeweet.org/ReleaseChec…
Lukas Smith authored
172
f453f56 updated in regards to windows, added some clarifications and addition…
Lukas Smith authored
173 Getting the stable release announced
13b5ad4 separate tagging of the zend dir should not be necessary, fix reST fo…
Lukas Smith authored
174 ------------------------------------
193b11c - port from todo wiki to reST (http://wiki.pooteeweet.org/ReleaseChec…
Lukas Smith authored
175
f453f56 updated in regards to windows, added some clarifications and addition…
Lukas Smith authored
176 1. Run the bumpRelease script for phpweb on your local checkout
193b11c - port from todo wiki to reST (http://wiki.pooteeweet.org/ReleaseChec…
Lukas Smith authored
177
178 a. ``php bin/bumpRelease 5`` (or ``php bin/bumpRelease 4`` for PHP4)
179
180 2. Edit ``phpweb/include/version.inc`` and change (X=major release number):
181
182 a. ``$PHP_X_VERSION`` to the correct version
183
184 b. ``$PHP_X_DATE`` to the release date
185
186 c. ``$PHP_X_MD5`` array and update all the md5 sums
187
188 d. set ``$PHP_X_RC`` to false!
189
89950cc link primary tester URLs and tried to limit lines to 80 chars
Lukas Smith authored
190 e. Make sure there are no outdated "notes" or edited "date" keys in the
191 ``$RELEASES[X][$PHP_X_VERSION]["source"]`` array
193b11c - port from todo wiki to reST (http://wiki.pooteeweet.org/ReleaseChec…
Lukas Smith authored
192
193 f. if the windows builds aren't ready yet prefix the "windows" key with a dot (".windows")
194
f453f56 updated in regards to windows, added some clarifications and addition…
Lukas Smith authored
195 3. Update the ChangeLog file for the given major version
196 f.e. ``ChangeLog-4.php`` from the NEWS file
193b11c - port from todo wiki to reST (http://wiki.pooteeweet.org/ReleaseChec…
Lukas Smith authored
197
198 a. go over the list and put every element on one line
199
200 b. check for &, < and > and escape them if necessary
201
202 c. remove all the names at the ends of lines
203
204 d. for marking up, you can do the following (with VI):
205
206 I. ``s/^- /<li>/``
207
208 II. ``s/$/<\/li>/``
209
210 III. ``s/Fixed bug #\([0-9]\+\)/<?php bugfix(\1); ?>/``
211
e15522c expanded the section about how to create the changelog
Lukas Smith authored
212 IV. ``s/Fixed PECL bug #\([0-9]\+\)/<?php peclbugfix(\1); ?>/``
213
214 V. ``s/FR #\([0-9]\+\)/FR <?php bugl(\1); ?>/``
215
193b11c - port from todo wiki to reST (http://wiki.pooteeweet.org/ReleaseChec…
Lukas Smith authored
216 4. ``cp releases/4_4_0.php releases/4_4_1.php``
217
218 5. ``cvs add releases/4_4_1.php``
219
89950cc link primary tester URLs and tried to limit lines to 80 chars
Lukas Smith authored
220 6. Update the ``releases/*.php`` file with relevant data. The release
221 announcement file should list in detail:
193b11c - port from todo wiki to reST (http://wiki.pooteeweet.org/ReleaseChec…
Lukas Smith authored
222
223 a. security fixes,
224
7ca6f66 lets me all american :)
Lukas Smith authored
225 b. changes in behavior (whether due to a bug fix or not)
193b11c - port from todo wiki to reST (http://wiki.pooteeweet.org/ReleaseChec…
Lukas Smith authored
226
89950cc link primary tester URLs and tried to limit lines to 80 chars
Lukas Smith authored
227 7. Add a short notice to phpweb stating that there is a new release, and
228 highlight the major important things (security fixes) and when it is important
229 to upgrade.
193b11c - port from todo wiki to reST (http://wiki.pooteeweet.org/ReleaseChec…
Lukas Smith authored
230
f453f56 updated in regards to windows, added some clarifications and addition…
Lukas Smith authored
231 a. Call php bin/createNewsEntry in your local phpweb checkout
193b11c - port from todo wiki to reST (http://wiki.pooteeweet.org/ReleaseChec…
Lukas Smith authored
232
f453f56 updated in regards to windows, added some clarifications and addition…
Lukas Smith authored
233 b. Add the content for the news entry
234
235 8. Commit all the changes.
193b11c - port from todo wiki to reST (http://wiki.pooteeweet.org/ReleaseChec…
Lukas Smith authored
236
89950cc link primary tester URLs and tried to limit lines to 80 chars
Lukas Smith authored
237 9. Wait an hour or two, then send a mail to php-announce@lists.php.net,
238 php-general@lists.php.net and internals@lists.php.net with a text similar to
239 http://news.php.net/php.internals/17222.
193b11c - port from todo wiki to reST (http://wiki.pooteeweet.org/ReleaseChec…
Lukas Smith authored
240
89950cc link primary tester URLs and tried to limit lines to 80 chars
Lukas Smith authored
241 10. Update ``php-bugs-web/include/functions.php`` to include the new version
242 number, and remove the RC from there.
193b11c - port from todo wiki to reST (http://wiki.pooteeweet.org/ReleaseChec…
Lukas Smith authored
243
244 11. Update ``qaweb/include/release-qa.php``
245
246 a. Update the $BUILD_TEST_RELEASES array with the release name
247
248 b. Update $RELEASE_PROCESS array (set to false)
249
250 I. For PHP4: Set $CURRENT_QA_RELEASE_4 to false
251
252 II. For PHP5: Set $CURRENT_QA_RELEASE_5 to false
253
6b8c88e @bjori Add guidelines for re-releasing
bjori authored
254 Re-releasing the same version (or -pl)
6a941c6 formatting fix for the re-releasing section
Lukas Smith authored
255 --------------------------------------
6b8c88e @bjori Add guidelines for re-releasing
bjori authored
256
257 1. Commit the new binaries to ``phpweb/distributions/``
258
259 2. Edit ``phpweb/include/version.inc`` and change (X=major release number):
260
261 a. If only releasing for one OS, make sure you edit only those variables
262
263 b. ``$PHP_X_VERSION`` to the correct version
264
265 c. ``$PHP_X_DATE`` to the release date
266
267 d. ``$PHP_X_MD5`` array and update all the md5 sums
268
269 e. Make sure there are no outdated "notes" or edited "date" keys in the
270 ``$RELEASES[X][$PHP_X_VERSION]["source"]`` array
271
272 3. Add a short notice to phpweb stating that there is a new release, and
273 highlight the major important things (security fixes) and when it is important
274 to upgrade.
275
276 a. Call php bin/createNewsEntry in your local phpweb checkout
277
278 b. Add the content for the news entry
279
280 4. Commit all the changes (``include/version.inc``, ``archive/archive.xml``,
281 ``archive/entries/YYYY-MM-DD-N.xml``)
282
283 5. Wait an hour or two, then send a mail to php-announce@lists.php.net,
284 php-general@lists.php.net and internals@lists.php.net with a text similar to
285 the news entry.
Something went wrong with that request. Please try again.