git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Willy Tarreau <w@1wt.eu>
To: Adrian Bunk <bunk@kernel.org>
Cc: sverre@rabbelier.nl, git@vger.kernel.org,
	linux-kernel <linux-kernel@vger.kernel.org>,
	James Morris <jmorris@namei.org>,
	Al Viro <viro@zeniv.linux.org.uk>,
	Andrew Morton <akpm@linux-foundation.org>,
	david@lang.hm, Stephen Clark <sclark46@earthlink.net>,
	Evgeniy Polyakov <johnpol@2ka.mipt.ru>,
	"Rafael J. Wysocki" <rjw@sisk.pl>,
	Tilman Schmidt <tilman@imap.cc>,
	Valdis.Kletnieks@vt.edu, Mark Lord <lkml@rtr.ca>,
	David Miller <davem@davemloft.net>,
	jesper.juhl@gmail.com, yoshfuji@linux-ipv6.org, jeff@garzik.org,
	netdev@vger.kernel.org, David Newall <davidn@davidnewall.com>
Subject: Re: Reporting bugs and bisection
Date: Wed, 16 Apr 2008 22:04:08 +0200	[thread overview]
Message-ID: <20080416200408.GA7764@1wt.eu> (raw)
In-Reply-To: <20080416132634.GA545@cs181133002.pp.htv.fi>

On Wed, Apr 16, 2008 at 04:26:34PM +0300, Adrian Bunk wrote:
> On Wed, Apr 16, 2008 at 02:15:22PM +0200, Sverre Rabbelier wrote:
> > I'm not subscribed to the kernel mailing list, so please include me in
> > the cc if you don't reply to the git list (which I am subscribed to).
> > 
> > Git is participating in Google Summer of Code this year and I've
> > proposed to write a 'git statistics' command. This command would allow
> > the user to gather data about a repository, ranging from "how active
> > is dev x" to "what did x work on in the last 3 weeks". It's main
> > feature however, would be an algorithm that ranks commits as being
> > either 'buggy', 'bugfix' or 'enhancement'. (There are several clues
> > that can aid in determining this, a commit msg along the lines of
> > "fixes ..." being the most obvious.)
> >...
> 
> At least with the data we have currently in git it's impossible to 
> figure that out automatically.
> 
> E.g. if you look at commit f743d04dcfbeda7439b78802d35305781999aa11 
> (ide/legacy/q40ide.c: add MODULE_LICENSE), how could you determine 
> automatically that it is a bugfix, and the commit that introduced
> the bug?
> 
> You can always get some data, but if you want to get usable statistics 
> you need explicit tags in the commits, not some algorithm that tries 
> to guess.

yes, and doing that would get back to the bureaucracy some people are
trying to reduce in order to save time to do the real work.

However, in another project of mine, I've got used to systematically
indicate the type of change in the subject line. It does not get any
slower for the author, and it appears in shortlogs. And quite amazingly
the principle has immediately been adopted by several contributors :

-----
Note to contributors: it's very handy when patches comes with a properly
formated subject. Try to put one of the following words between brackets
to indicate the importance of the patch followed by a short description:

[MINOR]    minor fix, very low risk of impact
[MEDIUM]   medium risk, may cause unexpected regressions of low importance or
           which may quickly be discovered
[MAJOR]    major risk of hidden regression. This happens when I rearrange large
           parts of code, when I play with timeouts, with variable
           initializations, etc...
[BUG]      fix for a minor or medium-level bug.
[CRITICAL] medium-term reliability or security is at risk, an upgrade is
           absolutely required.
[RELEASE]  release a new version
[BUILD]    fix build issues. If you could build, no upgrade required.
[CLEANUP]  code cleanup, silence of warnings, etc... theorically no impact
[TESTS]    added regression testing configuration files or scripts
[DOC]      documentation updates, no need to upgrade
[LICENSE]  licensing updates (may impact distro packagers)

Example: "[DOC] document options forwardfor to logasap"
-----

Nothing is mandatory, and I (as the maintainer) can still choose to
adjust the prefix if I want. But in fact, I only had to to it when
contributors did not classify their patch themselves. Several other
tags may be added for LKML, such as "RFC" which is already used,
etc...

The advantages of this usage are multiple. Nothing needs to be changed
in the tools, no header needs to be added, it's still very compatible
with the mailing-list usages (and helps focusing on specific patches),
it's absolutely not mandatory and easily tweakable.

I'd like people in this thread not to forget that what we need is not
a fantastic tool to work around some developers' weaknesses, but cheap
(if any) help from the developers to help reviewers. I think that such
a proposal falls exactly in this category.

I'm quite ready to use it already (though I do not post often), and
think that it would still feel natural to many developers since most
of them are already used to such a format. I think it just requires
a few starters to get most of us to progressively use such a scheme
by default.

Regards,
Willy

  parent reply	other threads:[~2008-04-16 20:28 UTC|newest]

