WIP: wheels CI: write constraints directly to PIP_CONSTRAINT#21639
Closed
jameslamb wants to merge 6 commits intorapidsai:mainfrom
Closed
WIP: wheels CI: write constraints directly to PIP_CONSTRAINT#21639jameslamb wants to merge 6 commits intorapidsai:mainfrom
jameslamb wants to merge 6 commits intorapidsai:mainfrom
Conversation
|
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. |
6 tasks
Member
Author
|
/ok to test |
jameslamb
commented
Mar 4, 2026
Comment on lines
+7
to
+13
| # TODO(jameslamb): revert before merging | ||
| git clone --branch generate-pip-constraints \ | ||
| https://github.com/rapidsai/gha-tools.git \ | ||
| /tmp/gha-tools | ||
|
|
||
| export PATH="/tmp/gha-tools/tools:${PATH}" | ||
|
|
Member
Author
There was a problem hiding this comment.
Suggested change
| # TODO(jameslamb): revert before merging | |
| git clone --branch generate-pip-constraints \ | |
| https://github.com/rapidsai/gha-tools.git \ | |
| /tmp/gha-tools | |
| export PATH="/tmp/gha-tools/tools:${PATH}" |
jameslamb
commented
Mar 4, 2026
Comment on lines
+7
to
+13
| # TODO(jameslamb): revert before merging | ||
| git clone --branch generate-pip-constraints \ | ||
| https://github.com/rapidsai/gha-tools.git \ | ||
| /tmp/gha-tools | ||
|
|
||
| export PATH="/tmp/gha-tools/tools:${PATH}" | ||
|
|
Member
Author
There was a problem hiding this comment.
Suggested change
| # TODO(jameslamb): revert before merging | |
| git clone --branch generate-pip-constraints \ | |
| https://github.com/rapidsai/gha-tools.git \ | |
| /tmp/gha-tools | |
| export PATH="/tmp/gha-tools/tools:${PATH}" |
jameslamb
commented
Mar 4, 2026
Comment on lines
+7
to
+13
| # TODO(jameslamb): revert before merging | ||
| git clone --branch generate-pip-constraints \ | ||
| https://github.com/rapidsai/gha-tools.git \ | ||
| /tmp/gha-tools | ||
|
|
||
| export PATH="/tmp/gha-tools/tools:${PATH}" | ||
|
|
Member
Author
There was a problem hiding this comment.
Suggested change
| # TODO(jameslamb): revert before merging | |
| git clone --branch generate-pip-constraints \ | |
| https://github.com/rapidsai/gha-tools.git \ | |
| /tmp/gha-tools | |
| export PATH="/tmp/gha-tools/tools:${PATH}" |
rapids-bot bot
pushed a commit
to rapidsai/gha-tools
that referenced
this pull request
Mar 5, 2026
Contributes to rapidsai/build-planning#256 `rapids-generate-pip-constraints` currently special-cases `RAPIDS_DEPENDENCIES="latest"` and skips generating constraints in that case. This will be helpful in rapidsai/build-planning#256, where we want to start constraining `cuda-toolkit` in wheels CI based on the CTK version in the CI image being used. ## Notes for Reviewers ### How I tested this Looked for projects using this ([GitHub search](https://github.com/search?q=org%3Arapidsai+language%3AShell+%22rapids-generate-pip-constraints%22+AND+NOT+is%3Aarchived+&type=code)) and tested in them. It's just a few: * [ ] cudf (rapidsai/cudf#21639) * [ ] cuml (rapidsai/cuml#7853) * [ ] dask-cuda (rapidsai/dask-cuda#1632) * [ ] nvforest (rapidsai/nvforest#62) * [ ] raft (rapidsai/raft#2971) * [ ] rmm (rapidsai/rmm#2270) On all of those, wheels CI jobs worked exactly as expected and without needing any code changes or `dependencies.yaml` updates... so this PR is safe to merge any time. ### Is this safe? It should be (see "How I tested this"). This is only used to add **constraints** (not requirements), so it shouldn't change our ability to catch problems like "forgot to declare a dependency" in CI. It WILL increase the risk of `[test]` extras being underspecified. For example, if `cuml[test]` has `scikit-learn>=1.3` and the constraints have `scikit-learn>=1.5`, we might never end up testing `scikit-learn>=1.3,<1.5` (unless it's explicitly accounted for in a `dependencies: "oldest"` block). The other risk here is that this creates friction because constraints passed to `--constraint` cannot contain extras. So e.g. if you want to depend on `xgboost[dask]`, that cannot be in any of the lists generated by `rapids-generate-pipe-constraints`. I think we can work around that though when we hit those cases. Overall, I think these are acceptable tradeoffs. Authors: - James Lamb (https://github.com/jameslamb) Approvers: - Bradley Dice (https://github.com/bdice) URL: #247
Member
Author
|
Closing this. This was for testing rapidsai/gha-tools#247, which has now been merged. The changes here will make it into the repov via #21671 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Contributes to rapidsai/build-planning#256 / rapidsai/build-planning#257
rapidsai/gha-tools#247 updates
rapids-generate-pip-constraintsin the following ways:RAPIDS_DEPENDENCIES="latest"(previously silently generated an empty list of constraints)use_cuda_wheels=trueThat new behavior will help with testing wheels against different CTK versions via constraints on the
cuda-toolkitmetapackage.Notes for Reviewers
Skipping
cudf-pandastest scriptsThat script generates some constraints for one install:
cudf/ci/cudf_pandas_scripts/run_tests.sh
Lines 60 to 74 in 84fe9cd
But doesn't want them active in later installs that put different
pandasversions into the environment, because they'd conflict:cudf/ci/cudf_pandas_scripts/run_tests.sh
Lines 132 to 139 in 84fe9cd
Checklist