This is an automated email from the ASF dual-hosted git repository.
MartijnVisser pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/flink.git
The following commit(s) were added to refs/heads/master by this push:
new 9b324ee4416 [FLINK-39884][ci] Run free_disk_space.sh in the GitHub
Actions e2e jobs
9b324ee4416 is described below
commit 9b324ee441661d6c0684f07ed3b1d36d00a043fc
Author: Martijn Visser <[email protected]>
AuthorDate: Wed Jun 10 00:19:58 2026 +0200
[FLINK-39884][ci] Run free_disk_space.sh in the GitHub Actions e2e jobs
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)
---
.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 78890a978e9..94f64f06ed6 100644
--- a/.github/workflows/template.flink-ci.yml
+++ b/.github/workflows/template.flink-ci.yml
@@ -357,6 +357,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