Skip to content

Backport MGET key specification and cluster CI fixes to 8.10 - #1649

Merged
AvivDavid23 merged 2 commits into
8.10from
cherry-pick-ac573d8e-to-8.10
Sep 28, 2026
Merged

AvivDavid23 merged 2 commits into
8.10from
cherry-pick-ac573d8e-to-8.10

Conversation

@AvivDavid23

@AvivDavid23 AvivDavid23 commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

Backports ac573d8 and c4e35c2 onto 8.10.

JSON.MGET reports every key before the trailing JSONPath argument. Regression coverage checks key extraction and command metadata; existing cluster fixtures use matching hash tags.

The CI prerequisite raises RLTest to ~= 0.7.29 and passes the cluster-bus protected-mode waiver to OSS cluster runs, including ENV_ONLY. Setting CLUSTER_BUS_PROTECTED_MODE= omits the option for older Redis builds.

Validation:

  • MGET backport matches ac573d8 exactly.
  • CI prerequisite is an unchanged cherry-pick of c4e35c2.
  • git diff --check and bash syntax checks passed.
  • Protected-mode argument checks passed for unset, empty, no, and yes values.

Note

Medium Risk
Changes Redis command key-spec metadata for JSON.MGET, which affects GETKEYS/cluster key extraction; behavior is covered by new tests and matches existing runtime key parsing.

Overview
JSON.MGET command metadata now declares keys from argument 1 through the penultimate argument (find_keys last_key 0 → -2), so COMMAND GETKEYS, ACL, and cluster tooling treat every key before the trailing JSONPath as keys—not the path itself.

Regression coverage adds test_command_json_mget_key_spec and adjusts a few JSON.MGET fixtures to use consistent cluster hash tags where multi-key calls run in cluster mode.

CI prerequisites bump RLTest to ~= 0.7.29 and pass --cluster_bus_port_protected_mode no (overridable via CLUSTER_BUS_PROTECTED_MODE=) on OSS cluster test runs so Redis builds with cluster-bus protected mode can start under RLTest.

Reviewed by Cursor Bugbot for commit 732e3fe. Bugbot is set up for automated code reviews on this repo. Configure here.

* MOD-18952 Fix MGET command key spec

* fix tests
@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 85.93%. Comparing base (b85b88a) to head (732e3fe).

Additional details and impacted files
@@           Coverage Diff           @@
##             8.10    #1649   +/-   ##
=======================================
  Coverage   85.93%   85.93%           
=======================================
  Files          15       15           
  Lines        5276     5276           
=======================================
  Hits         4534     4534           
  Misses        742      742           

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

…#1644)

* MOD-18751: waive cluster bus protected mode for the oss-cluster phase

redis/redis#15722 added cluster-bus-port-protected-mode, and on the 8.12 line it
defaults to enabled: a node started with cluster-enabled and without tls-cluster
then refuses to start, because its cluster bus port would be unauthenticated.
That is how the oss-cluster phase is built, so every shard dies at startup and
each test fails at connect with "Connection refused". The refusal happens while
the configuration is validated, before the server opens its logfile, so the
retained logs are empty and say nothing about the cause.

Waive it for that phase. The bus ports here are bound to localhost on an
ephemeral host, which is the condition the directive documents for waiving, and
they were equally unauthenticated before the redis change - which only made
running them an explicit choice.

The option is not passed blind, because a redis that does not have it rejects
the directive and fails to start the same way. RLTest takes it as an option
rather than guessing, since nothing it can see distinguishes a build that has
the option from one that does not: the 8.12 line reports 8.9.241 in version.h,
the same as builds from before the change. CLUSTER_BUS_PROTECTED_MODE= omits it
for anyone running the cluster phase against an older redis locally.

The tls_cluster phase is left alone, since tls-cluster authenticates the bus,
and so is the existing-env phase, where RLTest starts no servers.

Requires RLTest with the option (RedisLabsModules/RLTest#255).

* Trigger CI to build the image locally, so it installs RLTest 0.7.29

* Set CLUSTER_BUS_ARGS before the ENV_ONLY branch can use it

run_env interpolates CLUSTER_BUS_ARGS for COORD=oss, but the ENV_ONLY branch
calls run_env and exits 20 lines before the assignment, so that path started
its cluster without the waiver and the shards refused to start on 8.12.

Moving the assignment above the branch; it depends on nothing in between.

Co-Authored-By: Claude Opus 5 <[email protected]>

---------

Co-authored-by: Claude Opus 5 <[email protected]>
@AvivDavid23 AvivDavid23 changed the title Cherry-pick: MOD-18952 Fix MGET command key spec (#1648) Backport MGET key specification and cluster CI fixes to 8.10 Sep 28, 2026

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

Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.

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 732e3fe. Configure here.

Comment thread tests/pytest/tests.sh
# cluster bus, and in the 8.2.10/8.4.7/8.6.7/8.8.3/8.10.2 backports, where it
# defaults to disabled. Set CLUSTER_BUS_PROTECTED_MODE= to omit it for an older redis.
CLUSTER_BUS_ARGS="--cluster_bus_port_protected_mode ${CLUSTER_BUS_PROTECTED_MODE-no}"
[[ -z ${CLUSTER_BUS_PROTECTED_MODE-no} ]] && CLUSTER_BUS_ARGS=""

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cluster flag breaks Valgrind Redis

Medium Severity

OSS cluster runs now always pass --cluster_bus_port_protected_mode unless CLUSTER_BUS_PROTECTED_MODE is empty, including the Valgrind job. That path still builds Redis 7.4, which is not among the versions that accept the directive, so the cluster server fails to start and the topology is skipped or red.

Additional Locations (1)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 732e3fe. Configure here.

@AvivDavid23
AvivDavid23 merged commit a05aac7 into 8.10 Sep 28, 2026
22 of 62 checks passed
@AvivDavid23
AvivDavid23 deleted the cherry-pick-ac573d8e-to-8.10 branch September 28, 2026 10:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants