Skip to content

test(index): serialize spill-sort tests - #8892

Merged
Xuanwo merged 1 commit into
mainfrom
xuanwo/serialize-spill-sort-tests
Aug 31, 2026
Merged

test(index): serialize spill-sort tests#8892
Xuanwo merged 1 commit into
mainfrom
xuanwo/serialize-spill-sort-tests

Conversation

@Xuanwo

@Xuanwo Xuanwo commented Aug 31, 2026

Copy link
Copy Markdown
Member

Problem

Plain cargo test runs lance-index tests in a single process. Spill-enabled index builds therefore share the cached 150 MiB DataFusion memory pool, and concurrent 40 MiB ExternalSorterMerge reservations can exhaust it. This caused the Linux ARM main job to fail in an otherwise unrelated JSON index test.

Change

Put all 15 spill-sort tests in the named LANCE_DF_SPILL_POOL serial_test resource group. This preserves the production memory-pool configuration while keeping unrelated tests parallel, and replaces the JSON-only mutex with one shared test resource.

This supersedes the Rust test-isolation portion of #8819. That PR currently conflicts and also bundles the already-landed Python NaN fix.

Validation

  • cargo test -p lance-index --lib --features geo -- --test-threads=16 (3 consecutive runs, 1191 passed / 0 failed each)
  • cargo clippy --all --tests --benches -- -D warnings
  • cargo fmt --all -- --check

@github-actions github-actions Bot added A-index Vector index, linalg, tokenizer A-deps Dependency updates chore labels Aug 31, 2026
@Xuanwo
Xuanwo marked this pull request as ready for review August 31, 2026 09:04
@Xuanwo
Xuanwo merged commit 599ef46 into main Aug 31, 2026
37 checks passed
@Xuanwo
Xuanwo deleted the xuanwo/serialize-spill-sort-tests branch August 31, 2026 09:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-deps Dependency updates A-index Vector index, linalg, tokenizer chore

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants