Repository navigation
fix(search): retain source candidates in test-heavy results - #1240
Open
azizur100389 wants to merge 1 commit into
Open
azizur100389 wants to merge 1 commit into
azizur100389 wants to merge 1 commit into
Conversation
code-review-graph reviewOverall risk: 0.55 (MEDIUM) — 5 changed function(s)/class(es), 3 affected flow(s), 1 test gap(s) (0 with no tested caller found, 1 reached only through a caller) Risk-scored changes
Affected execution flows
Reached only through a callerNo test names these directly, but a tested caller reaches them along the call path shown. That is a path in the call graph, not a record of execution -- the caller's tests may never take this branch. Treat it as where to look, not as coverage: these count as gaps and are scored as untested.
Powered by code-review-graph — local-first analysis; no code leaves the CI runner. |
This branch has not been deployed
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.
Linked issue
Refs #419. This addresses the full-text ranking case where tests occupy the candidate window. The embedding model stays configurable.
What & why
The source preference runs after the FTS limit, so it cannot recover an implementation that never reached reranking. When demoted rows fill a window, use a bounded second FTS lookup to keep eligible matches in the ranking pool. Explicit test searches keep their normal ranking.
How it was tested
python -m pytest tests/test_search_quality.py tests/test_search.py tests/test_yaml_locale_files.py tests/test_tools.py -q --tb=short— 288 passed.Final validation
1323f10. The Python 3.10–3.13 matrix passed 8,285 tests per version at 88.88–88.91% coverage. The minimum-dependency matrix, browser, native Windows, and Linux/macOS/Windows MCP end-to-end jobs passed.