PYTHON-5847 Fix intermittent linkcheck failures due to rate-limiting#2833
Open
blink1073 wants to merge 4 commits into
Open
PYTHON-5847 Fix intermittent linkcheck failures due to rate-limiting#2833blink1073 wants to merge 4 commits into
blink1073 wants to merge 4 commits into
Conversation
…miting Set linkcheck_workers=1 to serialize requests to dochub.mongodb.org and increase linkcheck_timeout=60 to give slow redirects more room before retrying.
Member
Author
|
Draft until I rerun the link checker a few times |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Member
Author
|
Okay, it passed 4 times in a row. |
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.
PYTHON-5847
Changes in this PR
Updates
doc/conf.pyand the linkcheck CI job to reduce intermittent linkcheck failures:linkcheck_workers = 1to serialize requests to dochub.mongodb.org and avoid rate-limitinglinkcheck_timeout = 60to give slow redirects more time before retryinglinkcheck_ignore— they are now checked properly instead of skippedlinkcheck_anchors_ignore_for_urlto skip anchor validation on GitHub URLs (anchors are rendered client-side and are unreliable to check)linkcheck_request_headersto pass a GitHub token when checking GitHub links, avoiding rate-limitingGITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}to the linkcheck workflow step so the token is availableTest Plan
Run the
docs-linkcheckCI job a few times to confirm no more timeout or rate-limit failures on dochub or GitHub links.Checklist
Checklist for Author
Checklist for Reviewer