Skip to content

How to Cut a Software Release

This document details the process for releasing new OSG Release version(s). This document does NOT discuss the policy for deciding what goes into a release, which can be found here.

Due to the length of time that this process takes, it is recommended to do the release over two or more days to allow for errors to be corrected and tests to be run.

Requirements

  • UW netID registered with OSG's koji with build and release team privileges
  • An account on dumbo and UW CS to access UW's AFS
  • release-tools scripts in your PATH (GitHub)
  • osg-build scripts in your PATH (installed via OSG yum repos or source)

Promoting Packages from Testing to Pre-release

As packages complete testing, they are promoted from the testing repository to the pre-release repository.

osg-promote -r 23-prerelease -r 3.6-prerelease <package name(s)>

When promoting a package into pre-release, be sure to add the pre-release promotion table to the Jira ticket. If there are several tickets under a single umbrella ticket, adding the pre-release promotion table to just the parent ticket is sufficient.

Once the pacakges have been promoted to pre-release, mark the Jira ticket "Ready for Release".

Pick the Version Number

The rest of this document makes references to <VERSION(S)> and <NON-UPCOMING VERSIONS(S)>, which refer to a space-delimited list of a date string plus the OSG version(s) and that same list minus the upcoming versions (e.g. 231130 3.6 3.6-upcoming 23 23-upcoming and 231130 3.6 23). Generally, the first number is the release date encoded as yymmdd. Also this document make references to <FULL VERSION(S)>, which refer to a space-delimited list of version numbers (e.g. 3.6.231130 23.231130). If you are unsure about either the version or revision, please consult the release manager.

Day 0: Generate Preliminary Release List

The release manager often needs a tentative list of packages to be released. This is done by finding the package differences between osg-testing and the current release.

Run 0-generate-pkg-list from a machine that has your koji-registered user certificate:

VERSIONS='<VERSION(S)>'
# laptop
git clone https://github.com/opensciencegrid/release-tools.git
cd release-tools
./0-generate-pkg-list $VERSIONS

Day 1: Verify Pre-Release and Generate Tarballs

This section is to be performed 1-2 days before the release (as designated by the release manager) to perform last checks of the release and create the client tarballs.

Step 1: Verify Pre-Release

Compare the list of packages already in pre-release to the final list for the release put together by the OSG Release Coordinator (who should have updated release-list in git). To do this, run the 1-verify-prerelease script from git:

VERSIONS='<VERSION(S)>'
# laptop
./1-verify-prerelease $VERSIONS

If there are any discrepancies, consult the release manager. You may have to tag or untag packages with the osg-koji tool.

Step 2: Test Pre-Release in VM Universe

To test pre-release, you will be kicking off a manual VM universe test run from osg-sw-submit.chtc.wisc.edu.

  1. Ensure that you meet the pre-requisites for submitting VM universe test runs
  2. Prepare the test suite by running:

    osg-run-tests -P 'Testing OSG pre-release'
    
  3. cd into the directory specified in the output of the previous command

  4. Submit the DAG:
    ./master-run.sh
    

Note

Test upcoming even though nothing will be released into upcoming. It is possible that a blahp (or some other) update in 3.X could affect upcoming.

Note

If there are failures, consult the release-manager before proceeding.

Step 3: Regenerate the build repositories

To avoid 404 errors when retrieving packages, it's necessary to regenerate the build repositories. Run the following script from a machine with your koji-registered user certificate:

NON_UPCOMING_VERSIONS="<NON-UPCOMING VERSION(S)>"
# laptop
./1-regen-repos $NON_UPCOMING_VERSIONS

Step 4: Create the client tarballs

Create the OSG client tarballs on dumbo using the relevant script from git:

FULL_VERSIONS="<FULL VERSION(S)>"
# dumbo.chtc.wisc.edu
git clone https://github.com/opensciencegrid/tarball-client.git
cd tarball-client
for ver in $FULL_VERSIONS; do
    ./docker-make-client-tarball --version $ver --all
done

The tarballs are found in the tarball-client directory.

Step 5: Briefly test the client tarballs

Test the OSG client tarballs in Docker containers on dumbo using the relevant release-tools script:

As an unprivileged user, run the script:

NON_UPCOMING_VERSIONS="<NON-UPCOMING VERSION(S)>"
# dumbo.chtc.wisc.edu
./1-verify-tarballs $NON_UPCOMING_VERSIONS

If you have time, try some of the binaries, such as grid-proxy-init.

Step 6: Wait

Wait for clearance. The OSG Release Coordinator (in consultation with the Software Team and any testers) need to sign off on the update before it is released. If you are releasing things over two days, this is a good place to stop for the day.

Day 2: Pushing the Release

Step 1: Upload the tarballs to AFS

On dumbo, upload the tarballs to AFS. (This step moved to release day, since repo.opensciencegrid.org tarballs are automatically updated hourly from the VDT web site served out of AFS.)

NON_UPCOMING_VERSIONS="<NON-UPCOMING VERSION(S)>"
# dumbo.chtc.wisc.edu
./2-upload-tarballs-to-afs $NON_UPCOMING_VERSIONS

Step 2: Push from pre-release to release

