Skip to content

Commit c618242

Browse files
authored
Improve guidelines and templates for the release process (#418)
1 parent e4abf29 commit c618242

File tree

7 files changed

+55
-43
lines changed

7 files changed

+55
-43
lines changed

admin/MailTemplate.Announce.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
2-
Subject: [ANNOUNCE] Apache log4cxx 1.3.0 released
2+
Subject: [ANNOUNCE] Apache log4cxx 1.3.1 released
33

44
Hi,
55

6-
The Apache log4cxx team is pleased to announce the 1.3.0 release.
6+
The Apache log4cxx team is pleased to announce the 1.3.1 release.
77

88
For the list of new features and issues corrected, see:
9-
https://logging.apache.org/log4cxx/1.3.0/changelog.html#rel_1_3_0
9+
https://logging.apache.org/log4cxx/1.3.1/changelog.html#rel_1_3_1
1010

1111
For official release downloads, see:
12-
https://logging.apache.org/log4cxx/1.3.0/download.html
12+
https://logging.apache.org/log4cxx/1.3.1/download.html
1313

1414
For instructions on building Log4cxx, see:
15-
https://logging.apache.org/log4cxx/1.3.0/build.html
15+
https://logging.apache.org/log4cxx/1.3.1/build.html
1616

1717
All other information is available on the Log4cxx project website:
18-
https://logging.apache.org/log4cxx/1.3.0
18+
https://logging.apache.org/log4cxx/1.3.1

admin/MailTemplate.Result.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
2-
Subject: [RESULT][VOTE] Release Apache Log4cxx 1.3.0
2+
Subject: [RESULT][VOTE] Release Apache Log4cxx 1.3.1
33

44
and here is my +1.
55

@@ -9,6 +9,6 @@ I will continue the release process.
99
Stephen
1010

1111
---------------------------------------------------------------------------------------------------
12-
This is a vote to release the Apache Log4cxx 1.3.0.
12+
This is a vote to release the Apache Log4cxx 1.3.1.
1313

1414
...

admin/MailTemplate.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
2-
Subject: [VOTE] Release Apache Log4cxx 1.3.0
2+
Subject: [VOTE] Release Apache Log4cxx 1.3.1
33

4-
This is a vote to release the Apache Log4cxx 1.3.0.
4+
This is a vote to release the Apache Log4cxx 1.3.1.
55

6-
Website: https://logging.staged.apache.org/log4cxx/1.3.0/changelog.html
6+
Website: https://logging.staged.apache.org/log4cxx/1.3.1/changelog.html
77
GitHub: https://github.com/apache/logging-log4cxx
88
Commit: <todo insert>
99
Distribution: https://dist.apache.org/repos/dist/dev/logging/log4cxx/

admin/release-review-instructions.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Reviewing a Log4cxx release
33

44
The review should confirm the uploaded source code is not corrupt and
55
is identical to the package generated by the Github action.
6-
The steps below use version 1.3.0 as an example.
6+
The steps below use version 1.3.1 as an example.
77

88
Prerequisites
99
----------
@@ -22,7 +22,7 @@ Steps
2222
- For success, the final output line needs to include:
2323
- `100% tests passed, 0 tests failed out of 62`
2424
1. Download the packaged release files from Github
25-
- Open https://github.com/apache/logging-log4cxx/commits/v1.3.0-RC1 in your web browser
25+
- Open https://github.com/apache/logging-log4cxx/commits/v1.3.1-RC1 in your web browser
2626
- Click the green tick mark on the top commit
2727
- The `All checks have passed` pop-up window will display
2828
- Click the "Details" link on the row next to `Generate release files / Package code for release`
@@ -35,5 +35,5 @@ Steps
3535
- `mkdir /tmp/log4cxx-github`
3636
- `cd /tmp/log4cxx-github`
3737
- `unzip "$HOME/Downloads/Upload release files.zip"`
38-
- `diff /tmp/log4cxx{,-github}/apache-log4cxx-1.3.0.tar.gz.sha512`
39-
- `diff /tmp/log4cxx{,-github}/apache-log4cxx-1.3.0.zip.sha512`
38+
- `diff /tmp/log4cxx{,-github}/apache-log4cxx-1.3.1.tar.gz.sha512`
39+
- `diff /tmp/log4cxx{,-github}/apache-log4cxx-1.3.1.zip.sha512`

admin/releasing.md

Lines changed: 23 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Releasing a Log4cxx version
22
===================
33

44
This document lists the steps that must be performed to release Log4cxx
5-
using 1.3.0 as the example.
5+
using 1.3.1 as the example.
66

77
Prerequisites
88
----------
@@ -11,22 +11,26 @@ Prerequisites
1111
* The change log (in src/site/markdown/change-report-gh.md) is up-to-date.
1212
* The web-site for the new version has been published to https://logging.staged.apache.org/log4cxx (using [this procedure](staging.md) )
1313
* An e-mail has been sent to [email protected] announcing the intention to release
14+
* Your e-mail client can send mail from your `@apache.org` address. (Refer: https://eventmesh.apache.org/community/how-to-use-email/)
1415
* Your public key is available in [Apache Logging KEYS file](https://dist.apache.org/repos/dist/release/logging/KEYS)
1516

1617
Steps
1718
-----
1819

1920
1. Tag HEAD as the release candidate
2021
- `git checkout master`
21-
- `git push origin tag v1.3.0-RC1`
22+
- `git push origin tag v1.3.1-RC1`
2223
1. Remove the old artifacts from svn
2324
- `svn co https://dist.apache.org/repos/dist/dev/logging -N apache-dist-logging-dev`
2425
- `cd apache-dist-logging-dev`
2526
- `svn up log4cxx`
2627
- `cd log4cxx`
2728
- `svn delete *`
29+
- `mkdir 1.3.1`
30+
- `svn add 1.3.1`
31+
- `cd 1.3.1`
2832
1. Download the packaged release files from Github
29-
- Open https://github.com/apache/logging-log4cxx/commits/v1.3.0-RC1 in your web browser
33+
- Open https://github.com/apache/logging-log4cxx/commits/v1.3.1-RC1 in your web browser
3034
- Click the green tick mark on the top commit
3135
- The `All checks have passed` pop-up window will display
3236
- Click the "Details" link on the row next to `Generate release files / Package code for release`
@@ -35,44 +39,48 @@ Steps
3539
- The numbered steps will display
3640
- Click the link next to `Artifact download URL:`
3741
- The browser will download the file `Upload release files.zip` onto your system
38-
1. Unpack the release files using these commands
39-
- `cd apache-dist-logging-dev/log4cxx`
42+
1. Unpack the release files using these commands (with `apache-dist-logging-dev/log4cxx/1.3.1` as the working directory)
4043
- `unzip "$HOME/Downloads/Upload release files.zip"`
41-
1. Sign release artifacts (Refer: https://infra.apache.org/release-signing.html) (with `apache-dist-logging-dev/log4cxx` as the working directory)
42-
- `gpg --armor --output apache-log4cxx-1.3.0.zip.asc --detach-sig apache-log4cxx-1.3.0.zip`
43-
- `gpg --armor --output apache-log4cxx-1.3.0.tar.gz.asc --detach-sig apache-log4cxx-1.3.0.tar.gz`
44-
1. Send the new artifacts to svn (with `apache-dist-logging-dev/log4cxx` as the working directory)
44+
1. Sign release artifacts (Refer: https://infra.apache.org/release-signing.html) (with `apache-dist-logging-dev/log4cxx/1.3.1` as the working directory)
45+
- `gpg --armor --output apache-log4cxx-1.3.1.zip.asc --detach-sig apache-log4cxx-1.3.1.zip`
46+
- `gpg --armor --output apache-log4cxx-1.3.1.tar.gz.asc --detach-sig apache-log4cxx-1.3.1.tar.gz`
47+
1. Send the new artifacts to svn (with `apache-dist-logging-dev/log4cxx/1.3.1` as the working directory)
4548
- `svn add *`
46-
- `svn commit -m 'log4cxx 1.3.0'`
49+
- `svn commit -m 'log4cxx 1.3.1'`
4750
- check https://dist.apache.org/repos/dist/dev/logging/log4cxx
4851
1. Raise a vote on the mailing list ([email protected])
4952
- Using [this template](MailTemplate.txt)
53+
- Set the e-mail to `Plain text mode`
5054
1. Wait 72 hours (the minimum)
5155
1. When the vote has 3 or more +1's, announce the result
5256
- Using [this template](MailTemplate.Result.txt)
5357
1. Get artifacts up to https://downloads.apache.org/logging/log4cxx/
54-
- `svn move -m "Release log4cxx 1.3.0" https://dist.apache.org/repos/dist/dev/logging/log4cxx https://dist.apache.org/repos/dist/release/logging/log4cxx/1.3.0`
58+
- `svn move -m "Release log4cxx 1.3.1" https://dist.apache.org/repos/dist/dev/logging/log4cxx/1.3.1 https://dist.apache.org/repos/dist/release/logging/log4cxx/`
5559
1. Tag the released version
56-
- `git checkout v1.3.0-RC1`
57-
- `git push origin tag rel/v1.3.0`
60+
- `git checkout v1.3.1-RC1`
61+
- `git tag rel/v1.3.1`
62+
- `git push origin tag rel/v1.3.1`
5863
1. Set your details in `src/site/CMakeLists.txt`
5964
- Set your name in the LOG4CXX_RELEASE_MANAGER variable
6065
- Set your GnuPG key in the LOG4CXX_RELEASE_MANAGER_KEY variable
6166
1. Enter the release date in `src/site/markdown/change-report-gh.md`
6267
- Commit the change
6368
- Update the staged web site using [the update procedure](staging.md)
64-
1. Check the staged web site is ready to go live
69+
1. Check the staged web site (https://logging.staged.apache.org/log4cxx) is ready to go live
6570
- Are you are seeing the release date on changelog?
6671
- Do the links on download page work?
6772
1. Make the new version of the web site live.
6873
- `git clone https://github.com/apache/logging-log4cxx-site /tmp/log4cxx-site`
6974
- `cd /tmp/log4cxx-site`
75+
- `git fetch origin asf-staging`
76+
- `git rebase origin/asf-staging`
7077
- `git checkout asf-site`
71-
- `git rebase asf-staging`
7278
- `git push origin asf-site`
7379
1. Check https://logging.apache.org/log4cxx (after a minute or two)
7480
- Are you seeing the new pages?
7581
- Do the download links now work?
7682
1. Announce the release to the mailing lists ([email protected], [email protected])
7783
- Using [this template](MailTemplate.Announce.txt)
84+
- Send the mail using your `@apache.org` account
85+
- Set the e-mail to `Plain text mode`
7886

admin/staging.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Updating the Log4cxx web site
22
===================
33

44
This document describes the steps used to update Log4cxx web site
5-
using 1.3.0 as an example Log4cxx version.
5+
using 1.3.1 as an example Log4cxx version.
66

77
Prerequisites
88
----------
@@ -23,9 +23,9 @@ Steps to update the Log4cxx web site
2323
- `cd /tmp/log4cxx-site`
2424
- `git checkout asf-staging`
2525
1. Use the newly generated files for the web site documentation
26-
- `git rm -r 1.3.0`
27-
- `mv /tmp/build/src/site/html 1.3.0`
28-
- `git add 1.3.0`
26+
- `git rm -r 1.3.1`
27+
- `mv /tmp/build/src/site/html 1.3.1`
28+
- `git add 1.3.1`
2929
1. Push the `asf-staging` branch to Github and wait a bit
3030
- `git commit -m "Improved the ... documentation"`
3131
- `git push origin asf-staging`
@@ -45,20 +45,20 @@ Steps to add a new version to the Log4cxx web site
4545
- `cd /tmp/log4cxx-site`
4646
- `git checkout asf-staging`
4747
1. Use the newly generated files for the web site documentation
48-
- `git rm -r 1.3.0`
49-
- `mv /tmp/build/src/site/html /tmp/log4cxx-site/1.3.0`
50-
- `git add 1.3.0`
48+
- `git rm -r 1.3.1`
49+
- `mv /tmp/build/src/site/html /tmp/log4cxx-site/1.3.1`
50+
- `git add 1.3.1`
5151
1. Update the symbolic links in the base of the web site working directory
5252
- `cd /tmp/log4cxx-site`
5353
- `rm latest_stable old_stable`
54-
- `ln -s 1.3.0 latest_stable`
54+
- `ln -s 1.3.1 latest_stable`
5555
- `ln -s 1.2.0 old_stable`
5656
- `git add latest_stable old_stable`
5757
1. Update `.htaccess` so the final `RewriteRule` redirects to the new version
58-
- `RewriteRule ^(.*)$ /log4cxx/1.3.0/$1 [R=temp,L]`
58+
- `RewriteRule ^(.*)$ /log4cxx/1.3.1/$1 [R=temp,L]`
5959
- `git add .htaccess`
6060
1. Push the `asf-staging` branch to github and wait a bit
61-
- `git commit -m "Add the 1.3.0 documentation"`
61+
- `git commit -m "Add the 1.3.1 documentation"`
6262
- `git push origin asf-staging`
6363
1. Check https://logging.staged.apache.org/log4cxx (after a minute or two)
6464
- Are you seeing the new pages?

admin/validate-release.sh

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,15 @@ set -e
44

55
VERSION=$1
66
if [ -z "$VERSION" ] ; then
7-
VERSION=1.3.0
7+
VERSION=1.3.1
8+
fi
9+
10+
if [ -z "$STAGE" ] ; then
11+
STAGE=dev # Alternatively release
812
fi
913

1014
if [ -z "$BASE_DL" ] ; then
11-
BASE_DL=https://dist.apache.org/repos/dist/dev/logging/log4cxx
15+
BASE_DL=https://dist.apache.org/repos/dist/$STAGE/logging/log4cxx
1216
fi
1317
if [ -z "$ARCHIVE" ] ; then
1418
ARCHIVE=apache-log4cxx-$VERSION
@@ -20,7 +24,7 @@ fi
2024
test -d "$TEST_DIRECTORY" || mkdir "$TEST_DIRECTORY"
2125
cd "$TEST_DIRECTORY"
2226

23-
FULL_DL="$BASE_DL/$ARCHIVE"
27+
FULL_DL="$BASE_DL/$VERSION/$ARCHIVE"
2428

2529
for EXT in "tar.gz" "zip" ; do
2630
wget "$FULL_DL.$EXT" || exit $?

0 commit comments

Comments
 (0)