-
Notifications
You must be signed in to change notification settings - Fork 647
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
install external packages for tests #901
Conversation
e0b7c2d
to
74373ac
Compare
bb17de1
to
642a1d9
Compare
Works for This works for Linux and OSX (see 2104.6). The HOLE package is downloaded and unpacked into Download and installation of |
conda packages for clustalw2 were built by the nice folks at https://biobuilds.org/ — they have both Linux and OSX conda packages: https://anaconda.org/biobuilds/clustalw. It installs This was added in 642a1d9 and is currently running on Travis. |
Needs opinions/reviews. |
On OSX full
The problems seems to be that there are already too many files open. Once we temporarily reduce the open file descriptors to 64 we cannot even create the tempdir anymore so the tests errors. If #363 solves the open files problem (as @jbarnoud said) then I am inclined not to do anything about this yet and merge as it is if we decide to install the additional external packages #898. |
export PATH=${PATH}:${HOLE_BINDIR}; \ | ||
fi | ||
# we should still be here but make doubly sure: | ||
- cd ${TRAVIS_BUILD_DIR} |
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.
Is there a reason to make doubly sure here specifically?
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.
I tried to make it a bit future-proof: You can put other installation scripts into this if
statement. But if you are jumping directories then thr rest of the travis script will fail. The "making doubly sure" serves as a reminder that one of the assumptions of the travis script is that everything happens from within the checked-out git repo.
@jbarnoud or @richardjgowers – do you want to review the PR? |
f02dc88
to
7e334c3
Compare
I removed f02dc88 from the PR (and force-pushed). I thought I would switch coverage reporting to the second Travis job ( |
I do have a question, though: Which coverage badge is shown? When you look at https://coveralls.io/builds/7076831 you see
I would like to show/see the one for job 2. How does one do that? |
In my experience it shows the greater of the two. I remember this anecdotally because of the last PR I made increasing RMSD test coverage. In fact I am fairly confident it always shows the second. |
- just run the plot() and plot3D() methods and check that we get appropriate matplotlib objects - removed unnecessary checks for hole executable from the code: we already use the executable_not_found() decorators on the tests so we are guaranteed to have hole available - similarly, removed unnecessary checks for resources (rlimits)
…D surface creation - tests that the programs sph_process and sos_triangle can be run - these two programs litter the terminal: captured stdout/stderr in HOLE.create_vmd_surface() (at the moment, the output is never shown, which might make debugging harder) - added new utility context manager in_dir() to the MDAnalysisTests.__init__ to make directory jumping easier
994e80e
to
0b1829b
Compare
In order to provoke the failure described by issue #129 we artificially lower the open file descriptors. On Mac OS X on travis this always leads to failing tests, as discussed under #901 (comment) ; this hack increases the allowed open fds when we are running on Darwin. According to @jbarnoud, this problem is solved by #363 so once that corresponding PR #815 is merged we should be able to revert this commit.
It's only failing on macos, I think the highest number of open files I saw was 250! |
I added a hack to the test for OS X just to get it to pass. Currently the max number of open fd for Darwin is 128 but we can adjust it to say 256. It's a horrible fudge but we can revisit after the #363 merge. Or just skip the test on OS X? Oliver Beckstein
|
I'd rather fudge the fd limit for now. On Wed, 20 Jul 2016, 17:45 Oliver Beckstein, notifications@github.com
|
Ok, will do that during the day (unless anyone else beats me to it… could do this with edit on GH…)
Oliver Beckstein * orbeckst@gmx.net |
0b1829b
to
b8bcac4
Compare
In order to provoke the failure described by issue #129 we artificially lower the open file descriptors. On Mac OS X on travis this always leads to failing tests, as discussed under #901 (comment) ; this hack increases the allowed open fds when we are running on Darwin. According to @jbarnoud, this problem is solved by #363 so once that corresponding PR #815 is merged we should be able to revert this commit.
Set the OS X fd limits to 256 and force-pushed. |
Well, os x still fails. I'll try again with 512 open fd... |
b8bcac4
to
1028307
Compare
In order to provoke the failure described by issue #129 we artificially lower the open file descriptors. On Mac OS X on travis this always leads to failing tests, as discussed under #901 (comment) ; this hack increases the allowed open fds when we are running on Darwin. According to @jbarnoud, this problem is solved by #363 so once that corresponding PR #815 is merged we should be able to revert this commit.
Tadaa! Take that, OS X! @richardjgowers , this seems to be done. I would prefer if the commits were not squashed because they all do different little things and in the future it might come in handy to re-evaluate them individually. |
@orbeckst awesome, creeping back towards 90% coverage! |
Partly by running Something.plot() and just testing that we can get a proper matplotlib axes instance… but yeah, I am pleased with +2% :-). Once we throw stuff into legacy and remove it from coverage (how does one do that?) it will look even better ;-). Oliver Beckstein * orbeckst@gmx.net |
We can get another big boost if we add coverage for PSA. |
Ping @sseyler ;-) – maybe you can get @tcolburn to write some tests? |
In order to provoke the failure described by issue MDAnalysis#129 we artificially lower the open file descriptors. On Mac OS X on travis this always leads to failing tests, as discussed under MDAnalysis#901 (comment) ; this hack increases the allowed open fds when we are running on Darwin. According to @jbarnoud, this problem is solved by MDAnalysis#363 so once that corresponding PR MDAnalysis#815 is merged we should be able to revert this commit.
NIMUstA8lOQd9w5kL+PcYC3o+J7vh1/gjIyJsZ5iE9y9zQ3aYtzFQShPnCfrKYyl Bco/xr+U3bN9piXTZqhYKIRzVUs6SSd2uy7q63de8QDNsNWkKouKZ1+PhvZPkMNN i+PhBW/gp+PXeta+4Y5REnBrUpX4bW3DCHuKTJ+nM80PXmsMG0i64ShRX/umXnoG qpBfOGfnr40SD/ZFmmYc8qqZvllzPjew8GMGXXdjidetOZHaAkFRDMzOr3FNYkWD 2zSKN95CJGDynSwdsDTo9rrUN5lcJr58JG+JeDBLoK7XxN5VVhPge+cV0gHF2SLk TQcgRXXY/AJY0ZpME0PRk7YKpUPqW/UjKPHENRFqNPlskF+8dzvFu2KNk928A+Ws 4otsRWCzn76tzXsGAK66kXsX9l2mc3IxhDy9TH69GXhog7ASHlglJZ1kZTcPPR8T h7SfjW1Pfi7C/HL7RJ+shmmIQd4qvfn828JK/SoHud6dG7/wmfqYIiva7RB0usdt CK8y7an2XUGXjnvIv2C2CDUHKy0KgtdRw6wpwChkeVl9ci59cT0vHkOZqXgGSaBS L168OTkm0djbpjrMGj8vWe3lna1/Fxf+ELYOC/rUTPOYt7T0SuRoUHhcHhURCD/w vViD4Ic6nvs7OR+ODkyZ =eUcw -----END PGP SIGNATURE----- adjusted HOLE open file descriptor test (MDAnalysis#129) for Darwin In order to provoke the failure described by issue MDAnalysis#129 we artificially lower the open file descriptors. On Mac OS X on travis this always leads to failing tests, as discussed under MDAnalysis#901 (comment) ; this hack increases the allowed open fds when we are running on Darwin. According to @jbarnoud, this problem is solved by MDAnalysis#363 so once that corresponding PR MDAnalysis#815 is merged we should be able to revert this commit.
…code install external packages for tests
Proof of concept for #898
Changes made in this Pull Request:
Install additional packages for the full testing environment on Travis CI:
This enables additional tests that are currently skipped because executables are not available.
PR Checklist