~mvo/snapd/+git/snapd-mvo:arch-endian-fix

Last commit made on 2023-07-31
Get this branch:
git clone -b arch-endian-fix https://git.launchpad.net/~mvo/snapd/+git/snapd-mvo

Branch merges

Branch information

Name:
arch-endian-fix
Repository:
lp:~mvo/snapd/+git/snapd-mvo

Recent commits

9ee2f23... by Michael Vogt

arch: fix incorrect architecture name in `arch.Endian()`

The go and Debian/Ubuntu architecture names are extremly close and
there was a typo in one of them (i386->386). In addition to fixing
the typo this commit also includes a list of known architectures
from the go source directly to ensure this change is correct.

There is no exported list of available architectures so it had to
be copied. There is `go tool dist list` which will list all
supported combinations of os/arch but the downside of using this
is that when architecture support gets dropped in the future the
test would start failing for no good reason.

9c72433... by Michael Vogt

arch: add new `arch.Endian()` helper and use it in seccomp (#13028)

* arch: add new `arch.Endian()` helper and use it in seccomp

Go has no good way to get the native endianness of a system.
However for certain use-cases (like seccomp) this is quite
important. We already have a (hackish) `isBigEndian()` helper
in our code. However this will also be needed in snap-seccomp
for PR#13014 this will also be needed so moving the helper
to the `arch` package seems to be prudent.

* arch: fix usage of runtimeGOARCH

Co-authored-by: Miguel Pires <email address hidden>

---------

Co-authored-by: Miguel Pires <email address hidden>

f4ec590... by Sergio Cazzolato

tests: remove kinetic (#13016)

* Remove testing support for ubuntu 22.10

This is done because ubuntu 22.10 is EOL

* Squashed 'tests/lib/external/snapd-testing-tools/' changes from 1c8efb77e1..8013c30c2a

8013c30c2a Remove support for ubuntu 22.10
b32b80bf54 Fix remote.rait-for test in bionic
5675c625e9 Enable fedora 38
55f4471957 Support for new oss
f2e88b357c New tool used to query spread json reports
cacd35ede0 utils/spread-shellcheck: explain disabled warnings (#42)
c82afb2dee Support --no-install-recommends parameter when installing dependencies with tests.pkgs
b84eea92e2 spread-shellcheck: fix quotes in environment variables (#41)
ab1e51c29f New comparison in os-query for core systems (#40)
e5ae22a5d4 systemd units can be overwritten
63540b845a Fix error messages in remote pull and push
75e8a426a5 make sure the unit is removed in tests.systemd test
9089ff5c02 Update tests to use the new tests.systemd stop-unit
44ecd5e56a Move tests.systemd stop-units to stop-unit
01a2a83b4b Update tests.systemd to have stop units as systemd.sh
162e93bd35 update tests.systemd CLI options to be the same than retry command
14aa43a405 new feature to re-run failed spread tests (#39)
604cb782db Fix shellcheck in systemd tool
bfc71082c8 Update the tests.systemd to allow parameters waiting for service status
8a2d0a99df Adding quiet tool and removing set +-x from tests.pkgs
d90935d2a4 A comment explaining about the default values for wait-for
3232c5dba7 Add support for ubuntu 23.04
a7164fba07 remove fedora 35 support, add fedora 37 support
89b9eb5301 Update systems supported
92bb6a0664 Include snap-sufix in the snaps.name tool

git-subtree-dir: tests/lib/external/snapd-testing-tools
git-subtree-split: 8013c30c2a22185afd4c4464176e3fec1d7f2ab0

efb0d5e... by Sergio Cazzolato

tests: add fedora-38 and remove fedora-36 (#12955)

* Test fedora-38 and remove fedora-36

* update the number of workers for fedora 38

* update tests.session to support selinux

* tests: fix shell quoting

* disable shellcheck SC2086

this is needed to avoid error:

systemd-run: unrecognized option '--property
SELinuxContext=unconfined_u:unconfined_r:unconfined_t:s0'

* Updated tests.session tool to use --pipe with systemd-run

Also was moved the pipes creation to be done just when bustctl is used
intead of systemd-run

---------

Co-authored-by: Michael Vogt <email address hidden>

e38cba1... by Michael Vogt

snap-confine: fix missing \0 after readlink

The readlink() call does not add a terminating \0. Because orig_cwd
is not initialized this can lead to silent corruption (as was
observed in PR#13014.

9103691... by Samuele Pedroni

cmd/snap: hide append-integrity-data

as the dm-verity support work and how we ship the hashtrees is still in flux

81ce92a... by Miguel Pires

aspects: merge and improve not found errors

Merge the FieldNotFound and AspectNotFound errors so the user-facing
error messages returned by the API are consistent in wording and in the
information they provide.

ddf7f6c... by Alfonso Sanchez-Beato

tests/core20-early-config: make sure to configure any ethernet

The name of the interface is enp0s2 in some cases instead of ens3.

fe7b56d... by Alfonso Sanchez-Beato

tests/core20-early-config: check that netplan defaults from

the base are overriden.

d029b52... by Alfonso Sanchez-Beato

tests/netplan-cfg: reenable as the fix has been released