-
Notifications
You must be signed in to change notification settings - Fork 936
Closed
Labels
Milestone
Description
Make a perfect tarball
- Update the major,minor,release,greek version numbers in
VERSION - Update the
c:r:ashared library version number(s) inVERSIONper the GNU Libtool shared library version number rules- NOTE: It may be helpful to use a command like
git checkout BRANCH; git pull --rebase; git log --stat --topo-order --decorate TAG_FROM_PREVIOUS_RELEASE..HEADto examine the Git logs and see what has changed. - IF RELEVANT: If this is a new backwards-compatible release on a single branch (i.e., this is
vx.y.zwherez>1), you probably want to examinegit log --stat --no-merges last_release_tag..this_branch_nameto see what source code files have changed (which directly impacts how to increment thec:r:avalues). - IF RELEVANT: If this is a new release series (e.g.,
vx.y.0), setrto 0 and increasecvalues by 10 compared to the first release in the prior series (i.e.,vx.(y-1).0orv(x-1).0.0, as relevant). - IF RELEVANT: If this is a new backwards-compatible release series (i.e.,
vx.y.0, wherey>1), setavalues to 10 so that the shared libraries will be ABI compatible with the prior release series. - IF RELEVANT: If this is a new backwards-INcompatible release series (i.e.,
vx.0.0), setavalues to 0 so that there is no possibility of users accidentally mixing shared library versions.
- NOTE: It may be helpful to use a command like
- Update all documentation files (especially including dates and version numbers), including:
-
README: all relevant updates, build options, etc. Be sure to update the date near the top of the file. -
AUTHORS: viacontrib/dist/make-authors.pl(and commit the result) -
NEWS: List all user-noticeable changes. Similar to setting shared library versions (above):- Pro tip: if this is a new release on a single branch (i.e., this is
vx.y.zwherez>1), you probably want to examinegit log --stat --no-merges last_release_tag..this_branch_nameto see what has changed. - Pro tip: if this is a new release series (i.e., this is
vx.y.0wherey>1, or this isvx.0.0), you will need to be more creative in examining the git logs because this release is on a different branch than the prior release (vx.(y-1).z). Hence,git log ... last_release_tag..this_branch_namewill not necessarily give you need. You may need to merge what has changed on your branch with what has changed on the prior release branch, depending on when the prior release branched from this branch. Read the SPECIFYING RANGES sectiongitrevisions(7)for more details.
- Pro tip: if this is a new release on a single branch (i.e., this is
-
LICENSE: Update the years in the copyright notices - ...any other doc files that may not be included in this list
-
- Make final
openmpi-x.y.z.tar.gzandopenmpi-x.y.z.bz2tarballs and push the RC tarballs to S3.- log in to aws.open-mpi.org and su mpiteam
- module load the relevant autoconf modulefile
- git clone the Open MPI, cd into ompi, switch to the right branch, then
-
./contrib/dist/make_dist_tarball - run https://github.com/open-mpi/ompi-scripts/blob/master/dist/upload-release-to-s3.py to push the RC tarballs to S3. E.g.,
./upload-release-to-s3.py --files <space separated list of files>(should run on aws.open-mpi.org with no need for a virtualenv or anything) - update https://github.com/open-mpi/ompi-www/blob/master/software/ompi/v2.1/version.inc to change the prereleases line to
$prereleases = array(“2.1.6rc1”); - push an update to ompi-www
Ensure that the tarball actually works
- Ensure openmpi
make distcheckpasses - Build and install Open MPI (from a tarball)
- Check that the version number and release date is correct in the installed man pages
- Build and run the examples in the tarball with
--enable-mpi-cxx --enable-mpi-fortran(use a fortran compiler >= gcc 4.9)- MPI / C bindings
- MPI / C++ bindings
- MPI / All three Fortran bindings
- OSHMEM / C bindings (don't run if not using ikrit or ucx)
- OSHMEM / Fortran bindings (don't run if not using ikrit or ucx)
- Build and install the IBM tests from the
ompi-testsrepo- Ensure the tests pass with at least 1 or 2 different MPI transports
- With a prior release tarball from the same release series (if applicable):
- Build and install Open MPI
- Build all the examples in the tarball (against the prior OMPI release)
- Build the IBM tests from the
ompi-testsrepo (against the prior OMPI release) -
rm -rfthe installation of the prior release - Set
LD_LIBRARY_PATHto point to the installation of the new Open MPI - Run examples, make sure they still work
- Run IBM tests, make sure they still work
Test packaging
- Ensure that building an Open MPI source RPM works on a RHEL system
- Ensure that building the Open MPI binary RPM works on a RHEL system (note had to do hacking on buildrpm.sh script and it doesn't report correct information about where rpms are installed, at least not on my RHEL7.2 system running as root)
- Install both RPMs on an RHEL system
- Test building and running the IBM tests against the RPM-installed Open MPI
- Test building a MPI-based program with the output from
pkg-configwith the RPM-installedompi.pc - Test that uninstall of the rpm works
Do the release
- DO NOT DO A FINAL RELEASE if you are too close to Supercomputing and/or Christmas. If you release during these time periods, there can be a ~2 week delay while the Open MPI developer community is not paying attention to their email (and will not be able to respond to the inevitable post-release user emails).
- Find the appropriate git hash to tag: look in the
VERSIONfile in the official release tarball, and look at therepo_revfield.- Make the release tag:
git tag -a vX.Y.Z HASH - Make the tag commit message be "Release vX.Y.Z"
- Double check that you tagged the Right commit, and that it exactly agrees with the hash in
VERSIONin the release tarball - Triple check that you tagged the Right commit. TAGS ARE FOREVER!
- Make the release tag:
-
git push origin --dry-run vX.Y.Zto the ompi repo. Remove--dry-runwhen you're convinced it is correct. - Publish the tarballs on the Open MPI web site
- If Z is 0 (i.e., this is the first release in a series):
-
cp -r software/ompi/vCURRENT_RELEASE software/ompi/vRELEASE(where RELEASE is for the new release X.Y and CURRENT_RELEASE is the X.Y of the current release) - Edit each file in the new directory to update for the new release
- Edit
timeline-graph.phpto indicate relevant dates, such as branching
- Edit
- Remove all prior tarballs from the
downloadssubdirectory - Edit
software/ompi/nav.incand make this release series be the current stable release; shift other release series down as appropriate - Edit
nightly/index.phpto make this release series be the current stable release; shift other release series snapshot tarballs down as appropriate - Edit
software/ompi/current/version.incto set the new release series as the current software release.
-
- Upload the
.tar.gz,.tar.bz2, and.src.rpmfiles to S3: run https://github.com/open-mpi/ompi-scripts/blob/master/dist/upload-release-to-s3.py e.g., ./upload-release-to-s3.py --files (should run on aws.open-mpi.org with no need for a virtualenv or anything) - In the
ompi-wwwrepo, in thesoftware/ompi/vX.Ydirectory:- Add this version to the
$releasesarray - Remove this version from the
$prereleasesarray - Update
timeline-graph.phpto add a date stamp to the timeline graph for the release of this version (i.e., callmilestone()like it is for the other releases)
- Add this version to the
- Update the top-level
index.phpwith a news bullet about this release. It is likely possible to guess the correct URL that will be used to web archive the announcement mail sent to [email protected] - Git commit and push all these changes
- If Z is 0 (i.e., this is the first release in a series):
- Publish the newest version of the man pages
- Download and un-tar a new Open MPI release tarball (no need to config/rebuild/install it)
- Get a git clone of the Open MPI repo, checkout the branch that you are releasing
- Check out the vA.B.C release tag that you are releasing
- Ensure that you have
rmanavailable in your$PATHfrom PolyglotMan, via https://sourceforge.net/projects/polyglotman/ - In the top-level directory of the expanded tarball, run
contrib/dist/make-html-man-pages.plfrom the git clone checked out at the vA.B.C release tag (this file is not in the release tarball).
- NOTE:rmanmust be available for this script to work properly- This will take a little time because it will configure and build Open MPI, and then convert all the man pages to HTML.
- You can ignore warnings about the "" macro not being recognized
- In the
ompi-wwwrepo:-
git rm -rf doc/vRELEASEand commit -
mkdir doc/vRELEASE -
cp -rp YOUR_BUILD_TREE/man-page-generator/php/* doc/vRELEASE -
git add doc/vRELEASE - If this is a new release series:
- Update
doc/index.phpto list the new directory and git add it - Remove and re-create the
currentsym link to point to the correct directory and git add it
- Update
-
git commit -s
-
- Git push all web site changes
- Verify the live web site to ensure all changes are both present and correct
- Close the relevant Github milestone in
open-mpi/ompi - Re-target (change milestone) all still-open issues for the new release to the next major or minor release of Open MPI as appropriate
- Ensure that new Github milestones exist in
open-mpi/ompifor the next release - Update the Open MPI version number in
VERSIONto<NEXT_VERSION>and setgreekto `a1 - Send an email to the
[email protected]mailing list announcing the release - Verify that the URL used to link to the release announcement (to
[email protected]) is correct on the front Open MPI web page. - Open a duplicate of this issue for the next release in this series.