From c37bf2af2d3dc45d9bddaabb4b0b6c67c0a339bf Mon Sep 17 00:00:00 2001 From: AloysZhang Date: Thu, 10 Oct 2024 15:53:01 +0800 Subject: [PATCH] [INLONG-11321][CI] Fix workflow failure when removing unnecessary packages (#11322) --- .github/workflows/ci_build.yml | 4 +++- .github/workflows/ci_ut.yml | 5 ++++- .github/workflows/ci_ut_flink13.yml | 4 +++- .github/workflows/ci_ut_flink15.yml | 4 +++- .github/workflows/ci_ut_flink18.yml | 4 +++- .github/workflows/codeql_analysis.yml | 4 +++- 6 files changed, 19 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci_build.yml b/.github/workflows/ci_build.yml index e28d5d229b..9c703d4517 100644 --- a/.github/workflows/ci_build.yml +++ b/.github/workflows/ci_build.yml @@ -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" diff --git a/.github/workflows/ci_ut.yml b/.github/workflows/ci_ut.yml index 8d8587f488..21d56a8b93 100644 --- a/.github/workflows/ci_ut.yml +++ b/.github/workflows/ci_ut.yml @@ -60,6 +60,7 @@ jobs: - name: Checkout uses: actions/checkout@v4 + # Release space size - name: Remove unnecessary packages run: | echo "=== Before pruning ===" @@ -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" diff --git a/.github/workflows/ci_ut_flink13.yml b/.github/workflows/ci_ut_flink13.yml index a0c3dff728..3889e27d91 100644 --- a/.github/workflows/ci_ut_flink13.yml +++ b/.github/workflows/ci_ut_flink13.yml @@ -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" diff --git a/.github/workflows/ci_ut_flink15.yml b/.github/workflows/ci_ut_flink15.yml index 57cee39757..d5200b6475 100644 --- a/.github/workflows/ci_ut_flink15.yml +++ b/.github/workflows/ci_ut_flink15.yml @@ -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" diff --git a/.github/workflows/ci_ut_flink18.yml b/.github/workflows/ci_ut_flink18.yml index 3e6fc8f269..bec6330283 100644 --- a/.github/workflows/ci_ut_flink18.yml +++ b/.github/workflows/ci_ut_flink18.yml @@ -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" diff --git a/.github/workflows/codeql_analysis.yml b/.github/workflows/codeql_analysis.yml index c45b528b56..d9c8b45380 100644 --- a/.github/workflows/codeql_analysis.yml +++ b/.github/workflows/codeql_analysis.yml @@ -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"