Skip to content

Commit

Permalink
patch(integration_test_charm.yaml): Free up disk space (#104)
Browse files Browse the repository at this point in the history
Reduce issues with running out of disk space (causing the runner to
crash)
  • Loading branch information
carlcsaposs-canonical committed Nov 30, 2023
1 parent 25b5344 commit 971e6b5
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/integration_test_charm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
4 changes: 4 additions & 0 deletions .github/workflows/integration_test_charm_self_hosted.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

0 comments on commit 971e6b5

Please sign in to comment.