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

Test new python versions #880

Merged
merged 23 commits into from
Oct 28, 2021
Merged

Test new python versions #880

merged 23 commits into from
Oct 28, 2021

Conversation

mikemhenry
Copy link
Contributor

@mikemhenry mikemhenry commented Oct 21, 2021

Testing python 3.9 and 3.10, will be useful to see where our dependencies are failing, openeye will probably be one of them

@codecov
Copy link

codecov bot commented Oct 21, 2021

Codecov Report

Merging #880 (92c1648) into master (2a3614b) will increase coverage by 0.01%.
The diff coverage is 100.00%.

@mikemhenry mikemhenry linked an issue Oct 21, 2021 that may be closed by this pull request
@ijpulidos
Copy link
Contributor

ijpulidos commented Oct 26, 2021

@mikemhenry This looks much better now for testing, thanks for taking the time to improve this, it will help a lot.

@jchodera Do we want to closely keep up with OpenMM nightly? Such that if nightly tests fail we cannot merge.

@mikemhenry
Copy link
Contributor Author

mikemhenry commented Oct 26, 2021

I was thinking that we don't make passing nightly required to merge, but in order to merge with nightly failing we need to make an issue in the openmm or perses tracker. I think it depends why nightly fails as well, if it is an API change that we can handle in a backwards compatible way, then we should

@ijpulidos
Copy link
Contributor

@mikemhenry we should try running this on GPU CI as well, to check for possible NaNs.

Comment on lines +105 to +108

delta = abs(openmm_phi - phi)
error = min(delta, 2*np.pi - delta)
assert error < TORSION_TOLERANCE, msg
Copy link
Contributor

Choose a reason for hiding this comment

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

If these changes work, we should include some kind of Fixes #879 in the PR, I suppose.

@mikemhenry
Copy link
Contributor Author

Right now the only failures are on nightly,

self = {'implicitSolvent': None, 'switchDistance': None, 'flexibleConstraints': False, 'drudeMass': Quantity(value=0.4, unit=dalton)}
fn = <bound method ForceField.createSystem of <openmm.app.forcefield.ForceField object at 0x7f81b9783e50>>

    def checkArgs(self, fn):
        """Throw an exception if any argument was never used."""
        parameters = signature(fn).parameters
        for key in self:
            if key not in self.accessed:
                if key not in parameters or self[key] != parameters[key].default:
>                   raise ValueError(f"The argument '{key}' was specified to {fn.__name__}() but was never used.")
E                   ValueError: The argument 'implicitSolvent' was specified to createSystem() but was never used.

It looks like this PR introduced this feature, openmm/openmm#3242
So we need to clean up our tests + be aware that in the future we need to make sure we are passing in args we actually use

@mikemhenry
Copy link
Contributor Author

@mikemhenry
Copy link
Contributor Author

@jchodera @ijpulidos
I think I can patch one of these failures but the other looks like I will need to change openmmforcefields

Should we just make issues about these failures but merge in the changes? I feel like our other PRs will benefit from these improvements and the failures are only on nightly

@mikemhenry mikemhenry requested a review from ijpulidos October 28, 2021 17:14
@mikemhenry mikemhenry linked an issue Oct 28, 2021 that may be closed by this pull request
Copy link
Contributor

@ijpulidos ijpulidos left a comment

Choose a reason for hiding this comment

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

This looks great! I'd only agree on raising separate issues with regards to the nightly tests that are failing as you already suggested. Thanks, LGTM!

@mikemhenry mikemhenry merged commit e165e76 into master Oct 28, 2021
@mikemhenry mikemhenry deleted the feat/test_new_python_versions branch October 28, 2021 20:42
@mikemhenry mikemhenry mentioned this pull request Jan 17, 2022
@mikemhenry mikemhenry restored the feat/test_new_python_versions branch January 26, 2022 20:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Double check CI Matrix test_openmm_dihedral failing
2 participants