Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: FINERACT-1154 Remove git release branch & merge release tag into develop branch

This document describes the step by step process required to be followed for releasing new versions of Apache Fineract. This documentation is for the non-CN project; CN releasing is documented elsewhere.

Specifically, following this process turns the source code that is available on https://github.com/apache/fineract/ into a binary release ZIP available on http://fineract.apache.org, and produces the required Release Notes of thatwhat's great and new.

This page should be kept up-to-date and improved for each release by the Release Manager (RM) as they come across aspects of the release process not yet (or wrongly) documented here.

Process

Apache Process

The herein documented Apache Fineract release process is, obviously, based on the overall process customary at Apache, which people working on a release are expected to have read and understood:

...

Note that the Apache Fineract project does not release any artifacts to Apache's Maven repository. (Because the project does not provide any libraries, only a ZIP file of the full application end users will directly run.)

Overview of the process

  1. Release Manager for next release needs to step up on public dev@fineract.apache.org mailing list, announcing intention to drive a release following this process, and confirming she/he has the required prerequisites (see below)
  2. Release Manager sends the "heads up" email to the public dev mailing list, formally announcing the start of the release process
  3. Release Manager and any interested community members work together on cleaning up JIRA

Roles, Tools and prerequisites

Prerequisites (incl. required tools)

Every release needs to have 1 named primary release manager, who coordinates and takes ownership for driving the process described on this page. She/he could, of course, work together with Every release needs to have 1 named primary release manager who coordinates and takes ownership for driving the process described on this page. She/he could, of course, work together with others.  Executing this release process requires:

  • dev@fineract.apache.org mailing list membership (and past activity, for credibility..)
  • Apache Confluence Wiki Edit permission (for contributing to e.g. improving this page and creating the release notes overview page)
  • Apache JIRA full permission (for moving issues to the next release)
  • git committer privileges (for creating tags)
  • familiarity with locally building the Fineract code (for creating the release ZIP)
  • PMC membership (for uploading the release ZIP) - this can of course be delegated
  • familiarity with PGP/GPG (for digitally signing the release ZIP)

TODO FINERACT-874 what about the release.sh script? Either clarify its role and when to use it here, or remove it from git.

Give a heads up

The RM should first create list of issues/features and then setup a timeline for release branch point. The time for the day the issue list is created to the release branch point must be at least two weeks in order to give the community a chance to prioritize and commit any last minute features and issues they would like to see in the upcoming release.

The RM should then send the pointer to the umbrella issue along with the tentative timeline for branch point to the developer lists. Any work identified as release related that needs to be completed should be added as a sub task of the umbrella issue to allow users to see the overall release progress in one place.

The RM should then inform users once branch point is created.

...

