Add `--fwts` option to auto log FWTS-related issues in Launchpad
qabro can now be launched like this:
qabro --fwts -p project -t platform-tag
It will automatically
- create a Launchpad issue in the right project
- add it to the correct series
- tag it with `platform-tag`
- assign it to the right member of FWTS team (currently Alex Hung)
- attach fwts logs, sosreport archive and checkbox session (if any)
sosreport 3.6 introduces a new way to check what compression format to
use for the report archive. By default it uses xz, but it seems this
doesn't work well when packaged into a snap, so for the time being, we
use gzip.
The config part was originally used to host a default config file for
sosreport. Now that we use snap layouts, we can point to the default
conf file from sosreport package, so our config file becomes useless.
Fix errors when submitting `snap list` output to launchpad
The output of `snap list` now contains Unicode characters. When trying
to decode this using the default TTY encoding (usually ASCII), it raises
an exception. We decode using 'utf-8' to avoid this error.
Up until now, the archives generated by sosreport lacked a lot of
information (output files would basically be empty). This was the case
mostly for any logs gathered by calling a command (e.g. `lspci -nnvv`).
This is because sosreport hardcodes $PATH to some default values before
running these commands, and this is incompatible with the way snaps
work.
This commit does several things:
- Patch sosreport (currently v3.5 pulled from the repo) to include
$SNAP-related directories in $PATH
- Package tools needed by sosreport (lsusb, lspci, etc.)
- Use snap layouts to match config files (lsusb must have its usb.ids
file located at /var/lib/usbutils/usb.ids ...)
- Update qabro to make use of this
Note: for the time being (snapd < 2.36), the snap layouts feature is
still experimental and therefore, it must be activated before installing
qabro: