[Merge] lp:~slyon/apport/apport-snap-handling into lp:~ubuntu-core-dev/ubuntu/groovy/apport/ubuntu

Lukas Märdian lukas.maerdian at canonical.com
Mon Jun 8 13:14:23 UTC 2020


Lukas Märdian has proposed merging lp:~slyon/apport/apport-snap-handling into lp:~ubuntu-core-dev/ubuntu/groovy/apport/ubuntu.

Requested reviews:
  Brian Murray (brian-murray)

For more details, see:
https://code.launchpad.net/~slyon/apport/apport-snap-handling/+merge/385270

Thank you Brian for the feedback.

I've moved 'find_snap' into fileutils.py and re worked report.py to have its own function 'add_snap_info()', which is called if a package name is given to 'ubuntu-bug <PKG>'.

Furthermore, I've implemented a question dialog, where the user can decide to report a bug agains the Snap or the deb package, if both are found to be installed and made sure that the 'Snap' and 'SnapSource' data is only appended if a snap bug is reported and the corresponding 'Package' field data is removed in this case.

This allows the bug reporter to automatically submit snap bugs to Launchpad.
Tested to work with snap-store, subiquity, gnome-calculator, gnome-system-monitor

The uploaded data can be seen in this report:
https://bugs.launchpad.net/ubuntu/+source/gnome-calculator/+bug/1882532

Unfortunately staging.launchpad.net is broken at the moment and qastaging.launchpad.net does not correctly fetch the uploaded data. But with #1882532 you can see the 'Snap' field is added with name/version/channel of the snap and 'SnapSource' is added, if a launchpad project is defined via the snap's 'contact' field. The bug is then reported against this launchpad project. If the contact URL contains a 'field.tags=' parameters, the tags are automatically added as well ('snap' in this case).

It reads the snap 'contact' field and allows auto-uploads, if a launchpad URL is specified, e.g.:
https://bugs.launchpad.net/usd-importer/+filebug
https://bugs.launchpad.net/snap-store/
https://bugs.launchpad.net/subiquity
http://launchpad.net/subiquity
https://launchpad.net/subiquity
https://bugs.launchpad.net/ubuntu/+source/gnome-calculator/+bugs?field.tags=snap
https://bugs.launchpad.net/ubuntu/+source/gnome-system-monitor/+bugs?field.tag=snap
-- 
Your team Ubuntu Core Development Team is subscribed to branch lp:~ubuntu-core-dev/ubuntu/groovy/apport/ubuntu.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: review-diff.txt
Type: text/x-diff
Size: 12939 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/ubuntu-reviews/attachments/20200608/e7270d26/attachment.diff>


More information about the Ubuntu-reviews mailing list