Skip to content
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

Port topology module #1420

Merged
merged 4 commits into from
Jun 24, 2017
Merged

Conversation

utkbansal
Copy link
Member

Fixes #

Changes made in this Pull Request:

PR Checklist

  • Tests?
  • Docs?
  • CHANGELOG updated?
  • Issue raised/referenced?

@utkbansal
Copy link
Member Author

This should hopefully get coverage back to normal.

@utkbansal
Copy link
Member Author

@richardjgowers @kain88-de Minor increase in coverage! A review would be helpful.

@kain88-de
Copy link
Member

@jbarnoud & @mnmelo can you have a look I don't have time currently.

Copy link
Contributor

@jbarnoud jbarnoud left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Style is much better than in the PR on utils. Just one file where the imports are reordered.

I did not notice any tests that are missing, but I figured out why I had test that appeared discovered in pytest but not in nose: while we generally avoided docstring in tests to have a readable log in nose, we still have some. Nose does display the docstring instead of the test name in the verbose view; pytest doesn't. It means that it is difficult to accurately compare the two logs, but also that we will be able to have docstrings in tests. Yeah!

@@ -1,19 +1,22 @@
from __future__ import absolute_import
from numpy.testing import (
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, fix the import order.

@@ -63,42 +66,81 @@ class TPRBase(TPRAttrs):
# All these classes should be generated in a loop. Yet, nose test generation
# seems to work only with functions, and not with classes.
class TestTPR400(TPRBase):

__test__ = True
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This all file will be much better with fixtures. Not for this PR, but this test suite will really profits from the move to pytest.

@utkbansal
Copy link
Member Author

@jbarnoud @richardjgowers This should be ready to merge now.

@utkbansal
Copy link
Member Author

Apparently, the hostname "dropbox.com" cannot be resolved during the full build.

@kain88-de
Copy link
Member

Apparently, the hostname "dropbox.com" cannot be resolved during the full build.

We need more information. This message alone doesn't give me much when the build is restarted. When did it try to access dropbox would be valuable information for example.

@jbarnoud
Copy link
Contributor

jbarnoud commented Jun 23, 2017 via email

@utkbansal
Copy link
Member Author

utkbansal commented Jun 23, 2017

if [[ $NAME == 'full' ]]; then \
      bash ./maintainer/install_hole.sh $TRAVIS_OS_NAME "${HOME}/${MDA_OPTPACKAGES}"; \
      HOLE_BINDIR="${HOME}/${MDA_OPTPACKAGES}/hole2/exe"; \
      export PATH=${PATH}:${HOLE_BINDIR}; \
  fi
  
Downloading hole2-NotForProfit-2.2.004-Linux-x86_64.tar.gz from https://www.dropbox.com/s/jukpwlohhi20r17/hole2-NotForProfit-2.2.004-Linux-x86_64.tar.gz?dl=1...
curl: (6) Couldn't resolve host 'www.dropbox.com'
[install_hole.sh] ERROR: Failed to download hole2-NotForProfit-2.2.004-Linux-x86_64.tar.gz from https://www.dropbox.com/s/jukpwlohhi20r17/hole2-NotForProfit-2.2.004-Linux-x86_64.tar.gz?dl=1 [1]

It tries to download some hole dependency from dropbox and that is a part of the ci-helpers we are using.

@jbarnoud
Copy link
Contributor

@kain88-de @richardjgowers Can I merge, or should I wait for 0.16.2 to be released?

@richardjgowers
Copy link
Member

@jbarnoud yeah tests aren't user facing, so we can merge this

@richardjgowers
Copy link
Member

@jbarnoud I take that back, maybe we're not doing pytest in 16.2... #1401

@orbeckst
Copy link
Member

orbeckst commented Jun 24, 2017

#1420 (comment)

It tries to download some hole dependency from dropbox and that is a part of the ci-helpers we are using.

Just some background: hole is not part of the ci-helpers. It is an external software that we use for the MDAnalysis.analysis.hole module. In order to test the module, we need to install the software. The license of hole is very unfriendly so the only legal approach (as far as we could figure out) is to always download it from the official site, which happens to be a dropbox location...

Or at least that was the story until 2 minutes ago when I figured out that hole is now open source: https://github.com/osmart/hole2 ... so I think we will soon have conda packages. ;-) #1429

@richardjgowers richardjgowers merged commit c27ace3 into MDAnalysis:develop Jun 24, 2017
@richardjgowers
Copy link
Member

@utkbansal So this PR didn't actually add topology to the pytest list in travis.yml 😆

@utkbansal
Copy link
Member Author

Oh man! Rebasing and stuff can be very confusing if you have 4 PRs in parallel. 😆

@richardjgowers
Copy link
Member

Put it in the xdist pr

@jbarnoud
Copy link
Contributor

jbarnoud commented Jun 25, 2017 via email

@utkbansal
Copy link
Member Author

@jbarnoud Makes more sense now!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants