GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Restore linux-aarch64 artifacts to Maven Central publish by colleenkinross · Pull Request #981 · netty/netty-tcnative

Conversation

@colleenkinross

@colleenkinross colleenkinross commented May 14, 2026

Copy link
Copy Markdown
Contributor

The linux-aarch64 artifacts were dropped starting in 2.0.72 when PR #926 migrated from nexus-staging-maven-plugin to central-publishing-maven-plugin.

Unlike other platforms for which we can build openssl-dynamic and boringssl-static in a single command, the aarch64 cross-compile requires two separate commands because openssl-dynamic must be built against a pre-compiled ARM version of APR and OpenSSL and boringssl-static doesn't have this dependency. The old plugin accepted -DaltStagingDirectory to write staging output outside of target/, so it survived the clean phase in the second command. The new plugin defaults to target/central-staging, which the clean phase in the second command deletes along with the rest of the root project's target/ directory.

Fix by passing -DoutputDirectory=/root/local-staging to both publish calls, mirroring the original -DaltStagingDirectory behavior, then copying the combined output into target/central-staging for the CI upload step.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@colleenkinross
Restore linux-aarch64 jar to Maven Central publish
a6a6c4f
  The linux-aarch64 artifacts were dropped starting in 2.0.72 when PR netty#926
  migrated from nexus-staging-maven-plugin to central-publishing-maven-plugin.

  Unlike other platforms which build openssl-dynamic and boringssl-static in
  a single Maven command, the aarch64 cross-compile requires two separate
  commands because only openssl-dynamic needs -DaprArmHome and
  -DopensslArmHome. The old plugin accepted -DaltStagingDirectory to write
  staging output outside of target/, so it survived the clean in the second
  command. The new plugin defaults to target/central-staging, which the
  second command's clean deletes before uploading.

  Fix by passing -DoutputDirectory=/root/local-staging to both publish calls,
  mirroring the original -DaltStagingDirectory behavior, then copying the
  combined output into target/central-staging for the CI upload step.
@colleenkinross colleenkinross mentioned this pull request May 14, 2026
Restore linux-aarch64 artifacts publish to maven #982
Closed
@slandelle

slandelle commented May 18, 2026

Copy link
Copy Markdown

Hey @normanmaurer @chrisvest
IMHO, this one is pretty bad as ARM is the kind of default on AWS (Graviton).

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@normanmaurer

normanmaurer commented May 18, 2026

Copy link
Copy Markdown
Member

@slandelle this is only for the openssl-dynamic linked but not for boringssl-static. IHMO the openssl-dynamic linked ones really are not used a lot so it's not a big deal

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@normanmaurer

normanmaurer commented May 18, 2026

Copy link
Copy Markdown
Member

@colleenkinross did you sign our icla: https://netty.io/s/icla ?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@slandelle

slandelle commented May 18, 2026

Copy link
Copy Markdown

this is only for the openssl-dynamic linked

Oh right, sorry!

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@maissanrobert

maissanrobert commented May 19, 2026

Copy link
Copy Markdown

@normanmaurer @colleenkinross and I are both engineers at MongoDB. MongoDB Search uses the openssl-dynamic library. We want to upgrade to an OpenSSL 3.* linked version, but require aarch64 support for all versions of the Search.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@normanmaurer

normanmaurer commented May 19, 2026

Copy link
Copy Markdown
Member

Once @colleenkinross signed the CLA I can pull this in

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@normanmaurer normanmaurer added this to the 2.0.78.Final milestone May 19, 2026
@colleenkinross

colleenkinross commented May 20, 2026

Copy link
Copy Markdown
Contributor Author

Sorry for the delay - I am waiting on a legal review of the CLA before I sign. They've committed to end of this week, and I will sign ASAP once I have the approval.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@colleenkinross

colleenkinross commented May 21, 2026

Copy link
Copy Markdown
Contributor Author

I've signed the CLA :)!! @normanmaurer please proceed. Thank you for waiting.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

normanmaurer
normanmaurer approved these changes May 21, 2026
View reviewed changes
@normanmaurer
normanmaurer merged commit c62b75c into netty:main May 21, 2026
10 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@normanmaurer

normanmaurer commented May 21, 2026

Copy link
Copy Markdown
Member

@colleenkinross thanks

colleenkinross reacted with laugh emoji
All reactions
  • 😄 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@colleenkinross
