snappy:release/2.51

Last commit made on 2021-08-31
Get this branch:
git clone -b release/2.51 https://git.launchpad.net/snappy

Branch merges

Branch information

Name:
release/2.51
Repository:
lp:snappy

Recent commits

9e3a347... by Paweł Stołowski

Use host-scaled timeout to avoid riscv64 test failure.

aef0746... by Ian Johnson

release: 2.51.7

Update changelog with the 2.51.7 changes.

9e4072a... by Maciej Borzecki

cmd/snap-seccomp/syscalls: update syscalls list to libseccomp v2.2.0-428-g5c22d4b

The latest libseccomp updated the syscalls list to match what is available in
Linux v5.14-rc7 [1].

1. https://github.com/seccomp/libseccomp/commit/5c22d4b6825438a1513831ce0aab3519bf313ed3

Signed-off-by: Maciej Borzecki <email address hidden>

6e81424... by Michael Vogt

Merge pull request #10691 from mvo5/shellcheck-disable-both-2.51

tests: cherry-pick shellcheck fix `bd730fd4` from #10443 (2.51)

0191366... by Woodrow Shen

interfaces/dsp: add /dev/ambad into dsp interface

Additional ambarella kernel driver is required to access the CV2X
processor registers so this enabled the capability to set the internal
value at run time.

Signed-off-by: Hsieh-Tseng Shen <email address hidden>

3d5de60... by Michael Vogt

tests: cherry-pick shellcheck fix `bd730fd4` from #10443 (2.51)

The new and the older shellcheck versions disagree about the
nature of the echo -e warning. New shellcheck warns with SC3037
and old with SC2039. The old shellcheck runs when in the
tests/unit/go spread test and the new in GH actions. Given that
this is the only instance where this is a problem this commit just
makes shellcheck ignore both the old and the new code for the issue.

This was merged as part of #10443 [1] but because it got squashed
we need the isolated fix for 2.51.

[1] https://github.com/snapcore/snapd/pull/10443/commits/bd730fd49cbb0309430c5fa3fecc35073d2d343d

3bbd85f... by Michael Vogt

Merge pull request #10684 from mvo5/fix-for-latest-shellcheck-2.51

many: shellcheck fixes (2.51)

f102ac6... by Michael Vogt

snapstate: abort kernel refresh if no gadget update can be found

* snapstate: abort kernel refresh if no gadget update can be found

This commit detects if a kernel refresh is in progress that does
not contain a "update-gadget-assets" task and aborts this part
of the change if that happens. This works around the issue that
is triggered in https://bugs.launchpad.net/snapd/+bug/1940553

A manager test for this is also added.

* handler: explicitly error on missing update-gadget-assets task (thanks to Ian,Samuele)

* snapstate: add/use new TestingOnlyLeaveOutKernetUpdateGadgetAssets

To test an upgrade from an old snapd that does not create the
"update-gadget-assets" tasks a new flag
"TestingOnlyLeaveOutKernetUpdateGadgetAssets" is added that can
be used in tests to test that snapd DTRT when upgrading from
a broken version of snapd.

* snapstate,overlord: simplify TestingLeaveOutKernetUpdateGadgetAssets usage

* overlord: fix typo

* snapstate: only skip adding the kernel "update-gadget-assets" for type kernel

* overlord: improve error message

* overlord: add SetTestingLeaveOutKernelUpdateGadgetAssets() that checks for osutil.IsTestBinary()

* overlord: improve error message (thanks to Ian)

* Revert "overlord: add SetTestingLeaveOutKernelUpdateGadgetAssets() that checks for osutil.IsTestBinary()"

This reverts commit 3f55cf4b89c34fd286d30e26dd38d489f897c20c.

e1a907f... by Michael Vogt

many: shellcheck fixes

* many: shellcheck fixes

We got a new shellcheck in "edge" and it seems this broke master.
This commit adds the required fixes.

* tests: update `shellcheck disable=SC3037` for echo -e

We want to keep the `echo -e` - using printf is not cleaner and
also results in a shellcheck warning. We already had a shellcheck
disable that seems to have been changed with the new version of
shellcheck. So this commit updates it to the new SC3037 value.

2899532... by Michael Vogt

overlord: add manager test for "assumes" checking

We want to check that `assumes` are handled correctly early. This
commit adds manager tests for `Install`, `Update` and `UpdateMany`
to ensure that snaps with the wrong `assumes` are rejected before
the taskset is generated.

This also required adding "snap-yaml" to the mockServer in
the manager tests.