Repository navigation
[MOD-19641] Link macOS builds against OpenSSL 4 - #11897
Conversation
The Homebrew Redis package now ships Redis core against openssl@4 (as homebrew-core does), so the module must link the same major version. - macOS setup installs openssl@4; CMake prefers it over openssl@3. - CI builds Redis against openssl@4. Bump the pinned Redis ref to redis/redis#15227, which replaces the tls.c API OpenSSL 4 deprecates (it broke Redis's -Werror build, the reason for the openssl@3 pin). - Drop the hard-coded /usr/local/opt/openssl from hiredis.cmake: it could pick a different OpenSSL than OPENSSL_ROOT_DIR. - New CI check fails the macOS build if redisearch.so links any libssl/libcrypto outside openssl@4. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 0f4ed7fb02
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
The pinned Redis ref now includes redis/redis#15722, which refuses to start a cluster node with a non-TLS bus unless cluster-bus-port-protected-mode is waived. CI waived it only for the literal `unstable` ref, so every coordinator flow test failed on the new pin. runtests.sh now adds the waiver for cluster runs whenever the redis-server binary knows the option. That covers CI and local runs, and any future pin, without matching ref names. Also move the macOS OpenSSL linkage check from task-build.yml, which only runs on Linux, to task-test.yml, which builds the macOS test jobs. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #11897 +/- ##
==========================================
- Coverage 84.33% 83.62% -0.71%
==========================================
Files 660 681 +21
Lines 87319 88224 +905
Branches 41650 11423 -30227
==========================================
+ Hits 73642 73780 +138
+ Misses 13305 10818 -2487
- Partials 372 3626 +3254
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:
|
Drop the unversioned Homebrew `opt/openssl` fallbacks and fail CMake configure when the OpenSSL found is not major version 4. A host without openssl@4 used to fall back silently to whatever `opt/openssl` pointed at, producing a module that fails to load in the Homebrew Redis package. Co-Authored-By: Claude Opus 5.5 <[email protected]>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f62f29a3be
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
|
@dariaguy, this is the RediSearch side of moving the Homebrew package to OpenSSL 4. Could you take a look? macOS validationPR CI doesn't run on macOS, so I dispatched these runs by hand. Artifacts built from the head commit (
Flow tests (
The x86_64 crashes have nothing to do with OpenSSL. They're a misaligned-pointer panic in the Rust allocator (MOD_17680), and unmodified Not in this PR
|
`make run REDIS_STANDALONE=0` sets ENV_ONLY=1, which starts the cluster through run_env and exits before the test path's waiver, so its nodes refused to start on a Redis that has cluster-bus-port-protected-mode. Probe the option in one helper and apply it on both paths. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|



Describe the changes in the pull request
openssl@3. The package therefore mixes OpenSSL major versions and fails to start when onlyopenssl@4is installed.openssl@4only, and CI builds Redis against it as well. A new CI step fails a macOS build ifredisearch.solinks libssl or libcrypto from anywhere other thanopenssl@4.openssl@4. On Linux the module is unchanged, but all CI and benchmarks now run against a newer pinned Redis (see below).Which additional issues this PR fixes
Main objects this PR modified
.install/macos.sh,build/hiredis/hiredis.cmake(no longer hard-codes/usr/local/opt/openssl), and the root CMake file. CMake now looks only foropenssl@4and fails at configure time if the OpenSSL it finds is not major version 4. Before, it fell back silently to Homebrew's unversionedopt/openssl..agents/setup. It moves 63 commits onunstable, to tls: replace deprecated X509_NAME_get_text_by_NID API redis/redis#15227. That commit replaces thetls.ccall OpenSSL 4 deprecates, which is why [MOD-19076] Build Redis against OpenSSL 3 on macOS CI #11620 had pinnedopenssl@3. No single commit has that fix without the other 62. Among them are changes to module timers and the monotonic clock, ACL checks at EXEC, and RDB. Benchmark numbers taken before and after this merge are not comparable.runtests.shadds--cluster_bus_port_protected_mode noto cluster runs whenever theredis-serverbinary supports it. The new ref includes Make an unauthenticated cluster bus port an explicit choice redis/redis#15722, which refuses a non-TLS cluster bus by default. CI used to waive that only for the literalunstableref.validate-openssl-linkageaction, run after the macOS build in the test and artifact jobs.Manual validation: PR CI doesn't run on macOS, so I dispatched macOS builds and flow tests (
QUICK=1) by hand. All six artifacts (macos-14/15/26 × x86_64/arm64) link only.../openssl@4/lib/libssl.4.dylibandlibcrypto.4.dylib. Redis builds with TLS on every platform. Flow-run links will follow in a comment.On macOS x86_64, tag queries crash with a Rust misaligned-pointer panic in the trie pattern iterator. Unmodified
masteron macos-14 x86_64 crashes the same way, so the crash predates this PR and will be tracked separately.Note for developers: an existing local build directory keeps the OpenSSL it cached at configure time. Rebuild with
./build.sh FORCEto pick upopenssl@4.Follow-ups, not in this PR: the Homebrew cask must declare
openssl@4as its run-time dependency, RedisTimeSeries needs the matching change, and release branches are not covered yet.Mark if applicable
Release Notes
If a release note is required (bug fix / new feature / enhancement), describe the user impact of this PR in the title.
🤖 Generated with Claude Code