Skip to content

Conversation

@jameslamb
Copy link
Member

@jameslamb jameslamb commented Jan 15, 2026

See https://github.com/rapidsai/cuml/pull/7684/files#r2695123359

rapids-generate-pip-constraints is use to generate a constraints.txt file to accomplish stuff like "test against oldest versions of dependencies".

The supported values are:

  • "oldest" = test against oldest versions of dependencies
  • "latest" = test against the latest versions package managers will install

cuML defines 2 more:

  • "intermediate" = versions in the middle "oldest" and "latest" (to ensure compatibility with more of the range of scikit-learn versions they support)
  • "nightly" = nightly versions of non-RAPIDS dependencies

This extends rapids-generate-pip-constraints to allow any value for RAPIDS_DEPENDENCIES. It also updates pre-commit hooks here to their latest versions, since we're touching the repo anyway.

@jameslamb jameslamb requested a review from a team as a code owner January 15, 2026 19:36
@jameslamb jameslamb removed the request for review from a team January 15, 2026 19:36
@jameslamb jameslamb added the improvement Improves an existing functionality label Jan 15, 2026
@jameslamb jameslamb requested a review from gforsyth January 15, 2026 19:36
@jameslamb jameslamb added the non-breaking Introduces a non-breaking change label Jan 15, 2026

if [[ "${RAPIDS_DEPENDENCIES}" == "oldest" ]]; then
if [[ "${RAPIDS_DEPENDENCIES}" == "oldest" ]] \
|| [[ "${RAPIDS_DEPENDENCIES}" == "intermediate" ]] \
Copy link
Member Author

Choose a reason for hiding this comment

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

If there were 5 or 10 known values that were desired here maybe we should do something more general, but I don't think there are right now. Just adding one more condition here seems fine to me.

csadorf added a commit to csadorf/cuml that referenced this pull request Jan 15, 2026
Copy link

@csadorf csadorf left a comment

Choose a reason for hiding this comment

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

Actually, we introduced yet another custom dependency group in rapidsai/cuml#7684: "nightly"

My draft implementation was wrong when I made this comment.

@jameslamb jameslamb changed the title rapids-generate-pip-constraints: allow RAPIDS_DEPENDENCIES=intermediate rapids-generate-pip-constraints: allow RAPIDS_DEPENDENCIES={intermediate,nightly} Jan 15, 2026
@jameslamb
Copy link
Member Author

Ah no worries, I've pushed 92a6947 adding nightly too.

csadorf added a commit to csadorf/cuml that referenced this pull request Jan 15, 2026
Copy link

@csadorf csadorf left a comment

Choose a reason for hiding this comment

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

Copy link
Contributor

@vyasr vyasr left a comment

Choose a reason for hiding this comment

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

Rather than having specific supported versions, can we just make latest a no-op and transparently forward anything else through? The dfg call will fail loudly anyway if provided a file key that doesn't exist.

@jameslamb
Copy link
Member Author

I did consider that and tried to anticipate a comment like that with this thread: #239 (comment)

If there were 5 or 10 known values that were desired here maybe we should do something more general, but I don't think there are right now. Just adding one more condition here seems fine to me.

But sure, I don't feel that strongly, let's make it more general. Here's the commit doing that: b809958

Copy link
Contributor

@vyasr vyasr left a comment

Choose a reason for hiding this comment

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

Sorry I missed your previous comment! In any case the improvement seems worthwhile and should save us from having to change anything else going forward.

@csadorf
Copy link

csadorf commented Jan 16, 2026

@jameslamb You might want to update the PR description.

@jameslamb jameslamb changed the title rapids-generate-pip-constraints: allow RAPIDS_DEPENDENCIES={intermediate,nightly} rapids-generate-pip-constraints: allow any value for RAPIDS_DEPENDENCIES Jan 16, 2026
@jameslamb
Copy link
Member Author

Caught me right before I merged haha. I've updated the title and description.

@jameslamb jameslamb merged commit 0972261 into main Jan 16, 2026
2 checks passed
@jameslamb jameslamb deleted the pip-intermediate-constraints branch January 16, 2026 22:31
@jameslamb
Copy link
Member Author

@csadorf this will take effect as soon as https://github.com/rapidsai/ci-imgs/actions/runs/21082919779 completes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

improvement Improves an existing functionality non-breaking Introduces a non-breaking change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants