From b94cacf6f8b901ad24b53ba84c59b77b5663b602 Mon Sep 17 00:00:00 2001 From: Simon Deziel Date: Wed, 10 Apr 2024 11:58:12 -0400 Subject: [PATCH 1/2] bin/helpers: list all instances on failure Signed-off-by: Simon Deziel --- bin/helpers | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/helpers b/bin/helpers index 13f04fd4d..6b2bfe6e2 100644 --- a/bin/helpers +++ b/bin/helpers @@ -196,6 +196,7 @@ cleanup() { # Report some more information for diagnostic purposes snap list lxd uname -a + lxc list --all-projects # LXD daemon logs echo "::group::lxd logs" From 5bd3c8b962237828331f8f8936ce082ac3d6ba95 Mon Sep 17 00:00:00 2001 From: Simon Deziel Date: Wed, 10 Apr 2024 14:01:25 -0400 Subject: [PATCH 2/2] github: fix snap removal Signed-off-by: Simon Deziel --- .github/workflows/tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 3db5a9198..2bd1296b7 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -118,7 +118,7 @@ jobs: sudo snap remove lxd --purge # Purge older snap revisions that are disabled/superseded by newer revisions of the same snap snap list --all | while read -r name _ rev _ _ notes _; do - [[ "${notes}" =~ disabled$ ]] && snap remove "${name}" --revision "${rev}" --purge + [[ "${notes}" =~ disabled$ ]] && sudo snap remove "${name}" --revision "${rev}" --purge done || true # This was inspired from https://github.com/easimon/maximize-build-space