Skip to content

ci: remove the runner's stray openssl@1.1 link before brew installs (Android macOS) - #1186

Merged
anhappdev merged 2 commits into
masterfrom
fix/android-macos-brew-openssl
Oct 6, 2026
Merged

anhappdev merged 2 commits into
masterfrom
fix/android-macos-brew-openssl

Conversation

@anhappdev

@anhappdev anhappdev commented Oct 5, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

The Build Android app job in Android Build & Test (macOS) fails at Install dependencies on every run (e.g. #1185):

python@3.14 3.14.7 is already installed but outdated (so it will be upgraded).
...
Upgrading python@3.14 dependency: openssl@3
##[error]The `brew link` step did not complete successfully
Could not symlink bin/openssl
Target /opt/homebrew/bin/openssl
is a symlink belonging to openssl@1.1.

The macos-15 runner image creates /opt/homebrew/bin/openssl -> /opt/homebrew/opt/openssl@1.1/bin/openssl as a plain symlink that brew does not track. Since python 3.14.8 was published, brew install python@3.14 upgrades the image's 3.14.7 together with openssl@3, whose link collides with that symlink, so brew install exits 1.

This removes that symlink before the brew install lines, only when it points at openssl@1.1. (brew unlink openssl@1.1 was tried first and removed 0 symlinks, since brew doesn't own the link.)

Note

The Build iOS app (apple) / (tflite) failures on current PRs are unrelated and not fixable in code: Apple requires the team's Account Holder to accept the updated Program License Agreement (PLA Update available ... must agree to the latest Program License Agreement). They will keep failing on this PR too until that's done.

Test plan

  • Build Android app in Android Build & Test (macOS) gets past Install dependencies and passes on this PR

The macos-15 runner image links openssl@1.1 at /opt/homebrew/bin/openssl.
Since python@3.14 3.14.8 was published, `brew install python@3.14` upgrades
the image's 3.14.7 along with its openssl@3 dependency, whose link step
collides with that symlink. `brew install` then exits 1 and fails the
Install dependencies step on every run.
@anhappdev
anhappdev requested a review from a team as a code owner October 5, 2026 03:55
@github-actions

github-actions Bot commented Oct 5, 2026

Copy link
Copy Markdown

MLCommons CLA bot All contributors have signed the MLCommons CLA ✍️ ✅

brew unlink openssl@1.1 removed 0 symlinks on the runner: the image creates
/opt/homebrew/bin/openssl -> /opt/homebrew/opt/openssl@1.1/bin/openssl as a
plain symlink that brew does not track. Remove it directly when it points at
openssl@1.1, so the openssl@3 upgrade can link.
@anhappdev anhappdev changed the title ci: unlink openssl@1.1 before brew installs in the Android macOS build ci: remove the runner's stray openssl@1.1 link before brew installs (Android macOS) Oct 5, 2026
@sonarqubecloud

sonarqubecloud Bot commented Oct 5, 2026

Copy link
Copy Markdown

@anhappdev
anhappdev merged commit d4d9fac into master Oct 6, 2026
33 of 36 checks passed
@anhappdev
anhappdev deleted the fix/android-macos-brew-openssl branch October 6, 2026 12:32
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 6, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants