You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Provide standard infrastructure for clearing global caches #102080
It turns out that some global caches have memory leak issues while the refleak CI is running.
The global cache is not the problem, but we must provide a better solution to clear them after the tests.
Activity
corona10 commentedon Feb 20, 2023
cc @sobolevn
gvanrossum commentedon Feb 20, 2023
Look hard, I think there is test infra code that handles a bunch of these. @JelleZijlstra ?
sobolevn commentedon Feb 20, 2023
I know this cache-related helper:
cpython/Lib/test/libregrtest/utils.py
Line 116 in ed01add
JelleZijlstra commentedon Feb 20, 2023
Thanks Nikita, I was just looking for that too.
I'm not sure we need any other general mechanism. If there's anything missing from
libregrtest.utils.clear_caches, we should simply add it.gvanrossum commentedon Feb 20, 2023
That's the one I remembered.
corona10 commentedon Feb 21, 2023
Looks like #101988 should be ported to use
libregrtest.utils.clear_cachesI will submit the patch soon.