Skip to content

test(oceanbase): complete scoring connection double - #2552

Merged
hidb4ai merged 1 commit into
masterfrom
codex/fix-atomic-scoring-test-run-sync
Nov 9, 2026
Merged

hidb4ai merged 1 commit into
masterfrom
codex/fix-atomic-scoring-test-run-sync

Conversation

@hidb4ai

@hidb4ai hidb4ai commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

Which issue or RFC does this PR close?

Fixes the Main workflow failure introduced by #2498.

Rationale for this change

The OceanBase scoring test's connection double lacks run_sync(), which the native FTS capability probe uses to access the connection pool. The MySQL parameter case therefore raises AttributeError before reaching its scoring assertions.

What changes are included in this PR?

Add run_sync() to the existing connection double, passing a synchronous connection view with the same engine and pool to the callback. Preserve all scoring, ordering, and limit assertions.

Are there any user-facing changes?

None. Only the test double changes; runtime code, public APIs, and database schemas are unchanged.

How was this change tested?

  • Reproduced the original failure on the parent commit.
  • uv run --locked python -m pytest -q -n 0 --doctest-modules -p no:cacheprovider tests/builtin/persistence/test_atomic_memory_search_scoring.py tests/builtin/persistence/test_oceanbase_atomic_memory_fts.py — 40 passed on Python 3.11.13 with locked dependencies.
  • Ran the same 40 tests on Python 3.14.6 using the existing development environment — all passed.
  • uv run --locked prek run -a — all hooks passed, including Ruff and ty check.
  • git diff --check — passed.

AI usage statement

OpenAI Codex was used to diagnose the failure, implement the test-double correction, run validation, and prepare this PR.

@hidb4ai
hidb4ai requested a review from PsiACE as a code owner November 9, 2026 03:59

@hireview001 hireview001 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@hidb4ai
hidb4ai merged commit 7fef43d into master Nov 9, 2026
37 of 39 checks passed
@hidb4ai hidb4ai added the 1.5.1 v1.5.1 release tracking label Nov 9, 2026
jackie-cqz added a commit to jackie-cqz/powercontext that referenced this pull request Nov 9, 2026
Bring in the 6 first-parent commits that landed since the previous merge,
including the fixes for the Atomic Memory reconciliation tests (they now expect
the stored Source sequence locator) and the OceanBase scoring connection double
(oceanbase#2552), which were failing on master and on this branch for the same reason.

The merge is textually clean. None of the merged commits adds a reference to
the moved or removed names, and the persistence digest in
`release/upgrade-support.json` is unchanged because the commits do not touch
the managed inputs.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@PsiACE
PsiACE deleted the codex/fix-atomic-scoring-test-run-sync branch November 16, 2026 12:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1.5.1 v1.5.1 release tracking

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants