~pieq/bugit/+git/qabro:release-0.8

Last commit made on 2018-12-05
Get this branch:
git clone -b release-0.8 https://git.launchpad.net/~pieq/bugit/+git/qabro
Only Pierre Equoy can upload to this branch. If you are Pierre Equoy please log in for upload directions.

Branch merges

Branch information

Name:
release-0.8
Repository:
lp:~pieq/bugit/+git/qabro

Recent commits

5f9e4cc... by Pierre Equoy

Bump to v0.8 and start using snapcraft's adopt-info

d656d52... by PMR <pmr@pmr-lander>

Merge #359582 from ~pieq/qabro/+git/qabro:fwts-command

b9e2d37... by Pierre Equoy

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)

0837f09... by Pierre Equoy

Use gzip compression for the sosreport archive

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.

2a96c4d... by Pierre Equoy

Bump to v0.8dev

8718393... by PMR <pmr@pmr-lander>

Merge #358000 from ~pieq/qabro/+git/qabro:more-logs-in-reports

9f3de5b... by Pierre Equoy

Remove config part

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.

1e82d2b... by Pierre Equoy

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.

This commit also include a minor pep8 fix.

cb0db64... by Pierre Equoy

Gather logs from commands such as lsusb and lspci

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:

    $ sudo snap set core experimental.layouts=true

913ddf6... by Pierre Equoy

Use APPORT_LAUNCHPAD_INSTANCE env variable

Launchpad library uses this environment variable to select to
which instance of launchpad it should connect to.

For instance, to connect and send data to Staging LP instance:

    $ APPORT_LAUNCHPAD_INSTANCE=staging qabro

Other possible values are 'production' (default) and 'qastaging'.