Skip to content

Skip Http2WithConscryptTest on ARM MacOS#10284

Merged
joschi merged 2 commits intodropwizard:release/4.0.xfrom
rnorth:skip-conscrypt-tests-on-arm
Aug 19, 2025
Merged

Skip Http2WithConscryptTest on ARM MacOS#10284
joschi merged 2 commits intodropwizard:release/4.0.xfrom
rnorth:skip-conscrypt-tests-on-arm

Conversation

@rnorth
Copy link
Copy Markdown
Contributor

@rnorth rnorth commented Jul 22, 2025

Problem:

When run on an ARM MacOS machine, I'm always getting:

[ERROR]   Http2WithConscryptTest.testHttp1WithCustomCipher » UnsatisfiedLink no conscrypt_openjdk_jni-osx-aarch_64 in java.library.path: /Users/richardnorth/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:.
[ERROR]   Http2WithConscryptTest.testHttp2WithCustomCipher » NoClassDefFound Could not initialize class io.dropwizard.http2.Http2WithConscryptTest

I believe this is due to google/conscrypt#1034 - lack of an ARM native build for MacOS for the Conscrypt library.

Solution:

Skip the affected tests when running on ARM MacOS (aarch64), so that build does not fail.

It's never a particularly satisfying thing to have to skip tests, but I think it's probably the simplest/clearest way to unblock contributions from developers on ARM Macs. Please do say if there's a better approach that you'd prefer, though.

@rnorth rnorth requested a review from a team as a code owner July 22, 2025 10:33
@github-actions github-actions bot added this to the 4.0.15 milestone Jul 22, 2025
@joschi joschi modified the milestones: 4.0.15, 4.0.16 Jul 24, 2025
@joschi joschi force-pushed the skip-conscrypt-tests-on-arm branch from e124d04 to 10ce2a5 Compare August 19, 2025 21:16
@joschi joschi self-assigned this Aug 19, 2025
Copy link
Copy Markdown
Member

@joschi joschi left a comment

Choose a reason for hiding this comment

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

@rnorth Thanks a lot for your contribution! ❤️

@joschi joschi enabled auto-merge (squash) August 19, 2025 21:35
@joschi joschi merged commit e580dd3 into dropwizard:release/4.0.x Aug 19, 2025
10 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants