How to Make a Release: Difference between revisions

From OPeNDAP Documentation
⧼opendap2-jumptonavigation⧽
No edit summary
(18 intermediate revisions by the same user not shown)
Line 1: Line 1:
This is an updated set of notes regarding a software release. It is tailored to a release of Hyrax, but the same process can be used for any of our code.
This is an updated set of notes regarding a software release. It is tailored to a release of Hyrax, but the same process can be used for any of our code.


# Look for any tickets that have been bound to the label 'fix release x.y.z' and make sure those are completed. Use the Kanban board.
# Look for any tickets that have been bound to the label 'fix release x.y.z' and make sure those are completed. Be sure to use both:
#* The HyraxKB Kanban board in OPeNDAP's JIRA.
#* The Hyrax board in our NASA JIRA.  
# When we are ready to release, follow the process outlined in the sections below.  
# When we are ready to release, follow the process outlined in the sections below.  
# Once done, close the board
# Once done, close the board
Line 44: Line 46:
=== OLFS:  [[OLFSReleaseGuide | Source and Binary release for OLFS]] ===
=== OLFS:  [[OLFSReleaseGuide | Source and Binary release for OLFS]] ===


=== Sign And Publish The C++ Binary Distributions ===
=== [[Signing And Publishing C++ Binary Distributions]] ===
Note: This was already done for the java OLFS in the previous steps.
: '''Note:''' ''This was already done for the java OLFS in the previous steps.''
 
==== Retrieve the binary RPM packages built using the CI/CD process ====
 
# Pull the binary packages from our opendap.travis.build S3 bucket. Log into the OPeNDAP AWS account and goto: https://s3.console.aws.amazon.com/s3/buckets/opendap.travis.build?region=us-east-1&tab=objects
# Locate and download the most recent builds of the libdap4 to your system. This is easily done by filtering on the string "libdap" and then sorting by date so the most recent builds are at the top.. Be sure to get the library, developer, and debug info rpms for each architecture. For example if the version is <numbers> and the architecture is CentOS-7 get:
#* ''libdap-<numbers>.el7.x86_64.rpm''
#* ''libdap-devel-<numbers>.el7.x86_64.rpm''
#* ''libdap-debuginfo-<numbers>.el7.x86_64.rpm''
# Locate and download the most recent builds of the BES to your system. This is easily done by filtering on the string "bes" and then sorting by date so the most recent builds are at the top. Be sure to get the library, developer, and debug info rpms for each architecture. For example if the version is <numbers> and the architecture is CentOS-7 get:
#* ''bes-<numbers>.el7.x86_64.rpm''
#* ''bes-devel-<numbers>.el7.x86_64.rpm''
#* ''bes-debuginfo-<numbers>.el7.x86_64.rpm''
 
==== Sign the RPM packages ====
In the directory containing only the RPM packages for the release run the following command:
 
''for i in *.rpm;do gpu --detach-sign --local-user security@opendap.org $i; done''
 
==== Publish the RPM packages and their signatures ====
# Use sftp to log into www.opendap.org
# ''cd httpdocs/pub/binary/hyrax.XX.YY/<os-name>''
#: (where XX.YY is the major release number, ex: 1.16 and <os-name> is something like centos-7 for CentOS-7 RPMs): https://www.opendap.org/pub/binary/hyrax-1.16/centos-7.x/
# ''put *.rpm*''
# ''exit''


=== [[HyraxDockerReleaseGuide | Build And Publish Docker Images For The Release]] ===
=== [[HyraxDockerReleaseGuide | Build And Publish Docker Images For The Release]] ===
Line 76: Line 53:
=== Install the new server on test.opendap.org ===
=== Install the new server on test.opendap.org ===


=== Update the release page on website ===
== [[Update The Hyrax Release Web Page]] ==
but don't publish it. For this, copy the X.Y page and make it X.Y.n. In the future, we might use only a single page for release X.Y and simply amend it with information for version ''.1'', ''.2'', and so on. Don't bother to edit the links, just get the text in place.
== Send out a notice. ==
 
# Update the links on the web page made/copies/edited above. Test each link - source and binary. Once all of those work...
 
# Publish the release page. Check the links - there are links in two menus that have to be set manually.
 
=== Send out a notice. ===


=== Time to complete by release ===
== Time to complete by release ==
Update and of the release checklists and the 'Time to complete...' information below.
Update and of the release checklists and the 'Time to complete...' information below.



Revision as of 15:24, 10 January 2022

This is an updated set of notes regarding a software release. It is tailored to a release of Hyrax, but the same process can be used for any of our code.

  1. Look for any tickets that have been bound to the label 'fix release x.y.z' and make sure those are completed. Be sure to use both:
    • The HyraxKB Kanban board in OPeNDAP's JIRA.
    • The Hyrax board in our NASA JIRA.
  2. When we are ready to release, follow the process outlined in the sections below.
  3. Once done, close the board

When we decide to release software

Use the developers at opendap.org list to send out notices to all the developers about pending releases.

Planned release

If this is a planned release, send out a notice at least two weeks in advance to anyone who likely has made changes to the software. More lead time is, of course, better. This will allow developers time to get their code and documentation changes into github and onto the master branch in time for the release.

Run Coverity!

Emergency releases

If this is an 'emergency' release, then send out a notice to developers as soon as the decision to release is made, since this will give a chance for other developers to lets us know if there are new changes in the master branch that are ready for release. if we don't get an email from those developers of a particular component, then we should assume that the code might not be 100% ready for release and we should use the version tagged with/for the last release if possible.

Maybe run Coverity - depends on the scope of the changes.

Release Prerequisites

Only start this process when hyrax-dependencies, libdap, bes and OLFS master branches all building and passing their tests.

Steps For A Major Release (ex: 1.16.x -> 1.17.0)

  1. Security Review for libdap, BES and OLFS Now Handled By TravisCI
  2. Write a new X.Y web page. See the web site admin notes for info about this. It has important information about the menu links. Base this on the previous release page's structure/content.
  3. Follow the remaining steps for a minor release (below).

Steps For A Minor Release (ex: 1.16.5 -> 1.16.6)

Notes
  • Committing and pushing the various changes made for the source releases will trigger a binary build and those binaries will have the version numbers made in the source distributions update.
  • Perform these steps in the order stated as downstream activities rely on items created in earlier steps, such as the creation of the DOIs for libdap and BES are required when updating the OLFS README.md,

Perform the Jira Release Process

hyrax-dependencies: Source Release For hyrax-dependencies

libdap: Source Release for libdap

BES: Source Release for BES

OLFS: Source and Binary release for OLFS

Signing And Publishing C++ Binary Distributions

Note: This was already done for the java OLFS in the previous steps.

Build And Publish Docker Images For The Release

Install the new server on test.opendap.org

Update The Hyrax Release Web Page

Send out a notice.

Time to complete by release

Update and of the release checklists and the 'Time to complete...' information below.

  • Hyrax 1.12.2: The total time was planned as 3w 1d 5h and turned out as 1w 2d 2h 10m.
  • Hyrax 1.15.1: 3d calendar time
  • Hyrax 1.16.2: 3d effort