Skip to content

Commit 62ac67f

Browse files
authored
reduce all green job initial delay from 15 to 3 minutes (#5380)
1 parent d93b5c3 commit 62ac67f

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/all-green.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,16 @@ jobs:
2424
# How long to wait before we start checking the job status
2525
# GitHub's API has a limit, so this helps avoid making too many calls
2626
# Note: If the job is retried, we'll check it once right away before waiting
27-
initial-delay-seconds: 900
27+
# Why 3 minutes: If a job fails, the all-green job also fails. If the original
28+
# job is retried and the all-green job is retried, the all-green job will not
29+
# see that all jobs are successful on the first invocation (since the failed
30+
# job is still running). But because we are not running the full test suite,
31+
# we do not want to wait 15 minutes to check if everything passed.
32+
initial-delay-seconds: 180
2833

2934
# How long to wait between each check
30-
max-retries: 60
35+
# Total wait time: 180s + (87 retries × 60s) = 5400s = 1.5 hours
36+
max-retries: 87
3137

3238
# Sleep time between each check (default: 60 seconds)
3339
# polling-interval-seconds: "60"

0 commit comments

Comments
 (0)