-
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
xdist misidentifies failing test on teardown crash #124
Comments
Hi! I see that the PR has been merged, thanks! Any ETA for a release? |
That's out in 1.16.0, no? |
This is looking at master, v1.16.0 tag does not include this merge. |
Fixed in |
We had to pull this back in Also, @reginaldl would you like to give this another try? 😁 |
Hi!
I'm seeing xdist flagging the wrong test when a crash happens at test teardown.
Given 2 tests:
test_a
, passes but crashes at teardowntest_b
, passesxdist will identify
test_b
as failing.I have been able to reproduce while using pytest-xdist and pytest-timeout.
Here are the steps I've been following:
--timeout-method=thread
, so pytest-timeout will kill our process and xdist will see it crashed:$ py.test -s -x -vv --timeout=2 --timeout-method=thread -n 1
Result:
test_b
is seen as failing but hasn't been executed at all.I believe this is due to the way xdist handles crashed items. When a node crashes, it pops the running item and reschedule it on a new node. However, when the node crashes at teardown, the running item has already been dequeued.
The text was updated successfully, but these errors were encountered: