-
Notifications
You must be signed in to change notification settings - Fork 119
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
hyperlink generates invalid URLs via hypothesis which sometimes causes our tests to fail #561
Comments
The bug in Hyperlink is here: python-hyper/hyperlink#153 |
We should really just stop using hypothesis. I don't think it's providing any value and these constant intermittent failures are definitely not worth whatever issues it is supposedly addressing. |
If the idea is "who cares about bugs in the URL parser, just let it be broken", then the Hypothesis strategy can be adjusted to avoid those cases. |
There's no URL parser in this project. If you look at the traceback, it's entirely in Hyperlink and Hypothesis, so the bug should be dealt with over there. But Hypothesis is used in a few other places too, making the tests pointlessly slow (it specifically sets up a "patient" strategy so it can be extra slow) and feeding tons of test highly variable data into things that aren't parsing it and don't have any interesting branches around its inputs. If hyperlink is using hypothesis to good effect, then great, it's a parser, it benefits from this type of testing. But at best we are just replicating the work of testing it in this CI, which is not helpful. I'm going to put in a simple stub module so the tests themselves remain somewhat compatibly parameterized if anyone cares to put it back. |
Also I don't know if it's doing a great job validating Hyperlink right now… python-hyper/hyperlink#181 |
Also, to be clear, the bug here is that |
for example: https://github.com/twisted/klein/runs/6682625798?check_suite_focus=true
The text was updated successfully, but these errors were encountered: