Skip to content

Provide standard infrastructure for clearing global caches #102080

Open

Description

@corona10

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.

Suggestion from @gvanrossum: #101988 (review)

Activity

  1. corona10 commented on Feb 20, 2023

    @corona10
    MemberAuthor
  2. gvanrossum commented on Feb 20, 2023

    @gvanrossum
    Member

    Look hard, I think there is test infra code that handles a bunch of these. @JelleZijlstra ?

  3. sobolevn commented on Feb 20, 2023

    @sobolevn
    Member

    I know this cache-related helper:

    def clear_caches():

  4. JelleZijlstra commented on Feb 20, 2023

    @JelleZijlstra
    Member

    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.

  5. gvanrossum commented on Feb 20, 2023

    @gvanrossum
    Member

    That's the one I remembered.

  6. corona10 commented on Feb 21, 2023

    @corona10
    MemberAuthor

    Looks like #101988 should be ported to use libregrtest.utils.clear_caches
    I will submit the patch soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    testsTests in the Lib/test dirtype-featureA feature request or enhancement

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions