This is an automated email from the ASF dual-hosted git repository.

zhengruifeng pushed a commit to branch branch-4.x
in repository https://gitbox.apache.org/repos/asf/spark.git


The following commit(s) were added to refs/heads/branch-4.x by this push:
     new 6afa55bb45e7 [SPARK-58871][INFRA] Add timeout to disk cleanup steps
6afa55bb45e7 is described below

commit 6afa55bb45e759efdcaf78733e01993d8a19e0ba
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 f8064b04cd2e..08451e3d8ff4 100644
--- a/.github/workflows/build_and_test.yml
+++ b/.github/workflows/build_and_test.yml
@@ -374,6 +374,8 @@ jobs:
           coursier-${{ runner.os }}-${{ matrix.java }}-${{ matrix.hadoop }}-
           coursier-${{ runner.os }}-
     - name: Free up disk space
+      timeout-minutes: 10
+      continue-on-error: true
       run: |
         if [ -f ./dev/free_disk_space ]; then
           ./dev/free_disk_space
@@ -727,6 +729,8 @@ jobs:
         restore-keys: |
           coursier-${{ runner.os }}-
     - 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 }}
@@ -907,6 +911,8 @@ jobs:
         restore-keys: |
           coursier-${{ runner.os }}-
     - 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@v5
@@ -1103,6 +1109,8 @@ jobs:
         restore-keys: |
           docs-maven-${{ runner.os }}-
     - 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@v5
@@ -1237,6 +1245,8 @@ jobs:
         restore-keys: |
           docs-maven-${{ runner.os }}-
     - 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@v5
@@ -1546,6 +1556,8 @@ jobs:
           restore-keys: |
             coursier-${{ runner.os }}-
       - 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]

Reply via email to