#8 Scmbug And Test Director Integration

closed-accepted
nobody
None
5
2008-02-22
2007-01-24
rob_webset
No

Hi David, just to follow up on the E-mail, I thought I'd post the diff file (against 1.9.2) here to make sure I don't lose it!

The attached diff file adds support for:

1) Test Director as a Bug Tracking System (http://www.mercury.com/us/products/quality-center/)

2) Support for ScmBug (http://www.mkgnu.net/?q=scmbug) when used with Bugzilla and test Director.

Addition 1:
In order to use the Test Director interface users will need to ensure that you have:
a) The Perl Win32::OLE package installed.
b) The Test Director "Mercury Quality Center System Test Remote Agent Add-in"
(Available from the Test Director Help->Add-ins menu).

Addition 2:
This enables users to input a bug ID and have the code files changed under that ID to be loaded into a Topic. (It makes use of the ScmBug comments that are added to the bug).

One other change I have made is so that if there is no web link to a defect set in the codestriker config file then just the bug ID is displayed without a link on the web pages.

Thanks, Rob

Discussion

<< < 1 2 3 > >> (Page 2 of 3)
  • David Sitsky
    David Sitsky
    2008-01-13

    Logged In: YES
    user_id=208928
    Originator: NO

    Hi Rob,

    Once you have made that changed to the bug tracking modules, the end game here I believe is we create a new Repository module, and call it ScmBug.pm. This should be able to take for now, either a start_tag or an end_tag argument, which is basically a comma-separated list of bug IDs. This module should have a delegate Repository module which at the moment is either Cvs or Subversion, for pulling out the actual file diffs.

    It should then be able to create the diff text for this, by doing what you have implemented already, by first getting the comments for each bug ID from the bug tracker, getting the changelist, then using the delegate Repository object for building up the diff file.

    That way, we don't have to change the create topic page user interface at all, which I think it better, since it is already very complicated. Also - I think the ScmBug functionality is really another instance of a Repository object, or a "diff generator".

    Does that make sense? I'm happy to try and help to fill in the gaps, but my time is a bit limited.

    We can also go to email now if it makes life easier.

    Cheers,
    David

     
  • rob_webset
    rob_webset
    2008-01-29

    No http bug link specified

     
    Attachments
  • rob_webset
    rob_webset
    2008-01-29

    Logged In: YES
    user_id=1137102
    Originator: YES

    Hi David,

    Just going through some of the CVS changes you have done and comparing them with my version. One thing that could be easily re-integrated now which is independant of the ScmBug changes is support for Bug systems that have no http view available for them.

    The patch attached is the CVS Patch diff that tortoisecvs generates. Hope that's OK (the tortoisecvs patch option at lease deals with the CVS directories etc)

    Cheers

    Rob

    File Added: no_bug_link.patch

     
  • rob_webset
    rob_webset
    2008-02-04

    Logged In: YES
    user_id=1137102
    Originator: YES

    Hi David,

    I have attached a patch which will do the integration between Scmbug and codestriker.

    I hope that I haven't missed any of the points that you have raised. The good news about this patch (unlike my original one) is that it is much smaller and a lot more generic. I have tried to re-use as much code as logically possible and better defined the boundaries of what Scmbug and Codestriker do towards providing the data.

    I have used tortoisecvs patch diff again for ease (Let me know if this isn't OK).

    I also believe that in theory this will provide support for all BugDB's and Code repositories without any further changes (Obviously that is limited to the repositories and bug databases that are currently supported by both ScmBug and Codestriker).

    The only configurations that I have tested in are Subversion/TestDirector and I did find a couple of bugs in the Subversion module that I have fixed and included in the diff.

    1) Detection of if it is a file or directory etc was not picking up on files correctly.
    2) Reviewing files that have been deleted as part of the changeset (Generation of diff)

    Hope this is OK

    Rob

    File Added: scmbug_support1.patch

     
  • rob_webset
    rob_webset
    2008-02-04

    Scmbug Integration 1

     
    Attachments
  • rob_webset
    rob_webset
    2008-02-04

    Scmbug reference only code

     
  • rob_webset
    rob_webset
    2008-02-04

    Logged In: YES
    user_id=1137102
    Originator: YES

    Hi David,

    I thought that I'd give you a quick overview of how I've pulled things together.

    I have submitted a patch to Kritis (Scmbug owner)

    http://bugzilla.mkgnu.net/show_bug.cgi?id=1097

    Which adds support for retrieving a "change set" which details all the files changed and the versions changed from and to. I have also written an mini installer which a user would run, all this does is bundle up all the Scmbug files required to call the Scmbug Daemon and get the list of changes. The user can have this directory created anywhere they wish (although I would suggest the Codestriker/lib directory).

    The codestriker code is then able to just load this package and make calls to Scmbug as required, this should help isolate any Scmbug changes from codestriker.

    I have attached a zip file of the files that the installer will generate. This is for your reference only while you look over the patch and will not be required to be distributed with codestriker. (Scmbug will distribute these).

    Hope this is OK

    Rob

    File Added: Codestriker_Scmbug_library.zip

     
  • rob_webset
    rob_webset
    2008-02-21

    Logged In: YES
    user_id=1137102
    Originator: YES

    Patch for further changes as per CVS repo 3pm 21st Feb 2008

    File Added: scmbug_support2.patch

     
  • rob_webset
    rob_webset
    2008-02-21

    Logged In: YES
    user_id=1137102
    Originator: YES

    Patch for further changes as per CVS repo 3pm 21st Feb 2008

    The right one this time.

    File Added: scmbug_support3.patch

     
  • rob_webset
    rob_webset
    2008-02-21

    Scmbug Integration 3

     
    Attachments
<< < 1 2 3 > >> (Page 2 of 3)