-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
ARROW-17451: [CI][Java] Use manylinux2014 image for JNI #13920
Changes from 3 commits
b319661
36b05d1
31a65eb
3e7930d
64cf4c7
489f84e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -122,7 +122,6 @@ x-hierarchy: | |
- debian-go-cgo | ||
- debian-go-cgo-python | ||
- debian-java | ||
- debian-java-jni | ||
- debian-js | ||
- fedora-cpp: | ||
- fedora-python | ||
|
@@ -999,10 +998,14 @@ services: | |
<<: *ccache | ||
volumes: | ||
- .:/arrow:delegated | ||
- ${DOCKER_VOLUME_PREFIX}maven-cache:/root/.m2:delegated | ||
- ${DOCKER_VOLUME_PREFIX}python-wheel-manylinux2014-ccache:/ccache:delegated | ||
command: | ||
["pip install -e /arrow/dev/archery && | ||
/arrow/ci/scripts/java_jni_manylinux_build.sh /arrow /build /arrow/java-dist"] | ||
["pip install -e /arrow/dev/archery && \ | ||
/arrow/ci/scripts/java_jni_manylinux_build.sh /arrow /build /arrow/java-dist && \ | ||
source /opt/rh/rh-maven35/enable && \ | ||
/arrow/ci/scripts/java_build.sh /arrow /build /arrow/java-dist && \ | ||
/arrow/ci/scripts/java_test.sh /arrow /build /arrow/java-dist"] | ||
|
||
############################## Integration ################################# | ||
|
||
|
@@ -1541,37 +1544,6 @@ services: | |
/arrow/ci/scripts/java_build.sh /arrow /build && | ||
/arrow/ci/scripts/java_test.sh /arrow /build" | ||
|
||
debian-java-jni: | ||
# Includes plasma test, jni for gandiva and orc, and C data interface. | ||
# Usage: | ||
# docker-compose build debian-java | ||
# docker-compose build debian-java-jni | ||
# docker-compose run debian-java-jni | ||
image: ${REPO}:${ARCH}-debian-9-java-${JDK}-maven-${MAVEN}-jni | ||
build: | ||
context: . | ||
dockerfile: ci/docker/linux-apt-jni.dockerfile | ||
cache_from: | ||
- ${REPO}:${ARCH}-debian-9-java-${JDK}-maven-${MAVEN}-jni | ||
args: | ||
llvm: ${LLVM} | ||
shm_size: *shm-size | ||
environment: | ||
<<: *ccache | ||
ARROW_BUILD_TESTS: "OFF" | ||
ARROW_S3: "OFF" | ||
ARROW_SUBSTRAIT: "OFF" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you reuse these environment variables in the java-manylinux build? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We can use We can't use |
||
volumes: | ||
- .:/arrow:delegated | ||
- ${DOCKER_VOLUME_PREFIX}maven-cache:/root/.m2:delegated | ||
- ${DOCKER_VOLUME_PREFIX}debian-ccache:/ccache:delegated | ||
command: | ||
/bin/bash -c " | ||
/arrow/ci/scripts/cpp_build.sh /arrow /build && | ||
/arrow/ci/scripts/java_jni_build.sh /arrow /build /tmp/java_dist && | ||
/arrow/ci/scripts/java_build.sh /arrow /build /tmp/java_dist && | ||
/arrow/ci/scripts/java_test.sh /arrow /build /tmp/java_dist" | ||
|
||
oracle-java: | ||
# Usage: | ||
# docker-compose build oracle-java | ||
|
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.
Why not, but you should perhaps also pass it to CMake below?
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.
Ah, I changed wrong file... I should have changed
java_jni_manylinux_build.sh
...I've passed it to CMake arguments. I've updated
java_jni_manylinux_build.sh
too.I chose
ARROW_USE_CCACHE:=OFF
here becausecpp_build.sh
uses it. I setARROW_USE_CCACHE=ON
in caller like other jobs.