Skip to content

Conversation

github-actions[bot]
Copy link

Description

Backport of #716 to 8.2.

* generalize

* remove serializer.cpp from cmake

* prepare merge with  rafik commit

* [SVS] Implement Save/Load + test

* seperate hnsw_serializer to h and cpp

* remove get version impl

* save impl

* add load

* change camelcase

* for mat

* generalzie saveIndexFields

* format

* compare metadata on load

* Add checkIntegrity with error

* checkIntegrity

* remove duplicate verification in compare meta data

* format

* svs serializetion version testing

* Revert "svs serializetion version testing"

This reverts commit 9ed7730.

* common serializer test

* remove changes_num from metadata

* Add location c'tor

* Add location ctor and to test

* Remove outdated comment from serializer header

* Enhance documentation for loadIndex function in SVSIndex

* Add comments

* format + remove test

* enable tests

* serializer test

* format

* reset SVS to master

* add logging to test_svs

* format

* remove duplicate NewIndexImpl

* expose loadIndex in VecSimIndex, add BUILD_TEST gurad

* remove string ctor from SVSIndex

* format

* fix BUILD_TEST in svs_factory

* document loadIndex

* move loadIndex to serializer

* remove excess declarations

* remove extra ;

* compatable -> compatible

* remove redundant params from test

* remove comments from threadpool_handle

* remove error context comments

* add checkIntegrity

* update checkIntegrity and format

* move loadIndex to SVSSerializer

* update bindings

* format

* add test

* add single

* adjust labels

* Refactor save_load test to simplify vector generation logic

* add HAVE_SVS guard

* Add missing include for <sstream> in svs_serializer.h

* free faulty index

* Free index

* Improve error message for index loading failure in NewIndex function

* format

---------

Co-authored-by: Rafik Saliev <rafik.f.saliev@intel.com>
(cherry picked from commit f68bb6b)
@GuyAv46 GuyAv46 marked this pull request as draft September 16, 2025 16:25
@GuyAv46 GuyAv46 marked this pull request as ready for review September 16, 2025 16:25
@GuyAv46 GuyAv46 requested a review from lerman25 September 16, 2025 16:25
Copy link

codecov bot commented Sep 16, 2025

Codecov Report

❌ Patch coverage is 92.03980% with 32 lines in your changes missing coverage. Please review.
✅ Project coverage is 96.65%. Comparing base (2ee1e15) to head (d3d52b2).

Files with missing lines Patch % Lines
src/VecSim/algorithms/svs/svs_serializer_impl.h 87.50% 13 Missing ⚠️
src/VecSim/algorithms/hnsw/hnsw_serializer_impl.h 94.91% 9 Missing ⚠️
src/VecSim/algorithms/svs/svs_serializer.h 45.45% 6 Missing ⚠️
src/VecSim/index_factories/svs_factory.cpp 76.92% 3 Missing ⚠️
src/VecSim/algorithms/svs/svs_serializer.cpp 95.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##              8.2     #781      +/-   ##
==========================================
- Coverage   96.87%   96.65%   -0.23%     
==========================================
  Files         122      125       +3     
  Lines        7489     7680     +191     
==========================================
+ Hits         7255     7423     +168     
- Misses        234      257      +23     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@lerman25 lerman25 marked this pull request as draft September 17, 2025 06:01
@lerman25 lerman25 marked this pull request as ready for review September 17, 2025 06:01
@lerman25 lerman25 closed this Sep 17, 2025
@lerman25 lerman25 deleted the backport-716-to-8.2 branch September 17, 2025 06:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant