Skip to content

Conversation

@azevaykin
Copy link
Collaborator

@azevaykin azevaykin commented Dec 8, 2025

Changelog entry

  • Compatibility tests
  • Stress tests
  • Functional tests

Changelog category

  • Not for changelog (changelog entry is not required)

Description for reviewers

...

Copilot AI review requested due to automatic review settings December 8, 2025 18:18
@ydbot
Copy link
Collaborator

ydbot commented Dec 8, 2025

Run Extra Tests

Run additional tests for this PR. You can customize:

  • Test Size: small, medium, large (default: all)
  • Test Targets: any directory path (default: ydb/)
  • Sanitizers: ASAN, MSAN, TSAN
  • Coredumps: enable for debugging (default: off)
  • Additional args: custom ya make arguments

▶  Run tests

@github-actions
Copy link

github-actions bot commented Dec 8, 2025

🟢 2025-12-09 06:24:07 UTC The validation of the Pull Request description is successful.

@github-actions
Copy link

github-actions bot commented Dec 8, 2025

2025-12-08 18:22:28 UTC Pre-commit check linux-x86_64-relwithdebinfo for 6f4a9c4 has started.
2025-12-08 18:23:03 UTC Artifacts will be uploaded here
2025-12-08 18:24:55 UTC ya make is running...
2025-12-08 18:32:22 UTC Check cancelled

@github-actions
Copy link

github-actions bot commented Dec 8, 2025

2025-12-08 18:22:58 UTC Pre-commit check linux-x86_64-release-asan for 6f4a9c4 has started.
2025-12-08 18:23:23 UTC Artifacts will be uploaded here
2025-12-08 18:25:31 UTC ya make is running...
2025-12-08 18:32:23 UTC Check cancelled

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds Python tests for KNN (K-Nearest Neighbors) functionality in YDB, enabling testing of brute-force KNN searches without vector indexes alongside existing vector index tests.

Key Changes:

  • New comprehensive KNN test suite covering multiple distance and similarity functions
  • Integration of KNN brute-force search testing into stress workload and compatibility tests
  • Support for testing KNN operations during rolling upgrades/downgrades

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
ydb/tests/datashard/ya.make Added knn subdirectory to the build recursion list
ydb/tests/datashard/knn/ya.make Build configuration for new KNN test suite with appropriate test size settings
ydb/tests/datashard/knn/test_knn.py New test suite with 7 test methods covering CosineDistance, CosineSimilarity, InnerProductSimilarity, ManhattanDistance, EuclideanDistance, result verification, two-stage queries, and subquery targets
ydb/tests/stress/oltp_workload/workload/type/vector_index.py Added _knn_search and _knn_search_check methods for brute-force KNN testing without vector indexes, integrated into the existing workload check loop
ydb/tests/compatibility/test_vector_index.py Added _get_knn_queries and knn_search methods to test KNN functionality during rolling upgrade/downgrade scenarios

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@github-actions
Copy link

github-actions bot commented Dec 8, 2025

2025-12-08 18:33:56 UTC Pre-commit check linux-x86_64-relwithdebinfo for 2db94de has started.
2025-12-08 18:34:16 UTC Artifacts will be uploaded here
2025-12-08 18:36:32 UTC ya make is running...
🟡 2025-12-08 18:44:44 UTC Some tests failed, follow the links below. Going to retry failed tests...

Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
371 360 0 8 3 0

2025-12-08 18:44:52 UTC ya make is running... (failed tests rerun, try 2)
🟡 2025-12-08 18:58:23 UTC Some tests failed, follow the links below. Going to retry failed tests...

Ya make output | Test bloat | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
16 (only retried tests) 8 0 8 0 0

2025-12-08 18:58:31 UTC ya make is running... (failed tests rerun, try 3)
🔴 2025-12-08 18:59:34 UTC Some tests failed, follow the links below.

Ya make output | Test bloat | Test bloat | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
16 (only retried tests) 8 0 8 0 0

🟢 2025-12-08 18:59:41 UTC Build successful.
🟢 2025-12-08 19:00:00 UTC ydbd size 2.3 GiB changed* by -1.6 MiB, which is <= 0 Bytes vs main: OK

ydbd size dash main: 33bff08 merge: 2db94de diff diff %
ydbd size 2 467 827 992 Bytes 2 466 169 536 Bytes -1.6 MiB -0.067%
ydbd stripped size 525 130 656 Bytes 524 847 552 Bytes -276.5 KiB -0.054%

*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation

@github-actions
Copy link

github-actions bot commented Dec 8, 2025

2025-12-08 18:43:01 UTC Pre-commit check linux-x86_64-release-asan for 2db94de has started.
2025-12-08 18:43:18 UTC Artifacts will be uploaded here
2025-12-08 18:45:29 UTC ya make is running...
🟢 2025-12-08 18:50:25 UTC Tests successful.

Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
7 7 0 0 0 0

🟢 2025-12-08 18:50:32 UTC Build successful.
🟢 2025-12-08 18:50:51 UTC ydbd size 3.8 GiB changed* by -1.3 MiB, which is <= 0 Bytes vs main: OK

ydbd size dash main: 33bff08 merge: 2db94de diff diff %
ydbd size 4 131 363 664 Bytes 4 130 046 976 Bytes -1.3 MiB -0.032%
ydbd stripped size 1 533 585 592 Bytes 1 533 185 496 Bytes -390.7 KiB -0.026%

*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation

@github-actions
Copy link

github-actions bot commented Dec 9, 2025

2025-12-09 05:49:38 UTC Pre-commit check linux-x86_64-relwithdebinfo for 469292a has started.
2025-12-09 05:49:57 UTC Artifacts will be uploaded here
2025-12-09 05:52:10 UTC ya make is running...
🟢 2025-12-09 05:59:59 UTC Tests successful.

Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
403 400 0 0 3 0

🟢 2025-12-09 06:00:06 UTC Build successful.
🟢 2025-12-09 06:00:21 UTC ydbd size 2.3 GiB changed* by +63.5 KiB, which is < 100.0 KiB vs main: OK

ydbd size dash main: f21cd8e merge: 469292a diff diff %
ydbd size 2 466 623 424 Bytes 2 466 688 424 Bytes +63.5 KiB +0.003%
ydbd stripped size 524 937 344 Bytes 524 955 008 Bytes +17.2 KiB +0.003%

*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation

@github-actions
Copy link

github-actions bot commented Dec 9, 2025

2025-12-09 05:49:43 UTC Pre-commit check linux-x86_64-release-asan for 469292a has started.
2025-12-09 05:49:59 UTC Artifacts will be uploaded here
2025-12-09 05:52:02 UTC ya make is running...
🟢 2025-12-09 05:56:28 UTC Tests successful.

Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
35 35 0 0 0 0

🟢 2025-12-09 05:56:34 UTC Build successful.
🟢 2025-12-09 05:56:51 UTC ydbd size 3.8 GiB changed* by +85.5 KiB, which is < 100.0 KiB vs main: OK

ydbd size dash main: f21cd8e merge: 469292a diff diff %
ydbd size 4 130 652 560 Bytes 4 130 740 160 Bytes +85.5 KiB +0.002%
ydbd stripped size 1 533 372 824 Bytes 1 533 408 280 Bytes +34.6 KiB +0.002%

*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation

@azevaykin azevaykin merged commit be591d3 into ydb-platform:main Dec 9, 2025
11 checks passed
@azevaykin azevaykin deleted the KnnTests branch December 9, 2025 10:00
@ydbot
Copy link
Collaborator

ydbot commented Dec 9, 2025

Backport

To backport this PR, click the button next to the target branch and then click "Run workflow" in the Run Actions UI.

Branch Run
stable-25-2, stable-25-2-1, stable-25-3, stable-25-3-1 ▶  Backport
stable-25-3, stable-25-3-1 ▶  Backport
stable-25-3 ▶  Backport

▶  Backport manual

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants