This is an automated email from the ASF dual-hosted git repository.
lihaosky pushed a commit to branch release-2.3
in repository https://gitbox.apache.org/repos/asf/flink.git
The following commit(s) were added to refs/heads/release-2.3 by this push:
new 82cc7f21393 [FLINK-39884][ci] Run free_disk_space.sh in the GitHub
Actions e2e jobs (#28412)
82cc7f21393 is described below
commit 82cc7f2139342244e2a38bba06d71a935e3e6504
Author: Yuepeng Pan <[email protected]>
AuthorDate: Sun Jun 14 03:10:44 2026 +0800
[FLINK-39884][ci] Run free_disk_space.sh in the GitHub Actions e2e jobs
(#28412)
Ports the Azure Pipelines disk cleanup to GitHub Actions. The e2e jobs
run directly on the ubuntu-24.04 runner (not in a container), where the
e2e tests download and generate more than 17GB of files. The existing
job_init cleanup only removed the Android SDK, CodeQL and .NET; the
free_disk_space.sh script frees roughly 34GB on the same runner image.
The script is opt-in via a new job_init input because the compile and
test jobs run inside the CI container, where the runner's disk cannot
be cleaned up.
Generated-by: Claude Code (Fable 5)
(cherry picked from commit 9b324ee441661d6c0684f07ed3b1d36d00a043fc)
Co-authored-by: Martijn Visser
<[email protected]>
---
.github/actions/job_init/action.yml | 10 ++++++++++
.github/workflows/template.flink-ci.yml | 3 +++
2 files changed, 13 insertions(+)
diff --git a/.github/actions/job_init/action.yml
b/.github/actions/job_init/action.yml
index 921af788883..a56238be3c6 100644
--- a/.github/actions/job_init/action.yml
+++ b/.github/actions/job_init/action.yml
@@ -34,6 +34,10 @@ inputs:
description: "Specifies the directory to which the code should be moved to
(needed for containerized runs; not setting this parameter will omit moving the
checkout)."
required: false
default: ""
+ free_disk_space:
+ description: "Runs tools/azure-pipelines/free_disk_space.sh to remove
unneeded pre-installed software from the runner (only works for jobs that run
directly on the host, not in a container)."
+ required: false
+ default: "false"
runs:
using: "composite"
steps:
@@ -48,7 +52,13 @@ runs:
shell: bash
run: df -h
+ - name: "Free up disk space"
+ if: ${{ inputs.free_disk_space == 'true' }}
+ shell: bash
+ run: ./tools/azure-pipelines/free_disk_space.sh
+
- name: "Delete unused binaries"
+ if: ${{ inputs.free_disk_space != 'true' }}
shell: bash
run: |
# inspired by https://github.com/easimon/maximize-build-space
diff --git a/.github/workflows/template.flink-ci.yml
b/.github/workflows/template.flink-ci.yml
index 84d9c848b17..016dfd2476d 100644
--- a/.github/workflows/template.flink-ci.yml
+++ b/.github/workflows/template.flink-ci.yml
@@ -343,6 +343,9 @@ jobs:
with:
jdk_version: ${{ inputs.jdk_version }}
maven_repo_folder: ${{ env.MAVEN_REPO_FOLDER }}
+ # the e2e tests download and generate more than 17GB of files; the
e2e job runs
+ # directly on the host (not in a container), so the runner's disk
can be cleaned up
+ free_disk_space: "true"
- name: "Setup python"
uses: actions/setup-python@v6