Skip to content

DSP-23920: Support ARM64 platforms #37

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

Open
wants to merge 7 commits into
base: dse-netty-4.1.100
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 22 additions & 4 deletions BUILD-DATASTAX.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Running the tests requires the following packages:
## Running the tests requires the following packages:

```
sudo apt-get install autoconf automake libtool make tar gcc \
Expand All @@ -14,13 +14,31 @@ sudo apt-get install autoconf automake libtool make tar gcc \
a dependency of netty. It's not needed for building the project, but it is
required for running the tests.

The release script `./docker-datastax-release.sh` requires docker be installed:
## The release script `./docker-datastax-release.sh` requires docker be installed:

* `sudo apt-get install docker.io` to install docker.
* `sudo usermod -aG docker $USER` to allow the current user to run docker.
* Then log out and log back in to get the permissions activated.
* Setup the username and password for the artifactory server in
`~/.m2/settings.xml`.
* Then run `./docker-datastax-release.sh`.
* Follow this by releasing the MacOS specific kqueue library (must be run on MacOS):
`./mvnw clean && JAVA_HOME=$(/usr/libexec/java_home -v 1.8) ./mvnw -B -U -pl transport-native-unix-common,transport-native-kqueue -Partifactory deploy -DskipTests -DaltDeploymentRepository="artifactory::default::https://repo.aws.dsinternal.org/artifactory/datastax-releases-local"`

## The next steps should each be run from a machine with the specific platform/architecture combinations below:

### Linux ARM64/aarch_64 Epoll libraries
* The following needs to be run from a Linux ARM64 platform (i.e. Graviton EC2 instance)
```
./mvnw clean && JAVA_HOME=$(/usr/libexec/java_home -v 1.8) ./mvnw -B -U -pl transport-native-unix-common,transport-native-epoll -Partifactory deploy -DskipTests -DaltDeploymentRepository="artifactory::default::https://repo.aws.dsinternal.org/artifactory/datastax-releases-local"
```

### MacOS AMD64/x86_64 KQueue libraries
* The follwoing needs to be run from an Intel based Mac:
```
./mvnw clean && JAVA_HOME=$(/usr/libexec/java_home -v 1.8) ./mvnw -B -U -pl resolver-dns-native-macos,transport-native-unix-common,transport-native-kqueue -Partifactory deploy -DskipTests -DaltDeploymentRepository="artifactory::default::https://repo.aws.dsinternal.org/artifactory/datastax-releases-local"
```
### MacOS ARM64/aarch_64 KQueue libraries
* The following needs to be run from an Apple Silicon based Mac (i.e. M1, M2, M3, etc)
```
./mvnw clean && JAVA_HOME=$(/usr/libexec/java_home -v 1.8) ./mvnw -B -U -Pmac-m1-cross-compile -pl resolver-dns-native-macos,transport-native-unix-common,transport-native-kqueue -Partifactory deploy -DskipTests -DaltDeploymentRepository="artifactory::default::https://repo.aws.dsinternal.org/artifactory/datastax-releases-local"
```

2 changes: 1 addition & 1 deletion all/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<parent>
<groupId>io.netty</groupId>
<artifactId>netty-parent</artifactId>
<version>4.1.100.1.dse</version>
<version>4.1.100.2.dse</version>
</parent>

<artifactId>netty-all</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion bom/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

<groupId>io.netty</groupId>
<artifactId>netty-bom</artifactId>
<version>4.1.100.1.dse</version>
<version>4.1.100.2.dse</version>
<packaging>pom</packaging>

<name>Netty/BOM</name>
Expand Down
2 changes: 1 addition & 1 deletion buffer/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<parent>
<groupId>io.netty</groupId>
<artifactId>netty-parent</artifactId>
<version>4.1.100.1.dse</version>
<version>4.1.100.2.dse</version>
</parent>

<artifactId>netty-buffer</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion codec-dns/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<parent>
<groupId>io.netty</groupId>
<artifactId>netty-parent</artifactId>
<version>4.1.100.1.dse</version>
<version>4.1.100.2.dse</version>
</parent>

<artifactId>netty-codec-dns</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion codec-haproxy/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<parent>
<groupId>io.netty</groupId>
<artifactId>netty-parent</artifactId>
<version>4.1.100.1.dse</version>
<version>4.1.100.2.dse</version>
</parent>

<artifactId>netty-codec-haproxy</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion codec-http/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<parent>
<groupId>io.netty</groupId>
<artifactId>netty-parent</artifactId>
<version>4.1.100.1.dse</version>
<version>4.1.100.2.dse</version>
</parent>

<artifactId>netty-codec-http</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion codec-http2/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<parent>
<groupId>io.netty</groupId>
<artifactId>netty-parent</artifactId>
<version>4.1.100.1.dse</version>
<version>4.1.100.2.dse</version>
</parent>

<artifactId>netty-codec-http2</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion codec-memcache/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<parent>
<groupId>io.netty</groupId>
<artifactId>netty-parent</artifactId>
<version>4.1.100.1.dse</version>
<version>4.1.100.2.dse</version>
</parent>

<artifactId>netty-codec-memcache</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion codec-mqtt/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<parent>
<groupId>io.netty</groupId>
<artifactId>netty-parent</artifactId>
<version>4.1.100.1.dse</version>
<version>4.1.100.2.dse</version>
</parent>

<artifactId>netty-codec-mqtt</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion codec-redis/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<parent>
<groupId>io.netty</groupId>
<artifactId>netty-parent</artifactId>
<version>4.1.100.1.dse</version>
<version>4.1.100.2.dse</version>
</parent>

<artifactId>netty-codec-redis</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion codec-smtp/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<parent>
<groupId>io.netty</groupId>
<artifactId>netty-parent</artifactId>
<version>4.1.100.1.dse</version>
<version>4.1.100.2.dse</version>
</parent>

<artifactId>netty-codec-smtp</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion codec-socks/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<parent>
<groupId>io.netty</groupId>
<artifactId>netty-parent</artifactId>
<version>4.1.100.1.dse</version>
<version>4.1.100.2.dse</version>
</parent>

<artifactId>netty-codec-socks</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion codec-stomp/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<parent>
<groupId>io.netty</groupId>
<artifactId>netty-parent</artifactId>
<version>4.1.100.1.dse</version>
<version>4.1.100.2.dse</version>
</parent>

<artifactId>netty-codec-stomp</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion codec-xml/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<parent>
<groupId>io.netty</groupId>
<artifactId>netty-parent</artifactId>
<version>4.1.100.1.dse</version>
<version>4.1.100.2.dse</version>
</parent>

<artifactId>netty-codec-xml</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion codec/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<parent>
<groupId>io.netty</groupId>
<artifactId>netty-parent</artifactId>
<version>4.1.100.1.dse</version>
<version>4.1.100.2.dse</version>
</parent>

<artifactId>netty-codec</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<parent>
<groupId>io.netty</groupId>
<artifactId>netty-parent</artifactId>
<version>4.1.100.1.dse</version>
<version>4.1.100.2.dse</version>
</parent>

<artifactId>netty-common</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion example/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<parent>
<groupId>io.netty</groupId>
<artifactId>netty-parent</artifactId>
<version>4.1.100.1.dse</version>
<version>4.1.100.2.dse</version>
</parent>

<artifactId>netty-example</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion handler-proxy/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<parent>
<groupId>io.netty</groupId>
<artifactId>netty-parent</artifactId>
<version>4.1.100.1.dse</version>
<version>4.1.100.2.dse</version>
</parent>

<artifactId>netty-handler-proxy</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion handler-ssl-ocsp/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<parent>
<groupId>io.netty</groupId>
<artifactId>netty-parent</artifactId>
<version>4.1.100.1.dse</version>
<version>4.1.100.2.dse</version>
</parent>

<artifactId>netty-handler-ssl-ocsp</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion handler/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<parent>
<groupId>io.netty</groupId>
<artifactId>netty-parent</artifactId>
<version>4.1.100.1.dse</version>
<version>4.1.100.2.dse</version>
</parent>

<artifactId>netty-handler</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion microbench/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<parent>
<groupId>io.netty</groupId>
<artifactId>netty-parent</artifactId>
<version>4.1.100.1.dse</version>
<version>4.1.100.2.dse</version>
</parent>

<artifactId>netty-microbench</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<groupId>io.netty</groupId>
<artifactId>netty-parent</artifactId>
<packaging>pom</packaging>
<version>4.1.100.1.dse</version>
<version>4.1.100.2.dse</version>

<name>Netty</name>
<url>https://netty.io/</url>
Expand Down
2 changes: 1 addition & 1 deletion resolver-dns-classes-macos/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<parent>
<groupId>io.netty</groupId>
<artifactId>netty-parent</artifactId>
<version>4.1.100.1.dse</version>
<version>4.1.100.2.dse</version>
</parent>
<artifactId>netty-resolver-dns-classes-macos</artifactId>

Expand Down
2 changes: 1 addition & 1 deletion resolver-dns-native-macos/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<parent>
<groupId>io.netty</groupId>
<artifactId>netty-parent</artifactId>
<version>4.1.100.1.dse</version>
<version>4.1.100.2.dse</version>
</parent>
<artifactId>netty-resolver-dns-native-macos</artifactId>

Expand Down
2 changes: 1 addition & 1 deletion resolver-dns/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<parent>
<groupId>io.netty</groupId>
<artifactId>netty-parent</artifactId>
<version>4.1.100.1.dse</version>
<version>4.1.100.2.dse</version>
</parent>

<artifactId>netty-resolver-dns</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion resolver/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<parent>
<groupId>io.netty</groupId>
<artifactId>netty-parent</artifactId>
<version>4.1.100.1.dse</version>
<version>4.1.100.2.dse</version>
</parent>

<artifactId>netty-resolver</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion testsuite-autobahn/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<parent>
<groupId>io.netty</groupId>
<artifactId>netty-parent</artifactId>
<version>4.1.100.1.dse</version>
<version>4.1.100.2.dse</version>
</parent>

<artifactId>netty-testsuite-autobahn</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion testsuite-http2/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<parent>
<groupId>io.netty</groupId>
<artifactId>netty-parent</artifactId>
<version>4.1.100.1.dse</version>
<version>4.1.100.2.dse</version>
</parent>

<artifactId>netty-testsuite-http2</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion testsuite-native-image-client-runtime-init/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<parent>
<groupId>io.netty</groupId>
<artifactId>netty-parent</artifactId>
<version>4.1.100.1.dse</version>
<version>4.1.100.2.dse</version>
</parent>

<artifactId>netty-testsuite-native-image-client-runtime-init</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion testsuite-native-image-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<parent>
<groupId>io.netty</groupId>
<artifactId>netty-parent</artifactId>
<version>4.1.100.1.dse</version>
<version>4.1.100.2.dse</version>
</parent>

<artifactId>netty-testsuite-native-image-client</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion testsuite-native-image/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<parent>
<groupId>io.netty</groupId>
<artifactId>netty-parent</artifactId>
<version>4.1.100.1.dse</version>
<version>4.1.100.2.dse</version>
</parent>

<artifactId>netty-testsuite-native-image</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion testsuite-native/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<parent>
<groupId>io.netty</groupId>
<artifactId>netty-parent</artifactId>
<version>4.1.100.1.dse</version>
<version>4.1.100.2.dse</version>
</parent>

<artifactId>netty-testsuite-native</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion testsuite-osgi/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<parent>
<groupId>io.netty</groupId>
<artifactId>netty-parent</artifactId>
<version>4.1.100.1.dse</version>
<version>4.1.100.2.dse</version>
</parent>

<artifactId>netty-testsuite-osgi</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion testsuite-shading/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<parent>
<groupId>io.netty</groupId>
<artifactId>netty-parent</artifactId>
<version>4.1.100.1.dse</version>
<version>4.1.100.2.dse</version>
</parent>

<artifactId>netty-testsuite-shading</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion testsuite/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<parent>
<groupId>io.netty</groupId>
<artifactId>netty-parent</artifactId>
<version>4.1.100.1.dse</version>
<version>4.1.100.2.dse</version>
</parent>

<artifactId>netty-testsuite</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion transport-blockhound-tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<parent>
<groupId>io.netty</groupId>
<artifactId>netty-parent</artifactId>
<version>4.1.100.1.dse</version>
<version>4.1.100.2.dse</version>
</parent>

<artifactId>netty-transport-blockhound-tests</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion transport-classes-epoll/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<parent>
<groupId>io.netty</groupId>
<artifactId>netty-parent</artifactId>
<version>4.1.100.1.dse</version>
<version>4.1.100.2.dse</version>
</parent>
<artifactId>netty-transport-classes-epoll</artifactId>

Expand Down
2 changes: 1 addition & 1 deletion transport-classes-kqueue/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<parent>
<groupId>io.netty</groupId>
<artifactId>netty-parent</artifactId>
<version>4.1.100.1.dse</version>
<version>4.1.100.2.dse</version>
</parent>
<artifactId>netty-transport-classes-kqueue</artifactId>

Expand Down
Loading