Skip to content

docs: Skip markdown link check on github.com links - #4474

Merged
Fokko merged 2 commits into
apache:mainfrom
rambleraptor:disable-github-link-checks
Nov 24, 2026
Merged

Fokko merged 2 commits into
apache:mainfrom
rambleraptor:disable-github-link-checks

Conversation

@rambleraptor

Copy link
Copy Markdown
Collaborator

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?

github.com intermittently returns 503s to the link checker, failing CI
on unrelated PRs.

@Fokko Fokko left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.
@rambleraptor

Copy link
Copy Markdown
Collaborator Author

@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.

@rambleraptor
rambleraptor requested a review from Fokko November 24, 2026 18:11

@Fokko Fokko left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @rambleraptor! Nice clean solution, much better than sprinkling ignore comments over every file :)

Checked a few things:

  • config-file matches the tcort action input and ignorePatterns with a regex pattern is valid markdown-link-check config
  • Non-github.com links on the same line are still checked, so we keep coverage where it matters
  • The rat exclude in dev/.rat-excludes is correct since the file has no license header

CI is green, including the link check itself with the new config. LGTM!

@rambleraptor

Copy link
Copy Markdown
Collaborator Author

Thanks a lot @Fokko! Anything else I should do before we get this merged in?

@Fokko

Fokko commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

@rambleraptor Nothing, this looks great! Thanks 🙌

@Fokko
Fokko added this pull request to the merge queue Nov 24, 2026
Merged via the queue into apache:main with commit c5a39b5 Nov 24, 2026
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants