You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by lh...@apache.org on 2023/10/14 07:45:18 UTC
[pulsar] branch master updated: [fix][ci] Fix docker image building by releasing more disk space before building (#21365)
This is an automated email from the ASF dual-hosted git repository.
lhotari pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar.git
The following commit(s) were added to refs/heads/master by this push:
new 421c98a1a5e [fix][ci] Fix docker image building by releasing more disk space before building (#21365)
421c98a1a5e is described below
commit 421c98a1a5ec08941e794698dfc43a1a08d6e782
Author: Lari Hotari <lh...@users.noreply.github.com>
AuthorDate: Sat Oct 14 10:45:10 2023 +0300
[fix][ci] Fix docker image building by releasing more disk space before building (#21365)
---
.github/actions/clean-disk/action.yml | 2 +-
.github/workflows/pulsar-ci.yaml | 12 ++++++++++++
2 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/.github/actions/clean-disk/action.yml b/.github/actions/clean-disk/action.yml
index 8bcc5f13968..d74c3f25fc6 100644
--- a/.github/actions/clean-disk/action.yml
+++ b/.github/actions/clean-disk/action.yml
@@ -31,7 +31,7 @@ runs:
directories=(/usr/local/lib/android /opt/ghc)
if [[ "${{ inputs.mode }}" == "full" ]]; then
# remove these directories only when mode is 'full'
- directories+=(/usr/share/dotnet)
+ directories+=(/usr/share/dotnet /opt/hostedtoolcache/CodeQL)
fi
emptydir=/tmp/empty$$/
mkdir $emptydir
diff --git a/.github/workflows/pulsar-ci.yaml b/.github/workflows/pulsar-ci.yaml
index 64b85cb14c5..e067e42f43c 100644
--- a/.github/workflows/pulsar-ci.yaml
+++ b/.github/workflows/pulsar-ci.yaml
@@ -746,6 +746,8 @@ jobs:
- name: Clean Disk
uses: ./.github/actions/clean-disk
+ with:
+ mode: full
- name: Cache local Maven repository
uses: actions/cache@v3
@@ -861,6 +863,7 @@ jobs:
- name: Pulsar IO
group: PULSAR_IO
+ clean_disk: true
- name: Sql
group: SQL
@@ -872,6 +875,10 @@ jobs:
- name: Tune Runner VM
uses: ./.github/actions/tune-runner-vm
+ - name: Clean Disk when needed
+ if: ${{ matrix.clean_disk }}
+ uses: ./.github/actions/clean-disk
+
- name: Setup ssh access to build runner VM
# ssh access is enabled for builds in own forks
if: ${{ github.repository != 'apache/pulsar' && github.event_name == 'pull_request' }}
@@ -1072,6 +1079,7 @@ jobs:
- name: Pulsar IO - Oracle
group: PULSAR_IO_ORA
+ clean_disk: true
steps:
- name: checkout
@@ -1080,6 +1088,10 @@ jobs:
- name: Tune Runner VM
uses: ./.github/actions/tune-runner-vm
+ - name: Clean Disk when needed
+ if: ${{ matrix.clean_disk }}
+ uses: ./.github/actions/clean-disk
+
- name: Setup ssh access to build runner VM
# ssh access is enabled for builds in own forks
if: ${{ github.repository != 'apache/pulsar' && github.event_name == 'pull_request' }}