-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
test(python,rust): Refactor failing test #9823
Conversation
polars/polars-lazy/polars-plan/src/logical_plan/optimizer/type_coercion/mod.rs
Show resolved
Hide resolved
e5ea614
to
4cacf4d
Compare
Out of curiousity? How does that solve the failing test? Was there a race condition? |
Not sure if this will fix it. But generally running multiple tests in one test function makes things a bit more unstable. While this might not help, at least the test will be factored a bit better. What we really need is some way to control where the disk spill happens, and make sure things are written to a properly controlled temporary directory. Can we configure disk spill somehow? |
I think it can be race conditions now that I think of it. The ooc sort/groupby runs a garbage collection job that deletes previous runs. Can we force those tests to not run in parallel? |
Right, so one runner might delete data on disk that a test on another runner relies on. Sure, we can have all streaming tests on one runner. Let me figure out how to configure that nicely. |
4cacf4d
to
95fe580
Compare
This should do it. Place your OOC tests in the |
@ritchie46 The tests now run sequentially on a single worker, but it only made things worse 😕 now other tests are failing as well. Looks like there might be a deeper issue with the garbage collection, or something else that causes subsequent streaming operations to fail? |
Alright, let's leave it for now. I can take a look at this later. |
95fe580
to
9701c55
Compare
Sure. I'll merge the initial refactor part, we can address the underlying issues later - I'll open a draft PR for that. |
Related to #9122
Changes:
and run all OOC tests on one worker.