Repository navigation
[MOD-17648] Remove keysDict null-handling test workaround from production code - #10927
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 21c123cfc1
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
21c123c to
25a6ec0
Compare
Remove the production revalidation guard that existed solely to accommodate an incomplete C++ test mock. Initialize and populate the mock keys dictionary in `testHybridVector` so the test exercises the production lookup path instead.
25a6ec0 to
732d08d
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #10927 +/- ##
==========================================
- Coverage 83.17% 82.19% -0.98%
==========================================
Files 611 635 +24
Lines 81136 82252 +1116
Branches 36374 37490 +1116
==========================================
+ Hits 67485 67611 +126
- Misses 13304 14294 +990
Partials 347 347
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|




Describe the changes in the pull request
testHybridVectorsupplies an incompleteIndexSpecwithout akeysDict. This makes production code accommodate a test-only state while allowing the test to bypass the real inverted-index lookup.keysDictpresence check and its production revalidation workaround. Initialize the test'skeysDictand register the expected term and inverted index.IndexSpecinvariant without test-specific behavior, while the test now exercises the real dictionary lookup and index-pointer validation path.Which additional issues this PR fixes
Main objects this PR modified
IndexSpecReadGuard— removes the test-drivenkeysDictpresence API.Mark if applicable
Release Notes