[Java] Test indexing and serialization with integral (byte) dataset#1366
[Java] Test indexing and serialization with integral (byte) dataset#1366rapids-bot[bot] merged 5 commits intorapidsai:mainfrom
Conversation
|
/ok to test 4a9f56c |
|
Looks like this is going to need a rebase. @cjnolet will keep me honest: Given the code-freeze, maybe we should retarget this to 25.12. |
|
@mythrocks @cjnolet I can do that, but at the moment it seems that 25.12 is behind 25.10, so you probably want to incorporate all changes from 25.10 before I rebase, right? |
# Conflicts: # java/cuvs-java/src/test/java/com/nvidia/cuvs/CagraBuildAndSearchIT.java # java/cuvs-java/src/test/java/com/nvidia/cuvs/CuVSMatrixIT.java
7775b8f to
8c775c7
Compare
|
/ok to test 9a9c811 |
| try (var index = indexOnce(CuVSMatrix.ofArray(dataset), resources)) { | ||
| var indexPath = serializeOnce(index); | ||
| try (var loadedIndex = deserializeOnce(indexPath, resources)) { | ||
| queryAndCompare( | ||
| index, | ||
| loadedIndex, | ||
| SearchResults.IDENTITY_MAPPING, | ||
| queries, | ||
| expectedResults, | ||
| resources); | ||
| Files.deleteIfExists(indexPath); |
mythrocks
left a comment
There was a problem hiding this comment.
This looks good to me.
I've removed a bunch of aliases from the reviewer-list. They might have been added as an artifact of rebasing this PR.
I'll merge this once the CI passes.
|
/ok to test cd2ae5f |
|
Hey @mythrocks , test failure says: This is due to the fact that we generate data randomly. I wonder if there is a way to avoid this? The error mentions too many overflows; maybe limit the range of the generated floats? Keep them between a given min and max? |
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the ✨ Finishing touches🧪 Generate unit tests (beta)
Comment |
Yes, I think so. This test seems flaky. I'm re-kicking this PR after updating. |
|
/ok to test 4062549 |
Any suggestion on a sensible range to use as input? E.g. keep them between 0 and 1.0 or ...? |
|
/ok to test bbddabf |
|
Let's pick up the flaky test in another issue. |
|
/merge |
Some additional tests to increase our test coverage.
Good to review, but we might want to expand this after #1283 (or vice-versa, whichever comes first).