From 08bf2ae3865990b818f0d07a740ab3499bf67513 Mon Sep 17 00:00:00 2001 From: Simon Deziel Date: Tue, 20 Aug 2024 10:52:51 -0400 Subject: [PATCH 1/3] tests/storage-vm: replace `lxc rm` by `lxc delete` Signed-off-by: Simon Deziel --- tests/storage-vm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/storage-vm b/tests/storage-vm index 5e2dbc0c4..166443d58 100755 --- a/tests/storage-vm +++ b/tests/storage-vm @@ -115,7 +115,7 @@ for poolDriver in $poolDriverList; do lxc snapshot v1 lxc copy v1 v2 --refresh [ "$(lxc query /1.0/instances/v2?recursion=1 | jq '.snapshots | length')" -eq "2" ] - lxc rm v1/snap1 + lxc delete v1/snap1 lxc delete -f v2 echo "==> Checking running copied VM snapshot" @@ -149,7 +149,7 @@ for poolDriver in $poolDriverList; do lxc snapshot v1 lxc copy v1 localhost:v2 --refresh [ "$(lxc query /1.0/instances/v2?recursion=1 | jq '.snapshots | length')" -eq "2" ] - lxc rm v1/snap1 + lxc delete v1/snap1 lxc delete -f v2 echo "==> Checking running migrated VM snapshot (same storage pool)" @@ -187,7 +187,7 @@ for poolDriver in $poolDriverList; do lxc snapshot v1 lxc copy v1 localhost:v2 --refresh -s "${poolName}2" [ "$(lxc query /1.0/instances/v2?recursion=1 | jq '.snapshots | length')" -eq "2" ] - lxc rm v1/snap1 + lxc delete v1/snap1 lxc delete -f v2 echo "==> Checking running migrated VM snapshot (different storage pool)" From 95357f2a02c739b8a4f941359bc20488ad5209e2 Mon Sep 17 00:00:00 2001 From: Simon Deziel Date: Tue, 20 Aug 2024 13:23:23 -0400 Subject: [PATCH 2/3] tests/storage-vm: replace `lxc storage rm` by `lxc storage delete` Signed-off-by: Simon Deziel --- tests/storage-vm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/storage-vm b/tests/storage-vm index 166443d58..dc3317a9d 100755 --- a/tests/storage-vm +++ b/tests/storage-vm @@ -221,7 +221,7 @@ for poolDriver in $poolDriverList; do lxc delete v1/snap0 lxc remote rm localhost lxc config trust rm "$(lxc query /1.0/certificates?recursion=1 | jq -r '.[].fingerprint')" - lxc storage rm "${poolName}2" + lxc storage delete "${poolName}2" echo "==> Check QEMU crash behavior and recovery" lxc exec v1 -- fsfreeze --freeze / From 3df899b32e35b742710d47ca959f789cb1f593c9 Mon Sep 17 00:00:00 2001 From: Simon Deziel Date: Tue, 20 Aug 2024 13:22:26 -0400 Subject: [PATCH 3/3] github: cleanup more space from GHA Signed-off-by: Simon Deziel --- .github/workflows/tests.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 832c0c5b0..f8bcd8de7 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -202,6 +202,15 @@ jobs: [[ "${notes}" =~ disabled$ ]] && sudo snap remove "${name}" --revision "${rev}" --purge done || true + # Remove leftover home directories + sudo rm -rf /home/linuxbrew /home/runneradmin + + # Remove unneeded directories + sudo rm -rf /opt/google/chrome + sudo rm -rf /opt/hostedtoolcache/CodeQL /opt/hostedtoolcache/PyPy /opt/hostedtoolcache/Python + sudo rm -rf /opt/microsoft/msedge /opt/microsoft/msodbcsql* /opt/microsoft/powershell + sudo rm -rf /root/.sbt + # This was inspired from https://github.com/easimon/maximize-build-space df -h # dotnet