From 2c118f22480724e1103ef631bd6d4574155de487 Mon Sep 17 00:00:00 2001 From: Joe Skora Date: Tue, 18 Oct 2016 00:25:56 -0400 Subject: [PATCH 1/5] Initial work on cleanup of Release Guide. --- src/pages/markdown/release-guide.md | 172 +++++++++++++++------------- 1 file changed, 95 insertions(+), 77 deletions(-) diff --git a/src/pages/markdown/release-guide.md b/src/pages/markdown/release-guide.md index 1fd632532..14f56f566 100644 --- a/src/pages/markdown/release-guide.md +++ b/src/pages/markdown/release-guide.md @@ -37,16 +37,16 @@ when evaluating a release for a vote. - Specifically look in the *-sources.zip artifact and ensure these items are present at the root of the archive. - Evaluate the sources and dependencies. Does the overall LICENSE and NOTICE appear correct? Do all licenses fit within the ASF approved licenses? - Here is an example path to a sources artifact: - - `https://repository.apache.org/service/local/repositories/orgapachenifi-1011/content/org/apache/nifi/nifi/0.0.1/nifi-0.0.1-source-release.zip` + `https://repository.apache.org/service/local/repositories/orgapachenifi-1011/content/org/apache/nifi/nifi/0.0.1/nifi-0.0.1-source-release.zip` - Is there a README available that explains how to build the application and to execute it? - Look in the *-sources.zip artifact root for the readme. - Are the signatures and hashes correct for the source release? - Validate the hashes of the sources artifact do in fact match: - - `https://repository.apache.org/service/local/repositories/orgapachenifi-1011/content/org/apache/nifi/nifi/0.0.1/nifi-0.0.1-source-release.zip.md5` - - `https://repository.apache.org/service/local/repositories/orgapachenifi-1011/content/org/apache/nifi/nifi/0.0.1/nifi-0.0.1-source-release.zip.sha1` + `https://repository.apache.org/service/local/repositories/orgapachenifi-1011/content/org/apache/nifi/nifi/0.0.1/nifi-0.0.1-source-release.zip.md5` + `https://repository.apache.org/service/local/repositories/orgapachenifi-1011/content/org/apache/nifi/nifi/0.0.1/nifi-0.0.1-source-release.zip.sha1` - Validate the signature of the source artifact. Here is an example path: - - `https://repository.apache.org/service/local/repositories/orgapachenifi-1011/content/org/apache/nifi/nifi/0.0.1/nifi-0.0.1-source-release.zip.asc` - - Need a quick reminder on how to [verify a signature](http://www.apache.org/dev/release-signing.html#verifying-signature)? + `https://repository.apache.org/service/local/repositories/orgapachenifi-1011/content/org/apache/nifi/nifi/0.0.1/nifi-0.0.1-source-release.zip.asc` + - Need a quick reminder on how to [verify a signature](http://www.apache.org/dev/release-signing.html#verifying-signature)? - Do all sources have necessary headers? - Unzip the sources file into a directory and execute `mvn install -Pcontrib-check` - Are there no unexpected binary files in the release? @@ -60,83 +60,101 @@ when evaluating a release for a vote. - Someone volunteers to be an RM for the release (can be a committer but apache guides indicate preference is a PMC member) - A release candidate is put together and a vote sent to the team. - If the NiFi community rejects the vote the issues noted are resolved and another RC is generated - - If the NiFi community accepts the vote then the release is 'releasable' and can be placed into the appropriate 'dist' location, maven artifacts released from staging. + - If the NiFi community accepts the vote then the release is 'releasable' and can be placed into the appropriate + 'dist' location, maven artifacts released from staging. ## The mechanics of the release -### Prepare your environment +### Configure your environment -Follow the steps outlined in the [Quickstart Guide][quickstart-guide] - -``` -At this point you're on the latest 'master' branch and are able to build the entire application -``` -
-Create a JIRA ticket for the release tasks and use that ticket number for the commit messages. For example we'll consider NIFI-270 as our ticket. Also -have in mind the release version you are planning for. For example we'll consider '0.0.1'. - -Create the next version in JIRA if necessary so work can continue towards that release. - -Create meaningful release notes for this version if not already created. [Enter them here][release-notes] - -Create new branch off 'master' named after the JIRA ticket. Here we'll use a branch off of 'master' with -`git checkout -b NIFI-270-RC1` - -Verify that Maven has sufficient heap space to perform the build tasks. Some plugins and parts of the build -consumes a surprisingly large amount of space. These settings have been shown to -work `MAVEN_OPTS="-Xms1024m -Xmx3076m -XX:MaxPermSize=256m"` - -Ensure your settings.xml has been updated as shown below. There are other ways to ensure your PGP key is available for signing as well - -``` - ... +1. Follow the steps outlined in the [Quickstart Guide][quickstart-guide]. +1. *Confirm that you can* + 1. *checkout the branch that is being released, and* + 1. *build the entire application.* + +### A. Preparation to release + +1. Create a JIRA ticket for the release tasks and use that ticket number for the commit messages. For example we'll + consider NIFI-270 as our ticket. Also have in mind the release version you are planning for. For example we'll consider '0.0.1'. +1. Create the next version in JIRA if necessary so work can continue towards that release. +1. Create meaningful release notes for this version if not already created. [Enter them here][release-notes] +1. Create new branch off 'master' named after the JIRA ticket. Here we'll use a branch off of 'master' with + ```bash + $ git checkout -b NIFI-${RELEASE_TICKET}-RC${RC} + ``` +1. Verify that Maven has sufficient heap space to perform the build tasks. Some plugins and parts of the build +consumes a surprisingly large amount of space. These settings have been shown to work. + ``` + $ export MAVEN_OPTS="-Xms1024m -Xmx3076m -XX:MaxPermSize=256m" + ``` +1. Ensure your settings.xml has been updated to include a `signed_release` profile and a `` entry for + "repository.apache.org" as shown below. There are other ways to ensure your PGP key is available for signing as well. + ``` + ... - signed_release - - forked-path - YOUR GPG KEY ID HERE - YOUR GPG PASSPHRASE HERE - - - ... - - - repository.apache.org - YOUR USER NAME HERE - YOUR MAVEN ENCRYPTED PASSWORD HERE - - - ... -``` - -Ensure the the full application build and tests all work by executing -`mvn -T 2.5C clean install` for a parallel build. Once that completes you can -startup and test the application by `cd nifi-assembly/target` then run `bin/nifi.sh start` in the nifi build. -The application should be up and running in a few seconds at `http://localhost:8080/nifi` - -Evaluate and ensure the appropriate license headers are present on all source files. Ensure LICENSE and NOTICE files are complete and accurate. -Developers should always be keeping these up to date as they go along adding source and modifying dependencies to keep this burden manageable. -This command `mvn install -Pcontrib-check` should be run as well to help validate. If that doesn't complete cleanly it must be addressed. - -Now its time to have maven prepare the release so execute `mvn release:prepare -Psigned_release -DscmCommentPrefix="NIFI-270-RC1 " -Darguments="-DskipTests"`. -Maven will ask: - -`What is the release version for "Apache NiFi"? (org.apache.nifi:nifi) 0.0.1: :` - -Just hit enter to accept the default. - -Maven will then ask: - -`What is SCM release tag or label for "Apache NiFi"? (org.apache.nifi:nifi) nifi-0.0.1: : ` - -Enter `nifi-0.0.1-RC1` or whatever the appropriate release candidate (RC) number is. -Maven will then ask: - -`What is the new development version for "Apache NiFi"? (org.apache.nifi:nifi) 0.0.2-SNAPSHOT: :` - -Just hit enter to accept the default. - -Now that preparation went perfectly it is time to perform the release and deploy artifacts to staging. To do that execute + signed_release + + forked-path + username@apache.org + your GPG passphrase + + + ... + + + repository.apache.org + YOUR USER NAME HERE + YOUR MAVEN ENCRYPTED PASSWORD HERE + + + ... + ``` +1. Ensure the the full application builds and all tests work by executing + ``` + $ mvn -T 2.5C clean install + ``` + for a parallel build. Once that completes you can startup and test the application with + ``` + $ cd nifi-assembly/target/nifi-x.y.z + $ bin/nifi.sh start + ``` + from the root source folder. After a few seconds, NiFi should be up and running at `http://localhost:8080/nifi`. +1. Evaluate and ensure the appropriate license headers are present on all source files. +1. Ensure LICENSE and NOTICE files are complete and accurate. (Developers should always be keeping these up to date as + they go along adding source and modifying dependencies to keep this burden manageable.) +1. Run + ``` + $ mvn install -Pcontrib-check + ``` + validate contribution expectations and any problems found must be addressed before proceeding. + +## Perform the release + +1. Now its time to have maven prepare the release with this command. + ``` + $ mvn --batch-mode release:prepare \ + -Psigned_release \ + -DscmCommentPrefix="NIFI-${RELEASE_TICKET}-RC${RC}" \ + -Dtag="nifi-${NIFI_VERSION}-RC${RC}" \ + -DreleaseVersion="${NIFI_VERSION}" \ + -DdevelopmentVersion="${NEXT_VERSION}" \ + -Darguments="-DskipTests" + ``` +1. Review the release preparation results. + 1. if problems are found `mvn release:rollback` to reset the changes or it may be necessary to run + `mvn release:clean` to get the project to a state where it can be rebuilt. + +@TODO from here! + +@TODO hash files + +@TODO signature hash algorithm + +@TODO helper email + +@TODO push tag + +1. Now that preparation went perfectly it is time to perform the release and deploy artifacts to staging. To do that execute `mvn release:perform -Psigned_release -DscmCommentPrefix="NIFI-270-RC1 " -Darguments="-DskipTests"` From 0d5b793fe36aaf6375da6708369d83f2c5922744 Mon Sep 17 00:00:00 2001 From: Joe Skora Date: Thu, 20 Oct 2016 00:46:53 -0400 Subject: [PATCH 2/5] Added todo items. --- src/pages/markdown/release-guide.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/pages/markdown/release-guide.md b/src/pages/markdown/release-guide.md index 14f56f566..20c51f992 100644 --- a/src/pages/markdown/release-guide.md +++ b/src/pages/markdown/release-guide.md @@ -153,6 +153,10 @@ consumes a surprisingly large amount of space. These settings have been shown t @TODO helper email @TODO push tag + +@TODO only update documentation on website for releases on the latest line + +@TODO add final release date to the release notes entry 1. Now that preparation went perfectly it is time to perform the release and deploy artifacts to staging. To do that execute From 3b301f94eafd2d64fd77f433b537193498d92da0 Mon Sep 17 00:00:00 2001 From: Joe Skora Date: Fri, 21 Oct 2016 00:04:05 -0400 Subject: [PATCH 3/5] Finished first cut through guide. --- src/pages/markdown/release-guide.md | 436 ++++++++++++++++------------ 1 file changed, 257 insertions(+), 179 deletions(-) diff --git a/src/pages/markdown/release-guide.md b/src/pages/markdown/release-guide.md index 20c51f992..ad686d865 100644 --- a/src/pages/markdown/release-guide.md +++ b/src/pages/markdown/release-guide.md @@ -28,15 +28,16 @@ capacity of a [Release Manager][release-manager] (RM). ## The objective Our aim is to produce an official Apache release. -The following is a list of the sorts of things that will be validated and are the basics to check -when evaluating a release for a vote. ## What to validate and how to Validate a release +The following is a list of the sorts of things that will be validated and are the basics to check +when evaluating a release for a vote. + - Are LICENSE and NOTICE file present in the source root and complete? - Specifically look in the *-sources.zip artifact and ensure these items are present at the root of the archive. - Evaluate the sources and dependencies. Does the overall LICENSE and NOTICE appear correct? Do all licenses fit within the ASF approved licenses? - - Here is an example path to a sources artifact: + - Here is an example path to a sources artifact that has been prepared but not released: `https://repository.apache.org/service/local/repositories/orgapachenifi-1011/content/org/apache/nifi/nifi/0.0.1/nifi-0.0.1-source-release.zip` - Is there a README available that explains how to build the application and to execute it? - Look in the *-sources.zip artifact root for the readme. @@ -62,35 +63,35 @@ when evaluating a release for a vote. - If the NiFi community rejects the vote the issues noted are resolved and another RC is generated - If the NiFi community accepts the vote then the release is 'releasable' and can be placed into the appropriate 'dist' location, maven artifacts released from staging. - + + ## The mechanics of the release -### Configure your environment +### A. Configure your environment -1. Follow the steps outlined in the [Quickstart Guide][quickstart-guide]. +1. Follow the steps outlined in the [Quickstart Guide][quickstart-guide] to prepare the development system. 1. *Confirm that you can* 1. *checkout the branch that is being released, and* 1. *build the entire application.* ### A. Preparation to release -1. Create a JIRA ticket for the release tasks and use that ticket number for the commit messages. For example we'll - consider NIFI-270 as our ticket. Also have in mind the release version you are planning for. For example we'll consider '0.0.1'. -1. Create the next version in JIRA if necessary so work can continue towards that release. -1. Create meaningful release notes for this version if not already created. [Enter them here][release-notes] -1. Create new branch off 'master' named after the JIRA ticket. Here we'll use a branch off of 'master' with +1. Create a JIRA ticket for the release tasks for version x.y.z, and use that ticket number for the commit messages. For +example we'll consider NIFI-nnnn as our ticket to release version x.y.z. +1. Create the next version in JIRA, if it doesn't already exist, so work can continue towards that release. +1. Create meaningful release notes for this version if not already created. [Enter them here][release-notes] on the NiFi wiki. +1. Create a new branch off 'master' named after the JIRA ticket. ```bash - $ git checkout -b NIFI-${RELEASE_TICKET}-RC${RC} + $ git checkout -b NIFI--RC master ``` 1. Verify that Maven has sufficient heap space to perform the build tasks. Some plugins and parts of the build consumes a surprisingly large amount of space. These settings have been shown to work. - ``` + ```bash $ export MAVEN_OPTS="-Xms1024m -Xmx3076m -XX:MaxPermSize=256m" ``` 1. Ensure your settings.xml has been updated to include a `signed_release` profile and a `` entry for - "repository.apache.org" as shown below. There are other ways to ensure your PGP key is available for signing as well. - ``` - ... +"repository.apache.org" as shown below. There are other ways to ensure your PGP key is available for signing as well. + ```XML signed_release @@ -99,7 +100,7 @@ consumes a surprisingly large amount of space. These settings have been shown t your GPG passphrase - ... + repository.apache.org @@ -107,26 +108,26 @@ consumes a surprisingly large amount of space. These settings have been shown t YOUR MAVEN ENCRYPTED PASSWORD HERE - ... ``` -1. Ensure the the full application builds and all tests work by executing +1. Ensure the the full application builds and all tests work by executing a parallel (multi-threaded) build. ``` $ mvn -T 2.5C clean install ``` - for a parallel build. Once that completes you can startup and test the application with +1. Startup and test the application with from the root source folder. After a few seconds, NiFi should be up and +running at [http://localhost:8080/nifi](http://localhost:8080/nifi). ``` $ cd nifi-assembly/target/nifi-x.y.z $ bin/nifi.sh start ``` - from the root source folder. After a few seconds, NiFi should be up and running at `http://localhost:8080/nifi`. 1. Evaluate and ensure the appropriate license headers are present on all source files. 1. Ensure LICENSE and NOTICE files are complete and accurate. (Developers should always be keeping these up to date as they go along adding source and modifying dependencies to keep this burden manageable.) -1. Run - ``` - $ mvn install -Pcontrib-check - ``` - validate contribution expectations and any problems found must be addressed before proceeding. +1. Build the project with the ```contrib-check``` profile enabled to validate contribution expectations and find any +problems that must be addressed before proceeding. + ``` + $ mvn install -Pcontrib-check + ``` + ## Perform the release @@ -140,180 +141,257 @@ consumes a surprisingly large amount of space. These settings have been shown t -DdevelopmentVersion="${NEXT_VERSION}" \ -Darguments="-DskipTests" ``` -1. Review the release preparation results. - 1. if problems are found `mvn release:rollback` to reset the changes or it may be necessary to run - `mvn release:clean` to get the project to a state where it can be rebuilt. +1. Review the release preparation results. If problems are found `$ mvn release:rollback` will reset the changes, or it may be necessary to run + `$ mvn release:clean` to get the project to a state where it can be rebuilt. -@TODO from here! - -@TODO hash files - -@TODO signature hash algorithm - -@TODO helper email - -@TODO push tag - -@TODO only update documentation on website for releases on the latest line - -@TODO add final release date to the release notes entry - -1. Now that preparation went perfectly it is time to perform the release and deploy artifacts to staging. To do that execute - -`mvn release:perform -Psigned_release -DscmCommentPrefix="NIFI-270-RC1 " -Darguments="-DskipTests"` - -That will complete successfully and this means the artifacts have been released to the Apache Nexus staging repository. You will see something like - -` [INFO] * Closing staging repository with ID "orgapachenifi-1011".` - -So if you browse to `https://repository.apache.org/#stagingRepositories` login with your Apache committer credentials and you should see `orgapachenifi-1011`. If you click on that you can inspect the various staged artifacts. - -Validate that all the various aspects of the staged artifacts appear correct +1. If the preparation without problems, it is time to perform the release and deploy artifacts to staging. + ``` + $ mvn release:perform + -Psigned_release \ + -DscmCommentPrefix="NIFI-270-RC1" + -Darguments="-DskipTests" + ``` + When this completes the artifacts have been released to the Apache Nexus staging repository, a local release branch + has been created and there should the staging repository ID returned in a log entry like this `[INFO] * Closing + staging repository with ID "orgapachenifi-0000"`. *The staging repository ID will be needed later for the release vote email.* + +1. Browse to [https://repository.apache.org/#stagingRepositories](https://repository.apache.org/#stagingRepositories) and +login with your Apache committer credentials and you should see `orgapachenifi-nnnn`. If you click on that you can +inspect the various staged artifacts. + +1. Validate that all the various aspects of the staged artifacts appear correct + - Download the sources. Do they compile cleanly? If the result is a build does it execute? + - Validate the hashes match. + - Validate that the sources contain no unexpected binaries. + - Validate the signature for the build and hashes. + - Validate the LICENSE/NOTICE/Headers. + - Validate that the README is present and provides sufficient information to build and if necessary execute. + +1. The validated artifacts all look good then push the branch to origin `git push origin NIFI-270`. + +1. Create the signature and hashes for the source release and convenience binary files. + 1. ASCII armored GPG signatures (`--digest-algo=SHA512` select the SHA512 hash algorithm). + ``` + $ gpg -a -b --digest-algo=SHA512 nifi-x.y.z-source-release.zip # produces nifi-x.y.z-source-release.zip.asc + $ gpg -a -b --digest-algo=SHA512 nifi-x.y.z-bin.tar.gz # produces nifi-x.y.z-bin.tar.gz.asc + $ gpg -a -b --digest-algo=SHA512 nifi-x.y.z-bin.zip # produces nifi-x.y.z-bin.zip.asc + ``` + 1. Generate md5 hash summaries. + ``` + $ md5sum nifi-x.y.z-source-release.zip | cut -d" " -f1 > nifi-x.y.z-source-release.zip.md5 + $ md5sum nifi-x.y.z-bin.tar.gz | cut -d" " -f1 > nifi-x.y.z-bin.tar.gz.md5 + $ md5sum nifi-x.y.z-bin.zip | cut -d" " -f1 > nifi-x.y.z-bin.zip.md5 + ``` + 1. Generate SHA1 hash summaries. + ``` + $ sha1sum nifi-x.y.z-source-release.zip | cut -d" " -f1 > nifi-x.y.z-source-release.zip.sha1 + $ sha1sum nifi-x.y.z-bin.tar.gz | cut -d" " -f1 > nifi-x.y.z-bin.tar.gz.sha1 + $ sha1sum nifi-x.y.z-bin.zip | cut -d" " -f1 > nifi-x.y.z-bin.zip.sha1 + ``` + +1. For reviewing of the release candidate, commit the source release and convenience binaries files along with their hashes and signatures to +[https://dist.apache.org/repos/dist/dev/nifi-x.y.z](https://dist.apache.org/repos/dist/dev/nifi-x.y.z). + +## Error recovery - - Download the sources. Do they compile cleanly? If the result is a build does it execute? - - Validate the hashes match. - - Validate that the sources contain no unexpected binaries. - - Validate the signature for the build and hashes. - - Validate the LICENSE/NOTICE/Headers. - - Validate that the README is present and provides sufficient information to build and if necessary execute. - -If all looks good then push the branch to origin `git push origin NIFI-270` - -For reviewing of the release candidate - The sources, hashes, signature, and the convenience binary, its hashes, and signature should be placed here: - - https://dist.apache.org/repos/dist/dev/nifi-0.0.1/ -
-For each convenience binary - - Generate ascii armored detached signature by running `gpg -a -b --digest-algo=SHA512 nifi-0.0.1-bin.tar.gz` - - Generate md5 hash summary by running `md5sum nifi-0.0.1-bin.tar.gz | awk '{ printf substr($0,0,32)}' > nifi-0.0.1-bin.tar.gz.md5` - - Generate sha1 hash summary by running `sha1sum nifi-0.0.1-bin.tar.gz | awk '{ printf substr($0,0,40)}' > nifi-0.0.1-bin.tar.gz.sha1` - - Upload the bin, asc, sha1, md5 for each binary convenience build to the same location as the source release -
If anything isn't correct about the staged artifacts you can drop the staged repo from repository.apache.org and delete the local tag in git. If you also delete the local branch and clear your local maven repository under org/apache/nifi then it is -as if the release never happened. Before doing that though try to figure out what went wrong. So as described here you see -that you can pretty easily test the release process until you get it right. The `mvn versions:set ` and `mvn versions:commit ` -commands can come in handy to help do this so you can set versions to something clearly release test related. - -Now it's time to initiate a vote within the NiFi community. Send the vote request to `dev@nifi.apache.org` -with a subject of `[VOTE] Release Apache NiFi 0.0.1`. The following template can be used: - -``` -Hello -I am pleased to be calling this vote for the source release of Apache NiFi -nifi-0.0.1. - -The source zip, including signatures, digests, etc. can be found at: -https://repository.apache.org/content/repositories/orgapachenifi-1011 - -The Git tag is nifi-0.0.1-RC1 -The Git commit ID is 72abf18c2e045e9ef404050e2bffc9cef67d2558 -https://git-wip-us.apache.org/repos/asf?p=nifi.git;a=commit;h=72abf18c2e045e9ef404050e2bffc9cef67d2558 - -Checksums of nifi-0.0.1-source-release.zip: -MD5: 5a580756a17b0573efa3070c70585698 -SHA1: a79ff8fd0d2f81523b675e4c69a7656160ff1214 - -Release artifacts are signed with the following key: -https://people.apache.org/keys/committer/joewitt.asc - -KEYS file available here: -https://dist.apache.org/repos/dist/release/nifi/KEYS - -8 issues were closed/resolved for this release: -https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12316020&version=12329307 - -Release note highlights can be found here: -https://cwiki.apache.org/confluence/display/NIFI/Release+Notes#ReleaseNotes-Version0.0.1 - -The vote will be open for 72 hours. -Please download the release candidate and evaluate the necessary items including checking hashes, signatures, build from source, and test. The please vote: - -[ ] +1 Release this package as nifi-0.0.1 -[ ] +0 no opinion -[ ] -1 Do not release this package because because... -``` -
-A release vote is majority rule. So wait 72 hours and see if there are at least 3 binding (PMC members) +1 votes and no more negative votes than positive. -If the vote passes then send a vote result email. Send the email to `dev@nifi.apache.org` -with a subject of `[RESULT][VOTE] Release Apache NiFi 0.0.1`. Use a template such as: - -``` -Hello +as if the release never happened. Before doing that though try to figure out what went wrong so the Release Guide can be +updated or corrected if necessary. + +So, as has been described here you can test the release process until you get it right. The `mvn versions:set ` and +`mvn versions:commit ` commands can come in handy to help do this so you can set versions to something clearly release test related. -The release passes with +## Apache NiFi Community Release Vote +After the release is staged it's time to initiate a release vote within the NiFi community. -X +1 (binding) votes -Y -1 (binding) votes +Once the release vote is called for, the Apache NiFi Community has 72 hours to review the release candidate and vote by +responding to the email thread calling for the vote. The release vote is majority rule, there must be at least 3 +binding (PMC members) +1 votes and no more negative than positive. -Thanks to all who helped make this release possible. +1. Send a vote request email to `dev@nifi.apache.org` with a subject of `[VOTE] Release Apache NiFi x.y.z`. Use the + following as a template. + ``` + Hello, + + I am pleased to be calling this vote for the source release of Apache NiFi nifi-x.y.z. + + The source zip, including signatures, digests, etc. can be found at: + https://repository.apache.org/content/repositories/orgapachenifi-nnnn + + The Git tag is nifi-x.y.z-RC1 + The Git commit ID is 72abf18c2e045e9ef404050e2bffc9cef67d2558 + https://git-wip-us.apache.org/repos/asf?p=nifi.git;a=commit;h=72abf18c2e045e9ef404050e2bffc9cef67d2558 + + Checksums of nifi-x.y.z-source-release.zip: + MD5: 5a580756a17b0573efa3070c70585698 + SHA1: a79ff8fd0d2f81523b675e4c69a7656160ff1214 + + Release artifacts are signed with the following key: + https://people.apache.org/keys/committer/joedeveloper.asc + + KEYS file available here: + https://dist.apache.org/repos/dist/release/nifi/KEYS + + 8 issues were closed/resolved for this release: + https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12316020&version=12329307 + + Release note highlights can be found here: + https://cwiki.apache.org/confluence/display/NIFI/Release+Notes#ReleaseNotes-Versionx.y.z + + The vote will be open for 72 hours. + Please download the release candidate and evaluate the necessary items including checking hashes, signatures, build + from source, and test. The please vote: + + [ ] +1 Release this package as nifi-0.0.1 + [ ] +0 no opinion + [ ] -1 Do not release this package because because... + ``` +1. Send another helper email to `dev@nifi.apache.org` with a subject of `Apache NiFi x.y.z RCx Release Helper Guide`. + ``` + Hello Apache NiFi community, + + Please find the associated guidance to help those interested in validating/verifying the release so they can vote. + + # Download latest KEYS file: + https://dist.apache.org/repos/dist/dev/nifi/KEYS + + # Import keys file: + gpg --import KEYS + + # [optional] Clear out local maven artifact repository + + # Pull down nifi-x.y.z source release artifacts for review: + + wget https://dist.apache.org/repos/dist/dev/nifi/nifi-x.y.z/nifi-x.y.z-source-release.zip + wget https://dist.apache.org/repos/dist/dev/nifi/nifi-x.y.z/nifi-x.y.z-source-release.zip.asc + wget https://dist.apache.org/repos/dist/dev/nifi/nifi-x.y.z/nifi-x.y.z-source-release.zip.md5 + wget https://dist.apache.org/repos/dist/dev/nifi/nifi-x.y.z/nifi-x.y.z-source-release.zip.sha1 + wget https://dist.apache.org/repos/dist/dev/nifi/nifi-x.y.z/nifi-x.y.z-source-release.zip.sha256 + + # Verify the signature + gpg --verify nifi-x.y.z-source-release.zip.asc + + # Verify the hashes (md5, sha1, sha256) match the source and what was provided in the vote email thread + md5sum nifi-x.y.z-source-release.zip + sha1sum nifi-x.y.z-source-release.zip + sha256sum nifi-x.y.z-source-release.zip + + # Unzip nifi-x.y.z-source-release.zip + + # Verify the build works including release audit tool (RAT) checks + cd nifi-x.y.z + mvn clean install -Pcontrib-check + + # Verify the contents contain a good README, NOTICE, and LICENSE. + + # Verify the git commit ID is correct + + # Verify the RC was branched off the correct git commit ID + + # Look at the resulting convenience binary as found in nifi-assembly/target + + # Make sure the README, NOTICE, and LICENSE are present and correct + + # Run the resulting convenience binary and make sure it works as expected + + # Send a response to the vote thread indicating a +1, 0, -1 based on your findings. + + Thank you for your time and effort to validate the release! + ``` +1. After waiting 72 hours, if there are at least 3 binding (PMC members) +1 votes and no more negative votes than +positive the vote passes and the release candidate is officially released. +1. If the vote passed, send another email to `dev@nifi.apache.org` +with a subject of `[RESULT][VOTE] Release Apache NiFi x.y.z`. Use the following as a template. + ``` + Apache NiFi Community, + + I am pleased to announce that the x.y.z release of Apache NiFi passes with + X +1 (binding) votes + Y -1 (binding) votes + 0 0 votes + 0 -1 votes + + Thanks to all who helped make this release possible. + + Here is the PMC vote thread: [INSERT URL OF PMC Vote Thread] + ``` -Here is the PMC vote thread: [INSERT URL OF PMC Vote Thread] -``` -
-Now all the voting is done and the release is good to go. +## Final Steps +After the vote is complete and the release is approved, these steps complete the release process. -Here are the steps of the release once the release is approved: +[comment]: <> (some of these steps need further detail and/or examples) 1. Move convenience binaries and related artifacts from dist/dev to dist/release: -`svn move -m "NIFI-1122" https://dist.apache.org/repos/dist/dev/nifi/nifi-0.0.1 https://dist.apache.org/repos/dist/release/nifi/0.0.1` -
-2. In repository.apache.org go to the staging repository and select `release` and follow instructions on the site. - -3. Merge the release branch into master - -4. Update the NiFi website to point to the new download(s). Remove older release artifacts from download page (leave the current release and the previous one). For the release just previous to this new one change the links to point to the archive location. See current page as an example of the needed URL changes. In addition to updating the download page as described delete artifacts other than the current/new release from the dist/nifi SVN storage. They are already in the archive location so no need to do anything else. - -5. Update the [Migration Guide][migration-guide] on the Wiki. - -6. Update the NiFi Web Page to indicate NEWS of the release as appropriate - -7. From a nifi.tar.gz collect the docs/html/* files and svn commit them to https://svn.apache.org/repos/asf/nifi/site/trunk/docs/nifi-docs/html/ - -8. From a nifi.tar.gz collect the nifi-framework-nar.nar/META-INF/bundled-dependencies/nifi-web-api.war/docs/rest-api/* files and svn commit them to https://svn.apache.org/repos/asf/nifi/site/trunk/docs/nifi-docs/rest-api/ - -9. Run an instance of nifi - -10. Copy nifi/work/docs/components/* and svn commit to https://svn.apache.org/repos/asf/nifi/site/trunk/docs/nifi-docs/components/ - -11. wget http://localhost:8080/nifi-docs/documentation and svn commit to https://svn.apache.org/repos/asf/nifi/site/trunk/docs/nifi-docs/index.html + ``` + $ svn move -m "NIFI-" https://dist.apache.org/repos/dist/dev/nifi/nifi-x.y.z https://dist.apache.org/repos/dist/release/nifi/x.y.z + ``` +1. In repository.apache.org go to the staging repository and select `release` and follow the instructions on the site. -12. In Jira mark the release version as 'Released' and 'Archived' through 'version' management in the 'administration' console. +1. Merge the release branch into master. + ``` + $ git push asf NIFI- + ``` +1. Update the NiFi website to point to the new download(s). Remove older release artifacts from download page (leave the current release and the previous one). For the release just previous to this new one change the links to point to the archive location. See current page as an example of the needed URL changes. In addition to updating the download page as described delete artifacts other than the current/new release from the dist/nifi SVN storage. They are already in the archive location so no need to do anything else. -13. Create a proper signed tag of the released codebase. If the approved RC tag was 'nifi-0.0.1-RC1' then create a signed release tag of 'rel/nifi-0.0.1'. For instructions on setting up to sign your tag see [here][sign-tag-instructs]. To create a signed release tag enter `git tag -s rel/nifi-0.0.1 -m "NIFI-XYZ Signed release tag for approved release of nifi 0.0.1" COMMIT-ID-OF-RC-TAG` +1. Update the [Migration Guide][migration-guide] on the Wiki. -14. Wait 24 hours then send release announcement. - - See [here][release-announce] for an understanding of why you need to wait 24 hours - - Then create an announcement like the one shown below addressed to 'announce@apache.org, dev@nifi..apache.org' with a reply-to of 'dev@nifi.apache.org'. - - The email has to be sent from an apache.org email address and should be by the release manager of the build. +1. Update the NiFi Web Page to indicate NEWS of the release as appropriate -``` -SUBJECT: [ANNOUNCE] Apache NiFi 0.0.1 release -BODY: -Hello +1. If the release is on the latest development line, update the NiFi website documentation pages to match the release. + 1. From a nifi.tar.gz collect the docs/html/* files and svn commit them to https://svn.apache.org/repos/asf/nifi/site/trunk/docs/nifi-docs/html/ + 1. From a nifi.tar.gz collect the nifi-framework-nar.nar/META-INF/bundled-dependencies/nifi-web-api.war/docs/rest-api/* files and svn commit them to https://svn.apache.org/repos/asf/nifi/site/trunk/docs/nifi-docs/rest-api/ + 1. Run an instance of nifi + 1. Copy nifi/work/docs/components/* and svn commit to https://svn.apache.org/repos/asf/nifi/site/trunk/docs/nifi-docs/components/ + 1. wget http://localhost:8080/nifi-docs/documentation and svn commit to https://svn.apache.org/repos/asf/nifi/site/trunk/docs/nifi-docs/index.html -The Apache NiFi team would like to announce the release of Apache NiFi 0.0.1. +1. In Jira mark the release version as 'Released' and 'Archived' through 'version' management in the 'administration' console. -Apache NiFi is an easy to use, powerful, and reliable system to process and distribute data. Apache NiFi was made for dataflow. It supports highly configurable directed graphs of data routing, transformation, and system mediation logic. +1. Create a proper signed tag of the released codebase. If the approved RC tag was `nifi-x.y.z-RC1` then create a + signed release tag of 'rel/nifi-x.y.z'. + ``` + $ git tag -s rel/nifi-x.y.z -m "NIFI-nnnn Signed release tag for approved release of nifi x.y.z" + ``` + For instructions on setting up to sign your tag see [here][sign-tag-instructs]. + +1. Push the release tag to the ASF repository. + ``` + $ git push asf rel/nifi-x.y.z rel/nifi.x.y.z + ``` -More details on Apache NiFi can be found here: -http://nifi.apache.org/ +1. Update the release notes with the final date of the release. -The release artifacts can be downloaded from here: -http://nifi.apache.org/download.html +1. After the vote has been complete for 24 hours send the release announcement. + + See [here][release-announce] for an understanding of why you need to wait 24 hours + + The announcement should be based on the template below and addressed to `announce@apache.org` and `dev@nifi.apache.org` + with a reply-to of `dev@nifi.apache.org`. + + The subject should include "`[ANNOUNCE] Apache NiFi x.y.z release`". + + (__NOTE: the email has to be sent by the release manager of the build from their apache.org email address__). + ``` + Hello -Maven artifacts have been made available here: -https://repository.apache.org/content/repositories/releases/org/apache/nifi/ - -Issues closed/resolved for this list can be found here: -https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12316020&version=12329373 - -Release note highlights can be found here: -https://cwiki.apache.org/confluence/display/NIFI/Release+Notes#ReleaseNotes-Version0.0.1 - -Thank you -The Apache NiFi team + The Apache NiFi team would like to announce the release of Apache NiFi 0.0.1. + + Apache NiFi is an easy to use, powerful, and reliable system to process and distribute data. Apache NiFi was made for dataflow. It supports highly configurable directed graphs of data routing, transformation, and system mediation logic. + + More details on Apache NiFi can be found here: + http://nifi.apache.org/ -``` + The release artifacts can be downloaded from here: + http://nifi.apache.org/download.html + + Maven artifacts have been made available here: + https://repository.apache.org/content/repositories/releases/org/apache/nifi/ + + Issues closed/resolved for this list can be found here: + https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12316020&version=12329373 + + Release note highlights can be found here: + https://cwiki.apache.org/confluence/display/NIFI/Release+Notes#ReleaseNotes-Version0.0.1 + + Thank you + The Apache NiFi team + ``` [quickstart-guide]: http://nifi.apache.org/quickstart.html [release-manager]: http://www.apache.org/dev/release-publishing.html#release_manager From 7a0795b3ece1de10e3770d1bf1732478c854bca1 Mon Sep 17 00:00:00 2001 From: Andy LoPresto Date: Fri, 21 Oct 2016 11:58:27 -0400 Subject: [PATCH 4/5] Added steps to configure GPG to default to strong digest algorithms (SHA512/SHA384/SHA256 over SHA1). Added steps to produce SHA-256 checksum over artifacts. Added link explaining Maven encrypted password setup. --- src/pages/markdown/release-guide.md | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/src/pages/markdown/release-guide.md b/src/pages/markdown/release-guide.md index ad686d865..84cb13371 100644 --- a/src/pages/markdown/release-guide.md +++ b/src/pages/markdown/release-guide.md @@ -90,7 +90,7 @@ consumes a surprisingly large amount of space. These settings have been shown t $ export MAVEN_OPTS="-Xms1024m -Xmx3076m -XX:MaxPermSize=256m" ``` 1. Ensure your settings.xml has been updated to include a `signed_release` profile and a `` entry for -"repository.apache.org" as shown below. There are other ways to ensure your PGP key is available for signing as well. +"repository.apache.org" as shown below. [Steps to configure and encrypt Maven passwords](http://blog.sonatype.com/2009/10/maven-tips-and-tricks-encrypting-passwords/). There are other ways to ensure your PGP key is available for signing as well. ```XML signed_release @@ -122,7 +122,7 @@ running at [http://localhost:8080/nifi](http://localhost:8080/nifi). 1. Evaluate and ensure the appropriate license headers are present on all source files. 1. Ensure LICENSE and NOTICE files are complete and accurate. (Developers should always be keeping these up to date as they go along adding source and modifying dependencies to keep this burden manageable.) -1. Build the project with the ```contrib-check``` profile enabled to validate contribution expectations and find any +1. Build the project with the `contrib-check` profile enabled to validate contribution expectations and find any problems that must be addressed before proceeding. ``` $ mvn install -Pcontrib-check @@ -170,7 +170,7 @@ inspect the various staged artifacts. 1. The validated artifacts all look good then push the branch to origin `git push origin NIFI-270`. 1. Create the signature and hashes for the source release and convenience binary files. - 1. ASCII armored GPG signatures (`--digest-algo=SHA512` select the SHA512 hash algorithm). + 1. ASCII armored GPG signatures (`--digest-algo=SHA512` select the SHA512 hash algorithm). [Configure GPG to always prefer stronger hashes](https://www.apache.org/dev/openpgp.html#key-gen-avoid-sha1). ``` $ gpg -a -b --digest-algo=SHA512 nifi-x.y.z-source-release.zip # produces nifi-x.y.z-source-release.zip.asc $ gpg -a -b --digest-algo=SHA512 nifi-x.y.z-bin.tar.gz # produces nifi-x.y.z-bin.tar.gz.asc @@ -188,6 +188,12 @@ inspect the various staged artifacts. $ sha1sum nifi-x.y.z-bin.tar.gz | cut -d" " -f1 > nifi-x.y.z-bin.tar.gz.sha1 $ sha1sum nifi-x.y.z-bin.zip | cut -d" " -f1 > nifi-x.y.z-bin.zip.sha1 ``` + 1. Generate SHA256 hash summaries. + ``` + $ shasum -a 256 nifi-x.y.z-source-release.zip | cut -d" " -f1 > nifi-x.y.z-source-release.zip.sha256 + $ shasum -a 256 nifi-x.y.z-bin.tar.gz | cut -d" " -f1 > nifi-x.y.z-bin.tar.gz.sha256 + $ shasum -a 256 nifi-x.y.z-bin.zip | cut -d" " -f1 > nifi-x.y.z-bin.zip.sha256 + ``` 1. For reviewing of the release candidate, commit the source release and convenience binaries files along with their hashes and signatures to [https://dist.apache.org/repos/dist/dev/nifi-x.y.z](https://dist.apache.org/repos/dist/dev/nifi-x.y.z). @@ -199,8 +205,8 @@ local tag in git. If you also delete the local branch and clear your local mave as if the release never happened. Before doing that though try to figure out what went wrong so the Release Guide can be updated or corrected if necessary. -So, as has been described here you can test the release process until you get it right. The `mvn versions:set ` and -`mvn versions:commit ` commands can come in handy to help do this so you can set versions to something clearly release test related. +So, as has been described here you can test the release process until you get it right. The `mvn versions:set` and +`mvn versions:commit` commands can come in handy to help do this so you can set versions to something clearly release test related. ## Apache NiFi Community Release Vote After the release is staged it's time to initiate a release vote within the NiFi community. From a657058764c66bacdd38a5dad81175945e8b9baa Mon Sep 17 00:00:00 2001 From: Joe Skora Date: Sun, 23 Oct 2016 13:59:37 -0400 Subject: [PATCH 5/5] Standardized references to versions, tags, etc. Finished cleanup of process tasks. --- src/pages/markdown/release-guide.md | 430 ++++++++++++++++++---------- 1 file changed, 273 insertions(+), 157 deletions(-) diff --git a/src/pages/markdown/release-guide.md b/src/pages/markdown/release-guide.md index 84cb13371..bac192862 100644 --- a/src/pages/markdown/release-guide.md +++ b/src/pages/markdown/release-guide.md @@ -6,7 +6,11 @@ title: Apache NiFi Release Guidelines The purpose of this document is to capture and describe the steps involved in producing an official release of Apache NiFi. It is written specifically to someone acting in the -capacity of a [Release Manager][release-manager] (RM). +capacity of a [Release Manager][apache-release-manager] (RM). + +## The objective + +Our aim is to produce an official Apache release from an existing release branch. ## Background Material @@ -25,87 +29,153 @@ capacity of a [Release Manager][release-manager] (RM). - [Apache Release Signing][apache-release-signing] - [Apache Guide to publish Maven Artifacts][apache-guide-publish-maven] -## The objective - -Our aim is to produce an official Apache release. - -## What to validate and how to Validate a release +## Terms + + * **Release Manager** (RM) - the Apache NiFi PMC Member or Committer acting as [Release Manager][apache-release-manager] + for a particular release of Apache NiFi. + * **Release Candidate** (RC) - an iteration of the release process that is proposed for a vote by the Apache NiFi + Community. + * **Community** - the [community][apache-glossary-community] of people with an interest + in the improvement and advancement of Apache NiFi, including end-users, developers, evangelists, and advisers. + * **PMC** - within the Apache NiFi community, members of the [PMC][apache-glossary-pmc] oversee the ongoing project. + * **Committer** - with the Apache NiFi community, [committers][apache-glossary-committer] + have gain the privilege to commit changes to the Apache NiFi codebase. + +## High level flow of a release + + - The Apache NiFi community is constantly contributing to JIRA tickets assigned to the next release. + - At some point the number of tickets open/remaining for the next release begins to approach zero. + - A member of the community suggests a release and initiates a discussion. + - Someone volunteers to perform the Release Manager (RM) role for the release. (This can be a committer but Apache + guides indicate a preference for a PMC member.) + - The RM validate the proposed release and stages the source code, Maven artifacts, and distributable files for a + Release Candidate (RC). + - The RM initiates a vote on the RC by the NiFi community. + - If the NiFi community rejects the RC, the issues noted are resolved and another RC is generated. + - If the NiFi community accepts the RC, the staged source code, artifacts, and distribution files are moved to the + appropriately locations for public release. + +## Variable reference substitutions + +Throughout this guide, references must be made to names and values that will vary from release to release. For clarity +those variable values have been written like Bash variable references. When a term like +"```/tmp/src/nifi-${NIFI_VERSION}```" is seen in an instruction or email template it should be replaced with +"```/tmp/src/nifi-0.7.0```" when working the release of "Apache NiFi 0.7.0". + + * Subtitutions used in tasks and email templates +
+    Reference            Example value       Description
+    =========            ==============      ===========
+    ${BRANCH}            0.7.0-SNAPSHOT      the development branch on which the release is based.
+    ${NIFI_VERSION}      0.7.0               the version currently in development on the release branch.
+    ${NEXT_VERSION}      0.7.1-SNAPSHOT      the future version for development on the release branch.
+    ${JIRA_TICKET}       NIFI-2112           the JIRA ticket created by the release manager for the release tasks.
+    ${RC}                2                   the Release Candidate index start at 1 for the first release candidate.
+    ${RC_TAG_COMMIT_ID}                      the commit ID of the RC tag created during the Maven release process.
+    ${STAGING_REPO_ID}   orgapachenifi-1088  the temporate repository ID where staged artifacts have been placed.
+    ${RM_USERID}         johndoe             the Apache account ID of Release Manager.
+    ${RELEASE_TAG}       rel/nifi-0.7.0      the Git repository tag for the source code as released.
+    ${VOTE_THREAD_URL}   0.7.0 vote thread   the URL for the Apache Pony Mail archive of the release vote thread.
+    
+ + _To be practical but avoid confusion with future release details, these example values reflect the previous release +NiFi 0.7.0 RC2 release details._ + +## What to validate and how to validate a release The following is a list of the sorts of things that will be validated and are the basics to check when evaluating a release for a vote. - - Are LICENSE and NOTICE file present in the source root and complete? - - Specifically look in the *-sources.zip artifact and ensure these items are present at the root of the archive. - - Evaluate the sources and dependencies. Does the overall LICENSE and NOTICE appear correct? Do all licenses fit within the ASF approved licenses? + - Are the LICENSE and NOTICE files present in the source root and complete? + - Specifically look in the ```nifi-${NIFI_VERSION}-sources-release.zip``` artifact and ensure these files are + present at the root of the archive. + - Evaluate the sources and dependencies. + - Does the overall LICENSE and NOTICE appear correct? + - Do all licenses fit within the ASF approved licenses? - Here is an example path to a sources artifact that has been prepared but not released: - `https://repository.apache.org/service/local/repositories/orgapachenifi-1011/content/org/apache/nifi/nifi/0.0.1/nifi-0.0.1-source-release.zip` + `https://repository.apache.org/content/repositories/${STAGING_REPO_ID}/org/apache/nifi/nifi/${NIFI_VERSION}/nifi-${NIFI_VERSION}-source-release.zip` - Is there a README available that explains how to build the application and to execute it? - Look in the *-sources.zip artifact root for the readme. - Are the signatures and hashes correct for the source release? - Validate the hashes of the sources artifact do in fact match: - `https://repository.apache.org/service/local/repositories/orgapachenifi-1011/content/org/apache/nifi/nifi/0.0.1/nifi-0.0.1-source-release.zip.md5` - `https://repository.apache.org/service/local/repositories/orgapachenifi-1011/content/org/apache/nifi/nifi/0.0.1/nifi-0.0.1-source-release.zip.sha1` + `https://repository.apache.org/content/repositories/${STAGING_REPO_ID}/org/apache/nifi/nifi/${NIFI_VERSION}/nifi-${NIFI_VERSION}-source-release.zip.md5` + `https://repository.apache.org/content/repositories/${STAGING_REPO_ID}/org/apache/nifi/nifi/${NIFI_VERSION}/nifi-${NIFI_VERSION}-source-release.zip.sha1` - Validate the signature of the source artifact. Here is an example path: - `https://repository.apache.org/service/local/repositories/orgapachenifi-1011/content/org/apache/nifi/nifi/0.0.1/nifi-0.0.1-source-release.zip.asc` - - Need a quick reminder on how to [verify a signature](http://www.apache.org/dev/release-signing.html#verifying-signature)? + `https://repository.apache.org/content/repositories/${STAGING_REPO_ID}/org/apache/nifi/nifi/${NIFI_VERSION}/nifi-${NIFI_VERSION}-source-release.zip.asc` + - Need a quick reminder on how to [verify a signature][apache-signature-verify]? - Do all sources have necessary headers? - Unzip the sources file into a directory and execute `mvn install -Pcontrib-check` - Are there no unexpected binary files in the release? - The only thing we'd expect would be potentially test resources files. - Does the app (if appropriate) execute and function as expected? - -## The flow of a release (an outline) - - The community is contributing to a series of JIRA tickets assigned to the next release - - The number of tickets open/remaining for that next release approaches zero - - A member of the community suggests a release and initiates a discussion - - Someone volunteers to be an RM for the release (can be a committer but apache guides indicate preference is a PMC member) - - A release candidate is put together and a vote sent to the team. - - If the NiFi community rejects the vote the issues noted are resolved and another RC is generated - - If the NiFi community accepts the vote then the release is 'releasable' and can be placed into the appropriate - 'dist' location, maven artifacts released from staging. - - -## The mechanics of the release -### A. Configure your environment +This list is reflected in the Release Vote and Release Helper Guide emails that are sent once the release has been +staged in the Git and Nexus repositories. + +## The Release Process + +The release process includes steps to be performed by the Release Manager as well as the +Apache NiFi developer community. + +### Step 1. Configure the build environment (RM and community) -1. Follow the steps outlined in the [Quickstart Guide][quickstart-guide] to prepare the development system. -1. *Confirm that you can* - 1. *checkout the branch that is being released, and* - 1. *build the entire application.* +1. Follow the steps outlined in the [Quickstart Guide][nifi-quickstart-guide] to prepare the development system. +1. Confirm that the local Git workspace is configured with an origin remote pointing to the RM's personal fork of the +NiFi source and an "ASF" remote pointing to the Apache Git Repository for NiFi. + ``` + $ git remote -v + asf http://git-wip-us.apache.org/repos/asf/nifi.git (fetch) + asf http://git-wip-us.apache.org/repos/asf/nifi.git (push) + origin https://github.com/${RM_USERID}/nifi.git (fetch) + origin https://github.com/${RM_USERID}/nifi.git (push) + ``` + Additional remotes will not cause a problem if these two are correct. Other configurations are perfectly + acceptable but the appropriate adjustments to the steps in this guide must be made by the release manager. +1. Confirm that source code can be checked out for the branch being released. + ``` + git checkout ${BRANCH} + ``` +1. Confirm that the entire application builds correctly in the build environment. -### A. Preparation to release +### Step 2. Prepare and stage the release (RM) -1. Create a JIRA ticket for the release tasks for version x.y.z, and use that ticket number for the commit messages. For -example we'll consider NIFI-nnnn as our ticket to release version x.y.z. +1. Create a JIRA ticket for the release tasks for version ${NIFI_VERSION}. + ___The resulting JIRA ticket number is referred to as__ ${JIRA\_TICKET} __in this guide.___ 1. Create the next version in JIRA, if it doesn't already exist, so work can continue towards that release. -1. Create meaningful release notes for this version if not already created. [Enter them here][release-notes] on the NiFi wiki. +1. Create meaningful release notes for this version if not already created. [Enter them here][nifi-release-notes] on +the NiFi wiki. 1. Create a new branch off 'master' named after the JIRA ticket. ```bash - $ git checkout -b NIFI--RC master + $ git checkout -b NIFI-${JIRA_TICKET}-RC${RC} ${BRANCH} ``` 1. Verify that Maven has sufficient heap space to perform the build tasks. Some plugins and parts of the build -consumes a surprisingly large amount of space. These settings have been shown to work. - ```bash +consumes a surprisingly large amount of space. + - These settings have been shown to work for Java 8 for NiFi version 1.x and later. + ```bash + $ export MAVEN_OPTS="-Xms1024m -Xmx3076m" + ``` + - And these work for Java 7 for NiFi version 0.x. + ``` $ export MAVEN_OPTS="-Xms1024m -Xmx3076m -XX:MaxPermSize=256m" ``` 1. Ensure your settings.xml has been updated to include a `signed_release` profile and a `` entry for -"repository.apache.org" as shown below. [Steps to configure and encrypt Maven passwords](http://blog.sonatype.com/2009/10/maven-tips-and-tricks-encrypting-passwords/). There are other ways to ensure your PGP key is available for signing as well. +"repository.apache.org" as shown below. [Steps to configure and encrypt Maven passwords][sonatype-maven-password]. +There are other ways to ensure your PGP key is available for signing as well. ```XML signed_release forked-path - username@apache.org - your GPG passphrase + ${RM_USERID}@apache.org + GPG passphrase repository.apache.org - YOUR USER NAME HERE - YOUR MAVEN ENCRYPTED PASSWORD HERE + ${RM_USERID} + ENCRYPTED PASSWORD HERE ``` @@ -116,7 +186,7 @@ consumes a surprisingly large amount of space. These settings have been shown t 1. Startup and test the application with from the root source folder. After a few seconds, NiFi should be up and running at [http://localhost:8080/nifi](http://localhost:8080/nifi). ``` - $ cd nifi-assembly/target/nifi-x.y.z + $ cd nifi-assembly/target/nifi-${NIFI_VERSION}-bin/nifi-${NIFI_VERSION} $ bin/nifi.sh start ``` 1. Evaluate and ensure the appropriate license headers are present on all source files. @@ -128,36 +198,39 @@ problems that must be addressed before proceeding. $ mvn install -Pcontrib-check ``` - -## Perform the release +### Step 3. Perform the release (RM) 1. Now its time to have maven prepare the release with this command. ``` $ mvn --batch-mode release:prepare \ -Psigned_release \ - -DscmCommentPrefix="NIFI-${RELEASE_TICKET}-RC${RC}" \ + -DscmCommentPrefix="NIFI-${JIRA_TICKET}-RC${RC}" \ -Dtag="nifi-${NIFI_VERSION}-RC${RC}" \ -DreleaseVersion="${NIFI_VERSION}" \ -DdevelopmentVersion="${NEXT_VERSION}" \ -Darguments="-DskipTests" ``` -1. Review the release preparation results. If problems are found `$ mvn release:rollback` will reset the changes, or it may be necessary to run - `$ mvn release:clean` to get the project to a state where it can be rebuilt. +1. Review the release preparation results. If problems are found `$ mvn release:rollback` will reset the changes, or +it may be necessary to run `$ mvn release:clean` to get the project to a state where it can be rebuilt. 1. If the preparation without problems, it is time to perform the release and deploy artifacts to staging. ``` $ mvn release:perform -Psigned_release \ - -DscmCommentPrefix="NIFI-270-RC1" + -DscmCommentPrefix="${JIRA_TICKET}-RC${RC}" -Darguments="-DskipTests" ``` When this completes the artifacts have been released to the Apache Nexus staging repository, a local release branch - has been created and there should the staging repository ID returned in a log entry like this `[INFO] * Closing - staging repository with ID "orgapachenifi-0000"`. *The staging repository ID will be needed later for the release vote email.* + has been created and there should the staging repository ID returned in a log entry like this. -1. Browse to [https://repository.apache.org/#stagingRepositories](https://repository.apache.org/#stagingRepositories) and -login with your Apache committer credentials and you should see `orgapachenifi-nnnn`. If you click on that you can -inspect the various staged artifacts. + ``` + [INFO] * Closing staging repository with ID "orgapachenifi-1088" + ``` + ___This staging repository ID is referred to by ${STAGING_REPO_ID} in this release guide.___ + +1. Browse to the Apache [Staging Repository][apache-staging-repositories] and +login with your Apache committer credentials and you should see the newly created staging repository listed. If you +click on that you can inspect the various staged artifacts. 1. Validate that all the various aspects of the staged artifacts appear correct - Download the sources. Do they compile cleanly? If the result is a build does it execute? @@ -167,74 +240,84 @@ inspect the various staged artifacts. - Validate the LICENSE/NOTICE/Headers. - Validate that the README is present and provides sufficient information to build and if necessary execute. -1. The validated artifacts all look good then push the branch to origin `git push origin NIFI-270`. +1. The validated artifacts all look good then push the branch to origin release branch to the ASF repository. + ``` + $ git push asf NIFI-${JIRA_TICKET}-RC${RC} + ``` 1. Create the signature and hashes for the source release and convenience binary files. 1. ASCII armored GPG signatures (`--digest-algo=SHA512` select the SHA512 hash algorithm). [Configure GPG to always prefer stronger hashes](https://www.apache.org/dev/openpgp.html#key-gen-avoid-sha1). ``` - $ gpg -a -b --digest-algo=SHA512 nifi-x.y.z-source-release.zip # produces nifi-x.y.z-source-release.zip.asc - $ gpg -a -b --digest-algo=SHA512 nifi-x.y.z-bin.tar.gz # produces nifi-x.y.z-bin.tar.gz.asc - $ gpg -a -b --digest-algo=SHA512 nifi-x.y.z-bin.zip # produces nifi-x.y.z-bin.zip.asc + $ gpg -a -b --digest-algo=SHA512 nifi-${NIFI_VERSION}-source-release.zip # produces nifi-${NIFI_VERSION}-source-release.zip.asc + $ gpg -a -b --digest-algo=SHA512 nifi-${NIFI_VERSION}-bin.tar.gz # produces nifi-${NIFI_VERSION}-bin.tar.gz.asc + $ gpg -a -b --digest-algo=SHA512 nifi-${NIFI_VERSION}-bin.zip # produces nifi-${NIFI_VERSION}-bin.zip.asc ``` 1. Generate md5 hash summaries. ``` - $ md5sum nifi-x.y.z-source-release.zip | cut -d" " -f1 > nifi-x.y.z-source-release.zip.md5 - $ md5sum nifi-x.y.z-bin.tar.gz | cut -d" " -f1 > nifi-x.y.z-bin.tar.gz.md5 - $ md5sum nifi-x.y.z-bin.zip | cut -d" " -f1 > nifi-x.y.z-bin.zip.md5 + $ md5sum nifi-${NIFI_VERSION}-source-release.zip | cut -d" " -f1 > nifi-${NIFI_VERSION}-source-release.zip.md5 + $ md5sum nifi-${NIFI_VERSION}-bin.tar.gz | cut -d" " -f1 > nifi-${NIFI_VERSION}-bin.tar.gz.md5 + $ md5sum nifi-${NIFI_VERSION}-bin.zip | cut -d" " -f1 > nifi-${NIFI_VERSION}-bin.zip.md5 ``` 1. Generate SHA1 hash summaries. ``` - $ sha1sum nifi-x.y.z-source-release.zip | cut -d" " -f1 > nifi-x.y.z-source-release.zip.sha1 - $ sha1sum nifi-x.y.z-bin.tar.gz | cut -d" " -f1 > nifi-x.y.z-bin.tar.gz.sha1 - $ sha1sum nifi-x.y.z-bin.zip | cut -d" " -f1 > nifi-x.y.z-bin.zip.sha1 + $ sha1sum nifi-${NIFI_VERSION}-source-release.zip | cut -d" " -f1 > nifi-${RELEASAE}-source-release.zip.sha1 + $ sha1sum nifi-${NIFI_VERSION}-bin.tar.gz | cut -d" " -f1 > nifi-${RELEASAE}-bin.tar.gz.sha1 + $ sha1sum nifi-${NIFI_VERSION}-bin.zip | cut -d" " -f1 > nifi-${RELEASAE}-bin.zip.sha1 ``` 1. Generate SHA256 hash summaries. ``` - $ shasum -a 256 nifi-x.y.z-source-release.zip | cut -d" " -f1 > nifi-x.y.z-source-release.zip.sha256 - $ shasum -a 256 nifi-x.y.z-bin.tar.gz | cut -d" " -f1 > nifi-x.y.z-bin.tar.gz.sha256 - $ shasum -a 256 nifi-x.y.z-bin.zip | cut -d" " -f1 > nifi-x.y.z-bin.zip.sha256 + $ shasum -a 256 nifi-${NIFI_VERSION}-source-release.zip | cut -d" " -f1 > nifi-${NIFI_VERSION}-source-release.zip.sha256 + $ shasum -a 256 nifi-${NIFI_VERSION}-bin.tar.gz | cut -d" " -f1 > nifi-${NIFI_VERSION}-bin.tar.gz.sha256 + $ shasum -a 256 nifi-${NIFI_VERSION}-bin.zip | cut -d" " -f1 > nifi-${NIFI_VERSION}-bin.zip.sha256 ``` -1. For reviewing of the release candidate, commit the source release and convenience binaries files along with their hashes and signatures to -[https://dist.apache.org/repos/dist/dev/nifi-x.y.z](https://dist.apache.org/repos/dist/dev/nifi-x.y.z). +1. For reviewing of the release candidate, commit the source release and convenience binaries files along with their +hashes and signatures to `https://dist.apache.org/repos/dist/dev/nifi-${NIFI_VERSION}`. -## Error recovery +### Step 4. Error recovery (RM) -If anything isn't correct about the staged artifacts you can drop the staged repo from repository.apache.org and delete the -local tag in git. If you also delete the local branch and clear your local maven repository under org/apache/nifi then it is -as if the release never happened. Before doing that though try to figure out what went wrong so the Release Guide can be -updated or corrected if necessary. +If anything isn't correct about the staged artifacts you can drop the staged repo from repository.apache.org and delete +the local tag in git. If you also delete the local branch and clear your local maven repository under org/apache/nifi +then it is as if the release never happened. Before doing that though try to figure out what went wrong so the Release +Guide can be updated or corrected if necessary. So, as has been described here you can test the release process until you get it right. The `mvn versions:set` and -`mvn versions:commit` commands can come in handy to help do this so you can set versions to something clearly release test related. +`mvn versions:commit` commands can come in handy to help do this so you can set versions to something clearly release +test related. + +### Step 5. Release Vote (RM and community) -## Apache NiFi Community Release Vote -After the release is staged it's time to initiate a release vote within the NiFi community. +After the release source and artifacts are staged in the repositories it's time for the RM to send a release vote to the +NiFi community. -Once the release vote is called for, the Apache NiFi Community has 72 hours to review the release candidate and vote by -responding to the email thread calling for the vote. The release vote is majority rule, there must be at least 3 -binding (PMC members) +1 votes and no more negative than positive. +Once the release vote is called for, members of the NiFi developer community have 72 hours to evaluate the RC and +cast their vote by replying to the "[VOTE] Release ..." email sent by the RM. + +_NOTE: The release vote is majority rule vote that must include at least 3 binding +1 votes Apache NiFi PMC members +and more positive than negative binding votes._ -1. Send a vote request email to `dev@nifi.apache.org` with a subject of `[VOTE] Release Apache NiFi x.y.z`. Use the - following as a template. +1. RM sends a vote request email to the NiFi Developers Mailing List. + - TO: `dev@nifi.apache.org` + - FROM: `${RM_USERID}@apache.org` + - SUBJECT: `[VOTE] Release Apache NiFi ${NIFI_VERSION}` ``` Hello, - I am pleased to be calling this vote for the source release of Apache NiFi nifi-x.y.z. + I am pleased to be calling this vote for the source release of Apache NiFi nifi-${NIFI_VERSION}. The source zip, including signatures, digests, etc. can be found at: https://repository.apache.org/content/repositories/orgapachenifi-nnnn - The Git tag is nifi-x.y.z-RC1 - The Git commit ID is 72abf18c2e045e9ef404050e2bffc9cef67d2558 - https://git-wip-us.apache.org/repos/asf?p=nifi.git;a=commit;h=72abf18c2e045e9ef404050e2bffc9cef67d2558 + The Git tag is nifi-${NIFI_VERSION}-RC${RC} + The Git commit ID is <40-BYTE-COMMIT-HASH> + https://git-wip-us.apache.org/repos/asf?p=nifi.git;a=commit;h=<40-BYTE-COMMIT-HASH> Checksums of nifi-x.y.z-source-release.zip: - MD5: 5a580756a17b0573efa3070c70585698 - SHA1: a79ff8fd0d2f81523b675e4c69a7656160ff1214 + MD5: <32-BYTE-MD5SUM-HASH> + SHA1: <40-BYTE-SHA1SUM-HASH> Release artifacts are signed with the following key: - https://people.apache.org/keys/committer/joedeveloper.asc + https://people.apache.org/keys/committer/${RM_USERID}.asc KEYS file available here: https://dist.apache.org/repos/dist/release/nifi/KEYS @@ -243,17 +326,21 @@ binding (PMC members) +1 votes and no more negative than positive. https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12316020&version=12329307 Release note highlights can be found here: - https://cwiki.apache.org/confluence/display/NIFI/Release+Notes#ReleaseNotes-Versionx.y.z + https://cwiki.apache.org/confluence/display/NIFI/Release+Notes#ReleaseNotes-Version${NIFI_VERSION} The vote will be open for 72 hours. Please download the release candidate and evaluate the necessary items including checking hashes, signatures, build from source, and test. The please vote: - [ ] +1 Release this package as nifi-0.0.1 + [ ] +1 Release this package as nifi-${NIFI_VERSION} [ ] +0 no opinion [ ] -1 Do not release this package because because... ``` -1. Send another helper email to `dev@nifi.apache.org` with a subject of `Apache NiFi x.y.z RCx Release Helper Guide`. + +1. RM sends the following helper email to the NiFi Developers Mailing List. + - TO: `dev@nifi.apache.org` + - FROM: `${RM_USERID}@apache.org` + - SUBJECT: `Apache NiFi ${NIFI_VERSION} RC${RC} Release Helper Guide` ``` Hello Apache NiFi community, @@ -267,26 +354,26 @@ binding (PMC members) +1 votes and no more negative than positive. # [optional] Clear out local maven artifact repository - # Pull down nifi-x.y.z source release artifacts for review: + # Pull down nifi-${NIFI_VERSION} source release artifacts for review: - wget https://dist.apache.org/repos/dist/dev/nifi/nifi-x.y.z/nifi-x.y.z-source-release.zip - wget https://dist.apache.org/repos/dist/dev/nifi/nifi-x.y.z/nifi-x.y.z-source-release.zip.asc - wget https://dist.apache.org/repos/dist/dev/nifi/nifi-x.y.z/nifi-x.y.z-source-release.zip.md5 - wget https://dist.apache.org/repos/dist/dev/nifi/nifi-x.y.z/nifi-x.y.z-source-release.zip.sha1 - wget https://dist.apache.org/repos/dist/dev/nifi/nifi-x.y.z/nifi-x.y.z-source-release.zip.sha256 + wget https://dist.apache.org/repos/dist/dev/nifi/nifi-${NIFI_VERSION}/nifi-${NIFI_VERSION}-source-release.zip + wget https://dist.apache.org/repos/dist/dev/nifi/nifi-${NIFI_VERSION}/nifi-${NIFI_VERSION}-source-release.zip.asc + wget https://dist.apache.org/repos/dist/dev/nifi/nifi-${NIFI_VERSION}/nifi-${NIFI_VERSION}-source-release.zip.md5 + wget https://dist.apache.org/repos/dist/dev/nifi/nifi-${NIFI_VERSION}/nifi-${NIFI_VERSION}-source-release.zip.sha1 + wget https://dist.apache.org/repos/dist/dev/nifi/nifi-${NIFI_VERSION}/nifi-${NIFI_VERSION}-source-release.zip.sha256 # Verify the signature - gpg --verify nifi-x.y.z-source-release.zip.asc + gpg --verify nifi-${NIFI_VERSION}-source-release.zip.asc # Verify the hashes (md5, sha1, sha256) match the source and what was provided in the vote email thread - md5sum nifi-x.y.z-source-release.zip - sha1sum nifi-x.y.z-source-release.zip - sha256sum nifi-x.y.z-source-release.zip + md5sum nifi-${NIFI_VERSION}-source-release.zip + sha1sum nifi-${NIFI_VERSION}-source-release.zip + sha256sum nifi-${NIFI_VERSION}-source-release.zip - # Unzip nifi-x.y.z-source-release.zip + # Unzip nifi-${NIFI_VERSION}-source-release.zip # Verify the build works including release audit tool (RAT) checks - cd nifi-x.y.z + cd nifi-${NIFI_VERSION} mvn clean install -Pcontrib-check # Verify the contents contain a good README, NOTICE, and LICENSE. @@ -305,14 +392,23 @@ binding (PMC members) +1 votes and no more negative than positive. Thank you for your time and effort to validate the release! ``` -1. After waiting 72 hours, if there are at least 3 binding (PMC members) +1 votes and no more negative votes than -positive the vote passes and the release candidate is officially released. -1. If the vote passed, send another email to `dev@nifi.apache.org` -with a subject of `[RESULT][VOTE] Release Apache NiFi x.y.z`. Use the following as a template. + +1. Developers in the community review the release candiate and reply to the vote email with their vote. +1. After 72 hours if + - at least 3 binding (PMC members) cast +1 votes, and + - the positive binding votes out number any negative binding votes + + the vote passes and the release candidate is officially released. If the vote does not pass, corrections are made + on the release branch and a new release candidate is put forward for a new vote. + +1. RM sends vote result email. + - TO: `dev@nifi.apache.org` + - FROM: `${RM_USERID}@apache.org` + - SUBJECT: `[RESULT][VOTE] Release Apache NiFi ${NIFI_VERSION}` ``` Apache NiFi Community, - I am pleased to announce that the x.y.z release of Apache NiFi passes with + I am pleased to announce that the ${NIFI_VERSION} release of Apache NiFi passes with X +1 (binding) votes Y -1 (binding) votes 0 0 votes @@ -320,65 +416,75 @@ with a subject of `[RESULT][VOTE] Release Apache NiFi x.y.z`. Use the following Thanks to all who helped make this release possible. - Here is the PMC vote thread: [INSERT URL OF PMC Vote Thread] + Here is the PMC vote thread: ${VOTE_THREAD_URL} ``` -## Final Steps +### Step 6. Finalize the Release + After the vote is complete and the release is approved, these steps complete the release process. [comment]: <> (some of these steps need further detail and/or examples) 1. Move convenience binaries and related artifacts from dist/dev to dist/release: ``` - $ svn move -m "NIFI-" https://dist.apache.org/repos/dist/dev/nifi/nifi-x.y.z https://dist.apache.org/repos/dist/release/nifi/x.y.z + $ svn move -m "NIFI-${JIRA_TICKET}" https://dist.apache.org/repos/dist/dev/nifi/nifi-${NIFI_VERSION} https://dist.apache.org/repos/dist/release/nifi/${NIFI_VERSION} ``` -1. In repository.apache.org go to the staging repository and select `release` and follow the instructions on the site. +1. In repository.apache.org go to the staging repository and select `release` and follow the instructions on the site. -1. Merge the release branch into master. +1. Merge the release branch into master. ``` - $ git push asf NIFI- + $ git push asf NIFI-${JIRA_TICKET} ``` -1. Update the NiFi website to point to the new download(s). Remove older release artifacts from download page (leave the current release and the previous one). For the release just previous to this new one change the links to point to the archive location. See current page as an example of the needed URL changes. In addition to updating the download page as described delete artifacts other than the current/new release from the dist/nifi SVN storage. They are already in the archive location so no need to do anything else. +1. Update the NiFi website to point to the new download(s). Remove older release artifacts from download page (leave +the current release and the previous one). For the release just previous to this new one change the links to point to +the archive location. See current page as an example of the needed URL changes. In addition to updating the download +page as described delete artifacts other than the current/new release from the dist/nifi SVN storage. They are already +in the archive location so no need to do anything else. -1. Update the [Migration Guide][migration-guide] on the Wiki. +1. Update the [Migration Guide][nifi-migration-guide] on the Wiki. -1. Update the NiFi Web Page to indicate NEWS of the release as appropriate +1. Update the NiFi Web Page to indicate NEWS of the release as appropriate -1. If the release is on the latest development line, update the NiFi website documentation pages to match the release. +1. If the release is on the latest development line, update the NiFi website documentation pages to match the release. 1. From a nifi.tar.gz collect the docs/html/* files and svn commit them to https://svn.apache.org/repos/asf/nifi/site/trunk/docs/nifi-docs/html/ 1. From a nifi.tar.gz collect the nifi-framework-nar.nar/META-INF/bundled-dependencies/nifi-web-api.war/docs/rest-api/* files and svn commit them to https://svn.apache.org/repos/asf/nifi/site/trunk/docs/nifi-docs/rest-api/ 1. Run an instance of nifi 1. Copy nifi/work/docs/components/* and svn commit to https://svn.apache.org/repos/asf/nifi/site/trunk/docs/nifi-docs/components/ 1. wget http://localhost:8080/nifi-docs/documentation and svn commit to https://svn.apache.org/repos/asf/nifi/site/trunk/docs/nifi-docs/index.html -1. In Jira mark the release version as 'Released' and 'Archived' through 'version' management in the 'administration' console. - -1. Create a proper signed tag of the released codebase. If the approved RC tag was `nifi-x.y.z-RC1` then create a - signed release tag of 'rel/nifi-x.y.z'. - ``` - $ git tag -s rel/nifi-x.y.z -m "NIFI-nnnn Signed release tag for approved release of nifi x.y.z" - ``` - For instructions on setting up to sign your tag see [here][sign-tag-instructs]. - -1. Push the release tag to the ASF repository. - ``` - $ git push asf rel/nifi-x.y.z rel/nifi.x.y.z - ``` - -1. Update the release notes with the final date of the release. - -1. After the vote has been complete for 24 hours send the release announcement. - + See [here][release-announce] for an understanding of why you need to wait 24 hours - + The announcement should be based on the template below and addressed to `announce@apache.org` and `dev@nifi.apache.org` - with a reply-to of `dev@nifi.apache.org`. - + The subject should include "`[ANNOUNCE] Apache NiFi x.y.z release`". - + (__NOTE: the email has to be sent by the release manager of the build from their apache.org email address__). +1. In Jira mark the release version as 'Released' and 'Archived' through 'version' management in the 'administration' console. + +1. Create a proper signed tag of the released codebase based on the RC Tag craeted during the Maven release process. + ``` + $ git tag -s rel/nifi-${NIFI_VERSION} -m "${JIRA_TICKET} signed release tag for approved release of NiFi ${NIFI_VERSION}" ${RC_TAG_COMMIT_ID} + ``` + For instructions on setting up to sign your tag see [here][git-sign-tag-instructs]. + +1. Push the release tag to the official ASF repository. + ``` + $ git push asf rel/nifi-${NIFI_VERSION} rel/nifi-${NIFI_VERSION} + ``` + +1. Update the release notes with the final date of the release. + +1. After the release has been complete for 24 hours send the release announcement. + + See [here][apache-release-announce] for an understanding of why you need to wait 24 hours + + The announcement should addressed as follows. + - TO: `announce@apache.org`, `dev@nifi.apache.org` + - REPLY-TO: `dev@nifi.apache.org` + - FROM: ${RM_USERID}@apache.org + + The subject should include `[ANNOUNCE] Apache NiFi x.y.z release`. + + The text should on the template included below. + + + ``` Hello - The Apache NiFi team would like to announce the release of Apache NiFi 0.0.1. + The Apache NiFi team would like to announce the release of Apache NiFi ${NIFI_VERSION}. - Apache NiFi is an easy to use, powerful, and reliable system to process and distribute data. Apache NiFi was made for dataflow. It supports highly configurable directed graphs of data routing, transformation, and system mediation logic. + Apache NiFi is an easy to use, powerful, and reliable system to process and distribute + data. Apache NiFi was made for dataflow. It supports highly configurable directed graphs + of data routing, transformation, and system mediation logic. More details on Apache NiFi can be found here: http://nifi.apache.org/ @@ -393,24 +499,34 @@ After the vote is complete and the release is approved, these steps complete the https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12316020&version=12329373 Release note highlights can be found here: - https://cwiki.apache.org/confluence/display/NIFI/Release+Notes#ReleaseNotes-Version0.0.1 + https://cwiki.apache.org/confluence/display/NIFI/Release+Notes#ReleaseNotes-Version${NIFI_VERSION} Thank you The Apache NiFi team ``` -[quickstart-guide]: http://nifi.apache.org/quickstart.html -[release-manager]: http://www.apache.org/dev/release-publishing.html#release_manager -[release-announce]: http://www.apache.org/dev/release.html#release-announcements +[nifi-quickstart-guide]: http://nifi.apache.org/quickstart.html +[nifi-release-notes]: https://cwiki.apache.org/confluence/display/NIFI/Release+Notes +[nifi-migration-guide]: https://cwiki.apache.org/confluence/display/NIFI/Migration+Guidance + +[apache-encryption]: http://www.apache.org/licenses/exports/ +[apache-glossary-committer]: https://www.apache.org/foundation/glossary.html#Committer +[apache-glossary-community]: https://www.apache.org/foundation/glossary.html#Community +[apache-glossary-pmc]: https://www.apache.org/foundation/glossary.html#PMC +[apache-guide-publish-maven]: http://www.apache.org/dev/publishing-maven-artifacts.html +[apache-legal-resolve]: http://www.apache.org/legal/resolved.html [apache-license]: http://apache.org/licenses/LICENSE-2.0 [apache-license-apply]: http://www.apache.org/dev/apply-license.html -[apache-legal-resolve]: http://www.apache.org/legal/resolved.html -[apache-encryption]: http://www.apache.org/licenses/exports/ -[apache-release-policy]: http://www.apache.org/dev/release.html -[apache-release-guide]: http://www.apache.org/dev/release-publishing [apache-pgp]: http://www.apache.org/dev/openpgp.html +[apache-release-announce]: http://www.apache.org/dev/release.html#release-announcements +[apache-release-guide]: http://www.apache.org/dev/release-publishing +[apache-release-manager]: http://www.apache.org/dev/release-publishing.html#release_manager +[apache-release-policy]: http://www.apache.org/dev/release.html [apache-release-signing]: http://www.apache.org/dev/release-signing.html -[apache-guide-publish-maven]: http://www.apache.org/dev/publishing-maven-artifacts.html -[release-notes]: https://cwiki.apache.org/confluence/display/NIFI/Release+Notes -[migration-guide]: https://cwiki.apache.org/confluence/display/NIFI/Migration+Guidance -[sign-tag-instructs]: http://gitready.com/advanced/2014/11/02/gpg-sign-releases.html +[apache-signature-verify]: http://www.apache.org/dev/release-signing.html#verifying-signature +[apache-staging-repositories]: https://repository.apache.org/#stagingRepositories + +[git-sign-tag-instructs]: http://gitready.com/advanced/2014/11/02/gpg-sign-releases.html +[sonatype-maven-password]: http://blog.sonatype.com/2009/10/maven-tips-and-tricks-encrypting-passwords + +[070-rc2-vote]: https://lists.apache.org/thread.html/8b111ce611238af8b71b95039c299ae0a1ec063ea77f83aa34e6a2bd@%3Cdev.nifi.apache.org%3E \ No newline at end of file