47 Commits

Author SHA1 Message Date
Pawel Stolowski
5a9eb56825 features: enable refresh-app-awareness by default
* Enable refresh-app-awareness by default.

* Update tests.

* Fix comment.

* Pass --ignore-running in spread tests.

* Update hidden-snap-dir test with --ignore-running.

* Fix op-remove-retry test to kill test-snapd-tools.block process.

* Remove --ignore-running flag from hidden-snap-dir (not needed).

* Remove --ignore-running flag from refresh test (not needed).

* Add comment to the test

Co-authored-by: Maciej Borzecki <maciek.borzecki@gmail.com>

* Add comment to the test

Co-authored-by: Maciej Borzecki <maciek.borzecki@gmail.com>

* Add extra comments explaining --ignore-running use in the tests.

Co-authored-by: Maciej Borzecki <maciek.borzecki@gmail.com>
2022-04-21 09:00:05 +02:00
Miguel Pires
003247d4b7 cmd: use IsEnabled instead of Stat 2021-10-08 17:36:39 +01:00
Miguel Pires
a8f4b392ef many: s/SnapDataDir/SnapDataHomeDir/ 2021-10-04 15:10:55 +01:00
Miguel Pires
c734f653cb many: make naming more consistent 2021-09-29 12:33:20 +01:00
Miguel Pires
2c4d18eaf4 many: enable ~/.snap experimental feature 2021-09-23 23:51:36 +01:00
James Henstridge
88644518c5 Merge remote-tracking branch 'upstream/master' into enable-feature-dbus-activation 2021-05-27 13:33:45 +08:00
Michael Vogt
5603fbe09b features,servicestate: add experimental.quota-control flag
To allow us to still change he API we put resource groups
behind an experimental flag.
2021-04-29 20:35:46 +02:00
Paweł Stołowski
6d51527ddb Renamed refresh-control to gate-auto-refresh-hook. 2021-04-06 08:22:48 +00:00
Paweł Stołowski
bfc82b5fec Add refresh-control feature flag. 2021-04-06 08:22:48 +00:00
James Henstridge
926f7f7d67 features: enable dbus-activation feature by default 2021-03-18 19:12:25 +08:00
Zygmunt Krynicki
02e21d00eb features: enable classic-preserves-xdg-runtime-dir
We agreed to enable this feature after a release a long while ago and
forgot about this entirely. This should improve compatibility of some
snaps that use classic confinement, as $XDG_RUNTIME_DIR will no longer
be altered, allowing unmodified binaries to find sockets and other
resources there.

Forum: https://forum.snapcraft.io/t/classic-confinement-breaks-high-dpi-support/13868
Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
2020-10-30 13:28:12 +01:00
Paweł Stołowski
3c26bf46a6 Tweak order of featurs to match tests order (thanks zyga). 2020-09-04 14:55:32 +02:00
Paweł Stołowski
d7901881a0 Add feature flags for disk space awareness and disable disk checks by default. 2020-08-31 16:18:56 +02:00
Zygmunt Krynicki
7b5640f16c features: add HiddenSnapFolder feature flag
This new feature flag will control the location of the per-user snap
data root. When the flag is unset, the ~/snap location is used. When
the flag is set the new ~/.snapdata location will be used as the root of
all other locations (such as SNAP_USER_DATA and SNAP_USER_COMMON).

The flag is implemented on the go and C sides, as both need to observe
it.

Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
2020-08-21 09:28:19 +02:00
James Henstridge
625ed206f9 features: add dbus-activation feature flag 2020-06-08 19:32:12 +08:00
James Henstridge
bc4a97b4cc Merge remote-tracking branch 'upstream/master' into user-daemons 2020-04-03 09:50:19 +08:00
Zygmunt Krynicki
469e05cc8a Merge pull request #8089 from zyga/feature/enable-robust-mount-namespace-updates
features: enable robust mount ns updates
2020-04-02 17:01:09 +02:00
James Henstridge
bbbbb08b04 Merge remote-tracking branch 'upstream/master' into user-daemons 2020-04-02 10:11:13 +08:00
Paweł Stołowski
196c2ef8b5 Use WellKnownSnapID helper.
Tweak docstring of Flag function.
2020-04-01 09:24:07 +02:00
Pawel Stolowski
02d1cd9cc6 Moved GetFeatureFlag helper from config to features package, and renamed to Flag(). 2020-04-01 09:16:10 +02:00
Zygmunt Krynicki
716ec3de35 features: enable robust mount ns updates
A while ago we enabled this for select customers. We should enable this
globally now as this feature genuinely improves robustness for a certain
class of mount namespace operations.

Signed-off-by: Zygmunt Krynicki <me@zygoon.pl>
2020-03-17 11:22:42 +01:00
James Henstridge
5423dd5717 features: fix documentation comment formatting 2020-03-03 10:30:58 +01:00
James Henstridge
41ea0b075a features, snap: changes suggested by pedronis 2020-02-26 10:36:02 +08:00
James Henstridge
9f69da66e9 features, overlord: add a feature flag gating access to user daemons 2020-02-11 11:01:10 +08:00
Zygmunt Krynicki
b2f8bfcd4d feature: add robust-mount-namespace-updates feature
The new feature flag controls how snap-update-ns performs updates of
mount namespaces. With this flag enabled the differential update logic
is disabled and mount namespaces are torn down and re-constructed
internally, that is, without discarding the mount namespace that is
preserved in the file-system.

Signed-off-by: Zygmunt Krynicki <me@zygoon.pl>
2019-11-26 15:02:52 +01:00