Repository navigation
fix(index): make IVF-PQ test training deterministic - #8767
lance-gatefixer[bot] wants to merge 12 commits into
Conversation
|
Blocked: The current-head Typo checker fails on an unchanged typo inherited from main. Remote head cbe9bad contains current base dafa464, and the failing “Spell Check with Typos” Check reports python/src/object_store.rs:154 ( |
|
Blocked: The current-head Spell Check with Typos check fails on an unchanged typo inherited from main. Remote head a1b17be contains current base dafa464. The live check reports python/src/object_store.rs:154 ( |
|
Blocked: The current head is blocked by an inherited typo-check failure and Gatekeeper’s explicit manual-review requirement. Remote head a1b17be contains current base dafa464. “Spell Check with Typos” reports python/src/object_store.rs:154 ( |
|
Does this also cover the python torch one-pass IVF_PQ path? |
|
No code change: this PR does not cover the Python Torch one-pass sampler. The |
There was a problem hiding this comment.
✅ Gate recommendation: approve.
The remaining nondeterministic fixture path is closed: IVF training now scans the complete lightweight fixture before seeded k-means, and repeated end-to-end builds verify stable IVF and PQ models. This preserves OS entropy by default while making the affected seeded fixtures reproducible end to end.
|
Blocked: The current-head Python Linux 3.13 x86_64 check fails on the unrelated tracked Torch sampler flake. Remote head cd3699c contains current base 87378db. The completed check reports that only |
|
This lands the mechanism, but one fixture family with the same root cause is not covered by it: On 2026-08-27 it was the most frequent Rust failure on
Same shape as #8764. The input is already deterministic, Two things would be needed on top of this PR:
Worth confirming that the seeded draw actually clears 0.5 for this test before relying on it, the same way the validation section here does for the lightweight family. |
|
Addressed in d692d5a: seeded both IVF and PQ training in |
# Conflicts: # rust/lance/src/index/vector/ivf.rs
# Conflicts: # rust/lance-index/src/vector/kmeans.rs
|
Blocked: The current head remains blocked by an inherited flaky Rust linux-build failure and Gatekeeper's manual-review requirement. Remote head 81ade7d contains current base bba8390. The linux-build Check reports that test_hierarchical_kmeans_is_seeded_and_balanced alone failed after 7,420 passing tests because one partition was empty; rust/lance-index/src/vector/kmeans.rs is identical to main and the failing assertion was introduced by current-base commit 572936c. I fetched both refs, verified base ancestry and exact local/remote head identity, inspected the terminal log and code provenance, and reran the exact test successfully, including earlier runs across Rayon thread counts 1, 2, 4, 8, and 16, so there is no attributable repair to push. Gatekeeper also reports that no automated Review was produced and a maintainer must assess this head. The smallest action is to rerun the failed linux-build job and have a maintainer review this PR; alternatively, land a main-branch correction for the upstream hierarchical k-means empty-partition invariant and wake this agent to merge that base update. |
# Conflicts: # rust/lance/src/index/vector/ivf/v2.rs
Summary
Root cause
The vector fixtures seeded their input data, but k-means still initialized centroids from OS entropy. Different centroid choices could move the small recall samples below the 0.5 assertion threshold.
Validation
Fixes #8764