Skip to content

Commit

Permalink
[CI][Python][Packaging] Test 3.12 wheels on Ubuntu 24.04
Browse files Browse the repository at this point in the history
  • Loading branch information
pitrou committed Dec 17, 2024
1 parent 2fcf8b3 commit 9f7e536
Show file tree
Hide file tree
Showing 2 changed files with 75 additions and 34 deletions.
26 changes: 26 additions & 0 deletions ci/docker/ubuntu-24.04-verify-rc.dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# 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

ENV DEBIAN_FRONTEND=noninteractive
COPY dev/release/setup-ubuntu.sh /
RUN /setup-ubuntu.sh && \
rm /setup-ubuntu.sh && \
apt-get clean && \
rm -rf /var/lib/apt/lists*
83 changes: 49 additions & 34 deletions dev/tasks/python-wheels/github.linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,45 +50,45 @@ jobs:
{{ macros.github_install_archery()|indent }}
{{ macros.github_login_dockerhub()|indent }}

- name: Build wheel
shell: bash
env:
GITHUB_TOKEN: {{ '${{ secrets.GITHUB_TOKEN }}' }}
run: |
if [ "{{ manylinux_version }}" = "2014" ] && [ "{{ arch }}" = "arm64" ]; then
# We can't use NuGet on manylinux2014_aarch64 because Mono is old.
:
else
export VCPKG_BINARY_SOURCES="clear;nuget,GitHub,readwrite"
fi
archery docker run \
-e SETUPTOOLS_SCM_PRETEND_VERSION={{ arrow.no_rc_version }} \
python-wheel-manylinux-{{ manylinux_version }}
#- name: Build wheel
#shell: bash
#env:
#GITHUB_TOKEN: {{ '${{ secrets.GITHUB_TOKEN }}' }}
#run: |
#if [ "{{ manylinux_version }}" = "2014" ] && [ "{{ arch }}" = "arm64" ]; then
## We can't use NuGet on manylinux2014_aarch64 because Mono is old.
#:
#else
#export VCPKG_BINARY_SOURCES="clear;nuget,GitHub,readwrite"
#fi
#archery docker run \
#-e SETUPTOOLS_SCM_PRETEND_VERSION={{ arrow.no_rc_version }} \
#python-wheel-manylinux-{{ manylinux_version }}

- uses: actions/upload-artifact@v4
with:
name: wheel
path: arrow/python/repaired_wheels/*.whl
#- uses: actions/upload-artifact@v4
#with:
#name: wheel
#path: arrow/python/repaired_wheels/*.whl

# TODO(kszucs): auditwheel show
- name: Test wheel
if: |
'{{ python_abi_tag }}' != 'cp313t'
shell: bash
run: |
source arrow/ci/scripts/util_enable_core_dumps.sh
archery docker run python-wheel-manylinux-test-imports
archery docker run python-wheel-manylinux-test-unittests
#- name: Test wheel
#if: |
#'{{ python_abi_tag }}' != 'cp313t'
#shell: bash
#run: |
#source arrow/ci/scripts/util_enable_core_dumps.sh
#archery docker run python-wheel-manylinux-test-imports
#archery docker run python-wheel-manylinux-test-unittests

# Free-threaded wheels need to be tested using a different Docker Compose service
- name: Test free-threaded wheel
if: |
'{{ python_abi_tag }}' == 'cp313t'
shell: bash
run: |
source arrow/ci/scripts/util_enable_core_dumps.sh
archery docker run python-free-threaded-wheel-manylinux-test-imports
archery docker run python-free-threaded-wheel-manylinux-test-unittests
#- name: Test free-threaded wheel
#if: |
#'{{ python_abi_tag }}' == 'cp313t'
#shell: bash
#run: |
#source arrow/ci/scripts/util_enable_core_dumps.sh
#archery docker run python-free-threaded-wheel-manylinux-test-imports
#archery docker run python-free-threaded-wheel-manylinux-test-unittests

- name: Test wheel on AlmaLinux 8
shell: bash
Expand Down Expand Up @@ -136,6 +136,21 @@ jobs:
-e TEST_WHEELS=1 \
ubuntu-verify-rc
- name: Test wheel on Ubuntu 24.04
shell: bash
if: |
'{{ python_version }}' == '3.12'
env:
UBUNTU: "24.04"
run: |
archery docker run \
-e TEST_DEFAULT=0 \
-e TEST_PYARROW_VERSION={{ arrow.no_rc_version }} \
-e TEST_PYTHON_VERSIONS={{ python_version }} \
-e TEST_WHEEL_PLATFORM_TAGS={{ wheel_platform_tag }} \
-e TEST_WHEELS=1 \
ubuntu-verify-rc
{{ macros.github_upload_releases("arrow/python/repaired_wheels/*.whl")|indent }}
{{ macros.github_upload_gemfury("arrow/python/repaired_wheels/*.whl")|indent }}
{{ macros.github_upload_wheel_scientific_python("arrow/python/repaired_wheels/*.whl")|indent }}
Expand Down

0 comments on commit 9f7e536

Please sign in to comment.