Skip to content

Add heuristic to determine xdist worker count in pytest_xdist_auto_num_workers #2163

@danceratopz

Description

@danceratopz

I'm thinking we maybe combine this with #1393? It should be possible with pytest_xdist_auto_num_workers to:

  • Read numbers of cores
  • Read total system memory
  • Determine if CPython or PyPy

And come up with a reasonable number of cores.

Originally posted by @SamWilsn in #2120 (comment)

For more exploration into xdist's -n, see #1393 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-ciArea: Continuous IntegrationA-toolingArea: Improvements or changes to auxiliary tooling such as uv, ruff, mypy, ...C-featCategory: an improvement or new feature

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions