-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Fix coverage of pandas on Travis #272
Comments
Are you sure that's the problem? I think Travis is actually installing things backwards. Pandas is installed before tox (thus only for 3.5), and then the tox run doesn't install it. |
Ah so if we install dependencies before tox, they get installed for the general version instead of the env version? |
Unluckily, after reordering the dependencies, it still doesn't work it seems: https://travis-ci.org/tqdm/tqdm/jobs/171857762#L459 I didn't use debug outputs to check if it's still numpy but I can bet on it... Any other suggestion I can try out? |
wonder is there's a way to tell travis to make sure it creates a venv that has access to the system's libraries (i.e. pandas which was cached). then again maybe we should find out how to cache pip packages and put pandas as a dependency in tox.ini.... |
Normally yes it's already cached, but the issue is that it does not work (because of numpy), so I'm not sure if the caching works when dependencies fail like that. |
I don't think you've corrected it in that linked build log. You just moved the installation of |
Ah ok, I'm not very experienced with tox nor travis for what it's worth... Can you suggest me how to do it please? |
Adding additional dependencies to the testenv should do, I think. |
Great QuLogic, it works, thank you so much! Er... now we have another issue with installing pandas from source, it doesn't work on all Python versions of Travis... |
Ok it works now, we just need to find a way to exclude numpy and pandas install on PyPy, and we'll be done. |
no problem, that can be done in the build matrix. or even |
Great @casperdcl , seems to be working alright with the build matrix, and in a reasonable timeframe thank's to the caching! |
Yes the caching weirdly didn't work for them, but I guess it will work on 2016-10-31 15:49 GMT+01:00 Casper da Costa-Luis notifications@github.com:
|
Yes there is an issue with caching numpy or cython or pandas on these python versions (as demonstrated here). So these should also be excluded in the build matrix... |
hah, I put a lot of effort into writing a set of regex (without |
There are still a lot unluckily... Ok for a regexp alternative, so long as it works... We aren't doing user input validation with the regexp so that's ok. |
maybe it's travis' own internal problem? |
Yes I can bet the caching is a bug we can't solve, somewhere either in Travis caching system or pandas/numpy that isn't playing along on these old python versions. So we should just skip these tests on these versions. /EDIT: fixed, tests are skipped on the buggy versions. |
@lrq3000 report to travis HQ, maybe? |
I'm quite sure they reported that they would be dropping support for these outdated versions a long time ago, so it's surprising that the tests work at all. |
merged #302 |
Travis has an issue with pandas: it does not want to run the tests. They are skipped because of a missing library: numpy. Numpy should be installed and work (Travis tells us that it is installed per pandas requirements), but it weirdly cannot be imported:
I tested and pandas seems to be imported fine. The only issue is
numpy.random.randint
.So either we workaround by defining our own replacement function, either we really fix this issue (which is better because other submodules will need it such as #248) but I have no idea how.
This should be fixed because we should have a branch coverage of 100% overall, but Travis reaches only 90% because the pandas tests are skipped.
The text was updated successfully, but these errors were encountered: