You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by David Soergel <lo...@lorax.org> on 2000/06/19 21:56:59 UTC
Revision control + bug tracking
Hi all,
I just had a conversation with Manoj at the Scarab meeting about the
relationship between revision control and bug tracking. I'll
summarize a) pie-in-the-sky philosophy and b) practical
possibilities. None of this is for version 1.0, but would be worth
thinking about later on.
My opinion is that, although revision control and bug tracking are
historically separate, they really need to be tightly integrated.
Here's why:
1. A given bug should be defined, or in a particular state
(e.g. fixed or not, etc.), only with respect to a given branch
segment. If independent bugs are fixed on separate branches, and the
branches are merged in the revision control system, then the bug
tracking system should automatically know that both bugs are fixed in
the resulting merged revision. Ideally this would happen using a
mechanism like Subversion's for tracking which merges have already
been done.
2. The processes of checking in a revision and of reporting
that a bug or set of bugs has been fixed should be unified. If I fix
a bug and check in the fix with a comment explaining it, then that
should automatically mark the bug fixed in the bug tracking system,
with the same comment. A GUI client might even present a nice
interface for indicating which open bugs are affected by a given
checkin.
In short, the bug tracking system needs to be a client of the
revision control system, in order to correctly track the status of
bugs on different revisions.
OK, so in the future we may have a unified app. What can we do today
to support this idea? I know that merging Subversion and Scarab is
not practical for a whole host of reasons. These possibilities
exist, though:
1. Give Subversion a database backend, and teach Subversion
and Scarab to read/modify each other's schemas.
2. Define a messaging protocol for revision control and bug
tracking systems to communicate with each other. When the revision
control server recieves a checkin, it can fire an event to the bug
tracking system to tell it who did what, which bug IDs were affected
(in this case the developer would have to provide these explicitly,
perhaps in a special comment), and the text of the comment. It could
also fire messages on tags, branch creations, and merges. The bug
tracking system would need to keep its own representation of the
branch structure for this to work.
3. Leave the servers completely separate, but write a clever
client that interacts with both of them. In fact, there could be a
client-side plugin for Subversion which interacts with Scarab (or
whatever). Doing it as a plugin would be particularly nice because
it would work with future Subversion clients.
Thoughts?
-ds
________________________________________________________________________
David Soergel .oooO Oooo. "Music and Living----"
123 Forest View ( ) ( ) "The same thing," said Pooh.
Woodside, CA 94062 \ ( ) / lorax@lorax.org
(650) 303-5324 \_) (_/ http://www.lorax.org
________________________________________________________________________
Re: Revision control + bug tracking
Posted by Greg Stein <gs...@lyra.org>.
On Mon, Jun 19, 2000 at 11:20:38PM -0700, Zack Weinberg wrote:
> On Tue, Jun 20, 2000 at 12:36:25AM -0500, Ben Collins-Sussman wrote:
> > Jon Stevens <jo...@latchkey.com> writes:
> > >
> > > We need to write a java client implementation library or go through JNI, but
> > > i would prefer 100% native java...
> > >
> >
> > Writing a native java client library is a HUGE task. I think writing
> > a java class that accesses the C client library thru JNI is relatively
> > straightforward. :)
>
> And the advantage of a C client library is you can wrap it up for
> whatever language you want, without having to do all the work over and
> over again. [It'd be Really Cool if wrappers for the popular
> scripting languages came bundled with Subversion.]
As a Python addict/evangelist/guru, I can state there is a very high
probability of Python bindings :-)
Presuming WebDAV is used, then the pure network protocol layers will
*definitely* exist (since I do WebDAV testing with Python).
Cheers,
-g
--
Greg Stein, http://www.lyra.org/
Re: Revision control + bug tracking
Posted by Ed Korthof <ed...@collab.net>.
On Mon, 19 Jun 2000, Zack Weinberg wrote:
> On Tue, Jun 20, 2000 at 12:36:25AM -0500, Ben Collins-Sussman wrote:
> > Jon Stevens <jo...@latchkey.com> writes:
> > >
> > > We need to write a java client implementation library or go through JNI, but
> > > i would prefer 100% native java...
> > >
> >
> > Writing a native java client library is a HUGE task. I think writing
> > a java class that accesses the C client library thru JNI is relatively
> > straightforward. :)
>
> And the advantage of a C client library is you can wrap it up for
> whatever language you want, without having to do all the work over and
> over again. [It'd be Really Cool if wrappers for the popular
> scripting languages came bundled with Subversion.]
>
> Plus, strange people like me who actually LIKE plain ol' C can use the
> library, too. :)
I like writing C code, but I agree with Jon about avoiding native code
whever possible, when using Java. JNI is somewhat slow (the overhead of
the function call is higher, as is context switching), it complicates
installation, and it will discourage people who want their Java servers to
talk to subversion.
Java programmers are generally reluctant to use native code, and for good
reason: using someone else's buggy Java code isn't likely to hose your
JVM (possible, but not likely), but buggy native code will (reliably).
OTOH, there is certainly some elegance to having just one version of the
client library to maintain -- I can understand why you'd prefer that. :-/
Ed
--
+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=
| Ed Korthof | edk@collab.net | 415-247-1690 |
+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=
Re: Revision control + bug tracking
Posted by Zack Weinberg <za...@wolery.cumb.org>.
On Tue, Jun 20, 2000 at 12:36:25AM -0500, Ben Collins-Sussman wrote:
> Jon Stevens <jo...@latchkey.com> writes:
> >
> > We need to write a java client implementation library or go through JNI, but
> > i would prefer 100% native java...
> >
>
> Writing a native java client library is a HUGE task. I think writing
> a java class that accesses the C client library thru JNI is relatively
> straightforward. :)
And the advantage of a C client library is you can wrap it up for
whatever language you want, without having to do all the work over and
over again. [It'd be Really Cool if wrappers for the popular
scripting languages came bundled with Subversion.]
Plus, strange people like me who actually LIKE plain ol' C can use the
library, too. :)
zw
Re: Revision control + bug tracking
Posted by Ben Collins-Sussman <su...@newton.collab.net>.
Jon Stevens <jo...@latchkey.com> writes:
> on 6/19/2000 10:36 PM, "Ben Collins-Sussman" <su...@newton.collab.net>
> wrote:
>
> > Writing a native java client library is a HUGE task. I think writing
> > a java class that accesses the C client library thru JNI is relatively
> > straightforward. :)
>
> something that speaks the client protocol is a huge task?? why? i'm not
> talking about writting a gui client or anything. just the communication
> protocol. there is one for CVS
> <http://www.gjt.org/javadoc/com/ice/cvsc/package-summary.html>, why
> shouldn't/couldn't there be one for subversion? i think that would be a
> major benefit to subversion to have that.
>
Sorry, let me clarify.
The Subversion network protocol is flexible; the initial
implementation will probably be a modified form of WebDAV, in fact.
However, there's a lot more to writing a Java Subversion client than
speaking the protocol! The Subversion C client is split into three
libraries:
* routines to manage a working copy & administrative files
* routines to make repository filesystem calls over the
network
* routines for commands that use both of the other two libraries
(such as add, commit, diff, checkout)
In addition, you'll need code that can both produce and interpret the
delta formats being transmitted back and forth. (!)
I suppose it all depends on what you want to do. A *true* native Java client
would have to implement all these things. But if you just want to do
simple network filesystem reads from the repository, then the protocol
is just about enough.
Re: Revision control + bug tracking
Posted by Jon Stevens <jo...@latchkey.com>.
on 6/19/2000 10:36 PM, "Ben Collins-Sussman" <su...@newton.collab.net>
wrote:
> Writing a native java client library is a HUGE task. I think writing
> a java class that accesses the C client library thru JNI is relatively
> straightforward. :)
something that speaks the client protocol is a huge task?? why? i'm not
talking about writting a gui client or anything. just the communication
protocol. there is one for CVS
<http://www.gjt.org/javadoc/com/ice/cvsc/package-summary.html>, why
shouldn't/couldn't there be one for subversion? i think that would be a
major benefit to subversion to have that.
-jon
Re: Revision control + bug tracking
Posted by Ben Collins-Sussman <su...@newton.collab.net>.
Jon Stevens <jo...@latchkey.com> writes:
> on 6/19/2000 9:12 PM, "Ben Collins-Sussman" <su...@newton.collab.net>
> wrote:
>
> > Take a look at the Subversion spec; absolutely everything is
> > librarized. All client functionality is in a shared library. All
> > *server* functionality is in a shared library too; a smart Scarab can
> > talk directly to any Subversion repository this way, completely
> > avoiding the network if need be.
>
> We need to write a java client implementation library or go through JNI, but
> i would prefer 100% native java...
>
Writing a native java client library is a HUGE task. I think writing
a java class that accesses the C client library thru JNI is relatively
straightforward. :)
Re: Revision control + bug tracking
Posted by "Jonathan S. Shapiro" <sh...@eros-os.org>.
> > Right now we're focusing on
> > C here to try to be least-common-denominator, to in my words, "not give
> > anyone a good reason not to use it". Let's save language debates for
some
> > other time.
>
> Seconded.
Thirded, with one proviso. In the course of designing the library API, let's
make sure to pause briefly to ensure that the API will mesh naturally with
other client languages.
I know Brian has this in mind already.
This, by the way, is one place where the DCMS design goals differ. I thought
about library compatibility in DCMS, and concluded that I would settle for
compatibility at the wire protocol level. This may have been a mistake, and
it could still be changed pretty easily.
Re: Revision control + bug tracking
Posted by Karl Fogel <kf...@galois.collab.net>.
Brian Behlendorf <br...@collab.net> writes:
> First - let's not discuss this on two mailing lists at once. Decide which
> list your comments are more relevant to and keep them there; I'm not
> saying integration is uninteresting, I just think speculative discussions
> aren't best to duplicate everyone on.
>
> Second - take it as a given that we'll support the authoring of clients
> for subversion for multiple languages; aided in this of course by the
> work that the webdav fanatics are also doing. Right now we're focusing on
> C here to try to be least-common-denominator, to in my words, "not give
> anyone a good reason not to use it". Let's save language debates for some
> other time.
Seconded.
-K
Re: [scarab-dev] Re: Revision control + bug tracking
Posted by "Daniel L. Rall" <dl...@collab.net>.
> Second - take it as a given that we'll support the authoring of clients
> for subversion for multiple languages; aided in this of course by the
> work that the webdav fanatics are also doing. Right now we're focusing on
> C here to try to be least-common-denominator, to in my words, "not give
> anyone a good reason not to use it". Let's save language debates for some
> other time.
I'm sure that the C code that implements the first SVN client will be
modular enough that it should be cake to write a Java port and/or tack
on a GUI.
Re: Revision control + bug tracking
Posted by Brian Behlendorf <br...@collab.net>.
On Mon, 19 Jun 2000, Jon Stevens wrote:
> on 6/19/2000 9:12 PM, "Ben Collins-Sussman" <su...@newton.collab.net>
> wrote:
>
> > Take a look at the Subversion spec; absolutely everything is
> > librarized. All client functionality is in a shared library. All
> > *server* functionality is in a shared library too; a smart Scarab can
> > talk directly to any Subversion repository this way, completely
> > avoiding the network if need be.
>
> We need to write a java client implementation library or go through JNI, but
> i would prefer 100% native java...
First - let's not discuss this on two mailing lists at once. Decide which
list your comments are more relevant to and keep them there; I'm not
saying integration is uninteresting, I just think speculative discussions
aren't best to duplicate everyone on.
Second - take it as a given that we'll support the authoring of clients
for subversion for multiple languages; aided in this of course by the
work that the webdav fanatics are also doing. Right now we're focusing on
C here to try to be least-common-denominator, to in my words, "not give
anyone a good reason not to use it". Let's save language debates for some
other time.
Brian
Re: Revision control + bug tracking
Posted by Jon Stevens <jo...@latchkey.com>.
on 6/19/2000 9:12 PM, "Ben Collins-Sussman" <su...@newton.collab.net>
wrote:
> Take a look at the Subversion spec; absolutely everything is
> librarized. All client functionality is in a shared library. All
> *server* functionality is in a shared library too; a smart Scarab can
> talk directly to any Subversion repository this way, completely
> avoiding the network if need be.
We need to write a java client implementation library or go through JNI, but
i would prefer 100% native java...
-jon
Re: Revision control + bug tracking
Posted by Ben Collins-Sussman <su...@newton.collab.net>.
David Soergel <lo...@lorax.org> writes:
> 3. Leave the servers completely separate, but write a clever
> client that interacts with both of them. In fact, there could be a
> client-side plugin for Subversion which interacts with Scarab (or
> whatever). Doing it as a plugin would be particularly nice because
> it would work with future Subversion clients.
>
> Thoughts?
>
Take a look at the Subversion spec; absolutely everything is
librarized. All client functionality is in a shared library. All
*server* functionality is in a shared library too; a smart Scarab can
talk directly to any Subversion repository this way, completely
avoiding the network if need be.
Re: Revision control + bug tracking
Posted by Jim Blandy <ji...@savonarola.red-bean.com>.
It seems to me that the Subversion design provides enough hooks that
this integration could be done in any of the ways you describe,
without violating module roles.
Re: Revision control + bug tracking
Posted by "Jonathan S. Shapiro" <sh...@eros-os.org>.
Okay. I'll bite. What state actually needs to be tracked to pull this off? I
have visions of a very large number of "this bug fixed" notes being carried
forward on each checkin.
> As such it makes sense to track both with the same tool: you
> check-in some code becose of such and such PR, it would be nice to see
these
> PRs state updated accordingly (which does not mean that they are closed).
Re: Revision control + bug tracking
Posted by Patrick Bihan-Faou <pa...@mindstep.com>.
Hi,
From: "Jonathan S. Shapiro" <sh...@eros-os.org>
> A bug is not fixed when code is checked in. A bug is fixed when a test
case
> or test cases demonstrating the bug run correctly.
>
> You definitely *do not* want tracking of which bugs are fixed to be
> automatic. When you merge a good branch with something else, bugs may
> regress. The only way to know is to run tests.
Humm... to me this is a half-truss. While I agree that a bug is not "fixed"
when code is checked-in, the code check-in is part of the life of the bug:
it indicates that now this particular bug should be restested (actually you
could call the check-in a "fix" while the important event for a bug is
"close"). As such it makes sense to track both with the same tool: you
check-in some code becose of such and such PR, it would be nice to see these
PRs state updated accordingly (which does not mean that they are closed).
The goal here is to automate the process where it makes sense. However I
think that this is more like a secondary issue at this time. Maybe a version
2 item ?
Patrick.
Re: Revision control + bug tracking
Posted by "Jonathan S. Shapiro" <sh...@eros-os.org>.
David has fallen into a seductive trap.
A bug is not fixed when code is checked in. A bug is fixed when a test case
or test cases demonstrating the bug run correctly.
You definitely *do not* want tracking of which bugs are fixed to be
automatic. When you merge a good branch with something else, bugs may
regress. The only way to know is to run tests.
Jonathan