-
-
Notifications
You must be signed in to change notification settings - Fork 31.7k
Test failures when hypothesis is available but cannot reach GitHub #132316
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thanks for the report! Working on it. |
If it's useful, GitHub Actions also sets a
|
Docs right now state: https://hypothesis.readthedocs.io/en/latest/reference/api.html#hypothesis.database.GitHubArtifactDatabase
We need {
"message":"API rate limit exceeded for YOUR_API. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)",
"documentation_url":"https://docs.github.com/rest/overview/resources-in-the-rest-api#rate-limiting"
} |
…ubArtifactDatabase`
…factDatabase` (#132348) Co-authored-by: Hugo van Kemenade <[email protected]>
Thanks both for the report and the PR! |
Thank you for the fix! I verified that with this patch all the previously failing tests pass again. |
…ubArtifactDatabase` (pythonGH-132348) (cherry picked from commit fcf2d07) Co-authored-by: sobolevn <[email protected]> Co-authored-by: Hugo van Kemenade <[email protected]>
…HubArtifactDatabase` (GH-132348) (#132367) gh-132316: Require `socket` and `GITHUB_TOKEN` env to use `GitHubArtifactDatabase` (GH-132348) (cherry picked from commit fcf2d07) Co-authored-by: sobolevn <[email protected]> Co-authored-by: Hugo van Kemenade <[email protected]>
…ubArtifactDatabase` (python#132348) Co-authored-by: Hugo van Kemenade <[email protected]>
Bug report
Bug description:
Hi, we recently started seeing several tests (namely
test_binascii
,test_math_property
,test_tools
andtest_zoneinfo
) to fail due to hypothesis warnings (which were recently turned into errors with #131802):or alternatively with
when I restrict the access to the internet.
I see that running with
"CI"
set in the environment fixes the issue as the problematic profile withGitHubArtifactDatabase
is not registered, but that seems more like a lucky workaround.I am not sure about the solution - maybe it can check whether
"GITHUB_TOKEN"
is also available? Or maybe the warning should be ignored and not cause the tests to fail.I also think it should honor
-urlfetch
and-network
options.CPython versions tested on:
3.13
Operating systems tested on:
Other
Linked PRs
socket
andGITHUB_TOKEN
env to useGitHubArtifactDatabase
#132348socket
andGITHUB_TOKEN
env to useGitHubArtifactDatabase
(GH-132348) #132367The text was updated successfully, but these errors were encountered: