We are using the ischroot on the is_container function now. This
command is provided by the debianutils package. We are adding it
to the package dependencies.
When on a chroot, we don't want to say that the system is a container
type. To avoid that, we are first calling the ischroot command. If it
returns 0, we assume that we are on a chroot and inform that we
are not in a container
Some apt errors contain % in the failure messages.
When concatenating this str(e) with a python %-formatting there
will be collisions when trying to report the number of retries
remaining.
Avoid this formmatting collision by first rendering any %-formatted
retry message and concatenating it to str(e) seperately.
fix: add links to ubuntu.com/gcp/aws in messaging when on non-PRO (#1512)
Use our identity string mappings in
uaclient.clouds.identity.CLOUD_TYPE_TO_TITLE to map GCP-specific
messaging which instructs customers to use Ubuntu PRO images for
easier security maintenance.
We are experiencing some issues running mypy tests.
We believe that reason is because we are running tox inside
a virtualenv. To fix that, we removing the virtualenv
creation from this stage and also making the jobs in
that stage run sequentially