Skip to content
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

Merged
merged 5 commits into from Apr 30, 2024

Conversation

abhioncbr
Copy link
Contributor

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 the jna and got the test cases running locally.

@Jackie-Jiang Jackie-Jiang added the dependencies Pull requests that update a dependency file label Apr 27, 2024
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>
Copy link
Contributor

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?

Copy link
Contributor Author

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-commenter
Copy link

codecov-commenter commented Apr 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 62.18%. Comparing base (59551e4) to head (ebf799e).
Report is 385 commits behind head on master.

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     
Flag Coverage Δ
custom-integration1 <0.01% <ø> (-0.01%) ⬇️
integration <0.01% <ø> (-0.01%) ⬇️
integration1 <0.01% <ø> (-0.01%) ⬇️
integration2 0.00% <ø> (ø)
java-11 35.16% <ø> (-26.55%) ⬇️
java-21 62.04% <ø> (+0.42%) ⬆️
skip-bytebuffers-false 62.17% <ø> (+0.42%) ⬆️
skip-bytebuffers-true 62.02% <ø> (+34.30%) ⬆️
temurin 62.18% <ø> (+0.43%) ⬆️
unittests 62.17% <ø> (+0.43%) ⬆️
unittests1 46.76% <ø> (-0.13%) ⬇️
unittests2 27.93% <ø> (+0.19%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@abhioncbr abhioncbr changed the title Upgrade jna to version 5.7.0 for Mac M1/M2 local execution support Upgrade jna to version 5.14.0 for Mac M1/M2 local execution support Apr 27, 2024
Copy link
Contributor

@Jackie-Jiang Jackie-Jiang left a 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>
Copy link
Contributor

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>
Copy link
Contributor

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>
Copy link
Contributor

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

@Jackie-Jiang Jackie-Jiang merged commit f153011 into apache:master Apr 30, 2024
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants