ci: switch dead link checker from wget to lychee - #2501
Merged
Conversation
|
Hey Brendan Walsh (@BrendanWalsh) 👋! We use semantic commit messages to streamline the release process. Examples of commit messages with semantic prefixes:
To test your commit locally, please follow our guild on building from source. |
Brendan Walsh (BrendanWalsh)
force-pushed
the
brwals/lychee-link-checker
branch
from
February 14, 2026 00:15
5dee3cf to
59a11a5
Compare
The wget --spider --recursive approach was causing ~7% flaky failures because it blasts 1500+ requests without rate limiting, triggering GitHub Pages transient errors. Every 'broken' link actually returns 200 when tested individually. Lychee provides: - Controlled concurrency (8 parallel requests) - Retry with backoff (5 retries, 5s wait) - Proper timeout handling (30s per request) - Structured output and better error reporting - Purpose-built for link checking (vs wget which is a downloader)
Brendan Walsh (BrendanWalsh)
force-pushed
the
brwals/lychee-link-checker
branch
from
February 14, 2026 00:18
59a11a5 to
36db9d0
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related Issues/PRs
Fixes flaky Check Dead Links GitHub Action (~7% failure rate since Dec 2025).
What changes were proposed in this pull request?
Replaces
wget --spider --recursivewith lychee, a purpose-built link checker.Root cause of flakiness:
wgetblasts 1500+ requests without rate limiting, triggering transient GitHub Pages errors. Every "broken" link reported by CI actually returns HTTP 200 when tested individually. The check found 7 different "broken" URLs across 7 failures — all different, all actually working.Why lychee:
How was this patch tested?
Does this PR introduce any user-facing change?
No