-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Address intermittently failing tests #9122
Comments
Ok, I looked into the if_err = f"Possible import speed regression; took {total_import_time//1_000}ms"
assert total_import_time < 200_000, f"{if_err}\n{df_import}" The total import time was taking too long. The test runs the following:
And looking at the output, we have this:
The
So, for our import test, I believe we should use the |
I'm going to make a separate issue for the first test since I have a PR to fix it and don't want to close this whole issue. |
It is allowed to fail. It serves as a safeguard against import time regressions and there will be volatility. |
@ritchie46 the import time test is also testing the time it takes to import additional python modules; we should probably only look at the polars import time, no? It looks like we're getting false positives due to other modules taking longer than expected. |
I think the solution @mcrumiller is working on reduces volatility, which would be welcome. Right now the false positive rate is too high - I just mindlessly rerun it without being worried about import times. So it's just noise right now. |
Yeah, this may take a little bit more research. I *think* the results from Let me look a bit into this more and hopefully something will resolve. |
I can address |
@alexander-beedie I think the issue is that it's failing a lot more in CI than locally, at least that's what I've noticed. Might also be having a wailing fast machine helps... |
I think I know how to address the groupby one. It looks like the culprit are those temporary directories. Let's try to use pytest's tmp_path and see if that resolves some of our issues. I will pick this up later. |
Ah, looks like the That begs the question: where does this test write its data? Can we control where this is written somehow? The error states @ritchie46 could you point me in the right direction here? |
Because it test out-of-core. The algorithm spills to disk when we run out of memory. Here we force it to take that code path. |
There are some tests that fail occasionally:
We should look into these to fix them, or skip them temporarily.
The text was updated successfully, but these errors were encountered: