chore: replace IVF split memory resource test with component tests
メンテナーはふだん 2 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 68/100
調査の方向性
Start in rust/lance/src/index/vector/builder.rs at raw_vector_fetch_shape, take_vectors_stream, and slice_evenly; read their implementations and the existing regroup_by_bytes unit test. Add focused tests for fetch shape, bounded concurrent calls, and slice counts and sizes, then remove the slow resource test from PR CI. Done when the component tests cover the stated cases and the full scale check is assigned to a benchmark or nightly job.
索引モデルが issue の本文から書いたものです。
説明
test_ivf_split_reshuffle_memory_stays_bounded is the slowest test in the Rust suite: about 100s in the ci profile (timings from #10971). It guards the fix from #9574 by building an IVF-PQ index over 512 MiB of vectors, running optimize_indices to force a split, and checking peak allocations against a 128 MiB ceiling. Allocation tracking only works at that scale, since at small scale runtime overhead hides the signal.
The bound comes from a few small components in reshuffle_partitions, each with its own number we can assert directly:
Proposal: replace the resource test with sub-100ms tests of each component.
raw_vector_fetch_shapeis pure and untested. Use rstest cases over block size (64 KiB, 4 KiB), dimension, and multivector vs fixed-size. Assertrows_per_fetch * row_bytes <= RAW_VECTOR_FETCH_BYTESand the in-flight count. This alone catches the original bug (block size in bytes used as a row count).take_vectors_streamshould take the fetch as a parameter instead of callingDataset::take_rowsitself. A test then passes a fake fetch that counts concurrent calls, and asserts it never exceedsprefetch. That catches a return tobuffered(io_parallelism).slice_evenly: assert the slice count and sizes.regroup_by_bytesalready has a unit test.
Then move the full-scale test out of PR CI, either to a benchmark or a nightly job.
- 主要言語
- Rust
- スター
- 7.3k
- フォーク
- 929
- 平均マージ
- 2日 22時間
- マージ済み PR(30日)
- 572
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
lance-format/lance のほかの issue
-
bug(python): read_transaction raises TypeError on a Rewrite with rewritten indices対応中かも @Borg93 が今日担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
lance-format/lance#11117 ·
メンテナーはふだん 2 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
lance-format/lance#10782 ·
メンテナーはふだん 2 日以内に返信
-
Upgrade DataFusion for the unparser stack-overflow fix再び着手できるかも このイシューのプルリクエストはマージされずにクローズされました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
lance-format/lance#8225 ·
メンテナーはふだん 2 日以内に返信
-
enhancement
難易度 1/5 1時間未満 初心者へのやさしさ 84/100
lance-format/lance#6425 · コメント 2 件 ·
メンテナーはふだん 2 日以内に返信
-
Expose compute_pq_distance再び着手できるかも このイシューのプルリクエストはマージされずにクローズされました。 オープンenhancement
難易度 1/5 1〜3時間 初心者へのやさしさ 62/100
lance-format/lance#5675 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
lance-format/lance の issue をすべて見る
似ている issue
-
area:cli area:security bug priority:medium
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
status: new topic: ga4gh-sdk type: bug
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
メンテナーはふだん 1 日以内に返信
-
comp-rbac
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
ClickHouse/ClickHouse#131875 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 80/100
googleworkspace/cli#984 ·
メンテナーはふだん 1 日以内に返信