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

kou pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow.git


The following commit(s) were added to refs/heads/main by this push:
     new 38d37b46d1 GH-43075: [CI][Crossbow][Docker] Set timeout for 
docker-tests (#43078)
38d37b46d1 is described below

commit 38d37b46d1b9bd49c134f5a56f9fb1e9ddca7b3d
Author: Sutou Kouhei <[email protected]>
AuthorDate: Mon Jul 8 06:28:30 2024 +0900

    GH-43075: [CI][Crossbow][Docker] Set timeout for docker-tests (#43078)
    
    ### Rationale for this change
    
    If we don't have timeout and a test gets stuck, the job takes 6 hours.
    
    ### What changes are included in this PR?
    
    Set timeout.
    
    ### Are these changes tested?
    
    Yes.
    
    ### Are there any user-facing changes?
    
    No.
    * GitHub Issue: #43075
    
    Authored-by: Sutou Kouhei <[email protected]>
    Signed-off-by: Sutou Kouhei <[email protected]>
---
 dev/tasks/docker-tests/github.cuda.yml  | 3 ++-
 dev/tasks/docker-tests/github.linux.yml | 1 +
 dev/tasks/tasks.yml                     | 4 +++-
 3 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/dev/tasks/docker-tests/github.cuda.yml 
b/dev/tasks/docker-tests/github.cuda.yml
index b1b21c3e66..3087904292 100644
--- a/dev/tasks/docker-tests/github.cuda.yml
+++ b/dev/tasks/docker-tests/github.cuda.yml
@@ -23,8 +23,9 @@ jobs:
   test:
     name: |
       Docker Test {{ flags|default("") }} {{ image }} {{ command|default("") }}
-    runs-on: ['self-hosted', 'cuda'] 
+    runs-on: ['self-hosted', 'cuda']
 {{ macros.github_set_env(env) }}
+    timeout-minutes: {{ timeout|default(60) }}
     steps:
       {{ 
macros.github_checkout_arrow(fetch_depth=fetch_depth|default(1))|indent }}
       # python 3.8 is installed on the runner, no need to install
diff --git a/dev/tasks/docker-tests/github.linux.yml 
b/dev/tasks/docker-tests/github.linux.yml
index 13e00abc70..697960360c 100644
--- a/dev/tasks/docker-tests/github.linux.yml
+++ b/dev/tasks/docker-tests/github.linux.yml
@@ -25,6 +25,7 @@ jobs:
       Docker Test {{ flags|default("") }} {{ image }} {{ command|default("") }}
     runs-on: ubuntu-latest
 {{ macros.github_set_env(env) }}
+    timeout-minutes: {{ timeout|default(60) }}
     steps:
       {{ 
macros.github_checkout_arrow(fetch_depth=fetch_depth|default(1))|indent }}
       {{ macros.github_free_space()|indent }}
diff --git a/dev/tasks/tasks.yml b/dev/tasks/tasks.yml
index 7a86fd3e3e..45417acf85 100644
--- a/dev/tasks/tasks.yml
+++ b/dev/tasks/tasks.yml
@@ -1280,6 +1280,7 @@ tasks:
       env:
         ARROW_R_DEV: "TRUE"
       image: ubuntu-r-valgrind
+      timeout: 300 # 5 hours
 
   test-r-linux-rchk:
     ci: github
@@ -1564,10 +1565,11 @@ tasks:
         TEST_PYARROW_ONLY: "{{ test_pyarrow_only }}"
         NUMPY: "{{ numpy_version }}"
         JDK: "{{ jdk_version }}"
+      fetch_depth: 0
       # use the branch-3.0 of spark, so prevent reusing any layers
       flags: --no-leaf-cache
       image: conda-python-spark
-      fetch_depth: 0
+      timeout: 90
 {% endfor %}
 
 {% for kind in ["static", "static-system-dependency"] %}

Reply via email to