Jump to navigation Jump to search
First make sure, that all necessary changes are already committed into the repository:
- Make sure you have the right branch checked out and that no pending changes are in the working copy:
- If the new release has any release notes, make sure these appear both in wwwroot/inc/upgrade.php and in README.
- Update ChangeLog file to have the current date on the new version line.
- Make sure, that upgrade.php has new version listed in $versionhistory and executeUpgradeBatch(). It is normal to accumulate updates in executeUpgradeBatch() long before the release, this way on the release day you will have nothing to do in upgrade.php. But if you had no changes to DB since the last release, you are likely to see there changes missing. Just make sure the new version is in both places anyway.
- Bump up CODE_VERSION in wwwroot/inc/config.php. DON'T do this unless you really intend to make a release right now.
- Produce a commit with all changes pending thus far:
git status git add ChangeLog [...] git add wwwroot/inc/config.php git commit
- Check the source code out from the same branch to a clean location to test it.
git clone firstname.lastname@example.org:RackTables/racktables.git # cd racktables # git checkout master
- The application must be able to install itself with own installer. Once this is found working, dump the database:
mysqldump --extended-insert=FALSE --order-by-primary racktables_db > ~/tmp/dump-fresh.sql
- Demo data must be loadable without any errors:
mysql racktables_db < scripts/init-sample-racks.sql
- The release being tested must detect and upgrade a database from the previous release(s) correctly. Load the database with one of the previous releases data, then upgrade it with the current upgrader, then dump the DB. Now compare to the previous dump, there must be no meaningful differences.
# reload using the previous release /path/to/racktables-contribs/demoreload.sh X.Y.z racktables_db # (make through upgrade.php) mysqldump --extended-insert=FALSE --order-by-primary racktables_db > ~/tmp/dump-upgraded.sql diff -u ~/tmp/dump-fresh.sql ~/tmp/dump-upgraded.sql
- Test the source as much as you find possible.
- Look into the error log of the server you used for the tests. There shouldn't be any error/warning messages.
- Test and repeat until everything is fixed consistently.
the release itself
git tag RackTables-X.Y.z git push origin RackTables-X.Y.z
- Make two archives:
export TAG='RackTables-X.Y.z' git archive --prefix=$TAG/ -o $TAG.tar.gz $TAG git archive --prefix=$TAG/ -o $TAG.zip $TAG
- Upload the tarball and zipfile to SF FRS (from browser or by other means).
- Open files section and set the newly uploaded tar.gz as "current".
- Open properties form (round "i" sign) of the previous release tar.gz.
- Unset all "default download for" checkboxes.
- Unset "download button" text.
- Open properties form (round "i" sign) of the previous release zip.
- Unset Windows "default download for" checkbox.
- Unset "download button" text.
- In the latest tarball properties form, set all "default download for" checkboxes except Windows.
- Set "download button" text to "latest stable".
- In the latest zipfile properties form, set Windows "default download for" checkbox.
- Hover the big green "download" button and watch the mouse hint featuring the right version number (sometimes it takes several minutes to see the update).
- In MantisBT mark version as released (Manage, Manage Projects, RackTables, Versions).
- Log into SF shell service:
$ cat ~/.ssh/config Host shell.sourceforge.net User YOUR_SF_USERNAME,racktables $ ssh -t shell.sourceforge.net create # upon logging in update $lastrelease $ vim /home/project-web/racktables/htdocs/header.php # test the "download" link at racktables.org to work
- Post a Freecode (ex-Freshmeat) release announce
- open http://freecode.com/projects/racktables
- make sure you are logged in (check top bar)
- use "submit a release" button to the right
- fill in version number
- update version number in "tar.gz" and "zip" URL fields
- compose 1-2 paragraphs worth of text describing the focus of this release
- proofread and submit (usually it takes several hours to pass the moderation)
- Send a letter to the racktables-users list, if necessary.
- Produce a helper SQL file for the current release in racktables-contribs.
- Copy the previous init-full-X.Y.z.sql to current init-full-X.Y.z.sql and git add the new file.
- Take a clean RackTables instance of the current release (either use demoreload on the previous release or install manually).
- Make an SQL dump of this new installation like this: mysqldump --extended-insert=FALSE --order-by-primary racktables_db > init-full-X.Y.z.sql
- git add -i the new file again (note interactive add). Use patch mode to add relevant chunks. Quit.
- git commit; git push
- Update demo.racktables.org to the current release ($demorelease will need an update). Below is a sample CLI session of updating the demo to 0.19.14:
cd tar xzf RackTables-0.19.14.tar.gz cp local.php secret.php RackTables-0.19.14/wwwroot/inc/ cd ~/racktables-contribs/ git pull cd ~/racktables-contribs/demoreload.sh 0.19.14 rackdemo crontab -e rm www/demo/index.php ln -s ../../RackTables-0.19.14/wwwroot/index.php www/demo/index.php kTables-0.19.14/wwwroot/index.php www/index.php
- Update IRC channel topic