Skip to content

Commit 27eaee5

Browse files
authored
add workflow to auto-retry main and release branches (#5851)
1 parent 994323d commit 27eaee5

13 files changed

+35
-24
lines changed

.github/workflows/all-green.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ on:
66
- master
77
schedule:
88
- cron: 0 4 * * *
9-
- cron: 20 4 * * *
10-
- cron: 40 4 * * *
119

1210
concurrency:
1311
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
@@ -23,5 +21,6 @@ jobs:
2321
steps:
2422
- uses: wechuli/allcheckspassed@e22f45a4f25f4cf821d1273705ac233355400db1 # v1.2.0
2523
with:
26-
retries: 20 # once per minute, some checks take up to 15 min
24+
retries: 30 # once per minute, some checks take up to 15 min, retries are possible
2725
checks_exclude: devflow.*
26+
fail_fast: false

.github/workflows/apm-capabilities.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ on:
66
branches: [master]
77
schedule:
88
- cron: 0 4 * * *
9-
- cron: 20 4 * * *
10-
- cron: 40 4 * * *
119

1210
concurrency:
1311
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}

.github/workflows/apm-integrations.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ on:
66
branches: [master]
77
schedule:
88
- cron: 0 4 * * *
9-
- cron: 20 4 * * *
10-
- cron: 40 4 * * *
119

1210
concurrency:
1311
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}

.github/workflows/appsec.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ on:
66
branches: [master]
77
schedule:
88
- cron: 0 4 * * *
9-
- cron: 20 4 * * *
10-
- cron: 40 4 * * *
119

1210
concurrency:
1311
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}

.github/workflows/debugger.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ on:
66
branches: [master]
77
schedule:
88
- cron: 0 4 * * *
9-
- cron: 20 4 * * *
10-
- cron: 40 4 * * *
119

1210
concurrency:
1311
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}

.github/workflows/lambda.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ on:
66
branches: [master]
77
schedule:
88
- cron: 0 4 * * *
9-
- cron: 20 4 * * *
10-
- cron: 40 4 * * *
119

1210
concurrency:
1311
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}

.github/workflows/llmobs.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ on:
66
branches: [master]
77
schedule:
88
- cron: 0 4 * * *
9-
- cron: 20 4 * * *
10-
- cron: 40 4 * * *
119

1210
concurrency:
1311
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}

.github/workflows/platform.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ on:
66
branches: [master]
77
schedule:
88
- cron: 0 4 * * *
9-
- cron: 20 4 * * *
10-
- cron: 40 4 * * *
119

1210
concurrency:
1311
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}

.github/workflows/profiling.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ on:
66
branches: [master]
77
schedule:
88
- cron: 0 4 * * *
9-
- cron: 20 4 * * *
10-
- cron: 40 4 * * *
119

1210
concurrency:
1311
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}

.github/workflows/retry.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Retry
2+
3+
on:
4+
workflow_run:
5+
branches:
6+
- master
7+
- v[0-9]+.[0-9]+.[0-9]+-proposal
8+
- v[0-9]+.x
9+
types:
10+
- completed
11+
workflows:
12+
- APM Capabilities
13+
- APM Integrations
14+
- AppSec
15+
- Debugger
16+
- LLMObs
17+
- Project
18+
- Platform
19+
- Test Optimization
20+
21+
jobs:
22+
retry:
23+
runs-on: ubuntu-latest
24+
permissions:
25+
actions: write
26+
env:
27+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28+
if: github.event.workflow_run.conclusion == 'failure' && github.event.workflow_run.run_attempt == 1
29+
steps:
30+
- run: |
31+
gh run rerun ${{ github.event.workflow_run.id }} --failed || exit 0

0 commit comments

Comments
 (0)