Commit d500447
test(vectorindex): skip Recall10k under -race (#32)
TestHNSW_Recall10k is the CI bottleneck at ~410s under -race (68% of
the integration job). The workload is fully sequential — build 10k
vectors, then 20 query probes — so the race detector has nothing to
catch and just adds ~10× overhead.
Added a raceEnabled build-tagged constant (standard Go idiom) so the
test skips only under -race. TestHNSW_ConcurrentAddSearch still runs
under -race and covers the actual concurrent code path.
Local timings:
go test -run Recall10k 68s (recall=1.000)
go test -race -run Recall10k 1s (skip)
go test -race -run ConcurrentAdd 2s (unchanged)
Integration CI projected: 600s → ~190s.
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent cd2cab7 commit d500447
3 files changed
Lines changed: 22 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
215 | 215 | | |
216 | 216 | | |
217 | 217 | | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
218 | 225 | | |
219 | 226 | | |
220 | 227 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
0 commit comments