User Tools

Site Tools


This is an old revision of the document!

Rolling an Evergreen Release

¡This is a work in progress. It will grow and change!

Install packager dependencies

  • Install the packager dependencies using the Evergreen installer makefile:
# sudo make -f Open-ILS/src/extras/Makefile.install <os>-packager
$ sudo make -f Open-ILS/src/extras/Makefile.install ubuntu-trusty-packager

Setting up your git branch

  • Create a local working branch for the release:
$ git checkout -b rel_2_8_0 origin/master

Update relator codes

$ perl build/tools/relator_map > Open-ILS/src/templates/opac/parts/relators.tt2
# if 'git status' shows changes, commit them.
$ git commit -sm "Updating relator codes for 2.8" Open-ILS/src/templates/opac/parts/relators.tt2

Translations (i18n)

  • During each release starting with beta, get the latest template changes and apply them to the main branch you are working from in origin (master/rel_3_1/etc.). It is important to merge any new pot changes to origin so that Launchpad translations will get the latest strings that require translation.
    • Update pot in Evergreen
      $ cd build/i18n && make newpot
    • Commit any changes that do more than modify metadata:
      • Download and run Dyrcona's script like
        python3 -c # use -h option for help
      • Or manual process like follows: use script below, enter 'k' to keep and commit any non-trivial changes.
        $ cd ../../ # back to Evergreen
        $ for file in $(git diff --name-only); do git diff $file; echo -e "\n====================  K for keep ==\n"; read X; if [ "$X" = "k" -o "$X" = "K" ]; then git add $file; fi; done
        $ git checkout -- . # kill unneeded changes
        $ git commit -asm "Translation updates - newpot"
  • Next, clone (or update) the translations repository in a new directory as a peer to Evergreen:
$ cd ../; 
# Clone the repository if necessary
$ bzr branch lp:~denials/evergreen/translation-export
# If already cloned, simply pull in the latest changes
$ cd translation-export; bzr pull; cd ../
  • Then, sync translated files with Evergreen. Update PO files in the appropriate branch in origin:
$ Evergreen/build/i18n/scripts/update_pofiles -l translation-export -e Evergreen
$ cd Evergreen
$ git add . # pick up updates
$ git commit -asm "Translation updates - po files"

Other version number changes

  • Edit ./Open-ILS/src/perlmods/lib/ and set:
our $VERSION = '2.0800';
  • NOTE: The version string is two digits for each level after the decimal, so for example "3.0.5" would become "3.0005"
  • Commit the version change
$ git commit -asm "bumping Perl version string for 2.8"

Prepare release notes (for major version bumps only)

  • Create release notes
$ ./ -r 2_8
  • Remove 2.8-specific files from docs/RELEASE_NOTES_NEXT.
    • Running the following in the docs/RELEASE_NOTES_NEXT directory should work:
$ find . -mindepth 2 -name '*.txt' -exec git rm {} \;
$ find . -mindepth 2 -name '*.adoc' -exec git rm {} \;

For an alpha or beta release, this rough process is probably enough. For a real #.0 release, the resulting compiled release notes will need some TLC/cleanup.

Update server upgrade documentation

  • Replace references to base version (e.g. 2.12.1) with new version in docs/installation/server_upgrade.adoc (#.#.# and #_#_# versions)

Run the release builder script

  • Run the release builder script
$ export PATH=$PATH:/openils/bin
$ build/tools/make_release -c -v 2.8.0 -f origin/tags/rel_2_7_3
  • Additional notes on make_release options:
    • Use the -v flag when your branch name does not match the normal pattern, otherwise auto-detect works
    • Use the -j flag to point at wherever your OpenSRF javascript lib source is, if not already installed
      • -j ~/Git/OpenSRF/src/javascript/
    • Use the -c flag to make with the web client
    • The -f flag sets the branch "from" which this release this being made from, aka what was the last version of Evergreen prior to the one you're making. This guides the make_release towards creating a version-upgrade from X to Y.
    • You can add the -r option to edit the upgrade script before it goes into the tarball. This may be necessary if tables that get altered in the upgrade scripts also have updates or inserts of new data.

Generate release docs

# copy README and docs/RELEASE_NOTE_2_x.adoc to ../release/
$ cp README ../release/README_2_8
$ cp docs/RELEASE_NOTES_2_8.adoc ../release/
$ cd ../release/
# in ../release/
$ asciidoc -a toc -a numbered README_2_8
$ asciidoc -a toc -a numbered RELEASE_NOTES_2_8.adoc
# delete the originals
$ rm README_2_8
$ rm RELEASE_NOTES_2_8.adoc

Upload to web server

Move the release files into the correct download directories:

  • Previews / alphas / betas / release candidates go in /var/www/
  • Final releases go in /var/www/
  • Install docs go in /var/www/
  • Release notes go in /var/www/

"Tag" Working Branch

git push origin rel_2_8_0:tags/rel_2_8_0

"Forward-port" Version Upgrade Script

If doing a final release, you will need to copy the upgrade script you created to master and your current rel_x_y branch. If you skip copying to the rel_x_y branch in particular, your next point release will be missing an upgrade script in the middle of the chain!

dev/release_process/evergreen/2.8.1524086402.txt.gz · Last modified: 2018/04/18 17:20 by dbwells

© 2008-2017 GPLS and others. Evergreen is open source software, freely licensed under GNU GPLv2 or later.
The Evergreen Project is a member of Software Freedom Conservancy.