This script moves the packages into release, clones releases into new version-specific release repos, locks the repos and regenerates them.

VERSIONS='<VERSION(S)>'
# laptop
2-push-release $VERSIONS

Step 3: Update the Release Information

This script updates the release information in AFS.

VERSIONS='<VERSION(S)>'
# laptop
2-update-info $VERSIONS
  1. *.txt files are created and it should be verified that they've been moved to /p/vdt/public/html/release-info/ on UW's AFS.

Step 4: Rebuild the Docker software base

Go to the build-docker-image workflow page of the opensciencegrid/docker-software-base: https://github.com/opensciencegrid/docker-software-base/actions/workflows/build-container.yml Click the Run Workflow button, select the master branch, and click Run workflow.

Step 5: Install the tarballs into OASIS

Note

You must be an OASIS manager of the mis VO to do these steps. Known managers as of 2014-07-22: Mat, Tim C, Tim T, Brian L.

Get the uploader script from Git and run it with osgrun from the UW AFS install of the tarball client you made earlier. On a UW CSL machine:

FULL_VERSIONS="<FULL VERSION(S)>"
# dumbo.chtc.wisc.edu
git clone --depth 1 https://github.com/opensciencegrid/tarball-client.git
cd tarball-client
for ver in $FULL_VERSIONS; do
    ./upload-tarballs-to-oasis $ver
done

The script will automatically ssh you to oasis-login.opensciencegrid.org and give you instructions to complete the process.

Step 6: Update the Docker WN client

The GitHub repository at opensciencegrid/docker-osg-wn controls the contents and tags pushed for the opensciencegrid/osg-wn container image.

  1. Navigate to the build/push workflow

  2. Click the Run workflow button and select the master branch

  3. Verify that all builds succeed

Step 7: Verify the CA certificates update

If this release contains either the osg-ca-certs package, verify that the CA web site has been updated. Wait for the CA certificates to be updated. It may take a while for the updates to reach the mirror used to update the web site. The repository is checked hourly for updated CA certificates. Once the web page is updated, run the following command to update the CA certificates in the tarball installation and verify that the version of the CA certificates match the version that was promoted to release.

# moria.cs.wisc.edu
/p/vdt/workspace/tarball-client/current/amd64_rhel7/osgrun osg-update-data

Step 8: Merge any pending documentation

For each documentation ticket in this release, merge the pull requests mentioned in the description or comments.

Step 9: Update News

  1. Make a new entry in the News section of the release series page.

  2. For the list of changes, make an entry for each package that contains short descriptive text that would inform a system administrator whether or not this change is of concern to them. Also, link in any release announcement web page that is available for the software. Look a prior releases of the same software for hints on where to find such a page.

  3. Examine the known issues and remove any that were resolved with this release. Of course, add any new ones that have come up.

  4. Spell check the news.

  5. Locally serve up the web pages and ensure that the formatting looks good and the links work as expected.

    docker run --rm -p 8000:8000 -v ${PWD}:/docs squidfunk/mkdocs-material:7.1.0
    
  6. Make a pull request, get it approved, and merged.

  7. When the web page is available, you can announce the release.

Step 10: Announce the release

The following instructions are meant for the release manager (or interim release manager). If you are not the release manager, let the release manager know that they can announce the release.

  1. The release manager writes the a release announcement for each version and sends it out. The announcement should mention a handful of the most important updates. Due to downstream formatting issues, each major change should end at column 76 or earlier. Here is a sample, replace <BRACKETED TEXT> with the appropriate values:

    Subject: Announcing OSG Software version <VERSION>
    
    We are pleased to announce OSG Software version <VERSION>!
    
    Changes to OSG <VERSION> include:
    - Major Change 1
    - Major Change 2
    - Major Change 3
    
    Release notes and pointers to more documentation can be found at:
    
    https://osg-htc.org/docs/release/osg-36/#latest-news
    
    The OSG Docker images on Docker Hub
    (https://hub.docker.com/u/opensciencegrid/)
    have been updated to contain the new software.
    
    Need help? Let us know:
    
    http://www.osg-htc.org/docs/common/help/
    
    We welcome feedback on this release!
    
  2. The release manager uses the osg-notify tool on osg-sw-submit.chtc.wisc.edu to send the release announcement using the following command:

    $ osg-notify --cert your-cert.pem --key your-key.pem \
        --no-sign --type production --message <PATH TO MESSAGE FILE> \
        --subject '<EMAIL SUBJECT>' \
        --recipients "[email protected] [email protected] [email protected] [email protected] [email protected]" \
        --oim-recipients resources --oim-recipients vos --oim-contact-type administrative
    

    Replacing <EMAIL SUBJECT> with an appropriate subject for your announcement and <PATH TO MESSAGE FILE> with the path to the file containing your message in plain text.

Final Steps

  1. On the Releases page, create version(s) that matches <FULL VERSION(S)> for this release.

  2. Open the OSG Ready for Release filter and release the tickets, setting the Resolution to Fixed and replacing the Fix versions with the specific full version(s) created above. For tickets that have version numbers in common, use the `Bulk change' functionality.

  3. Once all the tickets have been closed, go back to the Releases page and release the specific full versions.