GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Refactor Search tests by uglide · Pull Request #4461 · redis/jedis

Conversation

@uglide

@uglide uglide commented Mar 12, 2026 •
edited by cursor Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

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.

All reactions
@uglide
uglide requested review from a-TODO-rov and ggivo March 12, 2026 15:39
@uglide
uglide force-pushed the im/refactor-module-tests branch from d73452d to c674feb Compare March 12, 2026 15:43
@jit-ci

jit-ci Bot commented Mar 12, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

🛡️ Jit Security Scan Results

CRITICAL HIGH MEDIUM

✅ No security findings were detected in this PR


Security scan by Jit
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

cursor[bot]
cursor Bot reviewed Mar 12, 2026
View reviewed changes
Comment thread src/main/java/redis/clients/jedis/UnifiedJedis.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

@a-TODO-rov
a-TODO-rov force-pushed the im/refactor-module-tests branch from c674feb to a01e903 Compare March 16, 2026 11:08
cursor[bot]
cursor Bot reviewed Mar 16, 2026
View reviewed changes
Comment thread src/main/java/redis/clients/jedis/CommandObjects.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread src/main/java/redis/clients/jedis/CommandArguments.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

a-TODO-rov
a-TODO-rov reviewed Mar 16, 2026
View reviewed changes

@a-TODO-rov a-TODO-rov left a comment

Copy link
Copy Markdown
Contributor

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.

All reactions
@uglide

uglide commented Mar 30, 2026

Copy link
Copy Markdown
Contributor Author
  • 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
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@uglide
uglide force-pushed the im/refactor-module-tests branch from a01e903 to b1e274a Compare March 30, 2026 14:46
cursor[bot]
cursor Bot reviewed Mar 30, 2026
View reviewed changes
Comment thread .../redis/clients/jedis/commands/unified/cluster/search/AggregateIteratorClusterCommandsIT.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

@github-actions

github-actions Bot commented Mar 30, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

cursor[bot]
cursor Bot reviewed Mar 30, 2026
View reviewed changes
Comment thread ...t/java/redis/clients/jedis/commands/unified/search/SearchDefaultDialectCommandsTestBase.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

cursor[bot]
cursor Bot reviewed Mar 30, 2026
View reviewed changes
Comment thread ...test/java/redis/clients/jedis/commands/unified/search/AggregateIteratorCommandsTestBase.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

cursor[bot]
cursor Bot reviewed Mar 30, 2026
View reviewed changes
Comment thread src/test/java/redis/clients/jedis/commands/unified/search/SearchCommandsTestBase.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

@uglide
uglide force-pushed the im/refactor-module-tests branch from aebcfe7 to 8bd7268 Compare April 15, 2026 09:22
cursor[bot]
cursor Bot reviewed Apr 15, 2026
View reviewed changes
Comment thread src/test/java/redis/clients/jedis/commands/unified/search/SearchWithParamsCommandsTestBase.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

cursor[bot]
cursor Bot reviewed Apr 17, 2026
View reviewed changes
Comment thread src/test/java/redis/clients/jedis/commands/unified/search/SearchCommandsTestBase.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

cursor[bot]
cursor Bot reviewed Apr 17, 2026
View reviewed changes
Comment thread ...test/java/redis/clients/jedis/commands/unified/search/AggregateIteratorCommandsTestBase.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

ggivo
ggivo reviewed Apr 17, 2026
View reviewed changes

@ggivo ggivo left a comment

Copy link
Copy Markdown
Collaborator

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

  1. There are failing tests against 7.4

AggregationCommandsTestBase.testAggregationBuilderAddScores test fails consistently when run against 7.4 env

  1. 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.

All reactions
cursor[bot]
cursor Bot reviewed Apr 17, 2026
View reviewed changes
Comment thread ...test/java/redis/clients/jedis/commands/unified/cluster/search/FTHybridCommandsClusterIT.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

uglide added 9 commits April 17, 2026 15:20
@uglide
Refactor Search tests
2bd52db
Integrate search tests into existing command testing structure and run all integration tests against OSS Cluster
@uglide
Add proper version guards for Search tests on OSS Cluster API
fc4b8f2
@uglide
Fix formatting
3a64053
@uglide
More test guards
867eae3
@uglide
Fix version guard for hybrid
2bd5e6c
@uglide
Fix SearchDefaultDialectCommandsTestBase
b2c5dc5
@uglide
Fix endpoints names
1100654
@uglide
Remove redundant line
429bd25
@uglide
Add missing tests
d52275d
uglide added 6 commits April 17, 2026 15:20
@uglide
Remove dead code
075846e
@uglide
Add search tests to formatter and reformat
95db7aa
Simplify formatter pattern
@uglide
Improve RedisVersionCondition to resolve method and class-level versi…
4c0e5dd
…ons and consider the higher one
@uglide
Fix version guard on FTHybridCommandsClusterIT
5d13dd4
@uglide
Remove redundant imports and test tags
efaac61
@uglide
Add missing tests in SearchCommandsTestBase
e28804f
@uglide
uglide force-pushed the im/refactor-module-tests branch from c94c017 to e28804f Compare April 17, 2026 13:22
cursor[bot]
cursor Bot reviewed Apr 17, 2026
View reviewed changes

@cursor cursor Bot left a comment

Copy link
Copy Markdown

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.

Fix All in Cursor

❌ 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.

All reactions
Comment thread src/test/java/redis/clients/jedis/commands/unified/cluster/search/SearchClusterCommandsIT.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread pom.xml Resolved

Uh oh!

There was an error while loading. Please reload this page.

ggivo
ggivo approved these changes Apr 17, 2026
View reviewed changes

@ggivo ggivo left a comment

Copy link
Copy Markdown
Collaborator

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

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@uglide
uglide merged commit c48c47d into master Apr 17, 2026
16 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@uglide
uglide deleted the im/refactor-module-tests branch April 17, 2026 13:37
@ggivo ggivo added the testing label May 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@a-TODO-rov a-TODO-rov a-TODO-rov left review comments
@ggivo ggivo ggivo approved these changes
+1 more reviewer
@cursor cursor[bot] cursor[bot] left review comments
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

testing

Projects

None yet

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.

3 participants

@uglide @ggivo @a-TODO-rov
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.