-
Notifications
You must be signed in to change notification settings - Fork 44
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
rename possibly identical modules to prevent test collisions #135
Conversation
I don't know what to do with the failures shown here on macosx. I'm not sure if they are relevant, and if not, I'm not sure how to say "merge anyway please". |
Also, not sure why you use |
OK. I can reproduce the failures locally. That test seems specifically designed to reuse the module, note how the lib2 code is exactly the same as the original one. |
Still fails. Maybe differently? |
Head branch was pushed to by a user without write access
All of |
Still failing... |
CI is passing. I think randomizing module names now makes the |
Yes, that's bad. I don't remember any failure caught specifically by |
This dooms the whole approach, I'm afraid. We need either to say |
Is it important that all the |
I may originally have decided that I would notice if If you want to kill the |
The latest commit
|
…ith xdist, touch up documentation
The latest commit
|
8de6765
to
b9ea675
Compare
b9ea675
to
a41dadc
Compare
Adding back windows testing almost worked, I had to skip embedded tests. I will open an issue so if someone is so inclined they can fix it. The tests are failing on the PyPy windows buildbot as well. |
@@ -54,8 +55,7 @@ Download and Installation: | |||
``git clone https://github.com/python-cffi/cffi`` | |||
|
|||
* running the tests: ``pytest c/ testing/`` (if you didn't | |||
install cffi yet, you need first ``python setup_base.py build_ext -f | |||
-i``) | |||
install cffi yet, you need first ``python -m pip install -e .``) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These days pip install
is to be preferred
CI is passing. |
I can approve this without looking in details as it mostly touches tests. Can you confirm the underlying reason, though: why do we want to run pytest-xdist? The negative points are that it creates issues and adds extra installation dependencies; what is the positive point? |
On windows, tests now run in CI in ~11 minutes, where before they were 45 minutes. |
It would be very nice, if cffi was actively being developed. Bu as it is not, my point stands..? |
these tests are run by pypy (in its extra tests) for every nightly buildbot run. The windows runs are very slow. So these changes are more for the PyPy test than for cffi itself, trying to minimize the diff between the two copies. But I see your point and will close this. |
Oh, if it makes the nightly test runs of pypy more than 30 minutes faster, that's an interesting outcome. |
Should I review this? Or wait for #137 (which apparently needs some fixing)? |
Fixes #134 by renaming the test module, if not already specifically named. I needed two
randint
invocations to reduce the chances of collision.