Skip to content

Detect and mitigate Cloudflare blocking on link testing#1253

Merged
chrisarridge merged 2 commits into
livefrom
ca/fix-tests-links-for-cloudflare
May 20, 2026
Merged

Detect and mitigate Cloudflare blocking on link testing#1253
chrisarridge merged 2 commits into
livefrom
ca/fix-tests-links-for-cloudflare

Conversation

@chrisarridge
Copy link
Copy Markdown
Contributor

This PR implements a small fix to try to detect and mitigate against link checking tests failing because they are being blocked by Cloudflare.

…lare

This commit attempts to resolve link tests failing due to blocking by
Cloudflare.  If a link check fails with 403 then the request is tried
again after a delay, and if it still fails with 403 the response is
interrogated to see if it has come from Cloudflare.  If so, a warning
is printed and the test for that link is allowed to pass.
@chrisarridge chrisarridge requested a review from BibianaC May 20, 2026 08:42
@coveralls
Copy link
Copy Markdown

Coverage Report for CI Build 26151514502

Coverage remained the same at 72.329%

Details

  • Coverage remained the same as the base build.
  • Patch coverage: No coverable lines changed in this PR.
  • No coverage regressions found.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

No coverage regressions found.


Coverage Stats

Coverage Status
Relevant Lines: 1984
Covered Lines: 1435
Line Coverage: 72.33%
Coverage Strength: 0.72 hits per line

💛 - Coveralls

@chrisarridge chrisarridge merged commit a3463c1 into live May 20, 2026
6 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.

3 participants