~mvo/snapd/+git/snapd-mvo:active-task-time

Last commit made on 2019-02-13
Get this branch:
git clone -b active-task-time https://git.launchpad.net/~mvo/snapd/+git/snapd-mvo

Branch merges

Branch information

Name:
active-task-time
Repository:
lp:~mvo/snapd/+git/snapd-mvo

Recent commits

cf5d85f... by Michael Vogt

many: collect time each task runs and display with `snap change <id>`

This PR imports the changes from Maciej that measures how much time
each task taskes to run. This data is stored in the state and can
be displayed via `snap change <id>`. E.g.:
```
$ snap change 563
Status Spawn Ready Active Summary
Done today at 09:28 CET today at 09:29 CET 13ms Stop snap "test-snapd-tools" (6) services
Done today at 09:28 CET today at 09:29 CET 39ms Remove aliases for snap "test-snapd-tools"
Done today at 09:28 CET today at 09:29 CET 27ms Make snap "test-snapd-tools" (6) unavailable to the system
Done today at 09:28 CET today at 09:29 CET 10ms Remove security profiles of snap "test-snapd-tools"
```
This is a first (baby) step towards measuring where we spend time
in e.g. firstboot seeding and where we need to optimize.

Thanks to Maciej Borzecki and Zygmunt Krynicki which wrote most of
this code.

c0dde0c... by Michael Vogt

Merge pull request #6493 from mvo5/help_url2

userd: handle help urls which requires prepending XDG_DATA_DIRS

bb7fc70... by Paweł Stołowski

Merge pull request #6490 from stolowski/fix-nfs-test

tests: fix NFS home mocking

d891512... by Paweł Stołowski

Split TestInterfaceWriteSystemKey test into NFS/non-NFS

3824194... by Paweł Stołowski

Merge branch 'master' into fix-nfs-test

ca06fd9... by Maciej Borzecki

tests/main/xdg-open-compat: fix the test to do as advertised

The xdg-open-compat test has been broken since the core snap started shipping
xdg-open that actually talks to io.snaocraft.Launcher via `snapctl user-open`.
Because of this, the actual com.canonical.SafeLauncher interface was never
accessed, and the test ended up just redoing what xdg-open test does.

Attempt to fix the test by calling com.canonical.SafeLauncher diirectly via
dbus-send.

Also, snapd-xdg-open does not allow help: scheme, make sure that we account for
that in the test.

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

93b5556... by Maciej Borzecki

tests/main/xdg-open: little cleanup

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

7c4e905... by Maciej Borzecki

tests/main/xdg-open-compat: drop tests for help

snapd-xdg-open has a whitelist of supported schemes, those are:

  const gchar * const whitelist[] = {
    "http",
    "https",
    "mailto",
    NULL
  };

No need to test the help: handler as it won't work.

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

95ffc5f... by Maciej Borzecki

tests/main/xdg-open: fix the test, verify XDG_DATA_DIRS

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

9c49e4f... by Maciej Borzecki

test-snapd-desktop: add a command to run other commands inside the snap

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