-
-
Notifications
You must be signed in to change notification settings - Fork 351
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
Should we expand our test suite by running some downstream projects tests in our CI? #923
Comments
Related to python-trio/pytest-trio#79, I guess. Personally I think this is a great idea in principle, and probably still a good idea in practice despite the volume of edge cases we're likely to turn up. In particular coordinating fixes for upstream tests is a nightmare. My own preference is similar to Hypothesis, where all the |
A monorepo is an interesting idea actually. But I think it's a different interesting idea than this one :-). (Maybe open a separate issue?) For this, we should ideally be testing dev versions of trio against released versions of downstream packages. That's how we answer the question: "if we release this change right now, how much breakage will our users experience?" It's great if downstreams have a fix in their dev branches, but if they aren't released then it doesn't help users much. And anyway we aren't going to keep the entire trio ecosystem inside a monorepo :-) (This comment sponsored by the prominent numpy downstream that would deal with deprecations promptly in their dev branch, but then wait years between releases.) |
Sorry, that's unclear on a re-read: I think we absolutely should pull in and test against downstream packages. I additionally propose a few things that would make that easier for our own downstreams.
Release automation! I've proposed a talk about it for the PyCon maintainer's summit 😄
😱 |
FWIW we do exactly that on pytest: we test it with downstream It has caught some regressions for us in the past, and it is a little annoying to setup. I have thought of a mono-repo using git submodules just for CI different packages together, but never actually implemented it. It would be interesting to see how something like that would work in practice. 😁 |
I'm not sure I've much to add here; I would be happy if you tested Hypercorn and Quart-Trio. I'd also like to add something to the Hypercorn & Quart-Trio CI that would alert if there is a new issue (if you have ideas...). |
Apparently trio v0.11.0 broke trio-websocket, do to a subtle interaction between our deprecation logic and the
import
statement: python-trio/trio-websocket#102I can't think of any way we could have anticipated this particular issue. I mean, besides "be smarter", but "be smarter" is not a plan. It never occurred to us that supporting the exact statement
import trio.ssl
was part of our API, or if it was, that it was a part that could break.One possible hedge against issues like this would be to have a CI job that runs the test suites for some downstream projects like
trio-websocket
, just to better align what we test versus what people use in the real world. No guarantees, but it'd give us a better chance of catching stuff like this in the future.trio-websocket is an obvious candidate for this. What else? trio-asyncio, pytest-trio? hypercorn/quart-trio? (CC @pgjones) Of course we can pick a list now and then adjust it over time.
The text was updated successfully, but these errors were encountered: