Skip to content

Shuffle before other test collection hooks#377

Merged
adamchainz merged 1 commit intomainfrom
issue_376_stepwise
Aug 13, 2021
Merged

Shuffle before other test collection hooks#377
adamchainz merged 1 commit intomainfrom
issue_376_stepwise

Conversation

@adamchainz
Copy link
Copy Markdown
Member

Fixes #376.

Copy link
Copy Markdown
Member

@graingert graingert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

frickin' amazing

now somehow need to make this work for stepwise/xdist/randomly all at once!

@adamchainz adamchainz merged commit d882e5b into main Aug 13, 2021
@adamchainz adamchainz deleted the issue_376_stepwise branch August 13, 2021 09:47
@adamchainz
Copy link
Copy Markdown
Member Author

xdist means nondeterministic runtime ordering though? :/

@graingert
Copy link
Copy Markdown
Member

graingert commented Aug 13, 2021

yeah but it should be mostly fine, with hash ordering on collection it should "just work"

pytest-dev/pytest-xdist#458

I think the only change is that the xdist workers need to communicate the first test that failed rather than the last test that failed. (hey what's that, a bug due to lack of structured concurrency?)

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix working with --stepwise

2 participants