Skip to content

Commit

Permalink
Out of space (#271)
Browse files Browse the repository at this point in the history
Frees up an additional ~11G on the rootfs.

This reduce the likelihood of running out of space during the storage
tests.
  • Loading branch information
tomponline authored Aug 20, 2024
2 parents 4051094 + 3df899b commit e5662f0
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions tests/storage-vm
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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)"
Expand Down Expand Up @@ -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)"
Expand Down Expand Up @@ -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 /
Expand Down

0 comments on commit e5662f0

Please sign in to comment.