Skip to content

Commit b2a132d

Browse files
authored
Add wrapper workflow for github checkout retries (flagos-ai#3033)
1 parent 4e497bf commit b2a132d

6 files changed

Lines changed: 31 additions & 19 deletions

File tree

.github/workflows/backend-test.yaml

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -51,19 +51,12 @@ jobs:
5151
op-test-${{ inputs.vendor }}-${{ github.event.pull_request.number || github.ref }}
5252
cancel-in-progress: true
5353
steps:
54-
# - name: Set global proxy
55-
# shell: bash
56-
# env:
57-
# RUNNER_LABEL: ${{ inputs.runner_label }}
58-
# PROXY: ${{ secrets.PROXYG }}
59-
# run: |
60-
# if [[ "${RUNNER_LABEL}" != "h20" ]]; then
61-
# echo "HTTP_PROXY=${PROXY}" >> $GITHUB_ENV
62-
# echo "HTTPS_PROXY=${PROXY}" >> $GITHUB_ENV
63-
# fi
64-
- uses: actions/checkout@v6
65-
# with:
66-
# ssh-key: ${{ secrets.RUNNER_SSH_KEY }}
54+
- uses: Wandalen/wretry.action@v3.8.0
55+
with:
56+
action: actions/checkout@v6
57+
attempt_limit: 5
58+
# with:
59+
# ssh-key: ${{ secrets.RUNNER_SSH_KEY }}
6760
- name: Setup FlagGems
6861
shell: bash
6962
env:

.github/workflows/command.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,10 @@ jobs:
5151
with:
5252
version: 2.92.0
5353
- id: checkout-repo
54-
uses: actions/checkout@v6
54+
uses: Wandalen/wretry.action@v3.8.0
55+
with:
56+
action: actions/checkout@v6
57+
attempt_limit: 5
5558
- id: checkout-pr
5659
env:
5760
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/cpp-op-test.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ jobs:
1010
test:
1111
runs-on: cpp
1212
steps:
13-
- uses: actions/checkout@v6
13+
- uses: Wandalen/wretry.action@3.8.0
14+
with:
15+
action: actions/checkout@v6
16+
attempt_limit: 5
1417
- shell: bash
1518
run: |
1619
CXX=/usr/bin/g++-11 CC=/usr/bin/gcc-11 SKBUILD_CMAKE_ARGS="-DFLAGGEMS_BUILD_C_EXTENSIONS=ON" pip install --no-build-isolation -v -e .

.github/workflows/daily.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,11 @@ jobs:
4343
cancel-in-progress: true
4444
runs-on: jiuding
4545
steps:
46-
- uses: actions/checkout@v6
46+
- uses: Wandalen/wretry.action@v3.8.0
47+
with:
48+
action: actions/checkout@v6
49+
attempt_limit: 5
50+
attempt_delay: 5000 # in ms
4751
- run: |
4852
pip install pytest-md-report
4953
- shell: bash

.github/workflows/random-test.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,10 @@ jobs:
4848
if: needs.check-permission.outputs.authorized == 'true'
4949
runs-on: ${{ inputs.runner }}
5050
steps:
51-
- uses: actions/checkout@v6
51+
- uses: Wandalen/wretry.action@v3.8.0
52+
with:
53+
action: actions/checkout@v6
54+
attempt_limit: 5
5255
- name: Setup FlagGems
5356
shell: bash
5457
env:

.github/workflows/unittest.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,10 @@ jobs:
7878
cancel-in-progress: true
7979
runs-on: jiuding
8080
steps:
81-
- uses: actions/checkout@v6
81+
- uses: Wandalen/wretry.action@v3.8.0
82+
with:
83+
action: actions/checkout@v6
84+
attempt_limit: 5
8285
- shell: bash
8386
run: tools/gpu_check.sh
8487
- shell: bash
@@ -95,7 +98,10 @@ jobs:
9598
cancel-in-progress: true
9699
runs-on: jiuding
97100
steps:
98-
- uses: actions/checkout@v6
101+
- uses: Wandalen/wretry.action@v3.8.0
102+
with:
103+
action: actions/checkout@v6
104+
attempt_limit: 5
99105
- shell: bash
100106
run: tools/gpu_check.sh
101107
- shell: bash

0 commit comments

Comments
 (0)