-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Flaky TestArgComplete.test_compare_with_compgen #4162
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
cc @asottile |
It happened on the
32 cores? That might as well be the problem... |
testing filesystem state of the current working directory in a multiprocess system is asking for sadness 😆 |
|
We have a workaround on Hmm... |
we could probably work around it by disabling coverage for this build? no idea why we don't hit it on the others as well though |
Not sure, I'm not getting why xdist is not applying the workaround on Travis... |
hmmm probably tox is blanking the environ? |
Argh that's exactly it. I was looking for that problem, but I was looking at an old |
It was removed by accident in 7c380b1. |
Opening a PR... |
still.... even with parallelism of 2 this is still hittable, but exceedingly rare ;) |
xdist has an workaround inplace for Travis so "-n auto" works. Fix pytest-dev#4162
I didn't the time to understand the test, but I believe in you. 😁 |
I'm ok paving over it though ;) |
It failed again here: https://travis-ci.org/pytest-dev/pytest/jobs/452673676 Should we a) skip it with xdist, or b) ensure that it gets to the same worker (if that's the issue)? |
I think we can fix this by giving this test the old: with tmpdir.as_cwd():
... treatment |
The per-test temp directory always starts empty AFAIK 🤷♂️ |
The failing/flaky test uses arbitrary dirs for its test, where "" appears Maybe only this one could be replaced by a clean tmpdir? But also for the others (e.g. "/") it might make sense to test against either |
Example failure:
Always on py27.
Seen on #4161 and #4153.
The text was updated successfully, but these errors were encountered: