Skip to content

Commit aed20e2

Browse files
committed
[SPARK-52474] Limit GHA job execution time to up to 20 minutes
### What changes were proposed in this pull request? This PR aims to limit GHA job execution time to up to 20 minutes. ### Why are the changes needed? According to the GitHub Action log on `main` branch, most CI finishes in 10 minutes. So, we can use `20` minutes as a job execution limit. This will stop abnormal executions. In those cases, we had better restart quickly. - https://github.com/apache/spark-kubernetes-operator/actions/workflows/build_and_test.yml?query=branch%3Amain ### Does this PR introduce _any_ user-facing change? No, this is a infra-only change. ### How was this patch tested? Pass the CIs. ### Was this patch authored or co-authored using generative AI tooling? No. Closes apache#244 from dongjoon-hyun/SPARK-52474. Authored-by: Dongjoon Hyun <[email protected]> Signed-off-by: Dongjoon Hyun <[email protected]>
1 parent 88d106d commit aed20e2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/build_and_test.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ jobs:
1717
license-check:
1818
name: "License Check"
1919
runs-on: ubuntu-latest
20+
timeout-minutes: 20
2021
steps:
2122
- name: Checkout repository
2223
uses: actions/checkout@v4
@@ -29,6 +30,7 @@ jobs:
2930
build-test:
3031
name: "Build Test CI"
3132
runs-on: ${{ matrix.os }}
33+
timeout-minutes: 20
3234
strategy:
3335
fail-fast: false
3436
matrix:
@@ -49,6 +51,7 @@ jobs:
4951
build-image:
5052
name: "Build Operator Image CI"
5153
runs-on: ubuntu-latest
54+
timeout-minutes: 20
5255
steps:
5356
- name: Checkout repository
5457
uses: actions/checkout@v4
@@ -65,6 +68,7 @@ jobs:
6568
k8s-integration-tests:
6669
name: "K8s Integration Tests"
6770
runs-on: ubuntu-latest
71+
timeout-minutes: 20
6872
strategy:
6973
fail-fast: false
7074
matrix:
@@ -144,6 +148,7 @@ jobs:
144148
lint:
145149
name: "Linter and documentation"
146150
runs-on: ubuntu-latest
151+
timeout-minutes: 20
147152
steps:
148153
- name: Checkout repository
149154
uses: actions/checkout@v4

0 commit comments

Comments
 (0)