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
Please help: osx10.11-xcode7.3 test failures? #150
Comments
From the log files mentioned above: Travis upgraded from osx10.9-xcode6.1 (bottleneck unit tests pass) to osx10.11-xcode7.3 (median, nanmedian fail). |
Difference between previous Xcode 6.1 image and current Xcode 7.3 image. |
I don't have osx so I added some printf statements and then looked at the results on Travis. Travis takes 15 to 20 minutes just to start a build on osx. So it has been painful. (Dealing with osx and windows, systems I don't use, is the most frustrating part of developing bottleneck.) Adding printf statements got the unit tests to pass but travis still says it is a failure. This message appears at the end of the log:
At this point I neither know what is causing the unit test failures or why |
Does anyone have a computer with osx10.11-xcode7.3? If so, do the unit tests pass on bottleneck master? |
Looks to be a common problem over at travis-ci, e.g., travis-ci/travis-ci#6307, travis-ci/travis-ci#6495, travis-ci/travis-ci#6522, and travis-ci/travis-ci#6677. A quick fix could be to force an older OS X image, i.e., put the following entry into the
|
Yep, that passes. I read that the old xcode will only be around until the end of the month. The big question for me is the unit test failures. Hopefully someone will test on their computer with osx10.11-xcode7.3. I guess I'll hold the release of bottleneck 1.2 for a little while. |
suggestion found pydata/bottleneck#150
We now know (e.g. PR #151) that bottleneck master works with osx10.9-xcode6.1 and osx10.10-xcode6.4. It does not appear to work with osx10.11-xcode7.3. But it would be nice if someone can confirm that. |
I guess I'll release bottleneck 1.2 without knowing if it runs on osx 10.11. No mac user has confirmed the bug or spoken up. |
Is the only issue the xref: travis-ci/travis-ci#6307 |
I'm also seeing unit test failures on osx10.11. Travis made a bunch of changes (e.g. the |
If you have a script that you want me to run, I can run it tomorrow. Maybe longer if I need to cobble it together from source. |
There are a few different ways to run the test. Perhaps the most straightforward is to download the code:
Then install it:
Then in python:
|
So I can confirm seeing all the same errors you saw on Travis CI on 10.11 with XCode 7.3. |
Is there anything else you would like me to try? |
That's not the results I was hopping for :( But it is good to know. Can you print the unit test failures? Something like this I would imagine:
|
I can, but can confirm that I already compared them to Travis CI and the errors were identical. |
osx 10.10 also fails if I use xcode 7.1 (but doesn't fail with xcode 6,4). So it seems to be related to xcode 7. |
|
I found it! I noticed that only slices with an even number of elements fail (median and nanmedian) on xcode 7.3. That narrowed down the lines of code where the problem could be. Turns out the problem is BN_INFINITY which is just NPY_INFINITY. Using gcc's INFINITY didn't solve things. I don't yet know how to fix it. But at least I now know the problem. Anybody have any ideas? |
I fixed the xcode 7 median, nanmedian bug. And added a workaround for the I don't understand why other functions, which also use BN_INFINITY, do not also have unit test failures with xcode 7. So I rewrote the entire bottleneck test suite to make it easier to see which functions are tested with infinity. |
median and nanmedian are now failing on travis in bottleneck master. Travis passed and then after one commit (which only touched the AppVeyor files) it failed.
I don't think the failures are related to the appveyor commit. Maybe related to a change in the osx builds? Help!
The text was updated successfully, but these errors were encountered: