Skip to content

升级 lance-ray 至 0.5.0 并固定 pylance 9.0.0 - #28

Merged
FANNG1 merged 3 commits into
mainfrom
chore/pylance-8
Sep 14, 2026
Merged

FANNG1 merged 3 commits into
mainfrom
chore/pylance-8

Conversation

@FANNG1

@FANNG1 FANNG1 commented Sep 14, 2026 •

Copy link
Copy Markdown
Owner

背景

lance-ray 0.4.2 + pylance 8.0.0 在分布式向量索引提交阶段调用已移除的 API,Stage 3 会静默回退到 pylance 单机建索引。lance-ray 0.5.0 要求 pylance 9.0.0,并使用兼容的分布式提交接口;同时修复了 compaction 默认选项的 0.4.x workaround。

改动

  • 精确固定 lance-ray==0.5.0、pylance==9.0.0。
  • 将 pytest 加入项目 dev dependency group,避免 CI 依赖 lance-ray 0.4.x 曾意外携带的测试依赖。
  • 移除 Stage 3 的 pylance 单机 fallback;分布式索引失败直接报错。
  • Stage 5 改为删除后默认执行 lance_ray.compact_files(),然后清理旧版本。
  • 移除 compaction_options={} workaround;lance-ray 0.5.0 未传选项时会使用默认 compaction 配置。
  • 新增 Blob v2 多 fragment 回归测试,并更新 README、调优文档和 Agent 指南。

验证

  • uv sync --locked:实际安装 lance-ray 0.5.0、pylance 9.0.0、pytest 9.1.1。
  • uv lock --check:通过。
  • .venv/bin/python -m pytest tests -q:118 passed,1 deselected。
  • 真实本地 Ray + 300 行/3 fragment IVF_FLAT:Stage 3 创建 3 个分布式索引 segment,ANN 查询返回 3 行,未触发单机 fallback。
  • 真实 MinIO S3 路径:通过 Stage 5 执行 Blob v2 表删除、分布式 compaction、cleanup;3 个 fragment 压实为 1 个,剩余 200 行 blob 可读。验证使用唯一前缀并已清理。

@FANNG1
FANNG1 merged commit 7e745cf into main Sep 14, 2026
1 check passed
@FANNG1
FANNG1 deleted the chore/pylance-8 branch September 14, 2026 12:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant