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
Upgrade jna to version 5.14.0 for Mac M1/M2 local execution support #13018
Upgrade jna to version 5.14.0 for Mac M1/M2 local execution support #13018
Conversation
pom.xml
Outdated
@@ -1459,7 +1459,7 @@ | |||
<dependency> | |||
<groupId>net.java.dev.jna</groupId> | |||
<artifactId>jna</artifactId> | |||
<version>5.5.0</version> | |||
<version>5.7.0</version> |
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.
Seems the latest version is 5.14.0
. Should we try to upgrade to the latest one?
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.
Sure, let me update the PR.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #13018 +/- ##
============================================
+ Coverage 61.75% 62.18% +0.43%
+ Complexity 207 198 -9
============================================
Files 2436 2502 +66
Lines 133233 136671 +3438
Branches 20636 21164 +528
============================================
+ Hits 82274 84986 +2712
- Misses 44911 45397 +486
- Partials 6048 6288 +240
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
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 with minor comments
@@ -67,12 +67,12 @@ | |||
<dependency> | |||
<groupId>net.java.dev.jna</groupId> | |||
<artifactId>jna-platform</artifactId> |
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.
Consider moving this to the root pom
@@ -67,12 +67,12 @@ | |||
<dependency> | |||
<groupId>net.java.dev.jna</groupId> | |||
<artifactId>jna-platform</artifactId> | |||
<version>5.14.0</version> | |||
<version>${jna.version}</version> | |||
</dependency> | |||
<dependency> | |||
<groupId>net.java.dev.jna</groupId> | |||
<artifactId>jna</artifactId> |
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.
This override shouldn't be needed
@@ -45,6 +45,12 @@ | |||
<groupId>com.azure</groupId> | |||
<artifactId>azure-identity</artifactId> | |||
<version>1.12.0</version> | |||
<exclusions> |
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.
Do we need this exclusion? It should just pull the correct version
I'm raising this PR to understand the conversation on Slack regarding the JNA upgrade.
Some tests fail on Mac M1/M2-based chips because of the
jna
loading issue. As per the StackOverflow solutions,jna 5.7.0
has fixes for the loading issue. I updated thejna
and got the test cases running locally.