diff --git a/.github/workflows/integration_test_charm.yaml b/.github/workflows/integration_test_charm.yaml index 3db17f6b..a8a56d03 100644 --- a/.github/workflows/integration_test_charm.yaml +++ b/.github/workflows/integration_test_charm.yaml @@ -132,6 +132,15 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 120 steps: + - name: Free up disk space + run: | + printf '\nDisk usage before cleanup\n' + df --human-readable + # Based on https://github.com/actions/runner-images/issues/2840#issuecomment-790492173 + rm -r /usr/share/dotnet + rm -r /opt/hostedtoolcache/ + printf '\nDisk usage after cleanup\n' + df --human-readable - name: Install CLI run: pipx install git+https://github.com/canonical/data-platform-workflows@'${{ needs.get-workflow-version.outputs.version }}'#subdirectory=python/cli - name: Redact secrets from log @@ -271,3 +280,5 @@ jobs: name: intergration-test-charm-logs-${{ inputs.cloud }}-juju-${{ inputs.juju-agent-version || inputs.juju-snap-channel }} path: ~/logs/ if-no-files-found: error + - name: Disk usage + run: df --human-readable diff --git a/.github/workflows/integration_test_charm_self_hosted.yaml b/.github/workflows/integration_test_charm_self_hosted.yaml index 04b9bffb..79cd7d32 100644 --- a/.github/workflows/integration_test_charm_self_hosted.yaml +++ b/.github/workflows/integration_test_charm_self_hosted.yaml @@ -125,6 +125,8 @@ jobs: runs-on: [self-hosted, linux, X64, jammy, large] timeout-minutes: 120 steps: + - name: Disk usage + run: df --human-readable - name: Install CLI run: | sudo apt-get install python3-pip python3-venv -y @@ -234,3 +236,5 @@ jobs: name: intergration-test-charm-logs-${{ inputs.cloud }}-juju-${{ inputs.juju-agent-version || inputs.juju-snap-channel }} path: ~/logs/ if-no-files-found: error + - name: Disk usage + run: df --human-readable