Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The release utility scripts reside within the release subdirectory.

The release script scripts will:

  1. Prepare a staging directory for the source code release
  2. Create .tar.gz and .zip artifacts of the source code
  3. Invoke npm to build the source code (including running unit tests), and deploy artifacts to a NPM remote repository
  4. Save the .tar.gz and .zip artifacts produced by the build of incubator-flagon/release/make-release-artifacts.sh
  5. For each of the produced files, produce SHA512 and GnuPG signatures

...

The script takes a -n parameter to work in dry run mode; in this mode, the script will NOT upload NPM artifacts or commit the release to the Subversion repository. This speeds up the process (the NPM deploy in particular slows down the build) and will catch any problems such as PGP or mocha problems much sooner.ONLY create a local copy of release artifacts in the /release folder. It will NOT stage release artifacts to be checked into the staging area. 

Code Block
# A dry run to 
Code Block
# A dry run to test everything is OK
$ ./incubator-flagon/release/make-release-artifacts.sh -r $RC_NUMBER -n

# The real build, which will publish artifacts
$ ./incubator-flagon/release/make-release-artifacts.sh -r $RC_NUMBER


Once this has completed,

...

you will need to check-in the release artifacts into the staging environement.

Push the source release artifacts and signatures to dist

...

.apache.org

...

 as described below.

Check out

Push the source release artifacts and signatures to dist.apache.org as described below.

Check out flagon release staging area. The artifacts we push to this area are the ones we make available on official

...

Next, progress to the creation of the VOTE thread as below....

Verify the release artifacts

TBD

Verify the release artifacts

At minimum you should do a few things to test code that will be available at release:

  1. Check the signatures generated by release artifacts: GPG and GPG Keychain provide tools to test .asc signatures and verify that your signing key matches your private key.
  2. Check the src builds: Create copies of src.tar and/or src.zip files, and initiate the NPM build and test scripts. Make sure they pass.
  3. Check the bin artifacts: Use the UserALE.js example server and point our index.html test page at the minified UserALE.js scripts to ensure that you're generating logs.

Publish to the staging area

Make a signed tag for this release candidate:


Code Block
$ git tag -a $(VERSION NUMBER) -s -m "Tag release ${VERSION_NAME} release candidate  	${RC_NUMBER}" rel/apache-flagon-useralejs-incubating-${VERSION_NAME}-rc${RC_NUMBER}

$ git show tag $(VERSION NUMBER)

Now push the release branch and release candidate tag:


Code Block
$ git push userale-js $VERSION_NAME && git push apache-git rel/apache-flagon-userale-js-incubating-${VERSION_NAME}-rc${RC_NUMBER}origin $(VERSION NUMBER)

Publish the source and binary distributions to the pre-release staging area

You will need to have checked out the Apache distribution Subversion release staging repository located at https://dist.apache.org/repos/dist/dev/incubator/flagon/. Please refer to Prerequisites for information.


In your workspace for the dist.apache.org repo /dev repo, create a directory with the artifact name and version:

Code Block
$ mkdir apache-flagon-useralejs-incubating-${VERSION_NAME}-rc${RC_NUMBER}

Copy into this directory all of the artifacts from the previous step - -src and -bin.tar.gz.zip and .rpm, and all associated .sha512 and .asc signatures.  and -bin.tar.gz.zip and .rpm, and all associated .sha512 and .asc signatures. Also, copy CHANGELOG.md  into this file.

ENSURE THAT YOU ARE ABOUT TO ADD ARTIFACTS TO THE ...dist/dev/ STAGING AREA, NOT ...dist/release.

Then commit:


Code Block
$ svn add apache-flagon-useralejs-incubating-${VERSION_NAME}-rc${RC_NUMBER}
$ svn add CHANGELOG.md
$ svn commit --username $SVN_USERNAME --no-auth-cache --message "Add apache-flagon-useralejs-incubating-${VERSION_NAME}-rc${RC_NUMBER} to dist/dev/flagon"

These Some of these these steps can be performed as part of the make-release-artifacts.sh script used earlier if ${APACHE_DIST_SVN_DIR} points to the appropriate subversion directory.


NOW THE RELEASE IS READY FOR REVIEW BY THE PPMC & APACHE FLAGON COMMUNITY.

Prepare the VOTE thread based on the artifacts

...

IT IS ABSOLUTELY ESSENTIAL THAT YOU KEEP THE LOCAL RELEASE COPY !!!!

...

Send out the RESULT thread

...