Skip to content

Commit 40fa779

Browse files
justin808claude
andcommitted
Add retry logic for transient HTTP errors in markdown link checker
Configure markdown-link-check to retry on transient server errors (500, 502, 503, 504) in addition to rate limit errors (429). This prevents CI failures from flaky external links that temporarily return 502 Bad Gateway or similar intermittent errors. Changes: - Increase retryCount from 3 to 5 for better resilience - Add explicit retry configuration with 10-second delays between attempts - Configure retries for HTTP status codes: 429, 500, 502, 503, 504 This should resolve the flaky test failures where external links like https://github.com/shakacode/react_on_rails_demo_ssr_hmr occasionally return 502 errors. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 1a84b4a commit 40fa779

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/markdown-link-check-config.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,12 @@
4141
],
4242
"timeout": "20s",
4343
"retryOn429": true,
44-
"retryCount": 3,
44+
"retryCount": 5,
4545
"fallbackRetryDelay": "30s",
46-
"aliveStatusCodes": [200, 206]
46+
"aliveStatusCodes": [200, 206],
47+
"retry": {
48+
"maxRetries": 5,
49+
"retryAfterMs": 10000,
50+
"retryOn": [429, 500, 502, 503, 504]
51+
}
4752
}

0 commit comments

Comments
 (0)