Skip to content

Treat ParmEd as optional dependency in tests#2145

Merged
j-wags merged 5 commits intomainfrom
parmed-optional
Jan 20, 2026
Merged

Treat ParmEd as optional dependency in tests#2145
j-wags merged 5 commits intomainfrom
parmed-optional

Conversation

@mattwthompson
Copy link
Copy Markdown
Member

@mattwthompson mattwthompson commented Jan 8, 2026

Closes #2031
Closes #2144

@mattwthompson mattwthompson changed the title Parmed optional Treat ParmEd as optional dependency in tests Jan 8, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented Jan 8, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.19%. Comparing base (436b7f1) to head (dac0d53).
⚠️ Report is 10 commits behind head on main.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@mattwthompson
Copy link
Copy Markdown
Member Author

The OpenEye-only tests are bringing in NumPy 2.4, which is a key goal of this change

https://github.com/openforcefield/openff-toolkit/actions/runs/20824148062/job/59820737842#step:12:211

Comment thread .github/workflows/CI.yml
Comment on lines -137 to -140
- name: Check links
if: ${{ matrix.rdkit == true && matrix.openeye == true }}
run: pytest -r fE --tb=short openff/toolkit/_tests/test_links.py

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

These are stochastically failing, intend to revert before merge

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

(blocking) This appears to not be stochastic, fixing in #2147. Please do revert this change and the one in beta_rc.yaml before merging (that is, go ahead and merge even with this test failing).

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

dac0d53 tried to sync everything up

Comment thread .github/workflows/CI.yml
Comment on lines -131 to -136
# See https://github.com/openforcefield/openff-units/issues/111
# for more or better solution - possibly not needed when links are checked
# before a parallel pytest run
- name: Shim for `pytest-xdist` + Pint cross-interaction
run: python -c "from openff.toolkit import *"

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This is outdated but can be split out into a separate PR

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Leaving this change in but above stands

@mattwthompson mattwthompson marked this pull request as ready for review January 8, 2026 17:42
@mattwthompson mattwthompson requested a review from j-wags as a code owner January 8, 2026 17:42
@j-wags j-wags self-assigned this Jan 8, 2026
Copy link
Copy Markdown
Member

@j-wags j-wags left a comment

Choose a reason for hiding this comment

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

LGTM, one blocking comment to resolve before merging. I'm going to keep this one assigned to me so I can decide to merge with failing tests vs. waiting for #2147.

Comment thread .github/workflows/CI.yml
Comment on lines -137 to -140
- name: Check links
if: ${{ matrix.rdkit == true && matrix.openeye == true }}
run: pytest -r fE --tb=short openff/toolkit/_tests/test_links.py

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

(blocking) This appears to not be stochastic, fixing in #2147. Please do revert this change and the one in beta_rc.yaml before merging (that is, go ahead and merge even with this test failing).

@mattwthompson
Copy link
Copy Markdown
Member Author

This is in the state I wanted it to be pre-merging; I'll leave next steps up to you

@j-wags
Copy link
Copy Markdown
Member

j-wags commented Jan 20, 2026

Thanks Matt!

@j-wags j-wags merged commit 1017880 into main Jan 20, 2026
33 checks passed
@j-wags j-wags deleted the parmed-optional branch January 20, 2026 17:57
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.

Treat ParmEd as optional dependency in tests

2 participants