[ci skip] Update release process docs to Markdown

- Markdown
- CS syncs
- Some partial readability fixes
- The protocol hasn't been changed
This commit is contained in:
Peter Kokot 2019-04-07 00:57:41 +02:00
parent 3393ae6e77
commit 8bcc7acbb0

View file

@ -1,398 +1,437 @@
======================= # PHP release process
PHP Release Process
=======================
General notes and tips ## General notes and tips
----------------------
1. Do not release on Fridays, Saturdays or Sundays 1. Do not release on Fridays, Saturdays or Sundays because the sysadmins cannot
because the sysadmins can not upgrade stuff then. upgrade stuff then.
2. Package two days before a release. So if the release is to be on Thursday, 2. Package two days before a release. So if the release is to be on Thursday,
package on Tuesday. Think about timezones as well. package on Tuesday. Think about timezones as well.
3. Ensure that the tests on Travis CI are green. 3. Ensure that the tests on Travis CI are green.
See: https://travis-ci.org/php/php-src/builds
It is recommended to do so a couple of days before the packaging day, to
have enough time to investigate failures, communicate with the authors and
commit the fixes.
The RM for the branch is also responsible for keeping the CI green on
ongoing basis between the releases. Check the CI status for your branch
periodically and resolve the failures ASAP. See more in:
https://wiki.php.net/rfc/travis_ci
4. Ensure that Windows builds will work before packaging See: https://travis-ci.org/php/php-src/builds
5. Follow all steps to the letter. When unclear ask previous RM's (David/Julien/ It is recommended to do so a couple of days before the packaging day, to
Johannes/Stas/Derick/Ilia) before proceeding. Ideally make sure that for the have enough time to investigate failures, communicate with the authors and
first releases one of the previous RM's is around to answer questions. For the commit the fixes.
steps related to the php/QA/bug websites try to have someone from the webmaster
team (Bjori) on hand.
6. Verify the tags to be extra sure everything was tagged properly. The RM for the branch is also responsible for keeping the CI green on
ongoing basis between the releases. Check the CI status for your branch
periodically and resolve the failures ASAP. See more in
https://wiki.php.net/rfc/travis_ci.
7. Moving extensions from/to PECL requires write access to the destination. 4. Ensure that Windows builds will work before packaging.
Most developers should have this.
Moving extensions from php-src to PECL 5. Follow all steps to the letter. When unclear ask previous RM's (David,
- Checkout the pecl directory, most likely you want a sparse-root checkout Julien, Johannes, Stas, Derick, Ilia, Sara, Remi, or Christoph) before
svn co --depth=empty https://svn.php.net/repository/pecl proceeding. Ideally make sure that for the first releases one of the
- Create a directory for the extension incl. branch and tag structure, previous RM's is around to answer questions. For the steps related to the
no trunk at this point and commit this to svn php/QA/bug websites try to have someone from the webmaster team (Bjori) on
cd pecl; mkdir foo foo/tags foo/branches; svn add foo; svn commit hand.
- Move the extension from php-src to the new location
svn mv https://svn.php.net/repository/php/php-src/trunk/ext/foo \
https://svn.php.net/repository/pecl/foo/trunk
If the extension is still usable or not dead, in cooperation with the extension 6. Verify the tags to be extra sure everything was tagged properly.
maintainers if any:
- create the pecl.php.net/foo package and its content, license, maintainer
- create the package.xml, commit
- release the package
For Moving extensions from PECL to php-src the svn mv has to be done the other 7. Moving extensions from/to PECL requires write access to the destination.
way round. Most developers should have this.
Rolling a non stable release (alpha/beta/RC) Moving extensions from php-src to PECL:
--------------------------------------------
1. Check windows snapshot builder logs (http://windows.php.net/downloads/snaps/ the last revision) * Checkout the pecl directory, most likely you want a sparse-root checkout
2. Check the tests at https://travis-ci.org/php/php-src/builds ```
svn co --depth=empty https://svn.php.net/repository/pecl
```
3. run the "scripts/dev/credits" script in php-src and commit the changes in the * Create a directory for the extension including branch and tag structure,
credits files in ext/standard. no trunk at this point and commit this to svn
4. Checkout the release branch for this release (e.g., PHP-5.4.2) from the main branch. ```
cd pecl; mkdir foo foo/tags foo/branches; svn add foo; svn commit
```
5. Bump the version numbers in ``main/php_version.h``, ``Zend/zend.h``, ``configure.ac`` and possibly ``NEWS``. * Move the extension from php-src to the new location
Do not use abbreviations for alpha and beta. Do not use dashes, you should
``#define PHP_VERSION "5.4.22RC1"`` and not ``#define PHP_VERSION "5.4.22-RC1"``
6. Compile and make test, with and without ZTS, using the right Bison version ```
(for example, for 5.5, Bison 2.4.1 is used) svn mv https://svn.php.net/repository/php/php-src/trunk/ext/foo \
https://svn.php.net/repository/pecl/foo/trunk
```
7. Check ./sapi/cli/php -v output for version matching. If the extension is still usable or not dead, in cooperation with the
extension maintainers if any:
* Create the pecl.php.net/foo package and its content, license, maintainer
* Create the package.xml, commit
* Release the package
8. If all is right, commit the changes to the release branch with ``git commit -a``. For moving extensions from PECL to php-src the svn mv has to be done the
other way round.
9. Tag the repository release branch with the version, e.g.: ## Rolling a non stable release (alpha/beta/RC)
``git tag -u YOURKEYID php-5.4.2RC2``
10. Bump the version numbers in ``main/php_version.h``, ``Zend/zend.h``, ``configure.ac`` and ``NEWS`` 1. Check Windows snapshot builder logs https://windows.php.net/downloads/snaps/
in the *main* branch (PHP-5.4 for example) to prepare for the **next** version. the last revision.
F.e. if the RC is "5.4.1RC1" then the new one should be "5.4.2-dev" - regardless if we get
a new RC or not. This is to make sure ``version_compare()`` can correctly work.
Commit the changes to the main branch.
11. Push the changes to the main repo, the tag, the main branch and the release branch : 2. Check the tests at https://travis-ci.org/php/php-src/builds.
``git push --tags origin HEAD``
``git push origin {main branch}``
``git push origin {release branch}``
12. run: ``PHPROOT=. ./scripts/dev/makedist 5.4.2RC2``, this will export the tree, create configure 3. Run the `scripts/dev/credits` script in php-src and commit the changes in
and build three tarballs (gz, bz2 and xz). the credits files in ext/standard.
13. run ``scripts/dev/gen_verify_stub <version> [identity]``, this will sign the tarballs 4. Checkout the release branch for this release (e.g., PHP-5.4.2) from the main
and output verification information to be included in announcement email branch.
14. Copy those tarballs (scp, rsync) to downloads.php.net, in your homedir there should be a 5. Bump the version numbers in `main/php_version.h`, `Zend/zend.h`,
directory "public_html/". Copy them into there. If you do not have this directory, create it. `configure.ac` and possibly `NEWS`. Do not use abbreviations for alpha and
beta. Do not use dashes, you should `#define PHP_VERSION "5.4.22RC1"` and
not `#define PHP_VERSION "5.4.22-RC1"`
15. Now the RC can be found on http://downloads.php.net/~yourname, 6. Compile and run `make test`, with and without ZTS, using the right Bison
f.e. http://downloads.php.net/~derick/ version (for example, for PHP 7.4, minimum Bison 3.0.0 is used).
16. Once the release has been tagged, contact the release-managers@ distribution list 7. Check `./sapi/cli/php -v` output for version matching.
so that Windows binaries can be created. Once those are made, they can be found at
http://windows.php.net/download
Getting the non stable release (alpha/beta/RC) announced 8. If all is right, commit the changes to the release branch:
--------------------------------------------------------
1. Update ``qa.git/include/release-qa.php`` with the appropriate information. ```
See the documentation within release-qa.php for more information, but all releases git commit -a
and RCs are configured here. Only $QA_RELEASES needs to be edited. ```
Example: When rolling an RC, set the 'rc' with appropriate information for the 9. Tag the repository release branch with the version, e.g.:
given version.
Note: Remember to update the sha256 checksum information. ```
git tag -u YOURKEYID php-5.4.2RC2
```
2. Update ``web/php.git/include/version.inc`` (X_Y=major_minor version number) 10. Bump the version numbers in `main/php_version.h`, `Zend/zend.h`,
`configure.ac` and `NEWS` in the *main* branch (PHP-5.4 for example) to
prepare for the **next** version. F.e. if the RC is "5.4.1RC1" then the new
one should be `5.4.2-dev` - regardless if we get a new RC or not. This is to
make sure `version_compare()` can correctly work. Commit the changes to the
main branch.
a. ``$PHP_X_Y_RC`` = "5.4.0RC1" (should be set to "false" before) 11. Push the changes to the main repo, the tag, the main branch and the release
branch:
b. ``$PHP_X_Y_RC_DATE`` = "06 September 2007" ```
git push --tags origin HEAD
git push origin {main branch}
git push origin {release branch}
```
3. Skip this step for non stable releases after GA of minor or major versions 12. Run: `PHPROOT=. ./scripts/dev/makedist 5.4.2RC2`, this will export the tree,
(e.g. announce 7.3.0RC1, but not 7.3.1RC1): create `configure` and build three tarballs (gz, bz2 and xz).
Add a short notice to phpweb stating that there is a new release, and 13. Run `scripts/dev/gen_verify_stub <version> [identity]`, this will sign the
highlight the major important things (security fixes) and when it is tarballs and output verification information to be included in announcement
important to upgrade. email.
a. Call php bin/createNewsEntry in your local phpweb checkout 14. Copy those tarballs (scp, rsync) to downloads.php.net, in your homedir there
Use category "frontpage" *and* "releases" for all stable releases. should be a directory `public_html/`. Copy them into there. If you do not
Use category "frontpage" for X.Y.0 non-stable releases only (news only). have this directory, create it.
b. Add the content for the news entry. Be sure to include the text: 15. Now the RC can be found on https://downloads.php.net/~yourname,
"THIS IS A DEVELOPMENT PREVIEW - DO NOT USE IT IN PRODUCTION!" f.e. https://downloads.php.net/~derick/.
4. Commit and push changes to qa and web 16. Once the release has been tagged, contact the release-managers@ distribution
list so that Windows binaries can be created. Once those are made, they can
be found at https://windows.php.net/download.
*Wait for web and qa sites to update with new information before sending announce* ## Getting the non stable release (alpha/beta/RC) announced
5. Send **separate** emails **To** ``internals@lists.php.net`` and ``php-general@lists.php.net`` 1. Update `qa.git/include/release-qa.php` with the appropriate information. See
lists pointing out "the location of the release" and "the possible release date of the documentation within release-qa.php for more information, but all
either the next RC, or the final release". Include in this information the verification releases and RCs are configured here. Only $QA_RELEASES needs to be edited.
information output by ``gen_verify_stub``.
6. Send **separate** emails (see example here http://news.php.net/php.pear.qa/5201) **To** Example: When rolling an RC, set the 'rc' with appropriate information for
``php-qa@lists.php.net`` and ``primary-qa-tester@lists.php.net``. the given version.
These emails are to notify the selected projects about a new release so that they
can make sure their projects keep working. Make sure that you have been setup
as a moderator for ``primary-qa-tester@lists.php.net`` by having someone (Hannes, Dan,
Derick) run the following commands for you:
``ssh lists.php.net`` Note: Remember to update the sha256 checksum information.
``sudo -u ezmlm ezmlm-sub ~ezmlm/primary-qa-tester/mod moderator-email-address`` 2. Update `web/php.git/include/version.inc` (X_Y=major_minor version number)
Rolling a stable release * `$PHP_X_Y_RC = "5.4.0RC1"` (should be set to `false` before)
------------------------ * `$PHP_X_Y_RC_DATE = "06 September 2007"`
1. Checkout your release branch, you should have created when releasing previous RC 3. Skip this step for non stable releases after GA of minor or major versions
and bump the version numbers in ``main/php_version.h``, ``Zend/zend.h``, ``configure.ac`` and possibly ``NEWS``. (e.g. announce 7.3.0RC1, but not 7.3.1RC1):
2. If a CVE commit needs to be merged to the release, then have it committed to Add a short notice to phpweb stating that there is a new release, and
the base branches and merged upwards as usual (f.e commit the CVE fix to 5.3, highlight the major important things (security fixes) and when it is
merge to 5.4, 5.5 etc...). Then you can cherry-pick it in your release branch. important to upgrade.
Don't forget to update NEWS manually in an extra commit then.
3. Commit those changes. Ensure the tests at https://travis-ci.org/php/php-src/builds are * Call `php bin/createNewsEntry` in your local phpweb checkout. Use category
still passing. "frontpage" *and* "releases" for all stable releases. Use category
"frontpage" for X.Y.0 non-stable releases only (news only).
4. run the "scripts/dev/credits" script in php-src and commit the changes in the * Add the content for the news entry. Be sure to include the text:
credits files in ext/standard.
5. Compile and make test, with and without ZTS, using the right Bison version ```
(for example, for 5.5, Bison 2.4.1 is used) "THIS IS A DEVELOPMENT PREVIEW - DO NOT USE IT IN PRODUCTION!"
```
6. Check ./sapi/cli/php -v output for version matching. 4. Commit and push changes to qa and web.
7. tag the repository with the version f.e. "``git tag -u YOURKEYID php-5.4.1``" Wait for web and qa sites to update with new information before sending
announce.
8. Push the tag f.e. "``git push origin php-5.4.1``" 5. Send **separate** emails **To** `internals@lists.php.net` and
`php-general@lists.php.net` lists pointing out "the location of the release"
and "the possible release date of either the next RC, or the final release".
Include in this information the verification information output by
`gen_verify_stub`.
9. run: ``PHPROOT=. ./scripts/dev/makedist 5.4.1``, this will export the tag, create configure 6. Send **separate** emails (see example http://news.php.net/php.pear.qa/5201)
and build three tarballs (gz, bz2 and xz). **To** `php-qa@lists.php.net` and `primary-qa-tester@lists.php.net`. These
Check if the pear files are updated (phar). emails are to notify the selected projects about a new release so that they
On some systems the behavior of GNU tar can default to produce POSIX compliant archives can make sure their projects keep working. Make sure that you have been
with PAX headers. As not every application is compatible with that format, creation of setup as a moderator for `primary-qa-tester@lists.php.net` by having someone
archives with PAX headers should be avoided. When packaging on such a system, the GNU tar (Hannes, Dan, Derick) run the following commands for you:
can be influenced by defining the environment variable TAR_OPTIONS='--format=gnu'.
10. run ``scripts/dev/gen_verify_stub <version> [identity]``, this will sign the tarballs ```
and output verification information to be included in announcement email ssh lists.php.net
sudo -u ezmlm ezmlm-sub ~ezmlm/primary-qa-tester/mod moderator-email-address
```
11. Commit and push all the tarballs and signature files to web/php-distributions.git, ## Rolling a stable release
then update the git submodule reference in web/php.git:
``git submodule init;
git submodule update;
cd distributions;
git fetch;
git pull --rebase origin master;
cd ..;
git commit distributions;
git push;``
This is to fetch the last commit id from php-distributions.git and commit this
last commit id to web/php.git, then, mirrors will now sync
12. Once the release has been tagged, contact release managers, windows builders, and package maintainers 1. Checkout your release branch, you should have created when releasing
so that they can build releases. Do not send this announcement to any public lists. previous RC and bump the version numbers in `main/php_version.h`,
`Zend/zend.h`, `configure.ac` and possibly `NEWS`.
Getting the stable release announced 2. If a CVE commit needs to be merged to the release, then have it committed to
------------------------------------ the base branches and merged upwards as usual (f.e commit the CVE fix to
5.3, merge to 5.4, 5.5 etc...). Then you can cherry-pick it in your release
branch. Don't forget to update `NEWS` manually in an extra commit then.
1. Update phpweb/include/releases.inc with the old release info 3. Commit those changes. Ensure the tests at
(updates the download archives) https://travis-ci.org/php/php-src/builds are still passing.
a. You can run ``php bin/bumpRelease 7 2`` where the first number is 4. Run the `scripts/dev/credits` script in php-src and commit the changes in
the major version, and the second number is the minor version the credits files in ext/standard.
(7.2 in this example).
b. If that fails for any non-trivially fixable reason, you can 5. Compile and make test, with and without ZTS, using the right Bison version
manually copy the old information to include/releases.inc (for example, for PHP 7.4, minimum Bison 3.0.0 is used).
2. Update ``phpweb/include/version.inc`` (X_Y=major_minor release number): 6. Check `./sapi/cli/php -v` output for version matching.
a. ``$PHP_X_Y_VERSION`` to the correct version 7. Tag the repository with the version f.e. `git tag -u YOURKEYID php-5.4.1`
b. ``$PHP_X_Y_DATE`` to the release date 8. Push the tag f.e. `git push origin php-5.4.1`.
c. ``$PHP_X_Y_SHA256`` array and update all the SHA256 sums 9. Run: `PHPROOT=. ./scripts/dev/makedist 5.4.1`, this will export the tag,
create configure and build three tarballs (gz, bz2 and xz). Check if the
pear files are updated (phar). On some systems the behavior of GNU tar can
default to produce POSIX compliant archives with PAX headers. As not every
application is compatible with that format, creation of archives with PAX
headers should be avoided. When packaging on such a system, the GNU tar can
be influenced by defining the environment variable
`TAR_OPTIONS='--format=gnu'`.
d. set ``$PHP_X_Y_RC`` to false! 10. Run `scripts/dev/gen_verify_stub <version> [identity]`, this will sign the
tarballs and output verification information to be included in announcement
email.
e. Make sure there are no outdated "notes" or edited "date" keys in the 11. Commit and push all the tarballs and signature files to
``$RELEASES[X][$PHP_X_VERSION]["source"]`` array `web/php-distributions.git`, then update the git submodule reference in
`web/php.git`:
f. Only for the first revision of a major or minor release bump ```
``$PHP_X_VERSION``, ``$PHP_X_DATE`` and ``$PHP_X_RC_DATE``. git submodule init
git submodule update
cd distributions
git fetch
git pull --rebase origin master
cd ..
git commit distributions
git push
```
3. Create the release file (releases/x_y_z.php) This is to fetch the last commit id from php-distributions.git and commit
Usually we use the same content as for point 6, but included in php template this last commit id to `web/php.git`, then, website will now sync.
instead of the release xml.
4. Update php-qa/include/release-qa.php and add the next version as an QARELEASE 12. Once the release has been tagged, contact release managers, Windows
(prepare for next RC) builders, and package maintainers so that they can build releases. Do not
send this announcement to any public lists.
5. Update the ChangeLog file for the given major version ## Getting the stable release announced
f.e. ``ChangeLog-5.php`` from the NEWS file
a. go over the list and put every element on one line 1. Update `phpweb/include/releases.inc` with the old release info (updates the
download archives).
b. check for &, < and > and escape them if necessary * You can run `php bin/bumpRelease 7 2` where the first number is the major
version, and the second number is the minor version (7.2 in this example).
c. remove all the names at the ends of lines * If that fails for any non-trivially fixable reason, you can manually copy
the old information to `include/releases.inc`.
d. for marking up, you can do the following (with VI): 2. Update `phpweb/include/version.inc` (X_Y=major_minor release number):
I. ``s/^- /<li>/`` * `$PHP_X_Y_VERSION` to the correct version
* `$PHP_X_Y_DATE` to the release date
* `$PHP_X_Y_SHA256` array and update all the SHA256 sums
* Set `$PHP_X_Y_RC` to false!
* Make sure there are no outdated "notes" or edited "date" keys in the
`$RELEASES[X][$PHP_X_VERSION]["source"]` array.
* Only for the first revision of a major or minor release bump
`$PHP_X_VERSION`, `$PHP_X_DATE` and `$PHP_X_RC_DATE`.
II. ``s/$/<\/li>/`` 3. Create the release file (releases/x_y_z.php)
III. ``s/Fixed bug #\([0-9]\+\)/<?php bugfix(\1); ?>/`` Usually we use the same content as for point 6, but included in php template
instead of the release xml.
IV. ``s/Fixed PECL bug #\([0-9]\+\)/<?php peclbugfix(\1); ?>/`` 4. Update `php-qa/include/release-qa.php` and add the next version as an
QARELEASE (prepare for next RC).
V. ``s/FR #\([0-9]\+\)/FR <?php bugl(\1); ?>/`` 5. Update the ChangeLog file for the given major version
e. You may want to try php-web/bin/news2html to automate this task f.e. `ChangeLog-7.php` from the `NEWS` file
6. Add a short notice to phpweb stating that there is a new release, and * Go over the list and put every element on one line.
highlight the major important things (security fixes) and when it is important * Check for `&`, `<` and `>` and escape them if necessary.
to upgrade. * Remove all the names at the ends of lines.
* For marking up, you can do the following (with `vi`):
a. Call php bin/createNewsEntry in your local phpweb checkout I. `s/^- /<li>/`
b. Add the content for the news entry II. `s/$/<\/li>/`
7. Commit and push all the changes to their respective git repos III. `s/Fixed bug #\([0-9]\+\)/<?php bugfix(\1); ?>/`
8. **Check mirrors have been synced before announcing or pushing news** IV. `s/Fixed PECL bug #\([0-9]\+\)/<?php peclbugfix(\1); ?>/`
Try, f.e. http://www.php.net/get/php-5.5.1.tar.bz2/from/a/mirror
Try several mirrors, mirrors may update slowly (may take an hour) V. `s/FR #\([0-9]\+\)/FR <?php bugl(\1); ?>/`
* You may want to try `php-web/bin/news2html` to automate this task.
6. Add a short notice to phpweb stating that there is a new release, and
highlight the major important things (security fixes) and when it is
important to upgrade.
* Call `php bin/createNewsEntry` in your local phpweb checkout.
* Add the content for the news entry.
7. Commit and push all the changes to their respective git repos
8. **Check website has been synced before announcing or pushing news**
Try, f.e. https://www.php.net/distributions/php-7.3.4.tar.xz
Website may update slowly (may take an hour).
9. Please note down the sha256 and the PGP signature (.asc). These *must* be
included in the release mail.
9. Please note down the sha256 and the PGP signature (.asc). These *must* be
included in the release mail.
10. Wait an hour or two, then send a mail to php-announce@lists.php.net, 10. Wait an hour or two, then send a mail to php-announce@lists.php.net,
php-general@lists.php.net and internals@lists.php.net with a text similar to php-general@lists.php.net and internals@lists.php.net with a text similar to
http://news.php.net/php.internals/17222. http://news.php.net/php.internals/17222. Please make sure that the mail to
Please make sure that the mail to php-announce@ is its own completely separate email. php-announce@ is its own completely separate email. This is to make sure
This is to make sure that replies to the announcement on php-general@ or internals@ that replies to the announcement on php-general@ or internals@ will not
will not accidentally hit the php-announce@ mailinglist. accidentally hit the php-announce@ mailinglist.
Re-releasing the same version (or -pl) ## Re-releasing the same version (or -pl)
--------------------------------------
1. Commit the new binaries to ``phpweb/distributions/`` 1. Commit the new binaries to `phpweb/distributions/`
2. Update ``phpweb/include/version.inc`` (X_Y=major_minor release number): 2. Update `phpweb/include/version.inc` (X_Y=major_minor release number):
a. If only releasing for one OS, make sure you edit only those variables * If only releasing for one OS, make sure you edit only those variables.
* `$PHP_X_Y_VERSION` to the correct version
* `$PHP_X_Y_DATE` to the release date
* `$PHP_X_Y_SHA256` array and update all the SHA256 sums
* Make sure there are no outdated "notes" or edited "date" keys in the
`$RELEASES[X][$PHP_X_VERSION]["source"]` array.
b. ``$PHP_X_Y_VERSION`` to the correct version 3. Add a short notice to phpweb stating that there is a new release, and
highlight the major important things (security fixes) and when it is
important to upgrade.
c. ``$PHP_X_Y_DATE`` to the release date * Call `php bin/createNewsEntry` in your local phpweb checkout.
* Add the content for the news entry.
d. ``$PHP_X_Y_SHA256`` array and update all the SHA256 sums 4. Commit all the changes (`include/version.inc`, `archive/archive.xml`,
`archive/entries/YYYY-MM-DD-N.xml`).
e. Make sure there are no outdated "notes" or edited "date" keys in the 5. Wait an hour or two, then send a mail to php-announce@lists.php.net,
``$RELEASES[X][$PHP_X_VERSION]["source"]`` array php-general@lists.php.net and internals@lists.php.net with a text similar to
the news entry.
3. Add a short notice to phpweb stating that there is a new release, and Please make sure that the mail to php-announce@ is its own completely
highlight the major important things (security fixes) and when it is important separate email. This is to make sure that replies to the announcement on
to upgrade. php-general@ or internals@ will not accidentally hit the php-announce@
mailinglist.
a. Call php bin/createNewsEntry in your local phpweb checkout ## Forking a new release branch
b. Add the content for the news entry 1. One week prior to cutting X.Y.0beta1, warn internals@ that your version's
branch is about to be cut, and that PHP-X.Y will be moving into feature
freeze. Try to be specific about when the branch will be cut.
4. Commit all the changes (``include/version.inc``, ``archive/archive.xml``, Example: http://news.php.net/php.internals/99864
``archive/entries/YYYY-MM-DD-N.xml``)
5. Wait an hour or two, then send a mail to php-announce@lists.php.net, 2. Just prior to cutting X.Y.0beta1, create the new branch locally.
php-general@lists.php.net and internals@lists.php.net with a text similar to
the news entry.
Please make sure that the mail to php-announce@ is its own completely separate email.
This is to make sure that replies to the announcement on php-general@ or internals@
will not accidentally hit the php-announce@ mailinglist.
Forking a new release branch Add a commit on master after the branch point clearing the `NEWS`,
---------------------------- `UPGRADING` and `UPGRADING.INTERNALS` files, updating the version in
`configure.ac` (run `./configure` to automatically update
`main/php_versions.h`, too) and `Zend/zend.h`. Also list the new branch in
`CONTRIBUTING.md`.
1. One week prior to cutting X.Y.0beta1, warn internals@ that your version's branch Example: https://git.php.net/?p=php-src.git;a=commit;h=a63c99b
is about to be cut, and that PHP-X.Y will be moving into feature freeze. Push the new branch and the commit just added to master.
Try to be specific about when the branch will be cut.
Example: http://news.php.net/php.internals/99864
2. Just prior to cutting X.Y.0beta1, create the new branch locally. 3. Immediately notify internals@ of the branch cut and advise the new merging
Add a commit on master after the branch point clearing the NEWS, UPGRADING order. Example:
and UPGRADING.INTERNALS files, updating the version in configure.ac (run
./configure to automatically update main/php_versions.h, too) and Zend/zend.h.
Also list the new branch in CONTRIBUTING.md.
Example: http://git.php.net/?p=php-src.git;a=commit;h=a63c99b
Push the new branch and the commit just added to master.
3. Immediately notify internals@ of the branch cut and advise the new merging order: http://news.php.net/php.internals/99903
Example: http://news.php.net/php.internals/99903
4. Update php-web:git.php and wiki.php.net/vcs/gitworkflow to reflect the new branch: 4. Update php-web:git.php and https://wiki.php.net/vcs/gitworkflow to reflect
Example: https://github.com/php/web-php/commit/74bcad4c770d95f21b7fbeeedbd76d943bb83f23 the new branch. Example:
5. Notify nlopess@ to add PHP_X_Y tag to gcov.php.net https://github.com/php/web-php/commit/74bcad4c770d95f21b7fbeeedbd76d943bb83f23
Preparing for the initial stable version (PHP X.Y.0) 5. Notify nlopess@ to add PHP_X_Y tag to gcov.php.net.
----------------------------------------------------
1. About the time you release the first RC, remind the documentation team ## Preparing for the initial stable version (PHP X.Y.0)
(phpdoc@lists.php.net) to write the migration guide. See to it that they
have done it before you release the initial stable version, since you want
to link to it in the release announcements.
2. Timely get used to the differences in preparing and announcing a stable 1. About the time you release the first RC, remind the documentation team
release. (phpdoc@lists.php.net) to write the migration guide. See to it that they
have done it before you release the initial stable version, since you want
to link to it in the release announcements.
Prime the selection of the Release Managers of the next version 2. Timely get used to the differences in preparing and announcing a stable
--------------------------------------------------------------- release.
1. About three months before the scheduled release of the first alpha of the ## Prime the selection of the Release Managers of the next version
next minor or major release, issue a call for volunteers on
internals@lists.php.net (cf. http://news.php.net/php.internals/98652).
2. Make sure that there are two or more volunteers, and hold a vote if necessary 1. About three months before the scheduled release of the first alpha of the
(see https://wiki.php.net/rfc/releaseprocess#release_managers_selection). next minor or major release, issue a call for volunteers on
internals@lists.php.net (cf. http://news.php.net/php.internals/98652).
3. Help the new release managers with their first steps. 2. Make sure that there are two or more volunteers, and hold a vote if
necessary (see
https://wiki.php.net/rfc/releaseprocess#release_managers_selection).
New Release Manager Checklist 3. Help the new release managers with their first steps.
-----------------------------
1. Email systems@ to get setup for access to downloads.php.net and to be added to the ## New Release Manager checklist
release-managers@ distribution list.
2. Create a GPG key for your @php.net address and publish it by editing `include/gpg-keys.inc` 1. Email systems@ to get setup for access to downloads.php.net and to be added
in the `web-php` repository, adding the output of `gpg --fingerprint "$USER@php.net"`. Let to the release-managers@ distribution list.
one or more of the previous RMs sign your key. Publish your public key to pgp.mit.edu with:
`gpg --keyserver pgp.mit.edu --send-keys $KEYID`
3. Request karma to edit main/php_version.h and Zend/zend.h. Possibly karma for other restricted parts of 2. Create a GPG key for your @php.net address and publish it by editing
php-src might come in question. To edit main/php_version.h in a release branch, `include/gpg-keys.inc` in the `web-php` repository, adding the output of
you need release manager karma in global_avail. `gpg --fingerprint "$USER@php.net"`. Let one or more of the previous RMs
sign your key. Publish your public key to pgp.mit.edu with:
`gpg --keyserver pgp.mit.edu --send-keys $KEYID`
4. Request karma for web/qa.git and web/php.git for publishing release announcements. 3. Request karma to edit `main/php_version.h` and `Zend/zend.h`. Possibly karma
for other restricted parts of php-src might come in question. To edit
`main/php_version.h` in a release branch, you need release manager karma in
`global_avail`.
5. Request moderation access to php-announce@lists.php.net and primary-qa-tester@lists.php.net lists, to 4. Request karma for `web/qa.git` and `web/php.git` for publishing release
be able to moderate your release announcements. All the announcements should be sent from announcements.
the @php.net alias.
5. Request moderation access to php-announce@lists.php.net and
primary-qa-tester@lists.php.net lists, to be able to moderate your release
announcements. All the announcements should be sent from the @php.net alias.