-
Notifications
You must be signed in to change notification settings - Fork 230
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-xdist + pypy hanging on Travis-CI #131
Comments
…/pytest-xdist#9 Signed-off-by: Julien Nicoulaud <julien.nicoulaud@gmail.com> # Veuillez saisir le message de validation pour vos modifications. Les lignes # commençant par '#' seront conservées ; vous pouvez les supprimer vous-même # si vous le souhaitez. Un message vide abandonne la validation. # # Date : Sun Mar 19 13:49:16 2017 +0100 # # Sur la branche master # Votre branche et 'origin/master' ont divergé, # et ont 1 et 1 commits différents chacune respectivement. # (utilisez "git pull" pour fusionner la branche distante dans la vôtre) # # Modifications qui seront validées : # modifié : tox.ini #
…/pytest-xdist#9 Signed-off-by: Julien Nicoulaud <julien.nicoulaud@gmail.com>
this is indeed related to #9 travis reports wrong cpu counts to containers |
I guess this can be close as duplicate then |
It does not explain why it would hang with pypy, it still works fine with cPython even with 32 workers... |
@nicoulaj this may be a pypy bug then, i probably wont find the time to investigate this one |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
I think the original issue "pytest-xdist + pypy hanging on Travis-CI" has not been fixed yet, right? |
@nicoddemus the original issue seems to relate to the fundamentally broken node restart mechanism @nicoulaj please note that travis has completely broken reporting of available cpus and cant be trusted to provide correct data |
I propose we change the |
i agree |
i propose a default of 4 times the node number |
Sounds good: #226 |
We set PYTHONHASHSEED to workaround pytest-dev/pytest-xdist#237. Unfortunately, number of CPU can't be detected on Travis (see pytest-dev/pytest-xdist#131), so we also set --numprocesses. With xdist we can split less: /13 -> /3.
Closing as "duplicate" of #226. |
My tests don't start when using pytest-xdist on Travis CI with pypy/pypy3, crashing and restarting workers for 50 minutes before I cancelled it.
-n auto
to-n 2
seems to work around the issue => related to Virtualized or containerized environments might not report number of CPUs correctly #9 ?The text was updated successfully, but these errors were encountered: