Repository navigation
test: add historical index persistence compatibility coverage - #138
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add regression coverage to ensure current readers can load and search indexes produced by v0.5.2. Freeze 12 index/reference pairs covering IVF quantized/raw storage, HNSW, and SymphonyQG raw/4-bit/8-bit storage under L2 and inner product, with the historical 128-dimensional padding for 65-dimensional inputs and persisted removal markers where supported.
C++ and Python tests check reference query results, resave/load migration, and malformed-file handling. Record the historical writer commit, generator, platform, and SHA-256 manifest so fixtures remain independent of the current writer. Document the coverage and regeneration procedure.
Only tests, test configuration, fixtures, and documentation change. Public APIs, production save/load implementations, persisted formats, and dependencies remain unchanged. Coverage does not imply that old readers can load new formats; historical IVF HNSW routing at 20,000 clusters is outside these small fixtures.
Testing
Validated the exact file contents committed in
cd0cca6on Linux x86-64 with GCC 14.3, Python 3.13, andRABITQ_ENABLE_NATIVE_OPTIMIZATION=OFF:OpenMPBindingtest passed.git diff --check: passed.Windows, macOS, and native ARM64 were not executed locally and remain for CI validation.