-
Notifications
You must be signed in to change notification settings - Fork 169
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
build: Fix potential libcrypto lib loading issue for X86 mac runners #55
Conversation
Looks like it still fails:
And, it is in x64 Mac, not aarch64. |
Ah, yes. The failures observed for now are all on X86 macs. Let me see if there's other ways to investigate this. |
98658cc
to
f33fbbd
Compare
f33fbbd
to
526bd9c
Compare
I believe I have found the root cause to x86 mac is failing loading libcrypto.dylib. Solutions:
Detailed investigationsQ1: why mac runners are failing with Q2: why libcrypto.dylib is loaded? Or who is loading it? Q3: why only X86 runners are failing? Q4: why is it flaky? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks for the detailed investigation @advancedxy !
I'm still observing this issue when running my own PR, https://github.com/advancedxy/arrow-datafusion-comet/actions/runs/7982531503/job/21796212861 which is already rebased with origin/main and include this fix. I'm not observing this issue in this repo's PRs though after this commit. Looks like that this PR also don't fix it completely, but it reduces the chances. It might be still possible to load the incorrect libcrypto by the JVM. Let's see how frequent this issue happens. If it's still annoying, we can try to investigate further and try option 2. |
Which issue does this PR close?
Closes #41
Rationale for this change
Another attempt to fix libcrypto loading issues.
Currently, CIs are still failing randomly with the following logging, for example:
WARNING: /Users/runner/hostedtoolcache/Java_Adopt_jdk/17.0.10-7/x64/Contents/Home/bin/java is loading libcrypto in an unsafe way
What changes are included in this PR?
install openssl for mac runners and setup corresponding DYLD_LIBRARY_PATH
How are these changes tested?
Existed CI workflow