Skip to content

[MOD-17648] Remove keysDict null-handling test workaround from production code - #10927

Merged
daxhuiberts merged 1 commit into
masterfrom
dax-remove-keysdict-null-handling-test-workaround
Aug 17, 2026
Merged

daxhuiberts merged 1 commit into
masterfrom
dax-remove-keysdict-null-handling-test-workaround

Conversation

@daxhuiberts

Copy link
Copy Markdown
Collaborator

Describe the changes in the pull request

  1. Current: Production term revalidation contains special null handling solely because testHybridVector supplies an incomplete IndexSpec without a keysDict. This makes production code accommodate a test-only state while allowing the test to bypass the real inverted-index lookup.
  2. Change: Remove the keysDict presence check and its production revalidation workaround. Initialize the test's keysDict and register the expected term and inverted index.
  3. Outcome: Production revalidation follows the actual IndexSpec invariant without test-specific behavior, while the test now exercises the real dictionary lookup and index-pointer validation path.

Which additional issues this PR fixes

  1. N/A

Main objects this PR modified

  1. IndexSpecReadGuard — removes the test-driven keysDict presence API.
  2. Term iterator revalidation — removes the null-dictionary workaround.
  3. Hybrid vector C++ tests — provides the dictionary state required by production revalidation.

Mark if applicable

  • This PR introduces API changes
  • This PR introduces serialization changes

Release Notes

  • This PR requires release notes
  • This PR does not require release notes

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 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".

Comment thread tests/cpptests/test_cpp_index.cpp Resolved
@daxhuiberts
daxhuiberts force-pushed the dax-remove-keysdict-null-handling-test-workaround branch from 21c123c to 25a6ec0 Compare August 14, 2026 15:14
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.
@daxhuiberts
daxhuiberts force-pushed the dax-remove-keysdict-null-handling-test-workaround branch from 25a6ec0 to 732d08d Compare August 14, 2026 15:20
@codecov

codecov Bot commented Aug 14, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 82.19%. Comparing base (1847e3f) to head (732d08d).
⚠️ Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
src/redisearch_rs/c_wrappers/index_spec/src/lib.rs 0.00% 1 Missing ⚠️
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              
Flag Coverage Δ
flow 84.36% <ø> (-0.03%) ⬇️
unit 55.76% <0.00%> (-0.60%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
C Maintainability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

@daxhuiberts
daxhuiberts added this pull request to the merge queue Aug 17, 2026
Merged via the queue into master with commit e10ae40 Aug 17, 2026
57 of 59 checks passed
@daxhuiberts
daxhuiberts deleted the dax-remove-keysdict-null-handling-test-workaround branch August 17, 2026 08:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants