-
-
Notifications
You must be signed in to change notification settings - Fork 530
detox worked, tox -p auto
hangs with trial -j
tests
#1183
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
Comments
tox -p auto
hangstox -p auto
hangs with trial -j
tests
Also, when I hit Control-C after the tests hang, I see this error:
|
Happy to provide additional details if I can. |
Do a run with the live output enabled and triple verbosity and submit the output like that too. Thanks! |
@gaborbernat I just finished my first run with live output (I assume you mean the |
I'm trying a run with |
Yes -o, not any closer to reproduce the issue though |
@gaborbernat I suspect that this is an infelicitous interaction between whatever |
I'm not familiar with trial at all at the moment, so can't think of anything now. |
I'm asking more from the perspective of things that might tickle bugs in |
I can't think of anything. |
After repeated testing, two additional facts to report:
I'll do a few more runs with |
@glyph is the project in question open source so we could poke at it? Also (unrelated) (copying from code-quality mailing list)
|
#1186 might fix this as a side-effect - let's see once gets merged 👍 |
@asottile Glyph mentioned this was a proprietary codebase in the description of the bug |
oh dangit, I missed that 🤦♂️ |
I've also been experiencing a similar situation in an (unfortunately!) proprietary codebase, except the offending testrunner is |
The problem is the use of This fills up the pipe buffer and then hangs indefinitely
Here's a minimal reproduction: [tox]
envlist = e1,e2
skipsdist = true
[testenv:e1]
commands =
python -c '[print("hello world") for _ in range(5000)]'
[testenv:e2]
commands =
python -c '[print("hello world") for _ in range(5000)]' The usual fix is to not use |
Please try out the branch in #1202 and see if it fixes your issues! |
Hooray for open source! |
Since this is now on |
It worked! |
I've been happily running my test suite in
detox
for the past year or so. Today I upgraded totox
with the--parallel
option, and suddenly myunit-tests
environment hangs, despitemypy
,lint
, andintegration-tests
(which uses the same test runner and similar options) all passing and exiting nicely.Here are some hopefully relevant details:
The test runner in question is
trial -j 8
, so the subprocess has subprocesses of its own, which may be confounding things.unit-tests
is the longest running environment.When the tests hang, I see a
--installpkg
process as well as all of mytrial
worker processes hanging. As such, I tried--parallel--safe-build
just in case, but it didn't change the behavior at all.Sorry to say that I can't produce a minimal reproducer; thus far I've only managed to produce this on a proprietary test suite.
macOS 10.14.3
The text was updated successfully, but these errors were encountered: