Skip to content
Merged
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
15 changes: 9 additions & 6 deletions ci/docker/integration.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
FROM apache/arrow-dev:amd64-conda-integration

ENV ARROW_USE_CCACHE=OFF \
ARROW_CPP_EXE_PATH=/build/cpp/debug \
ARROW_NANOARROW_PATH=/build/nanoarrow \
ARROW_RUST_EXE_PATH=/build/rust/debug \
BUILD_DOCS_CPP=OFF \
Expand Down Expand Up @@ -61,8 +60,12 @@ RUN git clone https://github.com/apache/arrow-js.git /arrow-integration/js --dep
RUN git clone https://github.com/apache/arrow-rs.git /arrow-integration/rust --depth 1

# Build all the integrations except nanoarrow (since we'll do that ourselves on each run)
RUN ARCHERY_INTEGRATION_WITH_NANOARROW="0" \
conda run --no-capture-output \
/arrow-integration/ci/scripts/integration_arrow_build.sh \
/arrow-integration \
/build
# Activate conda environment directly instead of using conda run, which has issues with
# environment variables being inherited from base instead of the target environment.
# Also add cargo/bin back to PATH since conda activation may not include it.
SHELL ["/bin/bash", "-c"]
RUN source /opt/conda/etc/profile.d/conda.sh && \
conda activate arrow && \
export PATH="/root/.cargo/bin:$PATH" && \
ARCHERY_INTEGRATION_WITH_NANOARROW="0" \
/arrow-integration/ci/scripts/integration_arrow_build.sh /arrow-integration /build
14 changes: 10 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,16 @@ services:
environment:
ARCHERY_INTEGRATION_TARGET_IMPLEMENTATIONS: "nanoarrow"
ARCHERY_INTEGRATION_WITH_RUST: "1"
# Activate conda environment directly instead of using conda run, which has issues with
# environment variables being inherited from base instead of the target environment.
# Also add cargo/bin back to PATH since conda activation may not include it.
entrypoint: ["/bin/bash", "-c"]
command:
["echo '::group::Build nanoarrow' &&
conda run --no-capture-output /arrow-integration/ci/scripts/nanoarrow_build.sh /arrow-integration /build &&
- |
source /opt/conda/etc/profile.d/conda.sh && conda activate arrow && export PATH=/root/.cargo/bin:$$PATH &&
echo '::group::Build nanoarrow' &&
/arrow-integration/ci/scripts/nanoarrow_build.sh /arrow-integration /build &&
echo '::endgroup::' &&
echo '::group::Run integration tests' &&
conda run --no-capture-output /arrow-integration/ci/scripts/integration_arrow.sh /arrow-integration /build &&
echo '::endgroup::'"]
/arrow-integration/ci/scripts/integration_arrow.sh /arrow-integration /build &&
echo '::endgroup::'
Loading