~mvo/snapd/+git/snapd-mvo:easier-on-memory

Last commit made on 2023-09-06
Get this branch:
git clone -b easier-on-memory https://git.launchpad.net/~mvo/snapd/+git/snapd-mvo

Branch merges

Branch information

Name:
easier-on-memory
Repository:
lp:~mvo/snapd/+git/snapd-mvo

Recent commits

5253423... by Michael Vogt

tests: increase memory limit for snapd during the tests to 200M

Tests are flaky with the MemoryMax=150M, we saw recently failures
around e.g.the `tests/main/microk8s-smoke:edge` test, e.g.:
```
2023-09-06T07:36:43.0524017Z [ 560.495582] snapd invoked oom-killer: gfp_mask=0x101cca(GFP_HIGHUSER_MOVABLE|__GFP_WRITE), order=0, oom_score_adj=-900
```
Lets increase the memory limit to make things less flaky.

0815f66... by Ernest Lotter

snap, snap/pack: add pack validation for default-configure hook (#13097)

* snap/pack: enhance snap pack to validate all container info

* snap: enhanced snap info validation to flag default-configure without configure hook

* snap: fixed implicit hook test

* snap, snap/pack: added unit tests

* snap/pack: add additional unit tests

* snap: revert back to not using ReadInfoFromSnapFile

1cb3328... by Michael Vogt

tests: fix system-usernames-missing-user multiline MATCH

This test failed with:
```
2023-09-05T12:51:25.0650751Z + echo 'Then the snap cannot be installed'
2023-09-05T12:51:25.0651128Z Then the snap cannot be installed
2023-09-05T12:51:25.0651591Z + MATCH 'cannot add user/group "snap_daemon": group exists and user does not'
2023-09-05T12:51:25.0652024Z + snap install --edge test-snapd-daemon-user
2023-09-05T12:51:25.0652503Z grep error: pattern not found, got:
2023-09-05T12:51:25.0653135Z error: cannot install "test-snapd-daemon-user": cannot ensure users for snap
2023-09-05T12:51:25.0653797Z "test-snapd-daemon-user" required system username "snap_daemon": cannot
2023-09-05T12:51:25.0654381Z add user/group "snap_daemon": group exists and user does not
```
This is because of the line breaks that are added in the error
and that MATCH only matces a single line. This commit fixes it
by changing the \n to normal spaces in the error message before
doing the match.

1def7c6... by Valentin David

osutil/kcmdline: provide marshalers for ArgumentPattern (#13144)

* osutil/kcmdline: provide marshalers for ArgumentPattern

* fixup!: review comments

d54bbd8... by Philip Meulengracht

o/servicestate,wrappers: disable support for activation mechanisms

Implement support for disabling activation mechanisms (timer, socket), and correctly report the status of services that are service-activated. The spread test for socket-activation services has been extended to not

8a9fd72... by Samuele Pedroni

boot: MakeRunnableStandaloneSystem doc was missing "not"

1a0a67b... by Sergio Cazzolato

refresh and revert core and snapd having shared memory interface connected (#13113)

75a2072... by Valentin David

o/d/remodel.go: release lock when resealing

Resealing can take more than a minute since it must hash a lot of files
that it might need to unpack from snaps. It also needs to interact
with the TPM and parse the event log, which might be slow. If
we keep the lock, then snapd will not respond for a long time.

This fixes failures for `tests/nested/manual/core20-remodel`

7c17cf2... by "J. Brock" <email address hidden>

asserts,seed: preseed authority delegation (#13034)

* asserts/model: add preseedAuthority field to Model

* seed20: allow authority-id to differ from the brand-id

* fixup! asserts/model: add preseedAuthority field to Model

fix comment wording to PreseedAuthority

* fixup! seed20: allow authority-id to differ from the brand-id

clarify error message as "preseed authority-id"

* fixup! asserts/model: add preseedAuthority field to Model

standardize checkOptionalAuthority() signature and make acceptsAny bool explicit when invoking it

* fixup! seed20: allow authority-id to differ from the brand-id

fix ineffectual assignment to preseedAs2

* fixup! asserts/model: add preseedAuthority field to Model

bump copyright years for files touched by 5593e76312

* fixup! seed20: allow authority-id to differ from the brand-id

bump copyright years for files touched by ce7ba34e0f

* fixup! asserts/model: add preseedAuthority field to Model

asserts/model.go: rename "acceptsAny" to "acceptsWildcard"

cbd51b2... by Robert Ancell

interface: make theme access functions generic so can be reused for other interfaces