RFE: Rank bugs by number of dupes

Bug #79140 reported by Henrik Nilsen Omma
4
Affects Status Importance Assigned to Milestone
Bug Helper
Fix Released
Wishlist
Markus Korn

Bug Description

When starting work to triage an unfamiliar package it is useful to start by looking at the bugs most likely to have dupes.

Changed in bughelper:
importance: Undecided → Wishlist
Revision history for this message
Daniel Holbach (dholbach) wrote :

Thanks for your suggestion. Do you want to list ALL bugs and rank by number of dupes or just the ones that bughelper has clues about?

Changed in bughelper:
status: Unconfirmed → Needs Info
Revision history for this message
Henrik Nilsen Omma (henrik) wrote :

When starting work on a new package I want to have a list of ALL bugs ever filed on <package> (including closed ones) with more than N(~5) duplicates. Then I will look at those to see which ones may still generate dupes and use that as the basis for my cluefile for <package>.

THEN I will apply bughelper to all the untriaged bugs with my new cluefile and see if any new dupe candidates come up.

Revision history for this message
Daniel Holbach (dholbach) wrote :

Good idea. We need command line switches for that. Can you think of what would you would type in (in the future) to achieve this?

Revision history for this message
Henrik Nilsen Omma (henrik) wrote :

-dg5 = dupes GT 5
-dl5 = dupes LT 5

?

Revision history for this message
Daniel Holbach (dholbach) wrote :

Ok with me.

Changed in bughelper:
status: Needs Info → Confirmed
Revision history for this message
Vassilis Pandis (pandisv) wrote :

The regular expression needs a bit of fixing, but otherwise I _guess_ this should be alright. Patch with -p1

Revision history for this message
Áron Sisak (asisak) wrote :

What do you think about something like
--duplicates 5- (at least 5 duplicates)
--duplicates -100 (at most 100 duplicates)
--duplicates 3-6 (at least 3 and at most 6 duplicates)

Of course a short option would also be great for this.

Revision history for this message
Markus Korn (thekorn) wrote :

This patch against bughelper.main r125 adds a "--nd" option to ./bughelper. This option filters the bugs by given number of duplicates.

Example:
$ ./bughelper -p bughelper --nd "<2"
(less than 2 dups)

$ ./bughelper -p bughelper --nd ">2"
(more than 2 dups)

$ ./bughelper -p bughelper --nd 2
(2 dups)

Please review. As it's using RegEx to get the number of duplicates it needs intensive testing.

Markus

Changed in bughelper:
assignee: nobody → thekorn
status: Confirmed → Fix Committed
Revision history for this message
Daniel Holbach (dholbach) wrote :

Moving back to 'In Progress'. I updated the patch to apply against 152, but it does not seem to work for me.

./bughelper -p gtk+2.0 --nd ">2"
gives
http://launchpad.net/bugs/83278 [gnome-panel upstream: Unconfirmed/Unknown][gtk+2.0 Ubuntu: Fix Committed/Low] - This is probably a dup of bug #82280

Changed in bughelper:
status: Fix Committed → In Progress
Revision history for this message
Daniel Holbach (dholbach) wrote :
Revision history for this message
Daniel Holbach (dholbach) wrote :

Ok, the full output is:

daniel@bert:~/bzr/bughelper.main$ ./bughelper -p gtk+2.0 --nd ">2"
Checked at ['/home/daniel/bzr/bughelper-data/ufraw.info', '/home/daniel/.bughelper/packages/ufraw.info'] - no clues found.
Check README on how to create one using the bugxml(1) command.
Checked at ['/home/daniel/bzr/bughelper-data/wifi-radar.info', '/home/daniel/.bughelper/packages/wifi-radar.info'] - no clues found.
Check README on how to create one using the bugxml(1) command.
http://launchpad.net/bugs/83278 [gnome-panel upstream: Unconfirmed/Unknown][gtk+2.0 Ubuntu: Fix Committed/Low] - This is probably a dup of bug #82280

No bugs found.
daniel@bert:~/bzr/bughelper.main$

Is that intended?

Revision history for this message
Markus Korn (thekorn) wrote :

Oh, sorry, I somehow lost four lines of code.

This new patch against bughelper.main r152 solves this.

As discussed with dholbach, we should move that --nd option to bugnumbers and generally doing all filtering in BugList

Markus

Revision history for this message
Daniel Holbach (dholbach) wrote :

------------------------------------------------------------
revno: 164
committer: Daniel Holbach <email address hidden>
branch nick: bughelper.main
timestamp: Wed 2007-04-25 08:28:49 +0200
message:
  committed bughelper bits of Markus Korn's patch for bug 79140

Changed in bughelper:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.