refactor(test): move slow vector index tests to integration tests#5814
refactor(test): move slow vector index tests to integration tests#5814wjones127 wants to merge 2 commits intolance-format:mainfrom
Conversation
Move compute-heavy vector index tests from unit test modules to integration tests where they run with opt-level=1 for better performance. This prevents CI timeouts caused by debug build slowness. Tests migrated: - test_build_ivf_pq, test_build_ivf_pq_v3, test_build_ivf_pq_4bit - test_create_ivf_hnsw_pq, test_create_ivf_hnsw_pq_4bit - test_optimize_with_empty_partition, test_remap_join_on_second_delta - test_create_index_with_many_invalid_vectors - test_build_pq_model_l2, test_build_pq_model_cosine Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
PR Review SummaryThis is a well-organized refactoring that moves compute-heavy vector index tests to integration tests. The change is straightforward and the motivation (CI timeout prevention) is sound. Minor ObservationsP1: Possible test coverage gap in moved tests The original tests in Note: OverallThe migration is clean, the shared utilities in |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Move test_create_index_nulls (10 parameterized cases) and test_initialize_vector_index_empty_dataset to the integration test module to further reduce unit test runtime. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Summary
query-integration-testsCI job for better performanceTests migrated:
test_build_ivf_pq,test_build_ivf_pq_v3,test_build_ivf_pq_4bittest_create_ivf_hnsw_pq,test_create_ivf_hnsw_pq_4bittest_optimize_with_empty_partition,test_remap_join_on_second_deltatest_create_index_with_many_invalid_vectorstest_build_pq_model_l2,test_build_pq_model_cosineTest plan
cargo check -p lance --features slow_tests --testspassescargo clippy -p lance --features slow_tests --testspasses🤖 Generated with Claude Code