Skip to content

Commit 03c5ba6

Browse files
authored
fix: fail fast on checkout instead of waiting (#6101)
While actions/checkout#2392 is in the works we sometimes experience issue when repo checks out really slowly and it is better to fail fast and restart check than to wait for repo download for 6 hours https://www.reddit.com/r/github/comments/1tkgoiw/git_checkouts_extremely_slow_or_timing_out_from_eu/
1 parent 1ae7981 commit 03c5ba6

3 files changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/on_demand_build_and_test_ya.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ jobs:
109109
steps:
110110
- name: Checkout PR
111111
uses: actions/checkout@v6
112+
timeout-minutes: 10
112113
if: github.event.pull_request.head.sha != ''
113114
with:
114115
submodules: true
@@ -130,6 +131,7 @@ jobs:
130131
git submodule update --init --recursive
131132
- name: Checkout
132133
uses: actions/checkout@v6
134+
timeout-minutes: 10
133135
if: github.event.pull_request.head.sha == ''
134136
with:
135137
submodules: true

.github/workflows/on_hybrid_build_and_test_ya.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ jobs:
109109
steps:
110110
- name: Checkout PR
111111
uses: actions/checkout@v6
112+
timeout-minutes: 10
112113
if: github.event.pull_request.head.sha != ''
113114
with:
114115
submodules: true
@@ -130,6 +131,7 @@ jobs:
130131
git submodule update --init --recursive
131132
- name: Checkout
132133
uses: actions/checkout@v6
134+
timeout-minutes: 10
133135
if: github.event.pull_request.head.sha == ''
134136
with:
135137
submodules: true

.github/workflows/on_pooled_build_and_test_ya.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ jobs:
119119
chown -R root:root $GITHUB_WORKSPACE
120120
- name: Checkout PR
121121
uses: actions/checkout@v6
122+
timeout-minutes: 10
122123
if: github.event.pull_request.head.sha != ''
123124
with:
124125
submodules: true
@@ -140,6 +141,7 @@ jobs:
140141
git submodule update --init --recursive
141142
- name: Checkout
142143
uses: actions/checkout@v6
144+
timeout-minutes: 10
143145
if: github.event.pull_request.head.sha == ''
144146
with:
145147
submodules: true
@@ -331,6 +333,7 @@ jobs:
331333
chown -R root:root $GITHUB_WORKSPACE
332334
- name: Checkout PR
333335
uses: actions/checkout@v6
336+
timeout-minutes: 10
334337
if: github.event.pull_request.head.sha != ''
335338
with:
336339
submodules: true
@@ -352,6 +355,7 @@ jobs:
352355
git submodule update --init --recursive
353356
- name: Checkout
354357
uses: actions/checkout@v6
358+
timeout-minutes: 10
355359
if: github.event.pull_request.head.sha == ''
356360
with:
357361
submodules: true

0 commit comments

Comments
 (0)