Repository navigation
docs: Skip markdown link check on github.com links - #4474
rambleraptor wants to merge 2 commits into
Conversation
github.com intermittently returns 503s to the link checker, failing CI on unrelated PRs.
Fokko
left a comment
There was a problem hiding this comment.
Thanks @rambleraptor! Nice, this should cut down on the flaky link checks :)
Small observation: the title says github.com links, but a few of the disabled lines are not github.com, e.g. the dev mailing list and Slack link in community.md, the Apache dist links in how-to-release.md, and the gist in the GPG section. Might be worth renaming the PR, or narrowing the disables to just the flaky ones if those apache.org links are actually stable.
Nit: an alternative could be a single .markdown-link-check.json with ignorePatterns for https://github\.com/.*, which would avoid sprinkling comments through all the docs. Either way works though. Also open to just running the link check at release time as you suggest, that seems reasonable too.
Replace the per-line disable comments with a single ignorePattern, so new github.com links are covered without annotations and neighboring non-GitHub links on the same line are still checked.
|
@Fokko yep, I see that. We have lines that share both Github and non-GitHub links, so the linter doesn't have a way to just turn off one. Adding the config file is much cleaner. Made that change. |
Rationale for this change
I've had a number of PRs where the Markdown link checker flakes on some number of github.com links. I'm wondering if there's value in checking those links for every PR.
This PR adds disables on every github.com link. If we don't like this, it might be worth just making this link check happen at release time.
Are these changes tested?
Expect linters to pass.
Are there any user-facing changes?