Skip to content

Run cuvs-bench pytests and end-to-end tests in CI #574

Merged
rapids-bot[bot] merged 30 commits into
NVIDIA:branch-25.02from
dantegd:fea-cuvs-bench-tests
Feb 7, 2025
Merged

Run cuvs-bench pytests and end-to-end tests in CI #574
rapids-bot[bot] merged 30 commits into
NVIDIA:branch-25.02from
dantegd:fea-cuvs-bench-tests

Conversation

@dantegd

@dantegd dantegd commented Jan 15, 2025

Copy link
Copy Markdown
Contributor

PR does the following:

  • Modifies CI to run pytest and e2e test of cuvs-bench
    • We need to test the additional time needed to run the tests. They should be fast, but if they are not, then we can add an additional job to run them in parallel.
  • Adds synthetic test-data generation so the CI jobs don't depend on downloading datasets, and users can have easy testing locally.
    • Few improvements to be done to docs, yaml and other things to make it easy for users.
  • Check in some additional pytests that hadn't been checked in before.

@copy-pr-bot

copy-pr-bot Bot commented Jan 15, 2025

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.

@cjnolet cjnolet added improvement Improves an existing functionality non-breaking Introduces a non-breaking change labels Jan 16, 2025
@dantegd

dantegd commented Feb 3, 2025

Copy link
Copy Markdown
Contributor Author

/ok to test

@dantegd

dantegd commented Feb 3, 2025

Copy link
Copy Markdown
Contributor Author

/ok to test

Comment thread ci/test_python.sh Outdated
@dantegd

dantegd commented Feb 4, 2025

Copy link
Copy Markdown
Contributor Author

/ok to test

@dantegd dantegd marked this pull request as ready for review February 4, 2025 12:39
@dantegd dantegd requested review from a team as code owners February 4, 2025 12:39
@dantegd dantegd requested a review from msarahan February 4, 2025 12:39
search:
itopk: [32, 64, 128, 256, 512]
search_width: [1, 2, 4, 8, 16, 32, 64]
test:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Love this idea!

- librmm==25.2.*,>=0.0.0a0
- matplotlib
- matplotlib-base
- nccl>=2.19

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Does Scikit-learn also need to be added here?

Comment thread python/cuvs_bench/cuvs_bench/tests/test_cli.py
download(args.dataset, args.normalize, args.dataset_path)
f.attrs["distance"] = metric

convert_hdf5_to_fbin(full_path, normalize=True)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I wonder- should we add debug prints before download and convert_hdf5_to_fbin as well, just in case they fail?

@jameslamb jameslamb left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I left some minor, but they're minor so giving you a ci-codeowners / packaging-codeowners approval so you have what you need to merge. Please do consider them.

Comment thread python/cuvs_bench/cuvs_bench/get_dataset/__main__.py Outdated
Comment thread dependencies.yaml
@jameslamb jameslamb removed the request for review from msarahan February 5, 2025 23:55
@cjnolet

cjnolet commented Feb 7, 2025

Copy link
Copy Markdown
Contributor

/merge

@rapids-bot rapids-bot Bot merged commit d760d85 into NVIDIA:branch-25.02 Feb 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants