Skip to content

Commit 43daff8

Browse files
nos1dot618claude
andcommitted
ci: pace link checks to github.com
github.com answers a burst of requests for source pages with 503, which failed the link check on links that work. Limit lychee to two concurrent requests to it, half a second apart, and wait longer between retries. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
1 parent 50f2b88 commit 43daff8

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

‎lychee.toml‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ cache = true
1313
max_cache_age = "1d"
1414

1515
max_retries = 3
16+
retry_wait_time = 5
1617
timeout = 20
1718

1819
# 429 means rate limited, not broken.
@@ -23,3 +24,9 @@ exclude = [
2324
# deployed copy; the same pages are checked as local files instead.
2425
'^https://lambda-discipline\.github\.io',
2526
]
27+
28+
# github.com answers a burst of page requests (every example links to its
29+
# source there) with 503 Service Unavailable, so pace requests to it.
30+
[hosts."github.com"]
31+
concurrency = 2
32+
request_interval = "500ms"

0 commit comments

Comments
 (0)