colleenkinross deleted the fix-linux-aarch64 branch May 21, 2026 20:29
@colleenkinross

colleenkinross commented Jun 2, 2026

Copy link
Copy Markdown
Contributor Author

thanks all! We're cutting it quite close to our timeline on our end. Could you release a new version @normanmaurer ? Or let me know if there are any concerns or timing issues on your end.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@normanmaurer

normanmaurer commented Jun 2, 2026

Copy link
Copy Markdown
Member

Will do tomorrow

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@normanmaurer

normanmaurer commented Jun 3, 2026

Copy link
Copy Markdown
Member

@colleenkinross unfortunately this fix does not work... This needs more investigation but I have no time this week so it will have to wait till next week

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@colleenkinross

colleenkinross commented Jun 3, 2026

Copy link
Copy Markdown
Contributor Author

oh no - @normanmaurer how did you validate? Are you able to do a dry run maven push and if so would I have access?

If I don't hear back I'll poke around to see how I can validate and investigate. Thank you for attempting to push!

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@normanmaurer

normanmaurer commented Jun 3, 2026

Copy link
Copy Markdown
Member

I triggered the release and it failed:

https://github.com/netty/netty-tcnative/actions/runs/26877400781/job/79270501599

colleenkinross reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@colleenkinross colleenkinross mentioned this pull request Jun 3, 2026
Fix release bug from pull 981 #983
Merged
@colleenkinross

colleenkinross commented Jun 3, 2026

Copy link
Copy Markdown
Contributor Author

Thank you @normanmaurer

I've put up a PR with the fix #983

I've validated what I can, but the release run is the ultimate check. If you're able - could you review that PR and cut a release once it's merged?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

