Syringe.Net.Nz
Irregular Injection of Opinion
RSS 2.0|Atom 1.0|CDF

 Monday, May 16, 2005
Integrating Subversion and Gemini. Inserting Gemini Issues from Application Code

At Kognition we make extensive use of Gemini for our issue tracking and as a lightweight project management tool. For source control we use Subversion. Half way through a project last year we had the bright idea of seeing if we could get the two working together. We developed two time-saving utilities for our internal use. We've had some interest from people wanting to achieve the same thing, so we're giving them out to the community.

Please note that these projects are basically just hacks we whipped up in a short amount of time - they are set up for us to use internally so will require some modification for your use, specifically you will need to use your own Gemini access code and WS URL. There may be other things as well...

The first was an extension to the MS Exception Management Application Block that handles all our unhandled exceptions in our smart client apps, presents the user with an option to report the error as a bug, and automatically creates the bug report in Gemini complete with stack traces. This was achieved by making use of the Gemini Web Service API.

The second was developed when we wanted to have a better audit trail of our bug fixes - especially when we discovered we had regressed old issues :-) The tool is a C# command line app that we install in the post-commit hook directory of our SVN server. It gets invoked automatically by SVN when a dev commits any files. If the comment includes a specially formatted string representing a bug ID (#nnn), we invoke the SVN command line tool to query the comment and the changed files, and then we format them nicely and use the Gemini WS to append a comment to the issue.

Not really much to them at all, as all the hard stuff has already been done for us by the lovely folks working on Gemini and SVN :-)

Again, if anyone wants to clean these tools up and make them a bit more generic they are more then welcome to.

SvnGeminiCommenter.zip (15.87 KB)

ExceptionManagement.zip (81.93 KB)

Licenced as below.

Copyright (c) 2005, Kognition Consulting Limited
All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  • Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  • Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  • Neither the name of the Kognition Consulting Limited nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

.NET|Monday, May 16, 2005 12:27:23 AM UTC|Comments [1032]|Tracked by:
"phentermine" (phentermine) [Trackback]