Open SuperSandro2000 opened 1 year ago
@SuperSandro2000, That's a bit overkill on the data dump. Can you provide step by step instructions to reproduce some of don't even know what xdist is... ala...
- pip install ...
- edit such and such file
- run
python manage.py test
our tests are not guaranteed for high levels of parallelization, and many depend on db state and were written before extensive parallel testing. I would call this a feature requests since the test suite wasn't designed for parallel testing.
Are you up to refactoring the tests to support parallel testing with xdist?
That's a bit overkill on the data dump.
That's the complete build log which contains everything including the build log, what dependencies where found and the pytest build log. I mean I can omit it but describing all the information contained in it is not that productive.
Can you provide step by step instructions to reproduce some of don't even know what xdist is... ala...
Basically we build the package with the required dependencies, install the wheel and run pytest with pytest-django, the other required test dependencies. pytest-xdist is an official plugin of pytest which runs test in parallel, so that they run faster.
I think you are using a sharded database between all tests which means if they are run in parallel things break.
Are you up to refactoring the tests to support parallel testing with xdist?
no, I am just packaging things for nixos. 😓
Can you provide step by step instructions to reproduce some of don't even know what xdist is... ala...
Basically we build the package with the required dependencies, install the wheel and run pytest with pytest-django, the other required test dependencies. pytest-xdist is an official plugin of pytest which runs test in parallel, so that they run faster.
Can us something I can copy paste to do the same... ex)
git clone ...
python -m venv ./venv
pip install ....
# and other other steps so that we can reproduce
I think you are using a shared database between all tests which means if they are run in parallel things break.
I think you may be correct, and it may mean that our tests need extensive refactoring to work with pytest-xdist. We can't really start to dig into that until we have explicit directions to reproduce how you're running the distributed tests.
Are you up to refactoring the tests to support parallel testing with xdist?
no, I am just packaging things for nixos. 😓
Maybe someone will share your itch, If I were you I'd try to advocate to people in your OSS circles to help implement this if it would make your life easier. Getting clear instructions to run the tests as you want, is a good way to enable anyone who may want to take on this task.
Describe the bug
When running the tests on a high core machine, race conditions can occur like:
To Reproduce Run tests on high core machine with xdist
Expected behavior It should just work :)
Version 2.3.0
Additional context