Skip to content
Draft
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
40 changes: 40 additions & 0 deletions ci/docker/pixi.dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.

ARG arch=amd64
FROM ${arch}/ubuntu:24.04

# install build essentials
RUN export DEBIAN_FRONTEND=noninteractive && \
apt-get update -y -q && \
apt-get install -y -q \
curl \
gdb \
git \
libc6-dbg \
tzdata \
wget && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*

# install pixi
RUN curl -fsSL https://pixi.sh/install.sh -o /tmp/install-pixi.sh
RUN PIXI_HOME=/opt/pixi PIXI_NO_PATH_UPDATE=1 sh /tmp/install-pixi.sh && rm /tmp/install-pixi.sh
ENV PATH=/opt/pixi/bin:$PATH

# Verify pixi installation
RUN pixi --version
19 changes: 19 additions & 0 deletions ci/pixi/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.

**/.pixi
**/pixi.lock
97 changes: 97 additions & 0 deletions ci/pixi/asan/cpp/pixi.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.

[workspace]
channels = ["https://prefix.dev/conda-forge"]
platforms = ["linux-64"]
preview = ["pixi-build"]

[environments]
default = []
test = ["test"]

[feature.test.activation.env]
ARROW_TEST_DATA = "/arrow/testing/data"
PARQUET_TEST_DATA = "/arrow/cpp/submodules/parquet-testing/data"
# GH-39973: debug memory pool conflicts with ASAN
ARROW_DEBUG_MEMORY_POOL = "none"
ASAN_OPTIONS = "allocator_may_return_null=1:detect_leaks=0:symbolize=1"
UBSAN_OPTIONS = "print_stacktrace=1"

[feature.test.dependencies]
binutils = "*"
cmake = "*"

[feature.test.tasks]
# This path mangling feels extremely finicky. Investigate alternatives to make this more robust.
test = "cd $(ls -d /arrow/ci/pixi/asan/cpp/.pixi/build/work/arrow-cpp-*/work/build | head -n 1) && ctest --output-on-failure"

[package]
name = "arrow-cpp"
# TODO: Incorporate this to the bump version script and tests
version = "25.0.0.dev"
authors = ["Apache Arrow"]

[package.build]
source.path = "../../../../cpp"

[package.build.backend]
name = "pixi-build-cmake"
version = "*"

[package.build.config]
extra-args = [
"-DCMAKE_BUILD_TYPE=Debug",
"-DARROW_USE_ASAN=ON",
"-DARROW_USE_UBSAN=ON",
# Avoid creating huge static libraries with sanitizer instrumentation
"-DARROW_BUILD_STATIC=OFF",
"-DARROW_BUILD_TESTS=ON",
"-DARROW_COMPUTE=ON",
"-DARROW_CSV=ON",
"-DARROW_DATASET=ON",
"-DARROW_FILESYSTEM=ON",
"-DARROW_JSON=ON",
"-DARROW_PARQUET=ON",
"-DARROW_WITH_BROTLI=ON",
"-DARROW_WITH_BZ2=ON",
"-DARROW_WITH_LZ4=ON",
"-DARROW_WITH_SNAPPY=ON",
"-DARROW_WITH_ZLIB=ON",
"-DARROW_WITH_ZSTD=ON",
# libutf8proc on package-host-dependencies seems to fail.
# More investigation needed. In the meantime use bundled.
"-Dutf8proc_SOURCE=BUNDLED",
"-DOPENSSL_ROOT_DIR=$PREFIX",
]

[package.host-dependencies]
brotli = "*"
bzip2 = "*"
gflags = "*"
gmock = ">=1.10.0"
gtest = ">=1.10.0"
libboost-devel = "*"
lz4-c = "*"
openssl = "*"
rapidjson = "*"
re2 = "*"
snappy = "*"
thrift-cpp = ">=0.11.0"
xsimd = ">=14.0"
zlib = "*"
zstd = "*"
108 changes: 108 additions & 0 deletions ci/pixi/asan/python/pixi.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.

[workspace]
channels = ["https://prefix.dev/conda-forge"]
platforms = ["linux-64"]
preview = ["pixi-build"]

[environments]
default = []
test = ["test"]

[feature.test]
platforms = ["linux-64"]

[feature.test.activation.env]
ARROW_TEST_DATA = "/arrow/testing/data"
PARQUET_TEST_DATA = "/arrow/cpp/submodules/parquet-testing/data"
# GH-39973: debug memory pool conflicts with ASAN
ARROW_DEBUG_MEMORY_POOL = "none"
ASAN_OPTIONS = "detect_leaks=0:symbolize=1:strict_init_order=true:allocator_may_return_null=1:use_sigaltstack=0"
UBSAN_OPTIONS = "print_stacktrace=1"

