Repository navigation
MOD-18751 / MOD-18906 / MOD-18913: bring the oss-cluster flow tests back - #2194
Conversation
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).
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #2194 +/- ##
=======================================
Coverage 70.19% 70.19%
=======================================
Files 41 41
Lines 8622 8622
=======================================
Hits 6052 6052
Misses 2570 2570
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:
|
Setting it on RLTEST_ARGS in the OSS_CLUSTER block leaks into the tls_cluster block below, which is a separate if and inherits the parent shell's value - the tls_cluster phase was getting the option too, which this change had claimed it would not. Set it inside each oss-cluster invocation's own subshell instead, as the other phases do. Found by dry-running tests.sh with NOP=1 and reading the generated RLTest configuration per phase. Verified after: one occurrence, in "tests on OSS cluster" only; the general, slaves, AOF and tls_cluster phases carry none. Note the pre-existing duplicate --cluster_node_timeout in the tls_cluster configuration, which comes from the same leak and is left alone here.
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.
❌ 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 ac3397f. Configure here.
|
Ci is still red |
Repoints the pin at the March-2025 commit plus only the new option, and adds the oss-cluster waiver, so this branch changes RLTest behaviour in exactly one way. #2194 moved the pin forward by about 25 commits at the same time as adding the option, and its cluster legs start correctly while other legs fail on test_topology_events:test_failover and test_globalconfigs:test_module_config_from_module_arguments_raises_deprecation_messages. Bumping the pin alone reproduced red legs too. If this branch is green, those failures belong to the intervening RLTest commits and not to the option. The pin points at a personal fork for the duration of this experiment, so this branch must not be merged.
… bus (#2196) test_topology_events:test_failover spawns its own cluster-node replicas, rather than relying on RLTest, so RLTest's cluster-bus-port-protected-mode waiver does not reach them. Since redis/redis#15722 a cluster node whose bus port is not authenticated by tls-cluster refuses to start unless protection is waived, so those replicas died at startup and the test timed out after 2308s on every oss-cluster leg. Mirror the master's value of the option onto the replica we spawn. The config is absent on older redis, which reports an empty dict and gets nothing added, since passing an unknown config would be fatal there instead. Also bound the wait for the replica to serve. It was the one unbounded wait in the helper, so a replica that never started produced only a test timeout, with the cause nowhere in the output: a config redis rejects is reported before the logfile is opened, leaving an empty log. Co-authored-by: Claude Opus 5 <[email protected]>
RLTest's own requirement on the client is uncapped (redis = ">=5.0.0"), where the
commit this repo was pinned to until now capped it at "^5.0.0rc2". Moving the pin
therefore let pip install redis-py 8.1.0, which negotiates RESP3 by default, and
under RESP3 TS.MRANGE ... GROUPBY replies with a map rather than rows:
((filtered_by, withlabels, samples),) = result
ValueError: too many values to unpack (expected 3)
Pin the client to the 5.x series, which is what the old RLTest pin was silently
giving us, so the pin bump does not carry a protocol change with it. Supporting
RESP3 in the assertions is the real fix and stays with MOD-18913.
It was reverted by accident in the previous commit, which picked up a stale staged copy of the file alongside the requirements change.
|
Two updates here. Merged #2196 into this branch. Capped redis-py below 6. The pin bump is what pulled the protocol change in: the commit this repo was on capped the client at
Added the |
…#2197) * MOD-18913 - Pin the RLTest fix for escaped semicolons in moduleArgs The plain-string branch of fix_modulesArgs reuses the raw input instead of the unescaped split, so an escaped semicolon reaches the module with its backslash. test_globalconfigs passes COMPACTION_POLICY that way, the module then fails to load, the server never starts, and the test reports only Connection refused against the Env it just built - on gen, slaves, aof and aof_slaves. Fixed upstream in RLTest#256; pinned to that commit until it merges. Co-Authored-By: Claude Opus 5 <[email protected]> * Trigger CI * Point the pin at upstream RLTest now that the fix has merged RedisLabsModules/RLTest#256 merged as 7e9f69ac1, so the escaped-semicolon fix is available upstream and the pin no longer has to reference a fork. Same code either way - 8dc964e was that PR's head - so this changes nothing in CI, it just stops the branch from merging with a personal fork as a dependency. * Spell the RLTest pin as a full SHA An abbreviated SHA only resolves while the commit stays reachable from the default branch, because a git fetch of a specific object needs the full hash and an abbreviation is resolved after the clone. It works today - CI on the previous commit passed - but it is a needless dependency on that reachability, and the pin this replaced was a full SHA. Same commit either way. Raised by Cursor Bugbot on 965b2db. --------- Co-authored-by: Claude Opus 5 <[email protected]>
| # Capped below redis-py 6: from 6 on, the client negotiates RESP3 by default, and RLTest's | ||
| # requirement is uncapped, so pip picks the newest. Under RESP3 TS.MRANGE ... GROUPBY replies | ||
| # with a map instead of rows and the suite's reply assertions fail (MOD-18913). | ||
| redis ~= 5.0.8 |
There was a problem hiding this comment.
RLtest had redis-py cap and it's dropped,
when taking the newest redis-pt - it's picking RESP3 by default
when using RESP3 - TS.Mrange returns a map instead of rows - which cause the test fail.
this static limitation make it enforce Resp2.
anoter alternative is to fix the test, if we are going with that - let's split it to a separated ticket.
| f"config, in which case the error went to this process' stderr" | ||
| ) | ||
| if time.time() - start_time > get_timeout(): | ||
| raise TimeoutError(f"Replica on port {replica_port} did not serve in {get_timeout()}s") |
There was a problem hiding this comment.
add a bound to the loop, in case replica dies at the statup - it will get out much shorter.
|
gabsow
left a comment
There was a problem hiding this comment.
Approved as the CI recovery fix at b650306. The latest checks are green (44 passed, 1 skipped), and the PR includes the replica cluster-bus configuration fix and the merged upstream RLTest argument-parser fix. The temporary redis-py pin is reasonable to restore the previous test behavior while protocol compatibility is handled separately.
Two nonblocking follow-ups:
- Correct the requirements comments: RESP3 became the redis-py default in 8.0, not 6.0. Also,
redis ~= 5.0.8specifically restricts installation to 5.0.x. Please describe this as a temporary known-working client pin; it does not constrain the Redis server version used in CI. - Strengthen the replica-readiness deadline with socket/connect timeouts and handling for
redis.TimeoutError. A blockingPINGcan otherwise prevent the loop from reaching its deadline check. Usetime.monotonic()for elapsed time.
## Summary Updates the bundled RedisTimeSeries pin in `modules/modules.yaml` from **v8.10.0 to v8.11.90**, the **8.12 release candidate**. | Module | From | To | |---|---|---| | RedisTimeSeries | v8.10.0 | v8.11.90 | The upstream tag resolves to `ef84d314675a693998092db24b5adf8cc314d004`, the current `8.12` release-branch head. Its source version is `8.11.90`. RedisJSON and RedisBloom are handled separately by #15964 and #15966. ## Release notes — RedisTimeSeries 8.12 release candidate Based on the published [`v8.11.90` tag](https://github.com/RedisTimeSeries/RedisTimeSeries/tree/v8.11.90) at [`ef84d314`](RedisTimeSeries/RedisTimeSeries@ef84d31). These notes describe the actual changes since **8.10.0**, excluding features already backported into that release. ### Bug fixes and robustness - **Correct replication and AOF replay for increments with labels:** Fixed `TS.INCRBY` and `TS.DECRBY` inserting an automatically generated `TIMESTAMP` after the `LABELS` clause, where it could be interpreted as an extra label. Also corrected keyword detection when keys or labels contain `TIMESTAMP` or `LABELS`, and prevented failed sample updates from being replicated. ([#2160](RedisTimeSeries/RedisTimeSeries#2160)) - **Correct updates to large uncompressed chunks:** Fixed sample-count truncation when inserting or updating samples in uncompressed chunks containing more than 32,767 samples, including chunks loaded through `RESTORE`. ([#2172](RedisTimeSeries/RedisTimeSeries#2172)) - **Safer compressed-chunk decoding:** Added bounds checks and read-ahead padding to prevent heap over-reads when decoding malformed compressed chunks. Validation applies to both RDB loading and inter-shard deserialization. ([#2150](RedisTimeSeries/RedisTimeSeries#2150)) - **Stricter RDB consistency validation:** Reject serialized series with no chunks, duplicate chunk start timestamps, overflowing sample-count totals, or a total sample count that disagrees with the loaded chunks. ([#2189](RedisTimeSeries/RedisTimeSeries#2189)) - **Safe duplicate-policy parsing:** Fixed a potential stack overflow when an excessively long duplicate-policy string is supplied. Valid policy names retain their existing case-insensitive behavior. ([#2205](RedisTimeSeries/RedisTimeSeries#2205)) ### Cluster reliability - Improved cluster-type detection and inter-shard authentication handling for Redis Enterprise deployments using OSS cluster mode. ([#2149](RedisTimeSeries/RedisTimeSeries#2149), [LibMR #123](RedisGears/LibMR#123)) - Fixed an SSL-object memory leak when inter-shard TLS initialization fails. ([LibMR #124](RedisGears/LibMR#124)) - Changed distributed execution-ID initialization to avoid reusing IDs after a shard restarts. ([#2199](RedisTimeSeries/RedisTimeSeries#2199), [LibMR #126](RedisGears/LibMR#126)) ### Command metadata - Added the missing `TS.QUERYLABELS` entry to `commands.json` for client-generation and documentation tools. The command itself was already available in 8.10.0. ([#2135](RedisTimeSeries/RedisTimeSeries#2135)) - Corrected `TS.CREATERULE`’s advertised minimum argument count. ([#2136](RedisTimeSeries/RedisTimeSeries#2136)) - Updated `TS.INCRBY` and `TS.DECRBY` command specifications to describe their supported creation options accurately. ([#2160](RedisTimeSeries/RedisTimeSeries#2160)) ### Testing and build maintenance - Expanded replication-integrity, failover, topology-convergence, TLS-failure, and corrupted-RDB regression coverage. - Improved cluster-test startup and timeout handling, updated RLTest to 0.7.31, and removed Debian Bullseye CI jobs. - **Updated the Homebrew OpenSSL dependency to OpenSSL 4 for macOS builds.** ([#2213](RedisTimeSeries/RedisTimeSeries#2213), [8.12 backport #2215](RedisTimeSeries/RedisTimeSeries#2215)) - Added release-tag/version validation and improved artifact naming for nightly and manual builds. - Reduced the TLS migration-test fixture to improve CI reliability; this change does not alter production query timeouts. ([#2212](RedisTimeSeries/RedisTimeSeries#2212)) - Set the release-candidate version to **8.11.90**. ([#2214](RedisTimeSeries/RedisTimeSeries#2214)) [Full comparison: v8.10.0 → v8.11.90](RedisTimeSeries/RedisTimeSeries@v8.10.0...v8.11.90) ## Validation - [x] Verified the published tag points to the intended 8.12 release commit and matches `src/version.h`. - [x] Verified the manifest parser resolves RedisTimeSeries to `v8.11.90` as a tag. - [x] Verified the diff changes only the RedisTimeSeries pin; `git diff --check` passes. - [ ] Upstream [tag build/test/package workflow](https://github.com/RedisTimeSeries/RedisTimeSeries/actions/runs/38559907930) completes (running when this PR was opened; tag-version validation passed). - [ ] Redis core CI validates the bundled module. A full local module build/test was not run for this manifest-only change. <details> <summary>Upstream commit history for audit</summary> This is the commit-history range, not a list of newly introduced features: some master commits have equivalent backports in 8.10.0. The release notes above were checked against the net source diff. - Use dedicated redis_ref field in ramp.yml for CI git ref ([#2059](RedisTimeSeries/RedisTimeSeries#2059)) ([ccdcd46e](RedisTimeSeries/RedisTimeSeries@ccdcd46)) - pass VG=1 flag to the build as well ([#2060](RedisTimeSeries/RedisTimeSeries#2060)) ([062f3691](RedisTimeSeries/RedisTimeSeries@062f369)) - MOD-16160 - wake parked TS.BGET clients on key deletion ([#2062](RedisTimeSeries/RedisTimeSeries#2062)) ([b1c4085d](RedisTimeSeries/RedisTimeSeries@b1c4085)) - ci: bump GitHub Actions to Node24-compatible versions ([#2035](RedisTimeSeries/RedisTimeSeries#2035)) ([04cb2fce](RedisTimeSeries/RedisTimeSeries@04cb2fc)) - MOD-15749 Short-form CLUSTERSET: RAMP capability + LibMR error-return ([#2065](RedisTimeSeries/RedisTimeSeries#2065)) ([8f2a3a6b](RedisTimeSeries/RedisTimeSeries@8f2a3a6)) - ci: speed up Event CI (lean PR gate) and shard slow nightly jobs ([#2068](RedisTimeSeries/RedisTimeSeries#2068)) ([cfcd4e73](RedisTimeSeries/RedisTimeSeries@cfcd4e7)) - MOD-6409 - TS.INFO memoryUsage (and MEMORY USAGE, via the mem_usage callback) ([#2067](RedisTimeSeries/RedisTimeSeries#2067)) ([00c646b4](RedisTimeSeries/RedisTimeSeries@00c646b)) - MOD-16266 - fix ci hang ([#2066](RedisTimeSeries/RedisTimeSeries#2066)) ([a0f71da6](RedisTimeSeries/RedisTimeSeries@a0f71da)) - MOD-15565 - mrange aggregation execution in inner shards ([#2074](RedisTimeSeries/RedisTimeSeries#2074)) ([badcf8ac](RedisTimeSeries/RedisTimeSeries@badcf8a)) - MOD-16505 - change TS.BGET command to TS.READ ([#2081](RedisTimeSeries/RedisTimeSeries#2081)) ([22c471ef](RedisTimeSeries/RedisTimeSeries@22c471e)) - MOD-14615: run valgrind test suite serially to avoid CPU oversubscription ([#2083](RedisTimeSeries/RedisTimeSeries#2083)) ([a48abf37](RedisTimeSeries/RedisTimeSeries@a48abf3)) - MOD-14615: skip test_asm migration-query test on macos-15-intel ([#2084](RedisTimeSeries/RedisTimeSeries#2084)) ([c94501f2](RedisTimeSeries/RedisTimeSeries@c94501f)) - MOD-16299 - NRANGE support multiple aggregations ([#2079](RedisTimeSeries/RedisTimeSeries#2079)) ([7d16dbd6](RedisTimeSeries/RedisTimeSeries@7d16dbd)) - MOD-16514 - fix bootstrap & build for all os ([#2082](RedisTimeSeries/RedisTimeSeries#2082)) ([049d00dc](RedisTimeSeries/RedisTimeSeries@049d00d)) - MOD-16653 Prevent more heap overflow + other rdb load asserions ([#2086](RedisTimeSeries/RedisTimeSeries#2086)) ([b54cdcef](RedisTimeSeries/RedisTimeSeries@b54cdce)) - MOD-16172 - support exclude empty in mrange commands ([#2072](RedisTimeSeries/RedisTimeSeries#2072)) ([0d46cacd](RedisTimeSeries/RedisTimeSeries@0d46cac)) - ci: add code coverage to CI — PR + nightly (lcov -> Codecov) ([#2070](RedisTimeSeries/RedisTimeSeries#2070)) ([dbb7ce4f](RedisTimeSeries/RedisTimeSeries@dbb7ce4)) - fix(alpine): use distro python3 for the test venv (avoid uv musl clang standalone) ([#2089](RedisTimeSeries/RedisTimeSeries#2089)) ([0576b6ed](RedisTimeSeries/RedisTimeSeries@0576b6e)) - MOD-16370 Introduce `TS.QUERYLABELS`: Get a list of labels and label-… ([#2090](RedisTimeSeries/RedisTimeSeries#2090)) ([77b634dd](RedisTimeSeries/RedisTimeSeries@77b634d)) - MOD-16873 `TS.INCRBY` replicate master timestamp when timestamp is lo… ([#2109](RedisTimeSeries/RedisTimeSeries#2109)) ([ca3375a9](RedisTimeSeries/RedisTimeSeries@ca3375a)) - MOD-16306 - use registry for pulling / pushing docker images ([#2098](RedisTimeSeries/RedisTimeSeries#2098)) ([8c2f591b](RedisTimeSeries/RedisTimeSeries@8c2f591)) - MOD-16364 - update requirements deps ([#2108](RedisTimeSeries/RedisTimeSeries#2108)) ([93ccac0e](RedisTimeSeries/RedisTimeSeries@93ccac0)) - fix ubuntu hangs ([#2115](RedisTimeSeries/RedisTimeSeries#2115)) ([b8ff52e5](RedisTimeSeries/RedisTimeSeries@b8ff52e)) - MOD-16382 Handle topology-change notifications ([#2104](RedisTimeSeries/RedisTimeSeries#2104)) ([ce8be8aa](RedisTimeSeries/RedisTimeSeries@ce8be8a)) - MOD-16382 Add topology-change flow tests (consolidated) ([#2116](RedisTimeSeries/RedisTimeSeries#2116)) ([01d59afb](RedisTimeSeries/RedisTimeSeries@01d59af)) - MOD-16265 - retry the dumpAndReload() for max 2 sec so no "Background save already in progress to give enough time to existing rdb save to finish ([#2124](RedisTimeSeries/RedisTimeSeries#2124)) ([d74df641](RedisTimeSeries/RedisTimeSeries@d74df64)) - Merge pull request #2125 from RedisTimeSeries/claude/redistimeseries-pr-2116-tests-0wmm4d ([7ddf2ae8](RedisTimeSeries/RedisTimeSeries@7ddf2ae)) - MOD-17016 Disable topology events handling in ts under RE (for now) ([#2130](RedisTimeSeries/RedisTimeSeries#2130)) ([40748fdb](RedisTimeSeries/RedisTimeSeries@40748fd)) - MOD-17095 Add tls cluster tests leg ([#2126](RedisTimeSeries/RedisTimeSeries#2126)) ([3fbfae15](RedisTimeSeries/RedisTimeSeries@3fbfae1)) - MOD-16382 Add flow tests for topology events ([#2121](RedisTimeSeries/RedisTimeSeries#2121)) ([fae002e8](RedisTimeSeries/RedisTimeSeries@fae002e)) - MOD-16382 Test CLUSTERSET after topology events ([#2131](RedisTimeSeries/RedisTimeSeries#2131)) ([a50d901a](RedisTimeSeries/RedisTimeSeries@a50d901)) - squash ([#2128](RedisTimeSeries/RedisTimeSeries#2128)) ([5944c928](RedisTimeSeries/RedisTimeSeries@5944c92)) - MOD-16399 Bump LibMR: skip rebuilds for unchanged CLUSTERSET topologies ([#2088](RedisTimeSeries/RedisTimeSeries#2088)) ([008f5a9b](RedisTimeSeries/RedisTimeSeries@008f5a9)) - MOD-17289 Suppress x86-only Valgrind false positive in MR_BuildCluster ([#2134](RedisTimeSeries/RedisTimeSeries#2134)) ([bb16996d](RedisTimeSeries/RedisTimeSeries@bb16996)) - MOD-17349 Add TS.QUERYLABELS to commands.json ([#2135](RedisTimeSeries/RedisTimeSeries#2135)) ([b278d809](RedisTimeSeries/RedisTimeSeries@b278d80)) - MOD-17350 Fix TS.CREATERULE advertised arity (-5 -> -6) ([#2136](RedisTimeSeries/RedisTimeSeries#2136)) ([b01a5426](RedisTimeSeries/RedisTimeSeries@b01a542)) - MOD-17281 Fix test_failover timeouts and hang ([#2138](RedisTimeSeries/RedisTimeSeries#2138)) ([b04f067a](RedisTimeSeries/RedisTimeSeries@b04f067)) - MOD-16600 Read INFOCLUSTER status from the end, not index 17 ([#2144](RedisTimeSeries/RedisTimeSeries#2144)) ([9e24dabd](RedisTimeSeries/RedisTimeSeries@9e24dab)) - MOD-17518 Use refined cluster types (allow RE+oss bdbs) ([#2149](RedisTimeSeries/RedisTimeSeries#2149)) ([0cc05c78](RedisTimeSeries/RedisTimeSeries@0cc05c7)) - MOD-17239 gorilla decoder guard over-read ([#2150](RedisTimeSeries/RedisTimeSeries#2150)) ([36c13128](RedisTimeSeries/RedisTimeSeries@36c1312)) - MOD-17209 Port missing topology-event tests and hunt for UAFs ([#2137](RedisTimeSeries/RedisTimeSeries#2137)) ([44d103be](RedisTimeSeries/RedisTimeSeries@44d103b)) - smarter soloution ([#2151](RedisTimeSeries/RedisTimeSeries#2151)) ([77270d3a](RedisTimeSeries/RedisTimeSeries@77270d3)) - MOD-17566 - add new stage to tag flow to verify tag version miss match ([#2152](RedisTimeSeries/RedisTimeSeries#2152)) ([f7d32579](RedisTimeSeries/RedisTimeSeries@f7d3257)) - MOD-16873 Fix TS.INCRBY/TS.DECRBY replicating a bogus TIMESTAMP label with LABELS ([#2160](RedisTimeSeries/RedisTimeSeries#2160)) ([4f26b4cb](RedisTimeSeries/RedisTimeSeries@4f26b4c)) - MOD-17281 Tolerate connection reset during demotion in test_failover ([#2162](RedisTimeSeries/RedisTimeSeries#2162)) ([6863942c](RedisTimeSeries/RedisTimeSeries@6863942)) - MOD-18192 - leak ssl in cluster err ([#2163](RedisTimeSeries/RedisTimeSeries#2163)) ([dc0f1a00](RedisTimeSeries/RedisTimeSeries@dc0f1a0)) - MOD-17439 Better handling of timeouts ([#2164](RedisTimeSeries/RedisTimeSeries#2164)) ([783eebfb](RedisTimeSeries/RedisTimeSeries@783eebf)) - MOD-18488 - Fix signed truncation in uncompressed upsert after RESTORE ([#2172](RedisTimeSeries/RedisTimeSeries#2172)) ([7c06d521](RedisTimeSeries/RedisTimeSeries@7c06d52)) - Remove Bullseye from automation testing matrices ([#2181](RedisTimeSeries/RedisTimeSeries#2181)) ([70a37c2b](RedisTimeSeries/RedisTimeSeries@70a37c2)) - MOD-18589 - Reject inconsistent sample counts in RDB loads ([#2189](RedisTimeSeries/RedisTimeSeries#2189)) ([a65a01a7](RedisTimeSeries/RedisTimeSeries@a65a01a)) - MOD-18751 / MOD-18906 / MOD-18913: bring the oss-cluster flow tests back ([#2194](RedisTimeSeries/RedisTimeSeries#2194)) ([9487ceef](RedisTimeSeries/RedisTimeSeries@9487cee)) - MOD-18948: verify every write command replicates to the replica ([#2201](RedisTimeSeries/RedisTimeSeries#2201)) ([0f34e70c](RedisTimeSeries/RedisTimeSeries@0f34e70)) - build: pin Homebrew OpenSSL 3 on macOS ([#2200](RedisTimeSeries/RedisTimeSeries#2200)) ([853c9905](RedisTimeSeries/RedisTimeSeries@853c990)) - MOD-18801 Bump deps/LibMR to its latest version ([#2199](RedisTimeSeries/RedisTimeSeries#2199)) ([fbcbd40b](RedisTimeSeries/RedisTimeSeries@fbcbd40)) - MOD-17236 - dup policy string length capping ([#2205](RedisTimeSeries/RedisTimeSeries#2205)) ([feaf6bc2](RedisTimeSeries/RedisTimeSeries@feaf6bc)) - MOD-18948: check clock rows by what the replica receives, not by timing ([#2207](RedisTimeSeries/RedisTimeSeries#2207)) ([d47c979c](RedisTimeSeries/RedisTimeSeries@d47c979)) - MOD-18475 Check promoted nodes against current Redis topology ([6060574b](RedisTimeSeries/RedisTimeSeries@6060574)) - MOD-18443 Enable server logs for TLS initialization regression ([b9f97109](RedisTimeSeries/RedisTimeSeries@b9f9710)) - MOD-18475 Refresh all node views throughout failover convergence ([11390b56](RedisTimeSeries/RedisTimeSeries@11390b5)) - MOD-19365 Use released RLTest 0.7.31 for module tests ([28cd329c](RedisTimeSeries/RedisTimeSeries@28cd329)) - CI: bound test-container loopback MSS with MTU 1500 ([e3c403ad](RedisTimeSeries/RedisTimeSeries@e3c403a)) - MOD-17216: replace CI MTU workaround with 60-second query idle timeout ([a01ca70a](RedisTimeSeries/RedisTimeSeries@a01ca70)) - MOD-17216: use requested 10-second distributed query idle limit ([386d2c9b](RedisTimeSeries/RedisTimeSeries@386d2c9)) - MOD-17216 Use response progress timeouts for distributed range queries ([00ad114f](RedisTimeSeries/RedisTimeSeries@00ad114)) - MOD-17216: reduce migration query fixture instead of changing timeouts ([1f0daea0](RedisTimeSeries/RedisTimeSeries@1f0daea)) - MOD-17216: reuse smaller migration fixture for TLS runs ([51adf485](RedisTimeSeries/RedisTimeSeries@51adf48)) - Prepare RedisTimeSeries 8.12 release candidate 8.11.90 ([a2448196](RedisTimeSeries/RedisTimeSeries@a244819)) - update openssl dep to version 4 on brew ([#2213](RedisTimeSeries/RedisTimeSeries#2213)) ([4bb5b630](RedisTimeSeries/RedisTimeSeries@4bb5b63)) </details>




Brings the
oss-clusterphase back from nine days of total failure. Three problems had to be solved, and they were separated by experiment before being fixed — see Attribution below. #2196 and #2197 were stacked on this branch and are already folded in, so this is the whole set.oss-clusterenv refuses to start; every cluster test fails at connecttests.shtest_topology_events:test_failovertimes outtests/flow/utils.pytest_globalconfigsfails on every non-cluster phasefix_modulesArgsfix, and cap redis-py below 6The root cause
redis/redis#15722 added
cluster-bus-port-protected-mode, defaulting to enabled on the 8.12 line. A node withcluster-enabled yesand notls-clusterthen refuses to start, because its bus port would be unauthenticated. That is exactly how theoss-clusterphase is built, so every shard died at startup:The refusal happens during config validation, before the server opens its logfile, so the shard logs are 0 bytes and say nothing — which is why this took a while to identify rather than being read off a log.
What changed
tests/flow/tests.sh— the waiver, scoped to theoss-clusterphase.Appended to both
oss-clusterinvocations, the plain one and the password one. It is not passed unconditionally: a redis without the option rejects the directive and fails to start the same way, whichever value is given, soCLUSTER_BUS_PROTECTED_MODE=omits it for anyone running the cluster phase against an older redis locally. The option exists on 8.12 and up, and in the 8.2.10 / 8.4.7 / 8.6.7 / 8.8.3 / 8.10.2 backports where it defaults to disabled and the flag is a harmless no-op.The
tls_clusterphase deliberately gets nothing —tls-clusterauthenticates the bus, so protection is already satisfied. Same for theexisting-envphase, where RLTest starts no servers.tests/flow/utils.py— the same waiver for the replicastest_failoverstarts itself. That test does not use RLTest's env for its replicas; it spawns them withsubprocess.Popen, so RLTest's option never reached them and they refused to start exactly as the shards had. It now mirrors the master's own value, read back withconfig_get, which is also the reason it is safe on older redis: the config is absent there,config_getreturns an empty dict, and nothing is passed.The wait for a replica to answer is now bounded as well. Previously a replica that died at startup was waited on forever and surfaced only as the test timeout, with the cause nowhere in the output — a rejected config leaves an empty log and writes to the parent's stderr. It now fails immediately with the exit code and the log path.
The pin and the redis-py cap. Fixing MOD-18751 needs an RLTest that has the new option, and this repo's pin had not moved since March 2025, so that means absorbing ~25 RLTest commits at once. Two of them needed handling:
fix_modulesArgshad an escaped-semicolon regression that broketest_globalconfigson every non-cluster phase. Fixed upstream in RedisLabsModules/RLTest#256 and pinned here as7e9f69ac1a8551d1d46ddbf53d96df7aac60e164.TS.MRANGE … GROUPBYreplies with a map instead of rows and the suite's assertions fail, soredis ~= 5.0.8keeps it on RESP2.Both pins move together, in
requirements_docker.txtandtests/flow/requirements.txt— the first is baked into the ghcr images that thebuild-linux-*legs pull, the second is installed by.install/lib/setup-python.shfor macOS, coverage, valgrind and sanitizer.Attribution
The three problems were untangled by running the same suite in three configurations rather than by guessing, since all of them surfaced together:
test_failoverThe third row is what separated them: with the waiver as the only RLTest change, 34 of 37 legs pass and the cluster env starts — so the waiver was never implicated in the other two, the
test_globalconfigsfailures belonged to the pin upgrade, andtest_failoverbelonged to neither and turned out to be the self-spawned replicas.Verification
Built redis at the 8.12 line (
8.9.241, sha7a72677e) and ran a 3-shardoss-clusterthrough RLTest for each value of the option:Connection refused(this bug)noyes3/3 shards receive the option when set, 0/3 when omitted, and the
tls_cluster, general, slaves and AOF phases receive none.Note for reviewers
The
build-linux-*legs bake RLTest into a prebuilt ghcr image whose tag is the redis ref, not a content hash, so a pin change is invisible to them until the image is rebuilt. This PR carries thedocker-image-changeslabel to force a local build; without it a run silently tests the old RLTest and looks like the change did nothing. The nightlies pick the new pin up on the next Push Docker Images rebuild.🤖 Generated with Claude Code