GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||
GeezerVison is showing github.com — Restore linux-aarch64 artifacts to Maven Central publish by colleenkinross · Pull Request #981 · netty/netty-tcnative Conversation
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 reactionsThe 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.
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Member
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Member
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Member
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Contributor
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Contributor
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
normanmaurer
approved these changes
Uh oh!
There was an error while loading. Please reload this page.
Member
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Contributor
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Member
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Member
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Contributor
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Member
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Contributor
Author
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
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 ```
Member
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Member
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Contributor
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Contributor
Author
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
…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
added a commit
to apache/spark
that referenced
this pull request
### 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]>
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ReviewersUh oh!
There was an error while loading. Please reload this page. AssigneesNo one assignedLabels
None yet
ProjectsDevelopmentSuccessfully merging this pull request may close these issues. Uh oh!
There was an error while loading. Please reload this page. 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. |