Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ENH] Change assertions in integrity validation to exceptions #24

Conversation

Sicheng-Pan
Copy link

@Sicheng-Pan Sicheng-Pan commented Dec 30, 2024

Context

We would like to enable validation for HNSW index on load

Changes

Assertions in the integrity validation code is updated to exceptions, so that upstream Rust code can handle the error. The only assertion left unchanged should always be true regardless the validation passes or fails.

Copy link
Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@Sicheng-Pan Sicheng-Pan marked this pull request as ready for review December 30, 2024 18:31
@Sicheng-Pan Sicheng-Pan force-pushed the 12-30-_enh_change_assertions_in_integrity_validation_to_exceptions branch from 5cf0843 to 739ef39 Compare December 30, 2024 18:37
@Sicheng-Pan
Copy link
Author

Note: 3.7 is failing because of missing build images. The upstream is failing as well on the same test. I remove it here to pass the CI.

@Sicheng-Pan Sicheng-Pan merged commit e434afb into master Dec 30, 2024
9 checks passed
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.

2 participants