GeezerVison is showing github.com — Refactor Search tests by uglide · Pull Request #4461 · redis/jedis
Conversation
uglide
commented
Mar 12, 2026
•
edited by cursor
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
Integrate search tests into the existing command testing structure and run all integration tests against OSS Cluster
Note Medium Risk
Moderate risk due to a large test-suite restructure and new cluster-specific conditions/skips that can change which tests run in CI and how endpoints are provisioned.
Overview
Refactors RediSearch tests from modules/search into the commands/unified/search structure, introducing new abstract *CommandsTestBase classes (search, aggregation, JSON search, spellcheck, suggestions, aggregate iterator) that use the UnifiedJedis test pattern and centralized endpoint setup/cleanup.
Adds new client/search/*IT and cluster/search/*IT runners to execute the same search test bases against standalone clients and Redis OSS cluster, with version/env gating and explicit skips for cluster-incompatible behaviors (e.g., certain cursor/iteration and inOrder cases). Updates pom.xml test includes to pick up the new search test locations and removes the old module-based JSON/Gson search tests.
Reviewed by Cursor Bugbot for commit e28804f. Bugbot is set up for automated code reviews on this repo. Configure here.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
jit-ci
Bot
commented
Mar 12, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
🛡️ Jit Security Scan Results
✅ No security findings were detected in this PR
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I reviewed the tests behavior and i found 3 separate problems:
- Local env (oss-source) - probably module tests need to be excluded from this env
- Docker <8.0 - cluster-stable has modules only in 8.0+ versions. For that reason me and @ggivo decided to make separate cluster-stack env that will build cluster based on stack image on version <8.0 and based on stable image on versions >8.0. I see this was removed with f6b4175 .
- Docker >8.0+ - this has some real issue related to this PR -
Cursor not found, id: xxx
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
- Docker <8.0 - cluster-stable has modules only in 8.0+ versions. For that reason me and @ggivo decided to make separate cluster-stack env that will build cluster based on stack image on version <8.0 and based on stable image on versions >8.0. I see this was removed with f6b4175 .
OSS Cluster API is not supported officially for modules in Redis < 8.0, so I will just add version guards there
|
a-TODO-rov reacted with thumbs up emoji
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Test Results
191 files + 8 191 suites +8 11m 34s ⏱️ ±0s
9 221 tests +316 9 165 ✅ +315 56 💤 +1 0 ❌ ±0
3 461 runs +102 3 456 ✅ +102 5 💤 ±0 0 ❌ ±0
Results for commit e28804f. ± Comparison against base commit 1f69ead.
This pull request removes 509 and adds 825 tests. Note that renamed tests count towards both.
redis.clients.jedis.commands.unified.client.search.FTHybridRedisClientCommandsTest[1] ‑ testComprehensiveFtHybridWithAllFeatures
redis.clients.jedis.commands.unified.client.search.FTHybridRedisClientCommandsTest[1] ‑ testLoadAllFields
redis.clients.jedis.commands.unified.client.search.FTHybridRedisClientCommandsTest[1] ‑ testLoadNoFields
redis.clients.jedis.commands.unified.client.search.FTHybridRedisClientCommandsTest[1] ‑ testLoadSpecificFields
redis.clients.jedis.commands.unified.client.search.FTHybridRedisClientCommandsTest[1] ‑ testLoadWithApply
redis.clients.jedis.commands.unified.client.search.FTHybridRedisClientCommandsTest[1] ‑ testLoadWithFilter
redis.clients.jedis.commands.unified.client.search.FTHybridRedisClientCommandsTest[1] ‑ testLoadWithGroupBy
redis.clients.jedis.commands.unified.client.search.FTHybridRedisClientCommandsTest[1] ‑ testNoSort
redis.clients.jedis.commands.unified.client.search.FTHybridRedisClientCommandsTest[2] ‑ testComprehensiveFtHybridWithAllFeatures
redis.clients.jedis.commands.unified.client.search.FTHybridRedisClientCommandsTest[2] ‑ testLoadAllFields
…
redis.clients.jedis.commands.unified.client.search.AggregateIteratorRedisClientCommandsIT[1] ‑ testAggregateIteratorBasicUsage
redis.clients.jedis.commands.unified.client.search.AggregateIteratorRedisClientCommandsIT[1] ‑ testAggregateIteratorEmptyResult
redis.clients.jedis.commands.unified.client.search.AggregateIteratorRedisClientCommandsIT[1] ‑ testAggregateIteratorFirstBatchReturnsInitialResults
redis.clients.jedis.commands.unified.client.search.AggregateIteratorRedisClientCommandsIT[1] ‑ testAggregateIteratorRemove
redis.clients.jedis.commands.unified.client.search.AggregateIteratorRedisClientCommandsIT[1] ‑ testAggregateIteratorRemoveAfterClose
redis.clients.jedis.commands.unified.client.search.AggregateIteratorRedisClientCommandsIT[1] ‑ testAggregateIteratorRemoveBeforeNext
redis.clients.jedis.commands.unified.client.search.AggregateIteratorRedisClientCommandsIT[1] ‑ testAggregateIteratorRemoveMultipleTimes
redis.clients.jedis.commands.unified.client.search.AggregateIteratorRedisClientCommandsIT[1] ‑ testAggregateIteratorSingleBatch
redis.clients.jedis.commands.unified.client.search.AggregateIteratorRedisClientCommandsIT[1] ‑ testAggregateIteratorWithoutCursor
redis.clients.jedis.commands.unified.client.search.AggregateIteratorRedisClientCommandsIT[2] ‑ testAggregateIteratorBasicUsage
…
This pull request removes 1 skipped test and adds 2 skipped tests. Note that renamed tests count towards both.
redis.clients.jedis.modules.search.SearchTest[3] ‑ blobField
redis.clients.jedis.commands.unified.client.search.SearchRedisClientCommandsIT[3] ‑ blobField
redis.clients.jedis.commands.unified.cluster.search.SearchClusterCommandsIT[3] ‑ blobField
♻️ This comment has been updated with latest results.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Two notes
- There are failing tests against 7.4
AggregationCommandsTestBase.testAggregationBuilderAddScores test fails consistently when run against 7.4 env
- Let's enforce formatting for newly introduced folders since moved tests are now formated
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Integrate search tests into existing command testing structure and run all integration tests against OSS Cluster
Simplify formatter pattern
…ons and consider the higher one
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cursor Bugbot has reviewed your changes and found 2 potential issues.

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit e28804f. Configure here.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Reviewers
ggivo
ggivo approved these changes
+1 more reviewer
Reviewers whose approvals may not affect merge requirements
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
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.
|