Skip to content

Commit

Permalink
[INLONG-11321][CI] Fix workflow failure when removing unnecessary pac…
Browse files Browse the repository at this point in the history
…kages (apache#11322)
  • Loading branch information
aloyszhang authored Oct 10, 2024
1 parent 58fd7dd commit c37bf2a
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 6 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/ci_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,10 @@ jobs:
dpkg-query -Wf '${Installed-Size}\t${Package}\n' | sort -n | tail -n 100
df -h
echo "Removing large packages"
sudo apt-get remove -y '^dotnet-.*'
echo "Removing mongodb-.* packages..."
sudo apt-get remove -y '^mongodb-.*'
echo "Removed mongodb-.* packages..."
df -h
sudo apt-get remove -y azure-cli google-chrome-stable google-cloud-cli microsoft-edge-stable firefox powershell mono-devel libgl1-mesa-dri
df -h
echo "Removing large directories"
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/ci_ut.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

# Release space size
- name: Remove unnecessary packages
run: |
echo "=== Before pruning ==="
Expand All @@ -68,8 +69,10 @@ jobs:
dpkg-query -Wf '${Installed-Size}\t${Package}\n' | sort -n | tail -n 100
df -h
echo "Removing large packages"
sudo apt-get remove -y '^dotnet-.*'
echo "Removing mongodb-.* packages..."
sudo apt-get remove -y '^mongodb-.*'
echo "Removed mongodb-.* packages..."
df -h
sudo apt-get remove -y azure-cli google-chrome-stable google-cloud-cli microsoft-edge-stable firefox powershell mono-devel libgl1-mesa-dri
df -h
echo "Removing large directories"
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/ci_ut_flink13.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,10 @@ jobs:
dpkg-query -Wf '${Installed-Size}\t${Package}\n' | sort -n | tail -n 100
df -h
echo "Removing large packages"
sudo apt-get remove -y '^dotnet-.*'
echo "Removing mongodb-.* packages..."
sudo apt-get remove -y '^mongodb-.*'
echo "Removed mongodb-.* packages..."
df -h
sudo apt-get remove -y azure-cli google-chrome-stable google-cloud-cli microsoft-edge-stable firefox powershell mono-devel libgl1-mesa-dri
df -h
echo "Removing large directories"
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/ci_ut_flink15.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,10 @@ jobs:
dpkg-query -Wf '${Installed-Size}\t${Package}\n' | sort -n | tail -n 100
df -h
echo "Removing large packages"
sudo apt-get remove -y '^dotnet-.*'
echo "Removing mongodb-.* packages..."
sudo apt-get remove -y '^mongodb-.*'
echo "Removed mongodb-.* packages..."
df -h
sudo apt-get remove -y azure-cli google-chrome-stable google-cloud-cli microsoft-edge-stable firefox powershell mono-devel libgl1-mesa-dri
df -h
echo "Removing large directories"
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/ci_ut_flink18.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,10 @@ jobs:
dpkg-query -Wf '${Installed-Size}\t${Package}\n' | sort -n | tail -n 100
df -h
echo "Removing large packages"
sudo apt-get remove -y '^dotnet-.*'
echo "Removing mongodb-.* packages..."
sudo apt-get remove -y '^mongodb-.*'
echo "Removed mongodb-.* packages..."
df -h
sudo apt-get remove -y azure-cli google-chrome-stable google-cloud-cli microsoft-edge-stable firefox powershell mono-devel libgl1-mesa-dri
df -h
echo "Removing large directories"
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/codeql_analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,10 @@ jobs:
dpkg-query -Wf '${Installed-Size}\t${Package}\n' | sort -n | tail -n 100
df -h
echo "Removing large packages"
sudo apt-get remove -y '^dotnet-.*'
echo "Removing mongodb-.* packages..."
sudo apt-get remove -y '^mongodb-.*'
echo "Removed mongodb-.* packages..."
df -h
sudo apt-get remove -y azure-cli google-chrome-stable google-cloud-cli microsoft-edge-stable firefox powershell mono-devel libgl1-mesa-dri
df -h
echo "Removing large directories"
Expand Down

0 comments on commit c37bf2a

Please sign in to comment.