Skip to content

[MOD-19006] QN_TAG: improve tests and c wrapper API - #11601

Merged
gdesmott merged 3 commits into
masterfrom
MOD-14886-query-eval-tag-prereqs
Sep 29, 2026
Merged

gdesmott merged 3 commits into
masterfrom
MOD-14886-query-eval-tag-prereqs

Conversation

@gdesmott

@gdesmott gdesmott commented Sep 28, 2026 •

Copy link
Copy Markdown
Collaborator

Describe the changes in the pull request

  1. Current: The Rust port of tag node evaluation ([MOD-14886] Evaluate tag query nodes in Rust #11206) needs a few C-side facts the Rust wrappers cannot yet reach: the BAD_POINTER sentinel and a clock-driven timeout's deadline.
  2. Change: Expose those two through the existing wrappers, and enable the tag-lowering test for tokens ending in a dangling UTF-8 lead byte now that [MOD-18088] strconv: fix heap-buffer-overflow read in unicode_tolower for a dangling multi-byte UTF-8 lead byte #11202 fixed unicode_tolower().
  3. Outcome: Internal-only, no behavior change. Split out of [MOD-14886] Evaluate tag query nodes in Rust #11206 so that PR only contains the evaluator port itself.

Each commit is independent so it may be easier to review them one by one.

Main objects this PR modified

  1. QueryRequestTimeoutHandle — new clock_deadline.
  2. BAD_POINTER — now defined via a bindable BAD_POINTER_ADDR integer macro.

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

If a release note is required (bug fix / new feature / enhancement), describe the user impact of this PR in the title.

… byte

#11202 fixed the
unicode_tolower() bug so we can now test this.
Define BAD_POINTER in terms of an integer BAD_POINTER_ADDR macro and bind
it, so Rust callers can recognize the sentinel some C helpers return.
@gdesmott gdesmott changed the title [MOD-14886] Expose C query facts needed by the Rust tag evaluator [MOD-19006] QN_TAG: improve tests and c wrapper API Sep 28, 2026

@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: f75d001c5b

ℹ️ 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".

Add QueryRequestTimeoutHandle::clock_deadline, which reports the deadline
of a clock-driven timeout cycle and None for any other source.
@gdesmott
gdesmott force-pushed the MOD-14886-query-eval-tag-prereqs branch 2 times, most recently from 8caf42a to a277f76 Compare September 28, 2026 14:50
@codecov

codecov Bot commented Sep 28, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.54%. Comparing base (3171061) to head (a277f76).
⚠️ Report is 2 commits behind head on master.

⚠️ Current head a277f76 differs from pull request most recent head 7647ff9

Please upload reports for the commit 7647ff9 to get more accurate results.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #11601      +/-   ##
==========================================
- Coverage   84.26%   83.54%   -0.72%     
==========================================
  Files         640      665      +25     
  Lines       85418    86526    +1108     
  Branches    39255    40363    +1108     
==========================================
+ Hits        71975    72292     +317     
- Misses      13077    13860     +783     
- Partials      366      374       +8     
Flag Coverage Δ
flow 84.63% <ø> (+<0.01%) ⬆️
unit 59.00% <100.00%> (-0.40%) ⬇️

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.

@gdesmott
gdesmott force-pushed the MOD-14886-query-eval-tag-prereqs branch from a277f76 to 7647ff9 Compare September 29, 2026 06:46

@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: 7647ff9a91

ℹ️ 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 src/redisearch_rs/ffi/build.rs Resolved
@sonarqubecloud

Copy link
Copy Markdown

@JonasKruckenberg JonasKruckenberg 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.

Seems all good, but double check: BAD_POINTER_ADDR is used in a follow-up? or in generated bindings?

@gdesmott
gdesmott added this pull request to the merge queue Sep 29, 2026
@gdesmott

Copy link
Copy Markdown
Collaborator Author

Yeah it's used when handling the tag query node in Rust.

Merged via the queue into master with commit a26c6a5 Sep 29, 2026
61 checks passed
@gdesmott
gdesmott deleted the MOD-14886-query-eval-tag-prereqs branch September 29, 2026 09:07
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