Skip to content

Commit

Permalink
apacheGH-43075: [CI][Crossbow][Docker] Set timeout for docker-tests (a…
Browse files Browse the repository at this point in the history
…pache#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: apache#43075

Authored-by: Sutou Kouhei <[email protected]>
Signed-off-by: Sutou Kouhei <[email protected]>
  • Loading branch information
kou authored and zanmato1984 committed Jul 9, 2024
1 parent 74482a3 commit 03f5d88
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion dev/tasks/docker-tests/github.cuda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions dev/tasks/docker-tests/github.linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
4 changes: 3 additions & 1 deletion dev/tasks/tasks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1280,6 +1280,7 @@ tasks:
env:
ARROW_R_DEV: "TRUE"
image: ubuntu-r-valgrind
timeout: 300 # 5 hours

test-r-linux-rchk:
ci: github
Expand Down Expand Up @@ -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"] %}
Expand Down

0 comments on commit 03f5d88

Please sign in to comment.