Repository navigation
test(oceanbase): complete scoring connection double - #2552
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 raisesAttributeErrorbefore 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?
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.uv run --locked prek run -a— all hooks passed, including Ruff andty 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.