File: verify_rc.yml

package info (click to toggle)
apache-arrow 23.0.1-1
  • links: PTS
  • area: main
  • in suites: sid
  • size: 76,220 kB
  • sloc: cpp: 654,608; python: 70,522; ruby: 45,964; ansic: 18,742; sh: 7,365; makefile: 669; javascript: 125; xml: 41
file content (286 lines) | stat: -rw-r--r-- 8,988 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
# 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*"
  pull_request:
    paths:
      - ".github/workflows/verify_rc.yml"
  workflow_dispatch:
    inputs:
      rc_tag:
        description: "Tag of the rc to verify"
        type: string
        required: true


permissions:
  contents: read

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

jobs:
  target:
    name: Target
    runs-on: ubuntu-latest
    timeout-minutes: 5
    outputs:
      version: ${{ steps.detect.outputs.version }}
      rc: ${{ steps.detect.outputs.rc }}
    steps:
      - name: Detect
        id: detect
        env:
          GH_TOKEN: ${{ github.token }}
        run: |
          case "${GITHUB_EVENT_NAME}" in
            workflow_dispatch)
              tag="${{ inputs.rc_tag }}"
              ;;
            pull_request)
              tag="$(gh release list \
                       --jq '.[] | select(.isPrerelease) | .tagName' \
                       --json tagName,isPrerelease \
                       --repo ${GITHUB_REPOSITORY} | \
                       head -n1)"
              ;;
            *)
              tag="${GITHUB_REF_NAME}"
              ;;
          esac
          package_id=${tag%-rc*}
          version=${package_id#apache-arrow-}
          rc=${tag#*-rc}
          echo "version=${version}" >> "${GITHUB_OUTPUT}"
          echo "rc=${rc}" >> "${GITHUB_OUTPUT}"

  apt:
    name: APT
    needs: target
    runs-on: ${{ matrix.runs-on }}
    timeout-minutes: 30
    strategy:
      fail-fast: false
      matrix:
        runs-on:
          - ubuntu-latest
          - ubuntu-24.04-arm
    env:
      RC: ${{ needs.target.outputs.rc }}
      TEST_APT: "1"
      VERSION: ${{ needs.target.outputs.version }}
    steps:
      - uses: actions/checkout@v6
        with:
          fetch-depth: 0
      - name: Run
        run: |
          dev/release/verify-release-candidate.sh ${VERSION} ${RC}
      - name: Verify the previous version
        # TODO: We may re-enable this in the future.
        # There are some problems for now:
        # * We need to specify the previous versions for all
        #   dependencies explicitly. For example, "apt install
        #   libarrow-glib-dev=20.0.0-1" doesn't work. We need "apt
        #   install libarrow-glib-dev=20.0.0-1
        #   libarrow-acero-dev=20.0.0-1 libparquet-dev=20.0.0-1
        #   gir1.2-arrow-1.0=20.0.0-1 libparquet-dev=20.0.0-1
        #   libarrow-dev=20.0.0-1"
        continue-on-error: true
        run: |
          major_version=${VERSION%%.*}
          previous_major_version=$((major_version - 1))
          previous_version=${previous_major_version}.0.0
          previous_tag=apache-arrow-${previous_version}
          git checkout ${previous_tag}
          # This is workaround. dev/release/verify-release-candidate.sh
          # in < 21.0.0 doesn't accept 20.0.0 as the VERSION argument.
          # We can remove this workaround after 21.0.0 release.
          sed \
            -i \
            -e 's/^\(ensure_source_directory\)$/# \1/' \
            -e 's/^\(test_source_distribution\)$/# \1/' \
            dev/release/verify-release-candidate.sh
          dev/release/verify-release-candidate.sh ${previous_version}

  binary:
    name: Binary
    needs: target
    runs-on: ubuntu-latest
    timeout-minutes: 30
    env:
      RC: ${{ needs.target.outputs.rc }}
      TEST_BINARY: "1"
      VERSION: ${{ needs.target.outputs.version }}
    steps:
      - uses: actions/checkout@v6
      - name: Run
        run: |
          dev/release/verify-release-candidate.sh ${VERSION} ${RC}

  wheels-linux:
    name: Wheels Linux
    needs: target
    runs-on: ubuntu-latest
    timeout-minutes: 30
    strategy:
      fail-fast: false
      matrix:
        distro:
          - almalinux-8
          - conda
          - ubuntu-22.04
          - ubuntu-24.04
    env:
      RC: ${{ needs.target.outputs.rc }}
      TEST_WHEELS: "1"
      VERSION: ${{ needs.target.outputs.version }}
    steps:
      - uses: actions/checkout@v6
      - uses: actions/setup-python@v6
        with:
          python-version: 3
      - name: Setup Archery
        run: python -m pip install -e dev/archery[docker]
      - name: Prepare
        run: |
          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
        env:
          GH_TOKEN: ${{ github.token }}
        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}" \
            -e GH_TOKEN="$GH_TOKEN" \
            ${SERVICE}

  wheels-macos:
    name: Wheels macOS
    needs: target
    runs-on: ${{ matrix.runs-on }}
    timeout-minutes: 30
    strategy:
      fail-fast: false
      matrix:
        runs-on:
          - macos-15-intel
          - macos-14
    env:
      RC: ${{ needs.target.outputs.rc }}
      TEST_WHEELS: "1"
      VERSION: ${{ needs.target.outputs.version }}
    steps:
      - uses: actions/checkout@v6
      - name: Run
        env:
          GH_TOKEN: ${{ github.token }}
        run: |
          dev/release/verify-release-candidate.sh ${VERSION} ${RC}

  wheels-windows:
    name: Wheels Windows
    needs: target
    runs-on: windows-latest
    timeout-minutes: 45
    env:
      PYARROW_TEST_GDB: "OFF"
      RC: ${{ needs.target.outputs.rc }}
      TEST_WHEELS: "1"
      VERSION: ${{ needs.target.outputs.version }}
    steps:
      - uses: actions/checkout@v6
        with:
          submodules: recursive
      - uses: conda-incubator/setup-miniconda@835234971496cad1653abb28a638a281cf32541f # v3.2.0
      - 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
        env:
          GH_TOKEN: ${{ github.token }}
        shell: cmd
        run: |
          dev/release/verify-release-candidate-wheels.bat %VERSION% %RC%

  yum:
    name: Yum
    needs: target
    runs-on: ${{ matrix.runs-on }}
    timeout-minutes: 30
    strategy:
      fail-fast: false
      matrix:
        runs-on:
          - ubuntu-latest
          - ubuntu-24.04-arm
    env:
      RC: ${{ needs.target.outputs.rc }}
      TEST_YUM: "1"
      VERSION: ${{ needs.target.outputs.version }}
    steps:
      - uses: actions/checkout@v6
        with:
          fetch-depth: 0
      - name: Run
        run: |
          dev/release/verify-release-candidate.sh ${VERSION} ${RC}
      - name: Verify the previous version
        # TODO: We may re-enable this in the future.
        # There are some problems for now:
        # * x86_64: libLLVM.so.18.1 needed by gandiva2000-libs on AlmaLinux 9
        # * arm64: libarrow.so.2000.0.0: refers the
        #   "std::condition_variable::wait(std::unique_lock<std::mutex>&)@GLIBCXX_3.4.30"
        #   (not "...@@GLIBCXX_3.4.30" nor "...@GLIBCXX_3.4.11") symbol on
        #   AmazonLinux 2023.
        continue-on-error: true
        run: |
          major_version=${VERSION%%.*}
          previous_major_version=$((major_version - 1))
          previous_version=${previous_major_version}.0.0
          previous_tag=apache-arrow-${previous_version}
          git checkout ${previous_tag}
          # This is workaround. dev/release/verify-release-candidate.sh
          # in < 21.0.0 doesn't accept 20.0.0 as the VERSION argument.
          # We can remove this workaround after 21.0.0 release.
          sed \
            -i \
            -e 's/^\(ensure_source_directory\)$/# \1/' \
            -e 's/^\(test_source_distribution\)$/# \1/' \
            dev/release/verify-release-candidate.sh
          dev/release/verify-release-candidate.sh ${previous_version}