Repository navigation
[MOD-13858] Add branch-aware C and Rust coverage for unit and flow tests - #11543
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 025b21dd30
ℹ️ About Codex in GitHub
Your team has set up Codex to 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 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #11543 +/- ##
==========================================
- Coverage 84.13% 83.47% -0.66%
==========================================
Files 660 680 +20
Lines 86911 87952 +1041
Branches 41378 11449 -29929
==========================================
+ Hits 73120 73420 +300
+ Misses 13417 10894 -2523
- Partials 374 3638 +3264
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:
|
025b21d to
c9c17fd
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ed49aab6ed
ℹ️ About Codex in GitHub
Your team has set up Codex to 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 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
34cbd76 to
f89532b
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f89532b392
ℹ️ About Codex in GitHub
Your team has set up Codex to 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 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|



Describe the changes in the pull request
Coverage reporting was not consistently branch-aware across RediSearch C and Rust, and Rust code exercised through embedded flow tests was not included in the flow coverage uploads.
This PR:
redisearch.soduring flow tests.Measured outcome
The largest coverage-scope improvement is in the flow report, primarily because Rust flow coverage is now included:
The project-wide Codecov result changed as follows:
The lower percentage is not evidence that fewer tests ran. The measured scope expanded, particularly for Rust flow coverage, and lines with untested conditional paths are now classified as partial rather than fully covered. Fully covered lines increased by 300, while completely missed lines decreased by 2,523.
This run established the first consistent branch-coverage baselines:
There are no equivalent pre-PR branch percentages because branch data was not generated consistently across these suites. This PR establishes measurement and visibility; it does not introduce a coverage threshold or require 100% coverage.
C coverage uses pinned LCOV 2.5 to capture and filter branch-aware unit and flow reports. Rust unit coverage uses
cargo llvm-covwith nightly branch instrumentation, while Rust embedded inredisearch.sois instrumented during coverage builds, linked with LLVM's profiling runtime, and exported after flow tests. CI uploads all C and Rust reports to Codecov.Coverage remains opt-in and keeps its existing Ubuntu x86_64 CI scope. Ordinary
make bootstrapretainsCOV=0;make bootstrap COV=1verifies LCOV >= 2 and uses the checksum-pinned LCOV 2.5 source fallback when the distribution version is insufficient. Rust coverage tooling follows the repository's existing eager bootstrap model until a dedicatedbootstrap-testspath is available, and coverage CI installs its LCOV runtime prerequisites in the coverage-only setup. Coverage builds remain test-only, so the existingCOV=1/LTO=1incompatibility is rejected explicitly.Related earlier branch-coverage work: #5747 by @nafraf.
Which additional issues this PR fixes
Main objects this PR modified
Mark if applicable
Release Notes
Validation
COV=1plans; focused unit tests cover LCOV and Cobertura summary parsing.