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
182 changes: 182 additions & 0 deletions .github/workflows/verify_rc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,182 @@
# 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.

name: Verify RC

on:
push:
tags:
- "*-rc*"

permissions:
contents: read

env:
TEST_DEFAULT: "0"
VERBOSE: "1"

jobs:
apt:
name: APT
runs-on: ${{ matrix.runs-on }}
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
runs-on:
- ubuntu-latest
- ubuntu-24.04-arm
env:
TEST_APT: "1"
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Run
run: |
package_id=${GITHUB_REF_NAME%-rc*}
version=${package_id#apache-arrow-}
rc=${GITHUB_REF_NAME#*-rc}
dev/release/verify-release-candidate.sh ${version} ${rc}

binary:
name: Binary
runs-on: ubuntu-latest
timeout-minutes: 30
env:
TEST_BINARY: "1"
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Run
run: |
package_id=${GITHUB_REF_NAME%-rc*}
version=${package_id#apache-arrow-}
rc=${GITHUB_REF_NAME#*-rc}
dev/release/verify-release-candidate.sh ${version} ${rc}

wheels-linux:
name: Wheels Linux
runs-on: ubuntu-latest
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
distro:
- almalinux-8
- conda
- ubuntu-22.04
- ubuntu-24.04

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

probably as a follow up issue but should we add aarch64 wheel validation using the arm GH hosted runners?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch!
I didn't notice the case because the existing jobs don't cover the case.

I've opened an issue for it: #45707

env:
TEST_WHEELS: "1"
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
with:
python-version: 3
- name: Setup Archery
run: python -m pip install -e dev/archery[docker]
- name: Prepare
run: |
package_id=${GITHUB_REF_NAME%-rc*}
echo "VERSION=${package_id#apache-arrow-}" >> ${GITHUB_ENV}
echo "RC=${GITHUB_REF_NAME#*-rc}" >> ${GITHUB_ENV}
distro=${{ matrix.distro }}
if [ "${distro}" = "conda" ]; then
echo "SERVICE=${distro}-verify-rc" >> ${GITHUB_ENV}
else
os=${distro%-*}
version=${distro#*-}
echo "SERVICE=${os}-verify-rc" >> ${GITHUB_ENV}
echo "$(echo ${os} | tr a-z A-Z)=${version}" >> ${GITHUB_ENV}
fi
- name: Run
run: |
archery docker run \
-e TEST_DEFAULT="${TEST_DEFAULT}" \
-e TEST_WHEELS="${TEST_WHEELS}" \
-e VERBOSE="${VERBOSE}" \
-e VERIFY_RC="${RC}" \
-e VERIFY_VERSION="${VERSION}" \
${SERVICE}

wheels-macos:
name: Wheels macOS
runs-on: ${{ matrix.runs-on }}
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
runs-on:
- macos-13
- macos-14
env:
TEST_WHEELS: "1"
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Run
run: |
package_id=${GITHUB_REF_NAME%-rc*}
version=${package_id#apache-arrow-}
rc=${GITHUB_REF_NAME#*-rc}
dev/release/verify-release-candidate.sh ${version} ${rc}

wheels-windows:
name: Wheels Windows
runs-on: windows-latest
timeout-minutes: 45
env:
PYARROW_TEST_GDB: "OFF"
TEST_WHEELS: "1"
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Prepare
shell: bash
run: |
package_id=${GITHUB_REF_NAME%-rc*}
echo "VERSION=${package_id#apache-arrow-}" >> ${GITHUB_ENV}
echo "RC=${GITHUB_REF_NAME#*-rc}" >> ${GITHUB_ENV}
- uses: conda-incubator/setup-miniconda@505e6394dae86d6a5c7fbb6e3fb8938e3e863830 # v3.1.1
- name: Install System Dependencies
run: |
choco install --no-progress --yes boost-msvc-14.1
choco install --no-progress --yes wget
- name: Download Timezone Database
shell: bash
run: ci/scripts/download_tz_database.sh
- name: Run verification
shell: cmd
run: |
dev/release/verify-release-candidate-wheels.bat %VERSION% %RC%

yum:
name: Yum
runs-on: ${{ matrix.runs-on }}
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
runs-on:
- ubuntu-latest
- ubuntu-24.04-arm
env:
TEST_YUM: "1"
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Run
run: |
package_id=${GITHUB_REF_NAME%-rc*}
version=${package_id#apache-arrow-}
rc=${GITHUB_REF_NAME#*-rc}
dev/release/verify-release-candidate.sh ${version} ${rc}
3 changes: 2 additions & 1 deletion dev/release/verify-release-candidate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,8 @@ test_binary() {
mkdir -p ${download_dir}

${PYTHON:-python3} $SOURCE_DIR/download_rc_binaries.py $VERSION $RC_NUMBER \
--dest=${download_dir}
--dest=${download_dir} \
--repository=${GITHUB_REPOSITORY:-apache/arrow}

verify_dir_artifact_signatures ${download_dir}
}
Expand Down
58 changes: 0 additions & 58 deletions dev/tasks/tasks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,15 +122,6 @@ groups:
verify-rc:
- verify-rc-*

verify-rc-binaries:
- verify-rc-binaries-*

verify-rc-jars:
- verify-rc-binaries-jars-*

verify-rc-wheels:
- verify-rc-binaries-wheels-*

verify-rc-source:
- verify-rc-source-*

Expand Down Expand Up @@ -747,29 +738,8 @@ tasks:
distro: {{ distribution }}
{% endfor %}

{% for target in ["jars", "wheels"] %}
verify-rc-binaries-{{ target }}-linux-{{ distribution }}-{{ version }}-amd64:
ci: github
template: verify-rc/github.linux.amd64.docker.yml
params:
target: {{ target }}
distro: {{ distribution }}
{% endfor %}

{% endfor %}

# Separated these tasks from the loop above due to:
# - 'binary' verification is not platform dependent
# - 'yum' and 'apt' requires docker so we need to run the verification script
# directly on the host
{% for target in ["binary", "yum", "apt"] %}
verify-rc-binaries-{{ target }}-linux-amd64:
ci: github
template: verify-rc/github.linux.amd64.yml
params:
target: {{ target }}
{% endfor %}

######################## macOS verification ################################

{% for target in ["cpp", "integration", "python"] %}
Expand Down Expand Up @@ -814,26 +784,6 @@ tasks:
github_runner: "macos-14"
{% endfor %}

{% for macos_version in ["13"] %}
verify-rc-binaries-wheels-macos-{{ macos_version }}-amd64:
ci: github
template: verify-rc/github.macos.yml
params:
github_runner: "macos-{{ macos_version }}"
target: "wheels"
{% endfor %}

{% for macos_version in ["14"] %}
verify-rc-binaries-wheels-macos-{{ macos_version }}-arm64:
ci: github
template: verify-rc/github.macos.yml
params:
env:
PYTEST_ADDOPTS: "-k 'not test_cancellation'"
github_runner: "macos-{{ macos_version }}"
target: "wheels"
{% endfor %}

######################## Windows verification ##############################

verify-rc-source-windows:
Expand All @@ -844,14 +794,6 @@ tasks:
PYARROW_TEST_GDB: "OFF"
script: "verify-release-candidate.bat"

verify-rc-binaries-wheels-windows:
ci: github
template: verify-rc/github.win.yml
params:
env:
PYARROW_TEST_GDB: "OFF"
script: "verify-release-candidate-wheels.bat"

############################## Docker tests ##################################

{% for image in ["alpine-linux-cpp",
Expand Down
71 changes: 0 additions & 71 deletions dev/tasks/verify-rc/github.linux.amd64.yml

This file was deleted.