Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pytest-randomly seed is not respected when using loadgroup dist #1055

Open
alex-nl opened this issue Apr 3, 2024 · 0 comments
Open

pytest-randomly seed is not respected when using loadgroup dist #1055

alex-nl opened this issue Apr 3, 2024 · 0 comments

Comments

@alex-nl
Copy link

alex-nl commented Apr 3, 2024

Based on this issue: #229 we expected randomly to play well with xdist

Steps:
Repeatedly invoke pytest with the following args:
--dist=loadgroup --randomly-seed=1234567890"

Expected:
Each worker runs the same set of tests in the same order.

Actual:
Each worker starts off by running the same tests, but diverges increasingly over the course of the run.

We'd really love a way to combine parallelization and determinism (while also respecting our xdist_group requirements). Determinism is critical for tracking down tests that flake due to cross test dependency. As of right now we're going to turn off parallelization all together and pay the run time cost, just to make sure that we can always reproduce failure cases.

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

No branches or pull requests

1 participant