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

Support linking to Arrow::python instead of Arrow::arrow_shared #295

Closed
wants to merge 1 commit into from

Conversation

robomics
Copy link
Contributor

This is mostly useful for hickpy, where linking to Arrow::arrow_shared causes linking to a specific version of Arrow (which depends on the specific version of Pyarrow that was installed when building hictkpy wheels).

This is not desirable, because it forces us to pin the version of pyarrow required by hictkpy (which could easily result in unresolvable environments).
Here we assume that libarrow_python.so links to some version of libarrow.so, which when loaded brings in all symbols required by hictk and hictkpy.

It should be noted that Arrow has very few guarantees when it comes to ABI stability (see apache/arrow#41707).

This means that hictkpy needs to test all possible combinations of pyarrow/arrow versions on all supported platforms and architectures to make sure there are no ABI changes (at least to the parts that hictk and hictkpy depend on).

This is mostly useful for hickpy, where linking to Arrow::arrow_shared
causes linking to a specific version of Arrow (which depends on
the specific version of Pyarrow that was installed when building
hictkpy wheels).
This is not desirable, because it forces us to pin the version of pyarrow
required by hictkpy (which could easily result in unresolvable environments).
Here we assume that libarrow_python.so links to some version of
libarrow.so, which when loaded brings in all symbols required by
hictk and hictkpy.
It should be noted that Arrow has very few  guarantees when it comes to ABI
stability (see apache/arrow#41707).
This means that hictkpy needs to test all possible combinations of pyarrow/arrow
versions on all supported platforms and architectures to make sure there
are no ABI changes (at least to the parts that hictk and hictkpy depend on).
Copy link

codecov bot commented Oct 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 77.54%. Comparing base (e775261) to head (b5e9df5).
Report is 7 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #295      +/-   ##
==========================================
- Coverage   79.17%   77.54%   -1.64%     
==========================================
  Files         173      173              
  Lines       17035    21207    +4172     
  Branches     2309     2309              
==========================================
+ Hits        13488    16445    +2957     
- Misses       2540     3755    +1215     
  Partials     1007     1007              
Flag Coverage Δ
[tests integration](https://app.codecov.io/gh/paulsengroup/hictk/pull/295/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=paulsengroup) 68.02% <ø> (-1.60%)
[tests unittests](https://app.codecov.io/gh/paulsengroup/hictk/pull/295/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=paulsengroup) 75.90% <ø> (-1.25%)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

robomics added a commit to paulsengroup/hictkpy that referenced this pull request Oct 17, 2024
@robomics robomics marked this pull request as draft October 18, 2024 00:06
@robomics robomics closed this Oct 19, 2024
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.

1 participant