Skip to content

Cache + xdist #527

Open
Open
@clintonb

Description

@clintonb

Has anyone had success running tests that rely on caching with the xdist plugin? I created a fixture, similar to the database fixture, to add a cache key prefix: https://github.com/edx/course-discovery/blob/ad1dca5623b765c6d85d83dcf7e5f75c7b8e1181/conftest.py#L18-L40. However, I still have a couple tests that fail when using memcached (but not when using local memory).

  1. Is there anything obvious that I am missing with my fixture?
  2. If you have had success running cache-related tests in parallel mode, how did you handle cache key collisions?
  3. Are others interested in such a fixture being contributed to this project?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions