This is an automated email from the ASF dual-hosted git repository.
zhengruifeng pushed a commit to branch branch-4.1
in repository https://gitbox.apache.org/repos/asf/spark.git
The following commit(s) were added to refs/heads/branch-4.1 by this push:
new 5d8d348466cf [SPARK-58871][INFRA] Add timeout to disk cleanup steps
5d8d348466cf is described below
commit 5d8d348466cf0a6a1ce864356b4837e80f153a21
Author: Ruifeng Zheng <[email protected]>
AuthorDate: Thu Aug 20 08:11:56 2026 +0800
[SPARK-58871][INFRA] Add timeout to disk cleanup steps
### What changes were proposed in this pull request?
This PR adds a 10-minute timeout and `continue-on-error: true` to the
`Free up disk space` steps in the GitHub Actions build workflow.
JIRA: SPARK-58871
### Why are the changes needed?
The disk cleanup step is an optimization. If it hangs, the job can spend its
entire timeout before reaching setup or tests. Continuing after the cleanup
step times out lets CI proceed with a higher disk space risk instead of
cancelling the whole job during cleanup.
For example, this CI job was cancelled while running the disk cleanup step:
https://github.com/zhengruifeng/spark/actions/runs/32230206211/job/96008694804
### Does this PR introduce _any_ user-facing change?
No.
### How was this patch tested?
Not run. This is a GitHub Actions workflow-only change.
### Was this patch authored or co-authored using generative AI tooling?
Generated-by: Codex (GPT-5)
Closes #58121 from zhengruifeng/minor-free-disk-space-timeout.
Authored-by: Ruifeng Zheng <[email protected]>
Signed-off-by: Ruifeng Zheng <[email protected]>
(cherry picked from commit d8403fef8f6f3a56f1939adf38f4e83cf8a842cd)
Signed-off-by: Ruifeng Zheng <[email protected]>
---
.github/workflows/build_and_test.yml | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/.github/workflows/build_and_test.yml
b/.github/workflows/build_and_test.yml
index cc9a14b98865..f6f5ce9ed0d6 100644
--- a/.github/workflows/build_and_test.yml
+++ b/.github/workflows/build_and_test.yml
@@ -342,6 +342,8 @@ jobs:
${{ runner.os }}-${{ matrix.java }}-${{ matrix.hadoop }}-coursier-
${{ runner.os }}-coursier-
- name: Free up disk space
+ timeout-minutes: 10
+ continue-on-error: true
run: |
if [ -f ./dev/free_disk_space ]; then
./dev/free_disk_space
@@ -688,6 +690,8 @@ jobs:
restore-keys: |
${{ runner.os }}-coursier-
- name: Free up disk space
+ timeout-minutes: 10
+ continue-on-error: true
shell: 'script -q -e -c "bash {0}"'
run: ./dev/free_disk_space_container
- name: Install Java ${{ matrix.java }}
@@ -824,6 +828,8 @@ jobs:
restore-keys: |
${{ runner.os }}-coursier-
- name: Free up disk space
+ timeout-minutes: 10
+ continue-on-error: true
run: ./dev/free_disk_space_container
- name: Install Java ${{ inputs.java }}
uses: actions/setup-java@v4
@@ -967,6 +973,8 @@ jobs:
restore-keys: |
docs-maven-
- name: Free up disk space
+ timeout-minutes: 10
+ continue-on-error: true
run: ./dev/free_disk_space_container
- name: Install Java ${{ inputs.java }}
uses: actions/setup-java@v4
@@ -1149,6 +1157,8 @@ jobs:
restore-keys: |
docs-maven-
- name: Free up disk space
+ timeout-minutes: 10
+ continue-on-error: true
run: ./dev/free_disk_space_container
- name: Install Java ${{ inputs.java }}
uses: actions/setup-java@v4
@@ -1481,6 +1491,8 @@ jobs:
restore-keys: |
${{ runner.os }}-coursier-
- name: Free up disk space
+ timeout-minutes: 10
+ continue-on-error: true
run: |
if [ -f ./dev/free_disk_space ]; then
./dev/free_disk_space
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]