Skip to content

Use a proper libcuvs library when RAPIDS_VERSION points to a PR branch#181

Open
imotov wants to merge 8 commits into
NVIDIA:release/26.08from
imotov:cuvs-lucene-should-build-libcuvs-when-needed
Open

Use a proper libcuvs library when RAPIDS_VERSION points to a PR branch#181
imotov wants to merge 8 commits into
NVIDIA:release/26.08from
imotov:cuvs-lucene-should-build-libcuvs-when-needed

Conversation

@imotov

@imotov imotov commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Many cuvs-lucene PRs depend on cuvs PRs that have not yet been merged. There is a way to test such cuvs-lucene PRs in CI by temporary pointing RAPIDS_VERSION to the cuvs PR branch. Unfortunately, this approach only works when the C portion of cuvs has not changed, because it relies on a conda's libcuvs rather than building it from source.

This PR works around this by downloading the pre-built libcuvs conda artifact from the cuVS PR's own CI run via gh run download. The artifact is extracted with rapids-extract-conda-files and prepended to LD_LIBRARY_PATH, so the Java bindings are built and tested against the correct library.

Ensures that if RAPIDS_VERSION is pointing to a pull request and had any C changes, CI build libcuvs together with cuvs-java.
@copy-pr-bot

copy-pr-bot Bot commented Jul 24, 2026

Copy link
Copy Markdown

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.

@imotov
imotov changed the base branch from main to release/26.08 July 24, 2026 21:59
@imotov

imotov commented Jul 24, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test 0f99843

@imotov

imotov commented Jul 24, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test c747438

@imotov

imotov commented Jul 24, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test 765287e

@imotov imotov added improvement Improves an existing functionality non-breaking Introduces a non-breaking change labels Jul 24, 2026
@imotov
imotov marked this pull request as ready for review July 24, 2026 22:53
@imotov
imotov requested review from a team as code owners July 24, 2026 22:53
@imotov
imotov requested a review from gforsyth July 24, 2026 22:53
@imotov
imotov marked this pull request as draft July 25, 2026 00:33
@imotov

imotov commented Jul 25, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test 4390739

@imotov

imotov commented Jul 25, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test a70ec95

@imotov

imotov commented Jul 25, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test 3ef6ebf

@imotov

imotov commented Jul 25, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test ee601b3

@imotov imotov changed the title Build libcuvs if needed Use a proper libcuvs library when RAPIDS_VERSION point to a PR branch Jul 25, 2026
@imotov imotov changed the title Use a proper libcuvs library when RAPIDS_VERSION point to a PR branch Use a proper libcuvs library when RAPIDS_VERSION points to a PR branch Jul 25, 2026
@imotov

imotov commented Jul 25, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test 5ed991c

@imotov
imotov marked this pull request as ready for review July 25, 2026 01:43
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.

1 participant