To: dev@fineract.apache.org
Subject: Work on $release release has started
Created a tracking jira (jira#) for the Fineract $release and plan to branch tentatively on $date. 
What would you like to see included?
Thanks, $RM

Cleaning up JIRA

Before a release is done, make sure that any issues that are fixed have their fix version setup correctly.

Code Block
languagejava
project = fineract and resolution = fixed and fixVersion is empty
Move the unresolved jiras to the next release

...

Code Block
languagejava
project = fineract and fixVersion = 0.7.0 and status not in( resolved, done, Accepted, Closed)
You can also run the following query to make sure that the issues fixed for the to-be-released version look accurate:

...

Code Block
languagejava
project = fineract and fixVersion = '0.7.0'

Finally, check out the output of the JIRA release note tool to see which JIRAs are included in the release, in order to do a sanity check.

Creating Release Artifacts

Communicate with the community

Send an email to developer mailing list(dev@fineract.apache.org) to notify that you are about to branch. Ask to hold off any commits until this is finished. Send another email after branching is done.

Create a release branch
Clone fresh repository copy
Code Block
languagebash
% git clone https://git-wip-us.apache.org/repos/asf/fineract.git
% cd fineract

Check that current HEAD points to commit on which you want to base new  release branch. Checkout particular commit if not.

Code Block
languagebash
% git log # Check current branch history. HEAD should point to commit that you want to be base for your release branch
Create a new release branch with name "$Version"

...

1. Chose Release Manager (RM)

The project may have different release managers for different releases, and it is usually useful (wink) to first reach agreement on who is actually willing to act as the next release manager. This informal discussion can happen on the public email list, or initially possibly on private email exchanges. All subsequent formal release related emails, using the templates from this documented process, are obviously held on the public developer mailing list, only.

The release manager needs to be able to have all required prerequisites listed above (notably the PGP/GPG set up, which can be a bit tricky at first).

2. Giving the initial heads up

The RM should, if one doesn't already exist, first create a new release umbrella issue in JIRA. This issue is dedicated to tracking (a summary of) any discussion related to the planned new release. An example of such an issue is

Jira
serverASF JIRA
serverId5aa69414-a9e9-3523-82ec-879b028fb15b
keyFINERACT-873
.

The RM then creates an list of resolved issues & features through an initial check in JIRA for already resolved issues for the release, and then setup a timeline for release branch point. The time for the day the issue list is created to the release branch point must be at least two weeks in order to give the community a chance to prioritize and commit any last minute features and issues they would like to see in the upcoming release.

The RM must then send the pointer to the umbrella issue along with the tentative timeline for branch point to the developer lists. Any work identified as release related that needs to be completed should be added as a sub tasks of the umbrella issue to allow all developers and users to see the overall release progress in one place. The umbrella issue shall also link to any issues still requiring clarification whether or not they will make it into the release.

The RM should then inform users when the git branch is planned to be created, by sending an email based on this template:

To: dev@fineract.apache.org
Subject: Fineract $RELEASE release branch

Hello everyone,

Based on our "How to Release Apache Fineract" process documented at https://cwiki.apache.org/confluence/x/DRwIB :

I will create a $release branch off develop in our git repository at https://github.com/apache/fineract on $date.

The release tracking umbrella issue for tracking all activity in JIRA is FINERACT-jira# for this Fineract $RELEASE.
If you have any work in progress that you like to see included in this release, please add "blocking" links to the release JIRA issue.

I am the release manager for this release.
Thanks,
$RM

3. Cleaning up JIRA

Before a release is done, make sure that any issues that are fixed have their fix version setup correctly.

Code Block
languagejava
project = fineract and resolution = fixed and fixVersion is empty
Move all unresolved JIRA issues which have this release as Fix Version to the next release


Code Block
languagejava
project = fineract and fixVersion = $RELEASE and status not in ( Resolved, Done, Accepted, Closed )
You can also run the following query to make sure that the issues fixed for the to-be-released version look accurate:
Code Block
languagejava
project = fineract and fixVersion = '$RELEASE'

Finally, check out the output of the JIRA release note tool to see which JIRAs are included in the release, in order to do a sanity check.

4. Creating Release Branch

Communicate with the community

You do not need to start a new email thread on the developer mailing list to notify that you are about to branch, just do it ca. 2 weeks after the initial email, or later, based on the discussion on the initial email.

You do not need to ask committers to hold off any commits until you have branched finished, as it's always possible to fast-forward the branch to latest develop, or cherry-pick last minute changes to it. People should be able to continue working on the develop branch on bug fixes and great new features for the next release while the release process for the current release is being worked through.

Clone fresh repository copy
Code Block
languagebash
% git clone git@github.com:apache/fineract.git
% cd fineract

Check that current HEAD points to commit on which you want to base new  release branch. Checkout a particular earlier commit if not.


Code Block
languagebash
% git log # Check current branch history. HEAD should point to commit that you want to be base for your release branch
Create a new release branch with name "$Version"
Code Block
languagebash
% git checkout -b $RELEASE
Push new branch to Apache Fineract repository
Code Block
languagejava
% git push origin $RELEASE
Add new release notes in Release Folders

The change list can be swiped from the JIRA release note tool (use the "text" format for the change log). See JIRA Cleanup above to ensure that the release notes generated by this tool are what you are expecting.

Send en email announcing the new release branch on the earlier email thread
To: dev@fineract.apache.org
Subject: Re: Fineract $RELEASE release branch

As previously announced, I've just created the release branch for our upcoming $RELEASE release.

You can continue working and merging PRs to the develop branch for future releases, as always.

The DRAFT release notes are on https://cwiki.apache.org/confluence/display/FINERACT/$RELEASE+-+Apache+Fineract. Does anyone see anything missing?

Does anyone have any last minutes changes they would like to see cherry-picked to branch $RELEASE, or are we good go and actually cut the release based on this branch as it is?

I'll initial the final stage of actually creating the release in 3 days if nobody objects.

Thanks,
$RM

With the release branch we draw a line in the side, but development on the develop branch will usually continue after the release branch is created. If changes on develop need to be included in the still open release branch then do so by cherry picking selectively.

Cherry picking should only happen from the develop branch, i. e. do not pick changes from PRs that are not yet merged. That way we ensure that we don't pick up anything too experimental or just plain not working.

5. Freeze JIRA, create release tag, build distribution, digitally sign it, upload it to dist/dev (staging), call for PMC vote

Approx. 3 days after having sent the email above, if there are no objections, start the final step of actually releasing.

Close JIRA version

You first need to close the release in JIRA so that the about to be released version cannot be used as "fixVersion" for new bugs anymore. Go to JIRA "Administer project" page and follow "Versions" in left menu. Table with list of all releases should appear, click on additional menu on the right of your release and choose "Release" option. Submit release date and you're done.

Tag release branch

Next, you create a git tag from the HEAD of the release's git branch.

Code Block
languagejava
% git checkout $RELEASE
% git tag -a $RELEASE -m "Fineract $RELEASE release"
#Make sure compiles/tests run fine and rat check is fine (% cd fineract-provider, % gradlew clean integrationTest); run additonally manual tests with the community app
% git push origin $RELEASE
Create source and binary artifacts. The steps are defined in Release Sign
Sanity Check

Make sure the tar and the release branch match

% cd /fineract-release-preparations
% tar -xvf apache-fineract-$RELEASE-src.tar.gz
#Do a fresh clone of the tag
% git clone https://git-wip-us.apache.org/repos/asf/fineract.git
% cd fineract/
% git checkout tags/$RELEASE
% cd ..
% diff -r fineract apache-fineract-$RELEASE-src
Make sure code compiles and tests pass on the uncompressed source.
#Make sure prerequisites are met before running these commands
% cd
apache-fineract-$RELEASE-src/fineract-provider
% gradlew clean integrationTest (For running integration tests)
% gradlew clean build (For building deploy able war)
% gradlew rat (For RAT checks)
Create signatures and check sums

All release artifacts must be signed. In order to sign a release you will need a PGP key. You should get your key signed by a few other people. You will also need to receive their keys from a public key server.   See the Apache release signing page for more details. Please follow the steps defined in Release Sign.

Upload binary and source archives to ASF's distribution dev (staging) area
% svn co https://dist.apache.org/repos/dist/dev/fineract/ fineract-dist-dev
% mkdir fineract-dist-dev/$RELEASE
% cp fineract/build/distributions/* fineract-dist-dev/$RELEASE/
% svn commit

The password for the Authentication realm: <https://dist.apache.org:443> ASF Committers which svn commit will require is your regular ASF Authentication credential.

Code Block
languagebash
% git checkout -b 0.7.0
Push new branch to Apache Fineract repository
Code Block
languagejava
% git push origin 0.7.0
Add new release notes in Release Folders

(The change list can be swiped from the JIRA release note tool (use the "text" format for the change log). See JIRA Cleanup above to ensure that the release notes generated by this tool are what you are expecting)

Send en email announcing the new release branch
To: dev@fineract.apache.org
Subject: New release branch 0.7.0
I've just created new release branch for upcoming 0.7.0 release.
Please continue committing to develop branch as usual.
I'll cherry-pick commits to branch 0.7.0 on per needed basis. Thanks, $RM
Tag release branch
Code Block
languagejava
% git checkout 0.7.0 
% git tag -a release-0.7.0 -m "Fineract 0.7.0 release"
#Make sure compiles/tests run fine and rat check is fine (% cd fineract-provider, % gradlew clean integrationTest)
% git push origin release-0.7.0
Create source and binary artifacts. The steps are defined in Release Sign
Sanity Check

Make sure the tar and the release branch match

...

% cd /fineract-release-preparations
% tar -xvf apache-fineract-0.7.0-src.tar.gz
#Do a fresh clone of the tag
% git clone https://git-wip-us.apache.org/repos/asf/fineract.git
% cd fineract/
% git checkout tags/release-0.7.0
% cd ..
% diff -r fineract apache-fineract-0.7.0-src
Make sure code compiles and tests pass on the uncompressed source.

...

#Make sure prerequisites are met before running these commands
% cd
apache-fineract-0.7.0-src/fineract-provider
% gradlew clean integrationTest (For running integration tests)
% gradlew clean build (For building deploy able war)
% gradlew rat (For RAT checks)
Create signatures and check sums

All release artifacts must be signed. In order to sign a release you will need a PGP key. You should get your key signed by a few other people. You will also need to receive their keys from a public key server.   See the Apache release signing page for more details. Please follow the steps defined in Release Sign

Verifying a release candidate

...

Voting has to be done on dev@fineract.apache.org and . You can close the vote after voting period expires and you accumulate sufficient votes.

...

To: dev@fineract.apache.org
Subject: [VOTE] [APACHE FINERACT] 0.7.0$RELEASE for release

Hello,

We have created Apache Fineract 0.7.0$RELEASE release, with the artifacts below up for a vote.
It fixes the following issues: {list of issues fixed}issues: https://cwiki.apache.org/confluence/display/FINERACT/$RELEASE+-+Apache+Fineract
Source & Binary files : https://dist.apache.org/repos/dist/dev/fineract/0.7.0$RELEASE/
Tag to be voted on (rc#): https://git-wip-us.apache.org/repos/asf?p=fineract.git;a=commit;h=refs/heads/0.7.0$RELEASE
Fineract's KEYS containing the PGP key we used to sign the release: https://dist.apache.org/repos/dist/dev/fineract//KEYS
Note that this release contains source and binary artifacts Vote.

This vote will be open for 72 hours.:
[ ] +1 approve [ ] +0 no opinion [ ] -1 disapprove (and reason why)
Thanks, $RM
$RM

6. Finish the release

Upon receiving 3 +1s from the PMC, or after 72 hours (whichever one comes first), reply to the voting thread and prefixing pref [RESULT] to the subject line with the results. , as follows:

To: dev@fineract.apache.org
Subject: [RESULT][VOTE] [APACHE FINERACT] 0.7.0$RELEASE for release

Voting is now closed and has passed with the following tally,
Binding +1s: Myrle Krantz, Avik Ganguly, Ed Cable
Non binding +1s: Friendly new contributor, Friendly well-wisher, Friendly dude off the street Thanks to everyone who voted! I'll continue with the rest of off the release processstreet. $RM
Rolling out the Release

Close JIRA version

...


Thanks to everyone who voted! I'll now continue with the rest of the release process.
$RM
Upload the artifacts

In order to release you have to checkout release repository located on https://dist.apache.org/repos/dist/release/fineract and add release artifacts there.

Code Block
languagebash
svn co https://dist.apache.org/repos/dist/release/fineract fineract-release
cdmkdir fineract-release
mkdir 0.7.0/
cp $source_to_your_artifacts 0.7.0/ svn add 0.7.0/
Announce the release

Send an email to announce@apache.org (the from: address must be @apache.org). For example,

...

/$RELEASE/
cp fineract-dist-dev/$RELEASE/* fineract-release/$RELEASE/
svn add fineract-release/$RELEASE/
svn commit -m "Fineract Release $RELEASE" fineract-release/$RELEASE/

You will now get an automated email from the Apache Reporter Service (no-reply@reporter.apache.org), subject "Please add your release data for 'fineract'" to add the release data (version and date) to the database on https://reporter.apache.org/addrelease.html?fineract (requires PMC membership).

Remove git release branch & merge release tag into develop branch

As discussed in FINERACT-1154, now that everything is final, please do the following to remove the release branch (and just keep the tag), and make sure that everything on the release tag is merged to develop and that e.g. git describe works:

git checkout develop
git branch -D $RELEASE
git push origin :$RELEASE

git checkout develop
git checkout -b merge-$RELEASE
git merge -s recursive -Xignore-all-space $RELEASE
# Manually resolve merge conflicts, if any
git commit
git push $USER
hub pull-request
Update the website

Finally update the https://fineract.apache.org website with the latest release details. The website's HTML source code is available at https://github.com/apache/fineract-site.

Announce the release

Send an email to announce@apache.org (the from: address must be @apache.org). For example,

To: announce@apache.org
CC: dev@fineract.apache.org
Subject: [ANNOUNCE] Apache Fineract $RELEASE Release

The Apache Fineract project is pleased to announce
the release of Apache Fineract $RELEASE.
The release is available for download from
https://fineract.apache.org/

...

#downloads

Fineract provides a reliable, robust, and affordable solution for entrepreneurs,
financial institutions, and service providers to offer financial services to the
world’s 2 billion underbanked and unbanked. Fineract is aimed at innovative mobile
and cloud-based solutions, and enables digital transaction accounts for all.

This release addressed 250 issues.

Readme: https://github.com/apache/fineract/blob/$RELEASE/README.md

Release page: https://cwiki.apache.org/confluence/display/FINERACT/$RELEASE+-+Apache+Fineract

List of fixed issues:
https://issues.apache.org/jira/secure/ReleaseNote.jspa?version=12344606&styleName=Html&projectId=12319420

For more information on Apache Fineract please visit
project home page: https://fineract.apache.org

The Apache Fineract Team

Update the website

Finally update the website with latest release details downloads. Code is available at Website Code. Apache Fineract website reflects the code present in asf-site branch of https://git-wip-us.apache.org/repos/asf/fineract-site.git. Any change committed on master branch of https://git-wip-us.apache.org/repos/asf/fineract-site.git should be merged with asf-site branch to reflect the change on Fineract website.