normanmaurer pushed a commit that referenced this pull request Jun 3, 2026
@colleenkinross
Fix release bug from pull 981 (#983)
f1ceb34
PR #981 did not account for central-publishing-maven-plugin deleting its
outputDirectory before each execution. This causes two problems:
- Visible: /root/local-staging is a Docker volume mount point and cannot
be deleted by the plugin, causing the release to fail immediately with
"Device or resource busy".
- Latent: Even if the mount point issue were bypassed, the second
publish call (boringssl-static) would delete the first call's output
(openssl-dynamic) before writing its own, reproducing the original bug.
 
The fix uses a separate subdirectory for each publish call so the plugin
can freely clean its own working directory, then copies both outputs
into the final staging directory at the end.

I validated that I cannot delete the current outputdirectory, but *can*
delete the new one:
```
docker run --rm -v ~/local-staging:/root/local-staging alpine \
    sh -c "mkdir -p /root/local-staging && rm -rf /root/local-staging && echo 'OK'" 
rm: can't remove '/root/local-staging': Resource busy
```
```
 docker run --rm -v ~/local-staging:/root/local-staging alpine \
    sh -c "mkdir -p /root/local-staging/openssl-dynamic && rm -rf /root/local-staging/openssl-dynamic && echo 'OK'"
OK
```
@normanmaurer

normanmaurer commented Jun 3, 2026

Copy link
Copy Markdown
Member

@colleenkinross next problem... validation in central failed with:

Bundle has content that does NOT have a .pom file: ./
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@normanmaurer

normanmaurer commented Jun 3, 2026

Copy link
Copy Markdown
Member

@colleenkinross I think the problem is that there seems to be an extra zip file contained in the bundle.zip that is generated.

Check:
https://github.com/netty/netty-tcnative/actions/runs/26898230425/job/79343220213

Run actions/upload-artifact@v4
With the provided path, there will be 61 files uploaded
Artifact name is valid!
Root directory input is valid!
Beginning upload of artifact content to blob storage
Uploaded bytes 3003965
Finished uploading artifact content to blob storage!
SHA256 digest of uploaded artifact zip is 988bcef92f1dccae8f92dd23f38e07270bb536ec1fa6e13111f4ba4975490185
Finalizing artifact upload
Artifact centos7-aarch64-local-staging.zip successfully finalized. Artifact ID 7390876274
Artifact centos7-aarch64-local-staging has been successfully uploaded! Final size is 3003965 bytes. Artifact ID is 7390876274
Artifact download URL: https://github.com/netty/netty-tcnative/actions/runs/26898230425/artifacts/7390876274

There you can download the generated bundle.zip and inspect it. It contains the jars but also a zip file which does not belong there.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@colleenkinross

colleenkinross commented Jun 3, 2026

Copy link
Copy Markdown
Contributor Author

@colleenkinross I think the problem is that there seems to be an extra zip file contained in the bundle.zip that is generated.

Check: https://github.com/netty/netty-tcnative/actions/runs/26898230425/job/79343220213

Run actions/upload-artifact@v4
With the provided path, there will be 61 files uploaded
Artifact name is valid!
Root directory input is valid!
Beginning upload of artifact content to blob storage
Uploaded bytes 3003965
Finished uploading artifact content to blob storage!
SHA256 digest of uploaded artifact zip is 988bcef92f1dccae8f92dd23f38e07270bb536ec1fa6e13111f4ba4975490185
Finalizing artifact upload
Artifact centos7-aarch64-local-staging.zip successfully finalized. Artifact ID 7390876274
Artifact centos7-aarch64-local-staging has been successfully uploaded! Final size is 3003965 bytes. Artifact ID is 7390876274
Artifact download URL: https://github.com/netty/netty-tcnative/actions/runs/26898230425/artifacts/7390876274

There you can download the generated bundle.zip and inspect it. It contains the jars but also a zip file which does not belong there.

thank you! taking a look

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@colleenkinross colleenkinross mentioned this pull request Jun 3, 2026
aarch64 release: openssl-dynamic and boringssl-static into single command #984
Merged
@colleenkinross

colleenkinross commented Jun 3, 2026

Copy link
Copy Markdown
Contributor Author

@normanmaurer it looks like we should be able to combine this into a single command to skip all these workarounds. Because you previously moved logic into the POM file, the command flags are identical aside from two flags that boringssl should ignore so it should be OK to combine. This will simplify.

Hopefully the release will work on this one! #984

Thank you for your patience

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

normanmaurer pushed a commit that referenced this pull request Jun 3, 2026
@colleenkinross
aarch64 release: openssl-dynamic and boringssl-static into single com…
9c88fe9
…mand (#984)

The two-command approach caused `clean` in the second build to wipe
target/central-staging, losing the openssl-dynamic artifacts.

Original fix attempt was
#981, however this did not
work because the output directory wasn't *delete-able* which blocked the
clean from the plugin. The attempt to resolve this was to create a
subdirectory. After that change it became clear that the output
directory was not used for artifacts, instead it was where the
central_bundle.zip was placed which caused another release issue.

In the first fix, it was thought that we could not separate the commands
because openssl-dynamic must be built against a pre-compiled ARM version
of APR. However, this original reason for separate commands (conflicting
-DaprArmHome values for each module) was removed in #906, so combining
them is now safe. There are still differences in the flags passed, but
these are ignored by boringssl, so should not cause an issue
(-DopensslArmHome, -DaprArmHome).
@dongjoon-hyun dongjoon-hyun mentioned this pull request Jun 10, 2026
[SPARK-57374][BUILD] Upgrade netty-tcnative to 2.0.78.Final apache/spark#56433
Closed
dongjoon-hyun added a commit to apache/spark that referenced this pull request Jun 10, 2026
@dongjoon-hyun
[SPARK-57374][BUILD] Upgrade netty-tcnative to 2.0.78.Final
d2cbc7f
### What changes were proposed in this pull request?

This PR aims to upgrade `netty-tcnative` to 2.0.78.Final.

### Why are the changes needed?

To bring the latest bug fixes. `netty-tcnative` 2.0.78.Final restores the `linux-aarch64` artifact publication to Maven Central which had regressed since 2.0.72 due to the publishing plugin migration.
- https://github.com/netty/netty-tcnative/milestone/115
  - netty/netty-tcnative#978
  - netty/netty-tcnative#981

### Does this PR introduce _any_ user-facing change?

No.

### How was this patch tested?

Pass the CIs.

### Was this patch authored or co-authored using generative AI tooling?

Generated-by: Claude Code (claude-fable-5)

Closes #56433 from dongjoon-hyun/SPARK-57374.

Authored-by: Dongjoon Hyun <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
@normanmaurer normanmaurer mentioned this pull request Oct 30, 2026
jni util 0.0.12 #1039
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@normanmaurer normanmaurer normanmaurer approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

2.0.78.Final

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@colleenkinross @slandelle @normanmaurer @maissanrobert
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.