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 Cython code exposed externally #376

Open
wants to merge 23 commits into
base: branch-0.43
Choose a base branch
from

Conversation

pentschev
Copy link
Member

This is a follow-up for #372 that exposed certain parts of the Cython API for external usage. In this PR, proper tests are added, including the require infrastructure to build the tests and run in CI.

@pentschev pentschev added feature request New feature or request non-breaking Introduces a non-breaking change DO NOT MERGE Hold off on merging; see PR for details labels Feb 18, 2025
Copy link

copy-pr-bot bot commented Feb 18, 2025

Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

rapids-bot bot pushed a commit that referenced this pull request Feb 18, 2025
Expose class structure in `libucxx.pxd`. This change is useful so that projects building on top of the Python interface can take `shared_ptr<ucxx::Component>` objects and plug those objects into their C++ backends.

Although it's not possible to define private attributes in a `cdef class`, we attempt to mark them private with the leading underscore in their names, such as `UCXContext._context`, and then provide a `UCXContext.get_ucxx_shared_ptr` for those members that are expected to be externally usable.

Testing will be handled as part of #376.

Authors:
  - Peter Andreas Entschev (https://github.com/pentschev)

Approvers:
  - Lawrence Mitchell (https://github.com/wence-)

URL: #372
@pentschev
Copy link
Member Author

/ok to test

@pentschev
Copy link
Member Author

/ok to test

@pentschev
Copy link
Member Author

/ok to test

@pentschev pentschev removed the DO NOT MERGE Hold off on merging; see PR for details label Feb 21, 2025
@pentschev pentschev marked this pull request as ready for review February 21, 2025 22:19
@pentschev pentschev requested review from a team as code owners February 21, 2025 22:19
@pentschev pentschev requested a review from jameslamb February 21, 2025 22:19
Copy link
Member

@madsbk madsbk left a comment

Choose a reason for hiding this comment

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

LGTM

clean - remove all existing build artifacts and configuration (start
over)
libucxx - build the UCXX C++ module
libucxx_python - build the UCXX C++ Python support module
ucxx - build the ucxx Python package
ucxx_tests - build the ucxx Cython tests
Copy link
Member

Choose a reason for hiding this comment

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

Maybe change to --cython-tests ?

Copy link
Member Author

Choose a reason for hiding this comment

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

I'm here attempting to match the name of the conda package we're creating to have installable tests. I agree this isn't the best name but there's so much mismatch currently that's hard to keep track of all that. On that note, I think it makes sense to rename those variables to include the prefix libucxx_ and match also the existing package names like libucxx-tests, so I've done that in b7c3d42 but kept the name here to ucxx_tests in an attempt to make things more consistent for now.

Copy link
Member

Choose a reason for hiding this comment

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

Sounds good

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request non-breaking Introduces a non-breaking change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants