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

combine pip install calls in wheel-testing scripts #4701

Merged
merged 3 commits into from
Oct 10, 2024

Conversation

jameslamb
Copy link
Member

Summary

Follow-up to #4690.

Proposes consolidating stuff like this in CI scripts:

pip install A
pip install B
pip install C

Into this:

pip install A B C

Benefits of these changes

Reduces the risk of creating a broken environment with incompatible packages. Unlike conda, pip does not evaluate the requirements of all installed packages when you run pip install.

Installing torch and cugraph-dgl at the same time, for example, gives us a chance to find out about packaging issues like "cugraph-dgl and torch have conflicting requirements on {other_package}" at CI time.

Similar change from cudf: rapidsai/cudf#16575

@jameslamb jameslamb added improvement Improvement / enhancement to an existing function non-breaking Non-breaking change labels Oct 7, 2024
@github-actions github-actions bot added the ci label Oct 7, 2024
@jameslamb jameslamb changed the title WIP: combine pip install calls in wheel-testing scripts combine pip install calls in wheel-testing scripts Oct 7, 2024
@jameslamb jameslamb marked this pull request as ready for review October 7, 2024 17:33
@jameslamb jameslamb requested a review from a team as a code owner October 7, 2024 17:33
@jameslamb
Copy link
Member Author

In addition to codeowners, I'd like to get your opinion on this too @alexbarghi-nv

Copy link
Member

@alexbarghi-nv alexbarghi-nv left a comment

Choose a reason for hiding this comment

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

This is fine with me. I agree we should have already been doing this.

@jameslamb
Copy link
Member Author

Ok cool, thank you both!

@jameslamb
Copy link
Member Author

/merge

@rapids-bot rapids-bot bot merged commit a4a6b83 into rapidsai:branch-24.12 Oct 10, 2024
132 checks passed
rapids-bot bot pushed a commit to rapidsai/wholegraph that referenced this pull request Oct 23, 2024
…e dependency (#230)

While working on adding CI for `wholegraph` in the new `cugraph-gnn` repo (rapidsai/cugraph-gnn#58), I noticed a few issues here.

* `pylibwholegraph` imports `numpy` at runtime, but its wheels and conda package don't declare a runtime dependency on `numpy`
* wheel runtime and testing dependencies are not being managed by `rapids-dependency-file-generator`
* `wholegraph_binding` Cython code imports NumPy but doesn't use it
* the wheel-testing CI environment is built up with a sequence of `pip install` calls instead of a single one to get all dependencies (see rapidsai/cugraph#4701)

This proposes fixes for those things.

## Notes for Reviewers

### Where is the NumPy runtime dependency coming from?

https://github.com/rapidsai/wholegraph/blob/0efba33835d6e4e104b5d7101a91e0ea55a6ca53/python/pylibwholegraph/pylibwholegraph/torch/data_loader.py#L14

Authors:
  - James Lamb (https://github.com/jameslamb)

Approvers:
  - Kyle Edwards (https://github.com/KyleFromNVIDIA)

URL: #230
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci improvement Improvement / enhancement to an existing function non-breaking Non-breaking change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants