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
Run standalone tests in batches #13673
Conversation
for more information, see https://pre-commit.ci
just curious, if we set it all in one batch, then what is the difference to run standards tests? |
See the issue description |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Love it !
yes, I see, so shall we bit more experiments what is the right size for min interactions? |
I've done it already. See table at the to. "6" is the highest we can run at the moment without interactions. I would like to experiment further in a follow-up PR. We can always tune it higher or lower in the future. And setting it to "1" should be equal to reverting this PR |
If each test is still standalone, launches its own processes and lets them terminate, then there should be absolutely no interactions between tests (assuming only writing to tmpdir). Is this the case? This property has to remain, otherwise we will have problems. |
What does this PR do?
Launch the standalone tests in batches.
Standalone tests are launched in separate processes because they have interactions with others.
pytest
runs all tests together in one process by default so we need to launch them 1-by-1.But we can still batch the tests ourselves but launch them in separate processes. This is what this PR does.
We might be able to push the batch size higher. But there seem to be interactions between the deepspeed tests. As a drawback, this opens up a potential source of flakiness depending on how the tests get batched.
Discussed with @tchaton
There's a failing test in standalone tests:
But it's happening in master too.
Does your PR introduce any breaking changes? If yes, please list them.
None
Before submitting
PR review
cc @carmocca @akihironitta @Borda