Skip to content

Commit

Permalink
Merge pull request #136 from simondeziel/list-instances-on-cleanup
Browse files Browse the repository at this point in the history
bin/helpers: list all instances on failure
  • Loading branch information
tomponline authored Apr 11, 2024
2 parents f07b070 + 5bd3c8b commit bfffae3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions bin/helpers
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit bfffae3

Please sign in to comment.