-
-
Notifications
You must be signed in to change notification settings - Fork 27
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
Add custom serialization check to assert_eq
#331
Conversation
Would you want to see this merged in with this cost difference? This seems significant to me, and this check seems useful, but not super-important. Do you have thoughts here? |
This pytest runtime regression is the main reason the PR is marked as draft. I would be much happier if we were adding the equivalent of a few tests rather than ~40 new tests. It may make sense to "opt in" to the serialization test in a few places, but I'm still unsure. |
Unfortunately I think that you probably want ~40 new tests because you want this tested for every expression today, and also in the future. The |
How long is the test suite running on your machine? It take 12 seconds on mine, so 15% doesn't really matter at this point |
This is probably true.
It's also <20s on mine, so I agree that a couple seconds is not a big deal. I think the consideration here is more-so: "Are we okay with all new tests taking about 15% longer from here on out?" The answer may just be "yes". |
I'd be ok with merging this |
I also agree that the small overhead is worth the mistakes it helps us avoid :) |
thx @rjzamora |
Closes #323
This PR illustrates one possible way to test that we are not including
Expr
object instances in the result ofExpr.dask
. Note that this change helped me find and fix another bug related to #323 (groupbyVar
).I didn't think very hard about this solution, so suggestions are welcome.
Note that the tests take about 15% longer on my laptop with this change.