Summary

The QA team will drive an effort to extend coverage of apport hooks to all core Ubuntu components.

Rationale

As the number of reported bugs increases over time, we need to improve in a simple way the quality of the information attached to the report. In order to do that the best way would be collecting the relevant data for the specific package affected by the bug. This can be done with apport, but we lack a lot of the hooks needed.

User stories

Selina encounters a bug when using rhythmbox and reports a bug directly in Launchpad. When the bug report is reviewed by triagers it is discoverd that it is missing multiple valuable log files. This then results in the triagers asking for that information, Selina providing it and then the bug becoming triaged. This process could have been avoided if only the package had an apport hook!

Harleen reports a bug using apport, the preferred way, about compiz using apport, however the package has no hook and log files are not gathered. Subsequently, this information is requested by bug triagers and requires Harleen to do some extra work. If the package had an apport hook it could have gathered this information when the bug was being reported.

Implementation

Identify packages that would most benefit, determined by the quantity of bugs that would be improved, from a package hook.

Bug Filing Research

It was suggested to look at the 1000 most recent bug reports filed and determine which packages received the greatest volume of those bug reports. This was most easily and accurately done with the ubuntu-bugs mailing list. The mailing list may be considered more accurate as it contains information about what package the bug was initially filed about which is not tracked in Launchpad. Additionally, the Launchpad API provides the ability to search for bug tasks and not bugs.

Looking at the ubuntu-bugs mbox for June 2009 the top 20% (80% had far too many packages) of bug reports in terms of volume for a 1000 bug sampling follow:

The same stats are available for May 2009 and April 2009.

None refers to bugs not reported about a specific package. However, in the ideal situation - these would have really been reported about a specific package, so tracking what package they have been assigned to might be useful.

Some packages already have an apport package hook as indicated by 'hook exists'.

Clearly there are some packages that having an apport package hook would improve a fair quantity of bug reports. However, there must be some items worth grabbing (log files, config files, hardware information) for bug reports to benefit from the hook.

Package Hook Writing Classes

It is very easy to write a new package hook and to test that it works properly, however it seems that most people are not aware that they can be written or how to write them. Ubuntu QA team members who have written a package hook should document how to write a hook and give a class in #ubuntu-classroom to educate more people, including Bug Squad members, how to write them. The class should also cover how to get them incorporated into Ubuntu.

Unresolved issues

There is not a really good way to discover what package bugs without a package were later assigned. This might be useful information to refine the target packages for apport hooks.

BoF agenda and discussion

Agenda

Inventory and review packages that currently have apport hooks.

Packages that might benefit from apport hooks.

Reportbug looks in /usr/share/bug/*/presubj to present information to include in bug reports. Can any of these be implemented in apport hooks? There was an apport bug regarding this but it was decided that the reportbug guidelines need manual review. If not are they candidates for package bug filing instructions? Possibly it would be great to have a list of all the packages that ship something in /usr/share/bug.

Other particular areas?

Usability issue: what triggers apport is a signal that sometimes does not get called. It'd be great to get the correct information when an application freezes and not just crashes.

Statistics on adoption of bugs reported with apport, but not on coverage. Statistics about packages with a lot bug reports that do not have apport hooks.

https://wiki.ubuntu.com/Apport

We need ways to send the information to related packages.

How much in-depth can you achieve with an apport hook?

Pick a target:

* Packages with already available debugging information A list is MANUALLY maintained at https://wiki.ubuntu.com/Apport#Per-package%20Apport%20Hooks

What should be considered private information in a bug reported by apport? Can a package hook make all bug reports that utilize that hook private?

Target

How to deal with bugs that apport reports against the wrong package? (i.e. python)

ACTION ITEMS


CategorySpec

QATeam/Specs/IncreaseApportCoverage (last edited 2009-07-03 01:15:03 by c-24-21-43-9)