diff options
author | Damian Szuberski <[email protected]> | 2022-02-09 20:50:13 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2022-02-09 11:50:13 -0800 |
commit | e2909fae8f2c3b15459fd4c0acc1999c6907864b (patch) | |
tree | 33b8cb772d0c9a2858e73c993b55a8ba8e237a1e /.github/workflows/zfs-tests-sanity.yml | |
parent | d7a67402a85252e163aa8a9b69e7eda499db8c61 (diff) |
Remove unused files from GitHub runners
Majority of the software installed by default in GitHub runners is
irrelevant to OpenZFS. Reclaimed space could be used for more/bigger
vdev files. File deletion happens in the background, leveraging
`systemd-run` - the workflow is not significantly slowed down.
Before
```
Filesystem Size Used Avail Use% Mounted on
/dev/root 84G 53G 31G 63% /
```
After
```
Filesystem Size Used Avail Use% Mounted on
/dev/root 84G 15G 70G 18% /
```
Reviewed-by: George Melikov <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Reviewed-by: Ahelenia ZiemiaĆska <[email protected]>
Signed-off-by: szubersk <[email protected]>
Closes #13066
Diffstat (limited to '.github/workflows/zfs-tests-sanity.yml')
-rw-r--r-- | .github/workflows/zfs-tests-sanity.yml | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/.github/workflows/zfs-tests-sanity.yml b/.github/workflows/zfs-tests-sanity.yml index 008c5a2b4..ea538ce71 100644 --- a/.github/workflows/zfs-tests-sanity.yml +++ b/.github/workflows/zfs-tests-sanity.yml @@ -11,6 +11,9 @@ jobs: - uses: actions/checkout@v2 with: ref: ${{ github.event.pull_request.head.sha }} + - name: Reclaim disk space + run: | + ${{ github.workspace }}/.github/workflows/scripts/reclaim_disk_space.sh - name: Install dependencies run: | sudo apt-get update @@ -44,15 +47,12 @@ jobs: sudo udevadm control --reload-rules fi fi - # 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: Clear the kernel ring buffer run: | sudo dmesg -c >/var/tmp/dmesg-prerun + - name: Report disk space + run: | + df -h / - name: Tests run: | /usr/share/zfs/zfs-tests.sh -vR -s 3G -r sanity |