bzr should use apport to actually file bugs
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Fix Released
|
High
|
Martin Pool |
Bug Description
As of bzr 2.1 (post bug 389328) Bazaar uses the apport library to make a crash file in ~/.cache/crash. However, it would probably be better if we let apport do the whole job of actually filing the bug into Launchpad.
Problems at the moment:
* the user has to manually get the file and attach it to a bug report
* the file is not unpacked on Launchpad, so developers have to manually dig through the crash file to see the traceback
* we don't suggest a good summary line so many of them are contentfree like 'bzr crashes' <https:/
This bug is similar to <https:/
There are a few different cases we have to think about:
0- people on Ubuntu from an official distro version of bzr
1- people on Ubuntu with a ppa version of bzr
2- people running from source on any platform
3- people on another unix-like platform running from the installer package
4- people Windows running from the installer
The work that seems to need to be done, some discussed in bug 391015, includes:
* Ubuntu wants to disable bug filing once the distrorelease is frozen; we're still interested in bug reports though
* we should probably default to filing them against bzr upstream not the bzr distro package
For people running from source it may be reasonable to assume they're developers or at least nerdy and just want to see the traceback.
Related branches
- Robert Collins (community): Approve
- Martin Packman (community): Abstain
- Ian Clatworthy: Approve
-
Diff: 489 lines (+281/-68)8 files modifiedNEWS (+12/-0)
bzrlib/config.py (+7/-3)
bzrlib/crash.py (+138/-50)
bzrlib/tests/__init__.py (+5/-0)
bzrlib/tests/test_crash.py (+46/-15)
contrib/apport/README (+13/-0)
contrib/apport/bzr.conf (+6/-0)
contrib/apport/source_bzr.py (+54/-0)
Changed in bzr: | |
status: | Confirmed → In Progress |
Changed in bzr: | |
milestone: | none → 2.2.0b1 |
status: | In Progress → Fix Released |
On platforms where we can count on system apport support (so at least Ubuntu and maybe more) the intended behaviour is:
When an error is caught at the top level in bzr, write all the interesting information (including a list of plugins etc) into the systemwide apport crash directory (/var/crash), tell the user briefly what happened and that apport can be used to report a bug, and then exit cleanly.
When the error is not caught (eg a segfault) apport should catch this in the usual way and write a crash file.
After the crash file is written out, apport should notice it and ask the user if they want to report a bug either through a gui or apport-cli. This should happen even if it's in an Ubuntu release where automatic bug reporting is generally turned off, and the bug should be filed against upstream bzr. (Which is partly handled by the yet-unapplied patch in bug 391015.)