Commit 8b26fd7
committed
test: add fast integration tests for CI and exclude regression tests from CTest
Introduce a fast integration test suite operating on 10,000 base vectors
and 100 queries to verify correctness via recall checks. The suite is
structured into two dedicated test files under cpp/test/src/integration/:
- test_builder_integration.cpp: Graph builder & search recall tests for
every SIMD and Scalar variant across L2 Float, InnerProduct Float, and
L2 Uint8 metrics. Includes all 3 OptimizationTarget variants
(LowLID, HighLID, StreamingData) and dataset/graph determinism tests.
- test_distance_integration.cpp: Direct distance calculation recall tests
for every SIMD distance implementation compared against scalar groundtruth.
Shared helpers (dataset generation, groundtruth, recall runners) are
centralized in test_builder_integration.h.
The existing 100,000 vector regression tests remain in src/regression/
for manual/local performance benchmarking but are excluded from CTest
and CI execution. The test_regression meta target still builds them.
CI workflow updated to remove SKIP_PERFORMANCE_TESTS env variable as CI
now naturally runs fast integration tests via CTest without heavy
regression tests.1 parent 3047d90 commit 8b26fd7
6 files changed
Lines changed: 1559 additions & 18 deletions
File tree
- .github/workflows
- cpp/test
- src
- integration
- regression/metric
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | 19 | | |
23 | 20 | | |
24 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
23 | 47 | | |
24 | 48 | | |
25 | 49 | | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
33 | 53 | | |
34 | | - | |
35 | | - | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
36 | 60 | | |
37 | 61 | | |
38 | 62 | | |
39 | | - | |
40 | | - | |
41 | | - | |
| |||
0 commit comments