Thread overview: 66+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <47FEADCB.7070104@rtr.ca>
     [not found] ` <20080413121831.d89dd424.akpm@linux-foundation.org>
     [not found]   ` <20080413202118.GA29658@2ka.mipt.ru>
     [not found]     ` <200804132233.50491.rjw@sisk.pl>
     [not found]       ` <20080413205406.GA9190@2ka.mipt.ru>
     [not found]         ` <48028830.6020703@earthlink.net>
2008-04-13 23:51           ` Reporting bugs and bisection david
2008-04-14  0:36             ` Jakub Narebski
2008-04-14  4:39             ` Willy Tarreau
2008-04-14  5:39               ` Al Viro
2008-04-14  6:24                 ` Andrew Morton
2008-04-14  6:39                   ` David Miller
2008-04-14  6:43                     ` David Miller
2008-04-14  7:23                   ` Al Viro
2008-04-14  7:43                     ` Al Viro
2008-04-14  8:04                     ` Andrew Morton
2008-04-14  8:30                       ` David Miller
2008-04-14  9:06                         ` Christoph Hellwig
2008-04-14  9:46                         ` Andi Kleen
2008-04-15  5:25                           ` Bill Fink
2008-04-14 10:15                         ` Andrew Morton
2008-04-14 10:41                           ` David Miller
2008-04-14 17:35                             ` Roman Shaposhnik
2008-04-14 12:08                       ` Adrian Bunk
2008-04-14 14:43                       ` Arjan van de Ven
2008-04-14 17:51                         ` Andrew Morton
2008-04-14 18:24                           ` Arjan van de Ven
2008-04-14 19:30                           ` Ilpo Järvinen
2008-04-14 15:54                     ` James Morris
2008-04-14 22:01                       ` David Miller
2008-04-14 23:05                         ` Andrew Morton
2008-04-15  4:55                           ` Willy Tarreau
2008-04-15 13:18                             ` Work WAS(Re: " jamal
2008-04-15  9:33                       ` David Newall
2008-04-15  9:54                         ` Michael Kerrisk
2008-04-15 14:04                           ` David Newall
2008-04-15 20:51                             ` Rafael J. Wysocki
2008-04-16  2:34                               ` David Newall
2008-04-16  3:53                                 ` david
2008-04-16  9:06                                   ` David Newall
2008-04-16 11:02                                     ` Andi Kleen
2008-04-16 12:41                                   ` Stephen Clark
2008-04-16  4:29                                 ` Willy Tarreau
2008-04-16 12:13                                   ` Rafael J. Wysocki
2008-04-16 12:15                         ` Sverre Rabbelier
2008-04-16 13:26                           ` Adrian Bunk
2008-04-16 19:02                             ` Andrew Morton
2008-04-16 19:43                               ` Sverre Rabbelier
2008-04-16 19:55                               ` Adrian Bunk
2008-04-17 13:50                                 ` J. Bruce Fields
2008-04-17 15:26                                   ` Adrian Bunk
2008-04-16 19:58                               ` Alexey Dobriyan
2008-04-16 20:01                               ` Arjan van de Ven
2008-04-16 19:39                             ` Sverre Rabbelier
2008-04-16 20:16                               ` Adrian Bunk
2008-04-16 20:53                                 ` Adrian Bunk
2008-04-16 21:05                                   ` Sverre Rabbelier
2008-04-16 21:25                                     ` Adrian Bunk
2008-04-16 20:04                             ` Willy Tarreau [this message]
2008-04-16 20:55                               ` Jakub Narebski
2008-04-16 21:17                           ` Jesper Juhl
2008-04-17 17:04                             ` David Newall
2008-04-17 19:09                               ` Rafael J. Wysocki
2008-04-17 19:35                                 ` Ray Lee
2008-04-17 19:57                                   ` Sverre Rabbelier
2008-04-17 20:16                                   ` Al Viro
2008-04-17 20:38                                     ` Ray Lee
2008-04-17 20:53                                       ` Al Viro
2008-04-17 21:01                                         ` Ray Lee
2008-04-14 19:13                   ` Rene Herman
2008-04-14 20:38                     ` Andrew Morton
2008-04-14 22:18                       ` Rene Herman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080416200408.GA7764@1wt.eu \
    --to=w@1wt.eu \
    --cc=Valdis.Kletnieks@vt.edu \
    --cc=akpm@linux-foundation.org \
    --cc=bunk@kernel.org \
    --cc=davem@davemloft.net \
    --cc=david@lang.hm \
    --cc=davidn@davidnewall.com \
    --cc=git@vger.kernel.org \
    --cc=jeff@garzik.org \
    --cc=jesper.juhl@gmail.com \
    --cc=jmorris@namei.org \
    --cc=johnpol@2ka.mipt.ru \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lkml@rtr.ca \
    --cc=netdev@vger.kernel.org \
    --cc=rjw@sisk.pl \
    --cc=sclark46@earthlink.net \
    --cc=sverre@rabbelier.nl \
    --cc=tilman@imap.cc \
    --cc=viro@zeniv.linux.org.uk \
    --cc=yoshfuji@linux-ipv6.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).