Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
TST: Remove memory leak test#27732
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
It is flaky, and our memory "limit" is pretty much arbitrary. Testingwith `tools/memleak.py` shows that memory usage generally rises and onlystabilizes close to 200 figures, while this test only does a warmup of2 figures. Waiting for equilibrium would take too long for a generaltest, so we might move this to a weekly job later.
I'd be on board with a weekly run that's not tied to PRs. After all we're not really worried about any specific threshold, just if things are growing excessively, and a weekly trend would be easy to bisect, at least compared to bug reports. Maybe it would be worth putting together a whole pythonspeed thing with benchmarks and memory usage? |
I presume the x-axis in those plots is elapsed time in seconds? I'm 👍 to removing these to stop the CI failing for now given it doesn't seem like there's an easy or quick fix to the tests, but would be worth opening an issue to discuss ways to fix these tests or add replacement memory leak tests. |
The x-axis is cycle count (so how many Figures we have created and destroyed). |
PR summary
It is flaky, and our memory "limit" is pretty much arbitrary. Testing with
tools/memleak.py
shows that memory usage generally rises and only stabilizes close to 200 figures, while this test only does a warmup of 2 figures. Waiting for equilibrium would take too long for a general test, so we might move this to a weekly job later.For example, withjust Agg:

and with the flaky wxAgg:

It's true that the latter uses more memory, but it still takes about 200 or so figure to reach equilibrium.
Closes#27635
PR checklist