Skip to content

test(core): let tests supply an embedder through the public open path (#1542) - #1545

Merged
ajianaz merged 1 commit into
developfrom
test/embedder-seam
Oct 22, 2026
Merged

ajianaz merged 1 commit into
developfrom
test/embedder-seam

Conversation

@ajianaz

@ajianaz ajianaz commented Oct 22, 2026

Copy link
Copy Markdown
Collaborator

What

  • test_support gains open_with_embedder / open_with_embedder_at (a store built with a caller-chosen embedder) and RecordingEmbedder (records every text, can fail its first N calls); open_keyword* delegate to them.
  • write_path_tests drops its private fake for the shared one.
  • The 33 core tests marked #[ignore] because Uteke::open needs the ONNX runtime now use the deterministic keyword embedder and run in CI (room, dedup, fusion, doc chunks, wikilink enrichment, verify/repair, explain). Three needed an explicit type (remember_typed) or a non-identical text because they relied on the real model's classifier or on bypassing dedup.
  • CHANGELOG line.

Why

Part of #1543 (#1542). Those tests were never run in CI, so the code they cover had no regression check. Production code is unchanged.

Testing

  • cargo test --workspace: core lib 871 passed, 0 ignored; fmt, clippy -D warnings, docgen (no diff).
  • Cora MCP prepare/finalize on the new test_support code: no findings.

…#1542)

test_support gains open_with_embedder(_at) and RecordingEmbedder. The 33 core tests ignored because Uteke::open needs the ONNX runtime now run with the keyword embedder.
@github-actions

github-actions Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

🔍 Cora AI Code Review

✅ No issues found. Code looks good!


Review powered by cora-code · BYOK · MIT

@ajianaz
ajianaz merged commit 8699e9a into develop Oct 22, 2026
17 checks passed
@ajianaz
ajianaz deleted the test/embedder-seam branch October 29, 2026 01:00
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