-
Notifications
You must be signed in to change notification settings - Fork 601
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/lib/tools/tests.invariant: look for unexpected snap cgroups #15145
base: master
Are you sure you want to change the base?
Conversation
Snap cgroups should be cleaned up as a result of removing the snaps during restore. Signed-off-by: Maciej Borzecki <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #15145 +/- ##
==========================================
- Coverage 78.07% 78.06% -0.01%
==========================================
Files 1182 1184 +2
Lines 157743 158251 +508
==========================================
+ Hits 123154 123540 +386
- Misses 26943 27030 +87
- Partials 7646 7681 +35
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
n="$1" # invariant name | ||
find /sys/fs/cgroup -type d -name 'snap.*' -ls > "$TESTSTMP/tests.invariant.$n" | ||
if [ -s "$TESTSTMP/tests.invariant.$n" ]; then | ||
echo "tests.invariant: leftover cgroup scope files" >&2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
echo "tests.invariant: leftover cgroup scope files" >&2 | |
echo "tests.invariant: leftover snap cgroups" >&2 |
Thu Feb 27 12:05:25 UTC 2025 Failures:Preparing:
Executing:
Restoring:
|
Snap cgroups should be cleaned up as a result of removing the snaps during restore.
Related: SNAPDENG-34419
Thanks for helping us make a better snapd!
Have you signed the license agreement and read the contribution guide?