]> git.proxmox.com Git - mirror_zfs.git/commitdiff
CI: Increase free space in workflow
authorBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 1 Apr 2021 15:39:27 +0000 (08:39 -0700)
committerGitHub <noreply@github.com>
Thu, 1 Apr 2021 15:39:27 +0000 (08:39 -0700)
Recently we've been running out of free space in the ubuntu 20.04
environment resulting in test failures.  This appears to be caused
by a change in the default available free space and not because of
any change in OpenZFS. Try and avoid this failure by applying a
suggested workaround which removes some unnecessary files.

https://github.com/actions/virtual-environments/issues/2840

Reviewed-by: George Melikov <mail@gmelikov.ru>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #11826

.github/workflows/zfs-tests-functional.yml
.github/workflows/zfs-tests-sanity.yml

index 631f174b74fd5b461fe7d25df69d28429b46daea..79973123fd41852fa1f4728ae63b7667069b0513 100644 (file)
@@ -44,6 +44,12 @@ jobs:
         sudo sed -i.bak 's/updates/extra updates/' /etc/depmod.d/ubuntu.conf
         sudo depmod
         sudo modprobe zfs
+        # Workaround to provide additional free space for testing.
+        #   https://github.com/actions/virtual-environments/issues/2840
+        sudo rm -rf /usr/share/dotnet
+        sudo rm -rf /opt/ghc
+        sudo rm -rf "/usr/local/share/boost"
+        sudo rm -rf "$AGENT_TOOLSDIRECTORY"
     - name: Tests
       run: |
         /usr/share/zfs/zfs-tests.sh -v -s 3G
index e03399757575b0a647048e6a0d83552806e0dc2e..df089c81f4ce9ca31152ebde9ce59649733519b1 100644 (file)
@@ -40,6 +40,12 @@ jobs:
         sudo sed -i.bak 's/updates/extra updates/' /etc/depmod.d/ubuntu.conf
         sudo depmod
         sudo modprobe zfs
+        # Workaround to provide additional free space for testing.
+        #   https://github.com/actions/virtual-environments/issues/2840
+        sudo rm -rf /usr/share/dotnet
+        sudo rm -rf /opt/ghc
+        sudo rm -rf "/usr/local/share/boost"
+        sudo rm -rf "$AGENT_TOOLSDIRECTORY"
     - name: Tests
       run: |
         /usr/share/zfs/zfs-tests.sh -v -s 3G -r sanity