Repository navigation
Conversation
raw.githubusercontent.com sometimes answers with '503 Server Error: Backend.max_conn reached', which failed the tests-minversion job on main. xfail on 5xx responses from GitHub, from requests and from aiohttp. Also match the rate limit messages case-insensitively: requests reports a 429 as 'Too Many Requests', which the lowercase pattern never matched.
This branch has not been deployed
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.
The
tests-minversionjob onmainfailed (job), because raw.githubusercontent.com was overloaded:The GitHub tests are meant to xfail when GitHub isn't usable, but the wrapper only recognized rate limits and missing network access. Now it also xfails on 5xx responses from GitHub, from requests (
503 Server Error: ..., older fsspec) and from aiohttp (503, message=..., newer fsspec reads raw files through the HTTP filesystem).The rate limit check is now case-insensitive too: requests reports a 429 as
429 Client Error: Too Many Requests for url, which the lowercase"too many requests for url"never matched.Checked the wrapper with real exception objects. A requests 503, an aiohttp 503 and a requests 429 from GitHub xfail. A GitHub 404, a 503 from another host, and a plain assertion error still fail.
test_github.pypasses against the live API.