Skip to content

ci: smart-extractor-branches.mjs test failing since PR #669 bulkStore refactor #679

@jlin53882

Description

@jlin53882

Issue: smart-extractor-branches.mjs test failing since PR #669 bulkStore refactor

Severity: High — CI on master branch is broken since PR #669

Affected: test/smart-extractor-branches.mjs line 497


Symptom

core-regression CI job has been failing since PR #669 (a8bb8ec):

AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value:
  assert.ok(
    multiRoundResult.logs.some((entry) => entry[1].includes("created [preferences] 饮�??�好:�?龙茶")),
  );
    at file:///home/runner/work/memory-lancedb-pro/memory-lancedb-pro/test/smart-extractor-branches.mjs:497

Last passing CI: cf782a2 (Apr 20 02:57)
First failing CI: a8bb8ec (Apr 20 11:20) — PR #669 merged at 11:20:20Z


Root Cause

PR #669 refactored src/smart-extractor.ts to use bulkStore() instead of individual store() calls for batch writes. The test smart-extractor-branches.mjs was not updated to reflect this change.

The assertion at line 497 checks for the log message:

"created [preferences] 饮�好:�龙茶"

This message is logged inside storeCandidate() (the old single-write path), but after PR #669, the multi-round scenario now uses bulkStore() which does NOT call storeCandidate() — therefore this specific log line is never emitted in the batch path.

Evidence:


What Needs to Happen

Option A — Fix the test to match new behavior:

  1. Update smart-extractor-branches.mjs to track bulkStore calls instead of expecting created [preferences] log messages
  2. Or: add a test mode that still logs individual creates during batch operations

Option B — Restore per-item logging in bulkStore:

  1. Have bulkStore emit per-entry log lines similar to storeCandidate()
  2. Less desirable — defeats the purpose of batch optimization

Related Files


Note

This is NOT caused by PR #678 (fix for Issue #675/#676). PR #678 is mergeable and passes its own tests. This is a pre-existing upstream issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions