Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests: remove snapd in ubuntu-core-snapd #8129

Merged
merged 1 commit into from
Feb 13, 2020

Conversation

zyga
Copy link
Contributor

@zyga zyga commented Feb 13, 2020

Dragons ahead

This patch fixes ubuntu-core-16 machines from running with a leaked
snapd snap leftovers after the tests/main/ubuntu-core-snapd test. Such
leak is picked up by tests/regression/lp-1805838 test and has been
seen to fail several times today.

The test abuses the fact that any broken snap can be removed!

Signed-off-by: Zygmunt Krynicki me@zygoon.pl

@zyga zyga added Test Robustness ⚠ Critical High-priority stuff (e.g. to fix master) labels Feb 13, 2020
Dragons ahead

This patch fixes `ubuntu-core-16` machines from running with a leaked
snapd snap leftovers after the `tests/main/ubuntu-core-snapd` test. Such
leak is picked up by `tests/regression/lp-1805838` test and has been
seen to fail several times today.

The test abuses the fact that any broken snap can be removed!

Signed-off-by: Zygmunt Krynicki <me@zygoon.pl>
@zyga zyga force-pushed the fix/ubuntu-core-snapd-restore branch from 7c5c2fc to 1725fc1 Compare February 13, 2020 15:56
@@ -29,7 +29,10 @@ execute: |
# we cannot restore in "restore:" because we need a reboot
# right now to get a clean state again
systemctl stop snapd.service snapd.socket snapd.autoimport.service snapd.snap-repair.service
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add snapd.snap-repair.timer here too?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In a follow-up

@anonymouse64
Copy link
Contributor

Travis build failed here on OSX build, I've restarted it, but here is the log for interested parties: https://pastebin.ubuntu.com/p/Y9qkgBKPsS/ I think the root cause is a network error but I'm not sure.

@zyga zyga merged commit a4be2a1 into canonical:master Feb 13, 2020
@zyga zyga deleted the fix/ubuntu-core-snapd-restore branch February 13, 2020 20:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⚠ Critical High-priority stuff (e.g. to fix master) Test Robustness
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants