pytest-xdist icon indicating copy to clipboard operation
pytest-xdist copied to clipboard

Retain input ordering in `loadscope`

Open Toad2186 opened this issue 1 year ago • 5 comments

  • Optionally retain input ordering in loadscope for tests where relative ordering matters. i.e. guarantee that, given [input_1, input_2], input_2 never runs before input_1. On any given worker, either input_1 has ran before input_2, or input_1 has never and will never run on this worker.

Thanks for submitting a PR, your contribution is really appreciated!

Here's a quick checklist that should be present in PRs:

  • [x] Make sure to include reasonable tests for your change if necessary

  • [x] We use towncrier for changelog management, so please add a news file into the changelog folder following these guidelines:

    • Name it $issue_id.$type for example 588.bugfix;

    • If you don't have an issue_id change it to the PR id after creating it

    • Ensure type is one of removal, feature, bugfix, vendor, doc or trivial

    • Make sure to use full sentences with correct case and punctuation, for example:

      Fix issue with non-ascii contents in doctest text files.
      

Toad2186 avatar Jun 12 '24 23:06 Toad2186

this would be very helpful for slow tests in small modules

zacharyburnett avatar Sep 20 '24 17:09 zacharyburnett

If this ever get traction from upstream, I'll fix it ;).

Toad2186 avatar Sep 22 '24 22:09 Toad2186

Seems this branch is out-of-date with the base branch. Really looking for to have this merged in main branch

darwintree avatar Dec 20 '24 08:12 darwintree

Seems this branch is out-of-date with the base branch.

Same response as above. I can fix it if it gets traction. Otherwise there's no point because it'll just become stale again.

Toad2186 avatar Dec 20 '24 16:12 Toad2186

what is needed for this to be merged?

albertino87 avatar Feb 07 '25 18:02 albertino87

@Toad2186 can you please complete this PR now that has been approved? I've been waiting for it for ages :D

albertino87 avatar May 13 '25 14:05 albertino87

Sadly, @gxxeel is not someone with write access to the repo. So it's still not merge-able.

Toad2186 avatar May 14 '25 12:05 Toad2186

I still wasn't able to review this

RonnyPfannschmidt avatar May 14 '25 15:05 RonnyPfannschmidt