Skip to content

Conversation

lerman25
Copy link
Collaborator

backport #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>
@CLAassistant
Copy link

CLAassistant commented Sep 17, 2025

CLA assistant check
All committers have signed the CLA.

@lerman25 lerman25 changed the base branch from main to 8.2 September 17, 2025 06:15
@meiravgri meiravgri enabled auto-merge September 17, 2025 08:00
@lerman25 lerman25 marked this pull request as draft September 17, 2025 11:09
auto-merge was automatically disabled September 17, 2025 11:09

Pull request was converted to draft

@lerman25 lerman25 marked this pull request as ready for review September 17, 2025 11:10
Copy link

codecov bot commented Sep 17, 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 (9a548a6).
⚠️ Report is 1 commits behind head on 8.2.

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     #782      +/-   ##
==========================================
- 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 added this pull request to the merge queue Sep 17, 2025
Merged via the queue into 8.2 with commit a51585e Sep 17, 2025
17 checks passed
@lerman25 lerman25 deleted the backport-716-to--8.2 branch September 17, 2025 16:21
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.

3 participants