You are viewing a plain text version of this content. The canonical link for it is here.
Posted to infrastructure-dev@apache.org by Santiago Gala <sa...@gmail.com> on 2008/03/02 21:31:34 UTC
[scm] Use case: code review/audit/study
This is quite similar to the offline commit use case, and I'm finding
myself more and more doing it.
A developer needs to study or review a code base for certain features,
typically either tracing the origin of those or just doing historical
analysis. Or just to learn, nothing like finding how a feature got
inside a project or has evolved to learn how to modify it. Or debugging,
say tracing a regression.
With subversion this is not a viable option unless one can have a local
copy of the repository, and even then there is not a clear interface for
browsing history, that I know.
Using git-svn and later "gitk --all" to view/browse the whole history is
great for this use, and very fast once the repository is imported. Even
gitweb access to remote repositories offers a better UI than I have ever
seen in any other tool.
gitk offers plenty of search options, and works quite well. git offers
also a "git grep" command, and "git annotate" to look for provenance of
code. "git log path/to/file" is fast too.
While bazaar offers a reasonable interface for code "massaging", it
falls short of git in the support of svn repositories branches.
I tried to use mercurial for this kind of task, but I have not been able
to find good UI browsers and I tend to find the web UI from "hg serve"
confusing.
As with any subjective impressions, YMMV, of course. Any other pointers
to this kind of browsing tools?
Regards
--
Santiago Gala
http://memojo.com/~sgala/blog/
Re: [scm] Use case: code review/audit/study
Posted by Erik Abele <er...@codefaktor.de>.
On 12.03.2008, at 18:48, Jukka Zitting wrote:
> Hi,
>
> On Wed, Mar 12, 2008 at 5:46 PM, Justin Erenkrantz
> <ju...@erenkrantz.com> wrote:
>> On Wed, Mar 12, 2008 at 6:03 AM, Jukka Zitting
>> <ju...@gmail.com> wrote:
>>> Could we streamline this process somehow in cooperation with the
>>> Cenqua people? For example, could we decide some "safe hours"
>>> when it
>>> would be OK for Cenqua to do the initial FishEye import of an
>>> Apache
>>> project without an explicit OK or ACK from Infrastructure?
>>
>> Due to their past behavior, the Cenqua team *wants* an explicit
>> ACK so
>> we don't block them again. =)
>>
>> Adding a new project to Fisheye is not frequent enough that we
>> need to
>> change anything, IMO - they're fine and we're fine with explicit
>> sign-off.
>
> Cool if everyone's fine with that.
Yes, we don't need to change anything IMO.
> I assume the bulk load issue would affect also people doing git-svn
> imports or other similar things that need the full version history of
> a project.
Yes.
> See below for a quick draft of an FAQ entry on the current
> best practice as far as I've understood it.
Looks good and can't hurt to have something like that in the FAQ.
> Are there other things we could do to reduce the hit from such bulk
> load operations? I know there was the initiative to provide copies of
> the entire repository to interested parties for research purposes, but
> I guess that doesn't apply to the random developer who wants to
> experiment with a cool new visualization tool.
Yes & no - see below. Anyway, as soon as that is in place we should
also add it to the FAQ.
> Would it for example be possible to provide periodic (say montly)
> per-project repository dumps? I'm not sure how technically feasible
> that would be and how easy it would be to use such dumps to bootstrap
> things like FishEye or git-svn.
If there's a volunteer to provide the necessary scripts then I don't
see a reason on why not to do it though maybe it makes more sense to
work with the ossmole.sourceforge.net guys (the researchers from
Syracuse) to also provide that... they'll need to filter the dumps
anyway.
Cheers,
Erik
> BR,
>
> Jukka Zitting
>
>
> Index: dev/version-control.xml
> ===================================================================
> --- dev/version-control.xml (revision 636431)
> +++ dev/version-control.xml (working copy)
> @@ -262,6 +262,19 @@
> mailing list.
> </p>
> </section>
> +
> + <section id="bulk">
> + <title>
> + May I do bulk loads like extracting the entire version
> history
> + (including diffs) of an Apache project?
> + </title>
> + <p>
> +Preferably not. Bulk access puts a lot of load on our repository,
> and should
> +only be used for a good reason. Please
> +<a href="http://www.apache.org/dev/infra-mail.html#lists">contact</a>
> +the Apache Infrastructure team for an OK before proceeding with a
> bulk load.
> + </p>
> + </section>
> </section>
> </body>
> </document>
Re: [scm] Use case: code review/audit/study
Posted by Jukka Zitting <ju...@gmail.com>.
Hi,
On Wed, Mar 12, 2008 at 5:46 PM, Justin Erenkrantz
<ju...@erenkrantz.com> wrote:
> On Wed, Mar 12, 2008 at 6:03 AM, Jukka Zitting <ju...@gmail.com> wrote:
> > Could we streamline this process somehow in cooperation with the
> > Cenqua people? For example, could we decide some "safe hours" when it
> > would be OK for Cenqua to do the initial FishEye import of an Apache
> > project without an explicit OK or ACK from Infrastructure?
>
> Due to their past behavior, the Cenqua team *wants* an explicit ACK so
> we don't block them again. =)
>
> Adding a new project to Fisheye is not frequent enough that we need to
> change anything, IMO - they're fine and we're fine with explicit
> sign-off.
Cool if everyone's fine with that.
I assume the bulk load issue would affect also people doing git-svn
imports or other similar things that need the full version history of
a project. See below for a quick draft of an FAQ entry on the current
best practice as far as I've understood it.
Are there other things we could do to reduce the hit from such bulk
load operations? I know there was the initiative to provide copies of
the entire repository to interested parties for research purposes, but
I guess that doesn't apply to the random developer who wants to
experiment with a cool new visualization tool.
Would it for example be possible to provide periodic (say montly)
per-project repository dumps? I'm not sure how technically feasible
that would be and how easy it would be to use such dumps to bootstrap
things like FishEye or git-svn.
BR,
Jukka Zitting
Index: dev/version-control.xml
===================================================================
--- dev/version-control.xml (revision 636431)
+++ dev/version-control.xml (working copy)
@@ -262,6 +262,19 @@
mailing list.
</p>
</section>
+
+ <section id="bulk">
+ <title>
+ May I do bulk loads like extracting the entire version history
+ (including diffs) of an Apache project?
+ </title>
+ <p>
+Preferably not. Bulk access puts a lot of load on our repository, and should
+only be used for a good reason. Please
+<a href="http://www.apache.org/dev/infra-mail.html#lists">contact</a>
+the Apache Infrastructure team for an OK before proceeding with a bulk load.
+ </p>
+ </section>
</section>
</body>
</document>
Re: [scm] Use case: code review/audit/study
Posted by Justin Erenkrantz <ju...@erenkrantz.com>.
On Wed, Mar 12, 2008 at 6:03 AM, Jukka Zitting <ju...@gmail.com> wrote:
> Could we streamline this process somehow in cooperation with the
> Cenqua people? For example, could we decide some "safe hours" when it
> would be OK for Cenqua to do the initial FishEye import of an Apache
> project without an explicit OK or ACK from Infrastructure?
Due to their past behavior, the Cenqua team *wants* an explicit ACK so
we don't block them again. =)
Adding a new project to Fisheye is not frequent enough that we need to
change anything, IMO - they're fine and we're fine with explicit
sign-off. -- justin
Re: [scm] Use case: code review/audit/study
Posted by Jukka Zitting <ju...@gmail.com>.
Hi,
On Wed, Mar 12, 2008 at 2:32 PM, Erik Abele <er...@codefaktor.de> wrote:
> On 12.03.2008, at 09:40, Jukka Zitting wrote:
> > What would be the instructions from Infrastructure to an Apache
> > project that wants to add FishEye monitoring of their codebase? Is
> > that OK? Should they use http://fisheye6.cenqua.com/? Should
> > Infrastructure be notified? Are there special requirements for the
> > timing of the initial import or some other ways to reduce the load on
> > our Subversion server?
>
> The HttpComponents PMC recently asked FishEye to add the HC codebase;
> they are quite aware of the load they are able to put on a (our) svn
> server and they have taken some counter-measures. They also wanted to
> have an ACK of the infra team before starting the process and
> suggested to do it on a weekend to further minimize the potential
> impact. HTH...
Thanks for the details!
Could we streamline this process somehow in cooperation with the
Cenqua people? For example, could we decide some "safe hours" when it
would be OK for Cenqua to do the initial FishEye import of an Apache
project without an explicit OK or ACK from Infrastructure?
Alternatively, could we document some recommended notification
mechanism for people who want to do such bulk loads on our Subversion
server? For example, whenever you're planning to put noticeable load
(TBD) on svn.apache.org, you should notify infrastructure@apache.org
at least 72 hours in advance and proceed only if no objections are
raised.
BR,
Jukka Zitting
Re: [scm] Use case: code review/audit/study
Posted by Erik Abele <er...@codefaktor.de>.
On 12.03.2008, at 13:32, Erik Abele wrote:
> On 12.03.2008, at 09:40, Jukka Zitting wrote:
>
>> ...
>> I've seen some grumbling about the initial svn load when new projects
>> are added to FishEye, but AFAIK once the initial import is done the
>> load on our Subversion server is not too bad.
>>
>> What would be the instructions from Infrastructure to an Apache
>> project that wants to add FishEye monitoring of their codebase? Is
>> that OK? Should they use http://fisheye6.cenqua.com/? Should
>> Infrastructure be notified? Are there special requirements for the
>> timing of the initial import or some other ways to reduce the load on
>> our Subversion server?
>
> The HttpComponents PMC recently asked FishEye to add the HC
> codebase; ...
Ehh, I meant Cenqua of course...
Cheers,
Erik
Re: [scm] Use case: code review/audit/study
Posted by Erik Abele <er...@codefaktor.de>.
On 12.03.2008, at 09:40, Jukka Zitting wrote:
> ...
> I've seen some grumbling about the initial svn load when new projects
> are added to FishEye, but AFAIK once the initial import is done the
> load on our Subversion server is not too bad.
>
> What would be the instructions from Infrastructure to an Apache
> project that wants to add FishEye monitoring of their codebase? Is
> that OK? Should they use http://fisheye6.cenqua.com/? Should
> Infrastructure be notified? Are there special requirements for the
> timing of the initial import or some other ways to reduce the load on
> our Subversion server?
The HttpComponents PMC recently asked FishEye to add the HC codebase;
they are quite aware of the load they are able to put on a (our) svn
server and they have taken some counter-measures. They also wanted to
have an ACK of the infra team before starting the process and
suggested to do it on a weekend to further minimize the potential
impact. HTH...
Cheers,
Erik
Re: [scm] Use case: code review/audit/study
Posted by Santiago Gala <sa...@gmail.com>.
El mié, 12-03-2008 a las 10:40 +0200, Jukka Zitting escribió:
> Hi,
>
> On Sun, Mar 2, 2008 at 10:31 PM, Santiago Gala <sa...@gmail.com> wrote:
> > A developer needs to study or review a code base for certain features,
> > typically either tracing the origin of those or just doing historical
> > analysis. Or just to learn, nothing like finding how a feature got
> > inside a project or has evolved to learn how to modify it. Or debugging,
> > say tracing a regression.
> > [...]
> > As with any subjective impressions, YMMV, of course. Any other pointers
> > to this kind of browsing tools?
>
> Atlassian's FishEye is pretty good for such use. It's commercial, but
> they offer free licenses or even hosting for open source projects.
> There's also clear demand for FishEye support from many Apache
> projects and some of them are already registered at
> http://fisheye6.cenqua.com/.
>
Is it an offline tool? one of the strong points of git-svn and
associated tools is that I can used them online. Also the response time
is very fast, be my machine online or not. This makes a big difference.
And once a project is loaded the code is easy to keep updated while
online (mostly just a "git svn rebase", sometimes the authors file must
be upgraded, if an authors file is used for correlation with svn ids).
Regards
Santiago
> I've seen some grumbling about the initial svn load when new projects
> are added to FishEye, but AFAIK once the initial import is done the
> load on our Subversion server is not too bad.
>
> What would be the instructions from Infrastructure to an Apache
> project that wants to add FishEye monitoring of their codebase? Is
> that OK? Should they use http://fisheye6.cenqua.com/? Should
> Infrastructure be notified? Are there special requirements for the
> timing of the initial import or some other ways to reduce the load on
> our Subversion server?
>
> Based on the answers I'd like to come up with a short FishEye FAQ for
> Apache projects.
>
> BR,
>
> Jukka Zitting
--
Santiago Gala
http://memojo.com/~sgala/blog/
Re: [scm] Use case: code review/audit/study
Posted by Jukka Zitting <ju...@gmail.com>.
Hi,
On Sun, Mar 2, 2008 at 10:31 PM, Santiago Gala <sa...@gmail.com> wrote:
> A developer needs to study or review a code base for certain features,
> typically either tracing the origin of those or just doing historical
> analysis. Or just to learn, nothing like finding how a feature got
> inside a project or has evolved to learn how to modify it. Or debugging,
> say tracing a regression.
> [...]
> As with any subjective impressions, YMMV, of course. Any other pointers
> to this kind of browsing tools?
Atlassian's FishEye is pretty good for such use. It's commercial, but
they offer free licenses or even hosting for open source projects.
There's also clear demand for FishEye support from many Apache
projects and some of them are already registered at
http://fisheye6.cenqua.com/.
I've seen some grumbling about the initial svn load when new projects
are added to FishEye, but AFAIK once the initial import is done the
load on our Subversion server is not too bad.
What would be the instructions from Infrastructure to an Apache
project that wants to add FishEye monitoring of their codebase? Is
that OK? Should they use http://fisheye6.cenqua.com/? Should
Infrastructure be notified? Are there special requirements for the
timing of the initial import or some other ways to reduce the load on
our Subversion server?
Based on the answers I'd like to come up with a short FishEye FAQ for
Apache projects.
BR,
Jukka Zitting