GeezerVison is showing github.com — Add AGENTS.md coding-conventions guide for agents by ggivo · Pull Request #4585 · redis/jedis
Conversation
ggivo
commented
Jun 30, 2026
•
edited by cursor
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
What
Adds AGENTS.md, a coding-conventions guide for AI agents and contributors, plus a CLAUDE.md that sources it.
Why
Gives agents and new contributors a single, in-repo reference for Jedis's build/test workflow, naming rules
Changes
AGENTS.md — conventions covering: JDK 8 compatibility, build & test commands (make start/mvn verify/make test), *IT/*Test naming, code style (@since/imports/comments), the command-wiring matrix, and a UnifiedJedis architecture overview.
CLAUDE.md — one line (@AGENTS.md) so Claude and other agents read the same conventions.
Note Low Risk
Documentation and site config only; no changes to client behavior, APIs, or tests.
Overview
Adds in-repo guidance for AI agents and contributors, plus a published architecture reference for the modern client stack.
AGENTS.md centralizes Jedis workflow expectations: JDK 8 compatibility, CI-aligned JDK usage, Docker-backed make test / mvn verify, unit vs integration test naming (*Test / *IT), @since on new public API, docs/migration updates, and the full command-wiring checklist (commands/ → CommandObjects → UnifiedJedis / PipeliningBase → Jedis). It also summarizes UnifiedJedis, builders, legacy Jedis, and encoding rules (SafeEncoder, Protocol).
CLAUDE.md is a one-line @AGENTS.md include so Claude-style agents load the same conventions.
docs/redis-client-components-overview.md is a new MkDocs page documenting executors, connection providers, client builders, and end-to-end GET flows (standalone, retry, cluster, multi-DB failover), including a Mermaid diagram.
mkdocs.yml enables Mermaid fences in superfences and adds Redis Client Components Overview under Development guide.
Reviewed by Cursor Bugbot for commit 543fc40. 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 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.
Test Results
159 files - 47 159 suites - 47 32s ⏱️ - 9m 47s
3 114 tests - 4 735 3 108 ✅ - 4 675 6 💤 - 60 0 ❌ ±0
3 095 runs - 4 774 3 089 ✅ - 4 714 6 💤 - 60 0 ❌ ±0
Results for commit 543fc40. ± Comparison against base commit 79f6bce.
This pull request removes 7849 and adds 3114 tests. Note that renamed tests count towards both.
redis.clients.jedis.ACLJedisPoolTest ‑ allowUrlWithNoDBAndNoPassword
redis.clients.jedis.ACLJedisPoolTest ‑ checkCloseableConnections
redis.clients.jedis.ACLJedisPoolTest ‑ checkConnections
redis.clients.jedis.ACLJedisPoolTest ‑ checkPoolOverflow
redis.clients.jedis.ACLJedisPoolTest ‑ checkPoolRepairedWhenJedisIsBroken
redis.clients.jedis.ACLJedisPoolTest ‑ checkResourceIsClosableAndReusable
redis.clients.jedis.ACLJedisPoolTest ‑ checkResourceWithConfigIsClosableAndReusable
redis.clients.jedis.ACLJedisPoolTest ‑ customClientName
redis.clients.jedis.ACLJedisPoolTest ‑ customClientNameNoSSL
redis.clients.jedis.ACLJedisPoolTest ‑ nonDefaultDatabase
…
ALL_AVAILABLE Policy Tests ‑ shouldContinueWhenAllPending
ALL_AVAILABLE Policy Tests ‑ shouldContinueWhenPending
ALL_AVAILABLE Policy Tests ‑ shouldFailImmediatelyWithAnyFailure
ALL_AVAILABLE Policy Tests ‑ shouldFailWhenAllConnectionsFail
ALL_AVAILABLE Policy Tests ‑ shouldFailWhenAnyConnectionFails
ALL_AVAILABLE Policy Tests ‑ shouldFailWithEmptyContext
ALL_AVAILABLE Policy Tests ‑ shouldFailWithSingleFailure
ALL_AVAILABLE Policy Tests ‑ shouldSucceedWhenAllAvailable
ALL_AVAILABLE Policy Tests ‑ shouldSucceedWithSingleConnection
ConformsTo Policy Evaluation Tests ‑ shouldDelegateToPolicy
…
This pull request removes 66 skipped tests and adds 6 skipped tests. Note that renamed tests count towards both.
redis.clients.jedis.MultiDbClientTest[2] ‑ testCachePreservedAcrossDatabaseSwitches()[2]
redis.clients.jedis.MultiDbClientTest[2] ‑ testCacheWithDynamicDatabaseAddition()[2]
redis.clients.jedis.MultiDbClientTest[2] ‑ testCacheWithMultiDbClient()[2]
redis.clients.jedis.MultiDbClientTest[2] ‑ testCacheWithMultiDbClientPoolRecreation()[2]
redis.clients.jedis.commands.commandobjects.CommandObjectsJsonCommandsTest[2] ‑ testJsonArrLenRoot()[2]
redis.clients.jedis.commands.commandobjects.CommandObjectsJsonCommandsTest[2] ‑ testJsonDebugMemoryRoot()[2]
redis.clients.jedis.commands.commandobjects.CommandObjectsJsonCommandsTest[2] ‑ testJsonGetWithClass()[2]
redis.clients.jedis.commands.commandobjects.CommandObjectsJsonCommandsTest[2] ‑ testJsonObjKeysRoot()[2]
redis.clients.jedis.commands.commandobjects.CommandObjectsJsonCommandsTest[2] ‑ testJsonObjLenRoot()[2]
redis.clients.jedis.commands.commandobjects.CommandObjectsJsonCommandsTest[2] ‑ testJsonStrAppendRootPath()[2]
…
redis.clients.jedis.PushMessageNotificationTest ‑ testConnectionResp3PushNotifications
redis.clients.jedis.PushMessageNotificationTest ‑ testConnectionResp3PushNotificationsWithCustomListener
redis.clients.jedis.UdsTest ‑ jedisConnectsToUds
redis.clients.jedis.UdsTest ‑ jedisConnectsToUdsResp3
redis.clients.jedis.UdsTest ‑ redisClientConnectsToUds
redis.clients.jedis.UdsTest ‑ redisClientConnectsToUdsResp3
♻️ This comment has been updated with latest results.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
A coding-conventions guide for AI agents and contributors (build/test commands, test naming, command-wiring matrix, and architecture overview),
CLAUDE.md sources AGENTS.md so both Claude and other agents read the
same conventions.
High-level walkthrough of the client architecture — UnifiedJedis and
CommandExecutor/ConnectionProvider abstractions, client implementations
builder hierarchy, and command execution flows.
…ndering
Review fixes for the architecture overview:
- Rewrite RedisClient, RedisSentinelClient, and MultiDbClient usage examples
against the real builder APIs (clientConfig-based auth, MultiDbConfig
builder, DatabaseConfig.builder(endpoint, clientConfig))
- Correct SentineledConnectionProvider constructor signature
- Correct AbstractClientBuilder template-method list (createClient()/self()
are abstract; createDefaultCommandExecutor() is concrete) and move retry
settings to ClusterClientBuilder where they actually live
- Fix SimpleCommandExecutor/ManagedConnectionProvider use cases (Pipeline and
Transaction bypass executors/providers)
- Describe RetryableCommandExecutor backoff as deadline-proportional, not
exponential, and note it only sleeps after consecutive failures
- Add RedisSentinelClient to the intro, diagram, and client implementations
- Configure pymdownx.superfences mermaid custom fence so the architecture
diagram renders on the docs site
- Grammar fix in AGENTS.md opening line
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Uh oh!
There was an error while loading. Please reload this page.
Reviewers
uglide
Awaiting requested review from uglide
atakavci
Awaiting requested review from atakavci
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.
|