[feature.test.dependencies]
hypothesis = "*"
pyarrow = { path = "." }
pytest = "*"
pytest-timeout = "*"
python.git = "https://github.com/python/cpython"
python.subdirectory = "Tools/pixi-packages/asan"
python.rev = "15b216f30d0445469ec31bc7509fcc55a216ef7c"
numpy.git = "https://github.com/numpy/numpy"
numpy.subdirectory = "pixi-packages/asan"
numpy.rev = "0419105da9cd0a15a4e02bc22019c2b65272c68a"

[feature.test.tasks]
test = "pytest -r s --pyargs pyarrow --timeout=60"

[package]
name = "pyarrow"
# TODO: Incorporate this to the bump version script and tests
version = "25.0.0.dev"
authors = ["Apache Arrow"]

[package.build]
source.path = "../../../../python"

[package.build.backend]
name = "pixi-build-python"
version = "*"

[package.build.config]
noarch = false
compilers = ["c", "cxx"]
extra-args = [
"-Ccmake.build-type=Debug",
"-Ccmake.define.ARROW_USE_ASAN=ON",
"-Ccmake.define.ARROW_USE_UBSAN=ON",
]
env = {
PYARROW_BUNDLE_ARROW_CPP = "0",
CMAKE_GENERATOR = "Ninja",
ARROW_HOME = "$PREFIX",
ASAN_OPTIONS = "detect_leaks=0:symbolize=1:strict_init_order=true:allocator_may_return_null=1:use_sigaltstack=0"
}

[package.host-dependencies]
# Sanitizer-instrumented Arrow C++ (sibling pixi package).
arrow-cpp = { path = "../cpp" }
cmake = "*"
cython = ">=3.0"
gcc_linux-64 = "*"
git = "*"
gxx_linux-64 = "*"
ninja = "*"
pip = "*"
pkg-config = "*"
scikit-build-core = "*"
setuptools-scm = "*"
sysroot_linux-64 = "*"
zlib = "*"
# Instrumented CPython built from source (v3.15.0a6).
# commit hash must match numpy's pixi-packages/asan pinned commit,
# so pixi-build doesn't build cpython twice with different versions.
python.git = "https://github.com/python/cpython"
python.subdirectory = "Tools/pixi-packages/asan"
python.rev = "15b216f30d0445469ec31bc7509fcc55a216ef7c"
# Instrumented NumPy built from source.
numpy.git = "https://github.com/numpy/numpy"
numpy.subdirectory = "pixi-packages/asan"
numpy.rev = "0419105da9cd0a15a4e02bc22019c2b65272c68a"

[package.run-dependencies]
arrow-cpp = { path = "../cpp" }
89 changes: 89 additions & 0 deletions ci/pixi/default/cpp/pixi.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.

[workspace]
channels = ["https://prefix.dev/conda-forge"]
platforms = ["linux-64", "linux-aarch64", "osx-arm64"]
preview = ["pixi-build"]

[environments]
default = []
test = ["test"]

[feature.test.activation.env]
ARROW_TEST_DATA = "/arrow/testing/data"
PARQUET_TEST_DATA = "/arrow/cpp/submodules/parquet-testing/data"

[feature.test.dependencies]
binutils = "*"
cmake = "*"

[feature.test.tasks]
# This path mangling feels extremely finicky. Investigate alternatives to make this more robust.
test = "cd $(ls -d /arrow/ci/pixi/default/cpp/.pixi/build/work/arrow-cpp-*/work/build | head -n 1) && ctest --output-on-failure"

[package]
name = "arrow-cpp"
# TODO: Incorporate this to the bump version script and tests
version = "25.0.0.dev"
authors = ["Apache Arrow"]

[package.build]
source.path = "../../../../cpp"

[package.build.backend]
name = "pixi-build-cmake"
version = "*"

[package.build.config]
extra-args = [
"-DCMAKE_BUILD_TYPE=Release",
"-DARROW_BUILD_TESTS=ON",
"-DARROW_COMPUTE=ON",
"-DARROW_CSV=ON",
"-DARROW_DATASET=ON",
"-DARROW_FILESYSTEM=ON",
"-DARROW_JSON=ON",
"-DARROW_PARQUET=ON",
"-DARROW_WITH_BROTLI=ON",
"-DARROW_WITH_BZ2=ON",
"-DARROW_WITH_LZ4=ON",
"-DARROW_WITH_SNAPPY=ON",
"-DARROW_WITH_ZLIB=ON",
"-DARROW_WITH_ZSTD=ON",
# libutf8proc on package-host-dependencies seems to fail.
# More investigation needed. In the meantime use bundled.
"-Dutf8proc_SOURCE=BUNDLED",
"-DOPENSSL_ROOT_DIR=$PREFIX",
]

[package.host-dependencies]
brotli = "*"
bzip2 = "*"
gflags = "*"
gmock = ">=1.10.0"
gtest = ">=1.10.0"
libboost-devel = "*"
lz4-c = "*"
openssl = "*"
rapidjson = "*"
re2 = "*"
snappy = "*"
thrift-cpp = ">=0.11.0"
xsimd = ">=14.0"
zlib = "*"
zstd = "*"
Loading
Loading