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
[0.8] test_query failure #2271
Comments
Hi, We discovered this via building our wheels. We got around it by finding out that conda hypothesis is 3.17 while on pip it is 3.18. Right now we have no fix or understanding of what causes this. However this only happens on Py3 versions and not Py2.7, which is the opposite case for your test failure. So this is strange, it could be that the server was having issues during that test. |
So this is a test that requires online access? |
No this test doesn't require an internet connection, I think it is because of a change to the way hypothesis handles datetimes. I will investigate probably next week. It is however not an indication of an actual code failure. |
Copied from #2272:
Then, I still think it is connected with network access. You may try to do export http_proxy=127.0.0.1:9 before running the tests; this should disable network access. |
So regarding the other issue, I enabled testing and updated. Updated pytest mock to the lastest version to fix the other test error and was able to get this test failure with the updated pytest-mock package. On both Py2 and Py3.
I am going to see if I can pin down a package difference between our Conda CI and versions debian has. |
So I updated our wheels to use the latest pip version of all the packages and we get that test failure on Py3 only. Locally on Debian testing, I only have pytest-mock and reruns installed via pip and I once I remembered that hypothesis uses the local dir to write file and deleted that directory. I only get this test failure on Py2. This is all very confusing for me. What I do find troubling is why the test seems to take so long, it looks like it hangs at time. I suspect we might need to rewrite this test. |
#2276 claims to fix this; however I still see the problem in version 0.8.1 -- just the first lines are a bit different (and confusing):
However, this issue was also not marked as fixed anyway (on purpose?). |
It has fixed this test failure that was happening on the wheel builds. The fix is more of a hack and it will be worked on more in master probably for 0.9. I will give it a go on Debian sometime soon. |
So a quick test from my end. Installing 0.8.1 and running it using the system packages did the tests fine for 3.5 but failed for 2.7. |
Since this (and #2272) seems to be problems in the test and not in the code, I am going to disable the tests for the moment and upload the new Debian package. |
Going to close this for now. |
Just FYI, this problem remains on Debians s390x platform (IBM zSystems; 64 bit, bit endian) with sunpy 0.9.2. Other platforms pass. |
I believe this is fixed by #2691 (of all things), we still get it occasionally on our CI, it is a very irritating transient failure. |
Hi,
I tried to build the latest sunpy version for upload as Debian package, and got the following error during test:
The text was updated successfully, but these errors were encountered: