Skip to content

Commit

Permalink
test: improve clean disk job
Browse files Browse the repository at this point in the history
  • Loading branch information
liangyepianzhou committed Feb 19, 2024
1 parent a15982e commit 869dfd6
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 4 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/ci-integration-backwards-compatibility.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,19 @@ jobs:
- name: clean disk
if: ${{ steps.check_changes.outputs.docs_only != 'true' }}
run: |
sudo rm -rf /usr/share/dotnet /usr/local/lib/android /opt/ghc
sudo apt clean
echo "::group::Available diskspace"
time df -BM / /mnt
echo "::endgroup::"
sudo swapoff -a
sudo rm -rf /swapfile /usr/share/dotnet /usr/local/lib/android /opt/ghc /opt/hostedtoolcache/CodeQL
echo "::group::Cleaning apt state"
time sudo bash -c "apt-get clean; apt-get autoclean; apt-get -y --purge autoremove"
time df -BM / /mnt
echo "::endgroup::"
docker rmi $(docker images -q) -f
echo "::group::Available diskspace"
time df -BM / /mnt
echo "::endgroup::"
df -h
- name: run install by skip tests
Expand Down
13 changes: 11 additions & 2 deletions .github/workflows/ci-integration-pulsar-io-ora.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,19 @@ jobs:
- name: clean disk
if: ${{ steps.check_changes.outputs.docs_only != 'true' }}
run: |
echo "::group::Available diskspace"
time df -BM / /mnt
echo "::endgroup::"
sudo swapoff -a
sudo rm -rf /swapfile /usr/share/dotnet /usr/local/lib/android /opt/ghc
sudo apt clean
sudo rm -rf /swapfile /usr/share/dotnet /usr/local/lib/android /opt/ghc /opt/hostedtoolcache/CodeQL
echo "::group::Cleaning apt state"
time sudo bash -c "apt-get clean; apt-get autoclean; apt-get -y --purge autoremove"
time df -BM / /mnt
echo "::endgroup::"
docker rmi $(docker images -q) -f
echo "::group::Available diskspace"
time df -BM / /mnt
echo "::endgroup::"
df -h
- name: run install by skip tests
Expand Down

0 comments on commit 869dfd6

Please sign in to comment.