~sespiros/ubuntu-security-tools/+git/ubuntu-security-tools:fix-template-folder-path

Last commit made on 2023-09-07
Get this branch:
git clone -b fix-template-folder-path https://git.launchpad.net/~sespiros/ubuntu-security-tools/+git/ubuntu-security-tools
Only Spyros Seimenis can upload to this branch. If you are Spyros Seimenis please log in for upload directions.

Branch merges

Branch information

Name:
fix-template-folder-path
Repository:
lp:~sespiros/ubuntu-security-tools/+git/ubuntu-security-tools

Recent commits

81afd89... by Spyros Seimenis

audits/uaudit: fix template path

we need to return to prev_dir before calculating the
base path for the templates otherwise we are looking for the
templates in the wrong directory (and fail).

This allows uaudit to be called with a relative path from any path.

722695f... by Spyros Seimenis

uaudit: skip report generation when output is not txt

Some tools don't support JSON output and are causing jira/review/bug
report generation from the templates to fail since some keys are missing.
Skipping the report generation when certain required tools for the report
haven't been run makes sense in those cases.

Also generalize the above so that when JSON-only output is requested,
uaudit steps that output txt will be skipped. These are:
- static analyzers that don't have JSON support yet
- all of our custom audit-* tools

the idea is that when JSON-only output is requested, the output of these
other tools, which is not used, is not slowing down the report generation.

3a3e6e7... by Alex Murray

uaudit: be more graceful in outputting json

Signed-off-by: Alex Murray <email address hidden>

d92dbe7... by Alex Murray

uaudit: prefer emacs stype output for semgrep if configured as EDITOR

Signed-off-by: Alex Murray <email address hidden>

6d3bf85... by Alex Murray

umt testflinger: only query c3 API for known testflinger machines

The c3 API allows to query for a list of IDs so ask it only for those which we
have looked up previously from testflinger. This saves a lot of unnecessary
queries.

Signed-off-by: Alex Murray <email address hidden>

a2253ef... by Alex Murray

umt: add --search to testflinger cmd to search all queues

This allows to more easily identify queues that might support a particular
hardware platform etc.

Signed-off-by: Alex Murray <email address hidden>

8b099e2... by Alex Murray

umt: supplement testflinger queues with c3 machine descriptions

certification.canonical.com (c3) stores details on all the various machines that
have been tested by the Devices Certification team. This includes most of the
machines in the testflinger queues - some of which do not have any description
listed. So fetch this information from the c3 API and augment the list of
testflinger queues with it.

Signed-off-by: Alex Murray <email address hidden>

5496844... by Alex Murray

umt: make repo a no-op if already done

Signed-off-by: Alex Murray <email address hidden>

9558960... by Alex Murray

utilities/compare-ucodes: be more lenient on inputs

If passed arguments look like directories, then just look for all microcode
files.

Also ensure that output is clean when no differences.

Signed-off-by: Alex Murray <email address hidden>

8b17668... by Alex Murray

build-tools/umt: ensure binaries installed if using skeleton qrt test

The skeleton.py QRT script doesn't specify any QRT-Packages and so the packages
under test may never get installed at all since later steps always run apt with
--only-upgrade which then only will upgrade the package if it is already
installed. Instead, edit this in place on the VM so that it installs all the
binary packages built by the current source package.

Signed-off-by: Alex Murray <email address hidden>