Skip to content

fix: unbreak main after the Sogou removal and compile the dictionary crate in CI - #62

Merged
nervouna merged 1 commit into
mainfrom
fix/domain-vocabulary-ci
Oct 8, 2026
Merged

nervouna merged 1 commit into
mainfrom
fix/domain-vocabulary-ci

Conversation

@nervouna

@nervouna nervouna commented Oct 8, 2026

Copy link
Copy Markdown
Owner

Refs #56, Refs #52.

问题

PR #59 合并后 main 的 macOS CI 失败:

FAIL Core/Tests/InkFlowEngineTestSupport/EngineRegression.swift:272 Missing domain candidate chuanxingdayinji -> 串行打印机

该词条是 #59 刻意移除的搜狗独有数据,但 domainVocabulary 回归仍要求它。同一 PR 还改了 Rust 词典端口中 read_rows 的签名而没更新 spelling.rs,crate 无法编译;CI 的 cargo 作业只跑 Core/Portable/Cargo.toml(运行时),没有覆盖 Core/Portable/dictionary。

变化

  • EngineRegression.swift:删除对 串行打印机 的期望。
  • Core/Portable/dictionary/src/spelling.rs:去掉多余的 None 参数。
  • .github/workflows/ci.yml:新增 Portable dictionary (cargo test) 作业,运行 Core/Portable/dictionary/test.sh,在 Linux 上与提交的 fixtures 对比。

验证(本机,合并后的 main 加本 PR)

  • test.sh engine-english 通过;此前已在合并后的 main 上跑过 quick 其余单元、quality-baseline、dictionary-generator、source-bundle,全部通过。
  • Core/Portable/dictionary/test.sh 通过:965,919 行、32 个拼写方案与 Swift 生成结果逐字节一致,43 个 Swift/Rust 契约用例通过。

🤖 Generated with Claude Code

…he dictionary crate in CI

PR #59 removed the Sogou-only 串行打印机 entry but left the domain-vocabulary
regression expecting it, which fails engine-english on main. It also changed
read_rows' signature without updating spelling.rs, so the Rust dictionary port
no longer compiled; CI did not notice because only the portable runtime crate
ran there. Remove the expectation, fix the call, and add a CI job that runs
Core/Portable/dictionary/test.sh against the committed fixtures.

Refs #56
Refs #52

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 8, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-08T10:00:52.152354Z c0f532f PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@nervouna
nervouna merged commit 390531b into main Oct 8, 2026
5 checks passed
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