Skip to content

Testing Pose bindings/numeric unit tests with standard PyRosetta builds#708

Open
klimaj wants to merge 14 commits into
RosettaCommons:mainfrom
klimaj:test_builds
Open

Testing Pose bindings/numeric unit tests with standard PyRosetta builds#708
klimaj wants to merge 14 commits into
RosettaCommons:mainfrom
klimaj:test_builds

Conversation

@klimaj

@klimaj klimaj commented May 16, 2026

Copy link
Copy Markdown
Member

This PR splits out two tests from T900_distributed.py that don't require the pyrosetta.distributed framework, but instead only rely on numpy and ought to be tested by the standard PyRosetta builds.

@klimaj
klimaj requested a review from lyskov May 21, 2026 22:23
@klimaj klimaj added the ready_for_review This PR is ready to be reviewed and merged. label May 21, 2026

if __name__ == "__main__":
exit_if_missing_numpy_requirement()
run_unittest("pyrosetta.tests.bindings.core.test_pose", timeout=60)

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.

-- i guess this is one way to take care of this issue but the issue is that test will get silently "green" if no numpy was installed. Have you considered updating get_required_pyrosetta_python_packages_for_release_package so it returns at least numpy for non-distributed platform? That way we should always be able to run this test. Thoughts?

https://github.com/RosettaCommons/rosetta/blob/main/tests/benchmark/tests/__init__.py#L520

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.

@lyskov Thanks for reviewing, and good point - I have now updated both get_required_pyrosetta_python_packages_for_release_package and get_required_pyrosetta_python_packages_for_testing to directly install numpy and removed the silent green mechanism (for reference, this is the same mechanism we currently use to skip T900-T921 tests on non-serialization builds, which are not fully silent since they print warnings when skipping due to missing packages). I agree, let's not exacerbate the issue by adding more skipping behavior. The T021 and T022 tests now pass without being skipped and will error out if numpy is missing.

@klimaj klimaj removed the ready_for_review This PR is ready to be reviewed and merged. label Jun 26, 2026
@klimaj klimaj added the ready_for_review This PR is ready to be reviewed and merged. label Jun 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

03 PyRosetta industry ready_for_review This PR is ready to be reviewed and merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants