56449 Commits

Author SHA1 Message Date
Michael Vogt
888225898e release: 2.57 (#12005) 2.57 2022-07-28 17:52:59 +02:00
Michael Vogt
293c48dc2b Merge pull request #11993 from valentindavid/valentindavid/is-system-running
tests: Fix calls to systemctl is-system-running
2022-07-28 16:34:22 +02:00
Michael Vogt
0ddf1f1115 Merge pull request #11979 from valentindavid/valentindavid/fix-lba
osutil/disks: handle GPT for 4k disk and too small tables
2022-07-28 16:30:48 +02:00
Valentin David
2208ca387f tests: Fix calls to systemctl is-system-running
In a few places we call `systemctl is-system-running` and expect
either `running` or `degraded` to be returned.

But it can all return `starting`. If we want to wait for the system to
have finished starting, the documentation says we need to use
`--wait`.
2022-07-28 13:21:30 +02:00
Valentin David
9ae74ef7ca Work-around bug in losetup 2022-07-28 13:05:11 +02:00
Valentin David
150b66303b Add debug output for failing test 2022-07-28 13:05:10 +02:00
Valentin David
05975cdfb6 tests: Work-around unclean uninstall of lvm2 on focal 2022-07-28 13:05:09 +02:00
Valentin David
5d430a1705 tests: Also test with 4k logical block size 2022-07-28 13:05:08 +02:00
Michael Vogt
d8af1b1e09 Merge pull request #12001 from mvo5/import-debian-2.54.3-1.1
packaging: import change from the 2.54.3-1.1 upload
2022-07-28 10:59:30 +02:00
Valentin David
81607b73e2 osutil/disks: Call blockdev with --getsize64 instead of --getsz
The size from --getsz is for the number of blocks if the disk has 512
block size. This is very confusing. So instead we avoid this function.
2022-07-28 10:52:36 +02:00
Valentin David
3ae8fb043b osutil/disks: handle GPT for 4k disk and too small tables
On 4k disks GPT uses 4k LBA.

Also the table should be at least 16k. If it is not we expect it will
be resized. So we need to calculate the last LBA with this
expectation.
2022-07-28 10:52:35 +02:00
Valentin David
1c835ff97d tests/lib/nested.sh: Avoid repeating variable names when setting default 2022-07-28 10:52:34 +02:00
Valentin David
73dbbb5aed osutil/disks: Remove dead size.go 2022-07-28 10:52:18 +02:00
Michael Vogt
2da0841fe7 Merge pull request #11996 from mvo5/disable-disable-refresh-app-awareness-again
many: revert "features: disable refresh-app-awarness by default again"
2022-07-28 08:42:19 +02:00
Michael Vogt
a06f91f9db Merge pull request #11997 from valentindavid/valentindavid/robustness-lp-1803542
tests: improve robustness of preparation for regression/lp-1803542
2022-07-28 08:38:05 +02:00
Michael Vogt
2f68289f96 Merge remote-tracking branch 'upstream/master' into valentindavid/robustness-lp-1803542 2022-07-27 15:52:48 +02:00
Michael Vogt
fa2e3987f9 Merge remote-tracking branch 'upstream/master' into disable-disable-refresh-app-awareness-again 2022-07-27 15:52:02 +02:00
Michael Vogt
f32f9b52f6 Merge pull request #12000 from sergiocazzolato/tests-use-ubuntu-image-from-gce
tests: get the ubuntu-image binary built with test keys
2022-07-27 15:48:32 +02:00
Michael Vogt
59b0bad89f packaging: import change from the 2.54.3-1.1 upload
This imports the changes from the debian NMU:
https://tracker.debian.org/news/1346681/accepted-snapd-2543-11-source-into-unstable/

Thanks to Shengjing Zhu !
2022-07-27 15:43:06 +02:00
Miguel Pires
7f2f8b73af Merge pull request #11998 from MiguelPires/trim-lxd-test
tests: remove commented code from lxd test
2022-07-27 09:30:25 +01:00
Michael Vogt
e1523d18a6 tests: fix typo in get_ubuntu_image and use wget -c 2022-07-27 10:16:25 +02:00
Sergio Cazzolato
7eb439fa4b get the ubuntu-image binary built with test keys
The binary is built using snapd master branch and it is uploaded to gce
daily
2022-07-26 17:49:28 -03:00
Michael Vogt
f124b8c048 Merge pull request #11854 from jhenstridge/steam-support-updates
interfaces/builtin: add more permissions for steam-support
2022-07-26 15:44:08 +02:00
Valentin David
d0e97578ca tests: improve robustness of preparation for regression/lp-1803542 2022-07-26 14:42:58 +02:00
Michael Vogt
06df81c76e many: revert "features: disable refresh-app-awarness by default again"
This reverts commit db339ccd37.

The desktop team is very nervous about disabling
refresh-app-awareness, especially this close to the release of
22.04.1. The worry is that unknown bugs during a refresh may
cause firefox to crash. Given the really good progress we had
with the startup performance and other improvements this would
be very unfortunate. Fwiw, there are no refresh bugs known right
now but the risk is there. The desktop team feels that the
shortcoming in the UX are a better tradeoff than to risk crashes.

We fixed the known issues around refresh-app-awareness:
https://bugs.launchpad.net/snapd/+bug/1975714
https://bugs.launchpad.net/snapd/+bug/1978834
https://github.com/snapcore/snapd/pull/11834
https://github.com/snapcore/snapd/pull/11976
https://github.com/snapcore/snapd/pull/11855

so hopefully this does not hit the other side of this too
hard. Sorry to everyone for yet another flip-flop on this,
it's really hard to find the right trade-off here.

This reverts https://github.com/snapcore/snapd/pull/11912
2022-07-26 12:36:24 +02:00