Skip to content

fix(core): 按 Block 预算穷尽图谱前沿 - #217

Closed
xiaoland wants to merge 5 commits into
ref/one-review-candidate-buildfrom
test/shared-graph-corpus
Closed

xiaoland wants to merge 5 commits into
ref/one-review-candidate-buildfrom
test/shared-graph-corpus

Conversation

@xiaoland

@xiaoland xiaoland commented Nov 28, 2026 •

Copy link
Copy Markdown
Member

改动

  • 寻路按 Relation ID 继续读取同一前沿,直至 PostgREST 返回空页。每个新 Block 才消耗 Block 预算,仅保存实际的路径父边。
  • Web E2E 直接运行 Hub 当前 gitlink 的图语料,并在同一个独占 PostgREST fixture 验证平行边与 Block 预算。Relation 页默认在查询阶段排除缺端点的行。直接邻域校验持久端点身份集合,保留合法自环;普通 Relation 读取保持原行为。

验证

  • PostgreSQL 17 和 PostgREST 14.15。精确四个 Block 的两跳路径在插入 10,000 条平行边后,基点误报 not_found;候选返回正确的 Block / Relation ID。把预算设为 3 时仍返回 limit_reached。

  • 将真实 PostgREST 最大返回行设为 5 时,只插入 5 条平行边即可在基点复现,候选继续读短页并找到路径。

  • 既有 Playwright Web 数据库入口的共享 10 条语料及平行边验收均通过。基点仅在平行边验收上失败。整仓格式、lint、类型检查通过。test: 清理重复测试并修复关键回归 #209 与 fix(core): 区分 Job 领取竞争与持久化失败 #216 的虚拟合并均无冲突。

  • 真实 PostgREST 另复现六种 NULL 端点失败及自环误判。候选三组图谱 Playwright 验收通过,覆盖被缺端点行占满的页;普通 Relation 读取仍保持严格校验。

并入测试审计与统一候选

本 PR 以 #220 为基底,保留 #209 的独占数据库和真实浏览器验证。仅 Web E2E checkout 额外物化 Hub 子模块,在相同候选入口中运行共享语料和真实 PostgREST 前沿分页。CI 使用事件的精确提交。

@xiaoland
xiaoland changed the base branch from main to ref/one-review-candidate-build November 28, 2026 17:56
@xiaoland xiaoland closed this Nov 28, 2026
@xiaoland
xiaoland deleted the test/shared-graph-corpus branch November 28, 2026 18:33

This branch was successfully deployed

1 active deployment
preview — 3e49f329 Deployed Nov 28, 2026 by xiaoland via Deploy pull-request preview #610
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