Skip to content

[8.6] [MOD-19076] Build Redis against OpenSSL 3 on macOS CI - #11633

Merged
redisearch-backport-pull-request[bot] merged 1 commit into
8.6from
backport-agent/pr-11620-to-8.6
Sep 29, 2026
Merged

redisearch-backport-pull-request[bot] merged 1 commit into
8.6from
backport-agent/pr-11620-to-8.6

Conversation

@redisearch-backport-pull-request

@redisearch-backport-pull-request redisearch-backport-pull-request Bot commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

Backport of #11620 to 8.6.

Original PR

Cherry-pick result

  • Resolved 2 conflict(s) — see Conflict Log below.

Conflict Log

.install/macos.sh

  • Conflict: The source hunk uses brew_install and _run helpers, while this release calls brew directly.
  • Why it conflicted: 8.6 retains the older macOS installer without the newer dependency-list and dry-run helper refactor.
  • Resolution: Kept the release installer, LLVM invocation, and profile handling; changed only brew install openssl to brew install openssl@3 and retained the explanatory comment.
  • Rationale: Pins the OpenSSL major version required by the Redis TLS build without importing unrelated installer changes.

.github/actions/build-redis/action.yml

  • Conflict: The source modifies the build-redis action, which is absent on this release (modify/delete conflict).
  • Why it conflicted: 8.6 builds Redis directly in .github/workflows/task-test.yml instead of using the cached composite action.
  • Resolution: Kept the action absent and adapted its Darwin-only OPENSSL_PREFIX selection into the existing Build Redis step in .github/workflows/task-test.yml. Preserved make install, the release-specific install-mode expression, TLS, coverage, and sanitizer arguments.
  • Rationale: Passes the openssl@3 Homebrew prefix to the actual Redis build on macOS while preserving the existing non-macOS build arguments. Builds and tests were not run, as requested; CI must validate the adaptation.

Release notes

  • This PR requires release notes
  • This PR does not require release notes

🤖 Generated by the auto-backport workflow.

Homebrew's unversioned `openssl` formula now installs OpenSSL 4 and
unlinks openssl@3. Redis's Makefile builds against the unversioned
`opt/openssl` prefix, and its tls.c calls APIs OpenSSL 4 deprecates, so
every macOS job that compiles Redis with TLS fails under -Werror.

Install openssl@3 explicitly and point the Redis TLS build at it.

Co-authored-by: Claude Opus 5.5 <[email protected]>
(cherry picked from commit cf6be81)
@redisearch-backport-pull-request redisearch-backport-pull-request Bot added size:S auto-backport This PR was automatically backported by an agent auto-backport-conflicts There were conflicts in this automatic backport labels Sep 29, 2026

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 5d645c96b1

ℹ️ 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".

EXTRA=()
# Use the OpenSSL major version pinned by .install/macos.sh.
if [[ "$(uname -s)" == "Darwin" ]]; then
EXTRA+=("OPENSSL_PREFIX=$(brew --prefix openssl@3)")

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Pass OpenSSL 3 to the RediSearch build

OPENSSL_PREFIX is scoped to this Redis make invocation, but the later make build TESTS=1 configures RediSearch itself through the macOS find_package(OpenSSL REQUIRED) branch in CMakeLists.txt. On clean macOS runners, openssl@3 is keg-only and its headers, libraries, and pkg-config files are not on CMake's default search paths; no OPENSSL_ROOT_DIR, CMAKE_PREFIX_PATH, or equivalent is exported for that later build. As a result, the macOS test jobs can fail to configure RediSearch (or resolve a different installed OpenSSL) after Redis builds successfully.

Useful? React with 👍 / 👎.

@sonarqubecloud

Copy link
Copy Markdown

@redisearch-backport-pull-request
redisearch-backport-pull-request Bot added this pull request to the merge queue Sep 29, 2026
Merged via the queue into 8.6 with commit 87868ee Sep 29, 2026
41 checks passed
@redisearch-backport-pull-request
redisearch-backport-pull-request Bot deleted the backport-agent/pr-11620-to-8.6 branch September 29, 2026 18:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-backport This PR was automatically backported by an agent auto-backport-conflicts There were conflicts in this automatic backport size:S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants