-
Notifications
You must be signed in to change notification settings - Fork 180
292 lines (259 loc) · 8.73 KB
/
nightly-verify.yml
File metadata and controls
292 lines (259 loc) · 8.73 KB
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
287
288
289
290
291
292
# 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: Verification (Nightly)
on:
pull_request:
branches:
- main
paths:
- ".github/workflows/nightly-verify.yml"
- "ci/docker/cpp-clang-latest.dockerfile"
- "ci/docker/cpp-gcc-latest.dockerfile"
- "ci/docker/cpp-musl.alpine.dockerfile"
- "dev/release/verify-release-candidate.sh"
- "dev/release/verify-release-candidate.ps1"
schedule:
- cron: "0 0 * * *"
workflow_dispatch: {}
permissions:
contents: read
defaults:
run:
# 'bash' will expand to -eo pipefail
shell: bash
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
source:
# For cron: only run on the main repo, not forks
if: github.event_name != 'schedule' || github.repository == 'apache/arrow-adbc'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
persist-credentials: false
submodules: recursive
- name: Prepare version
run: |
VERSION=$(grep 'set(ADBC_VERSION' c/cmake_modules/AdbcVersion.cmake | \
grep -E -o '[0-9]+\.[0-9]+\.[0-9]+')
echo "VERSION=${VERSION}" >> $GITHUB_ENV
- name: Create archive
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git tag -f \
-a apache-arrow-adbc-${VERSION}-rc0 \
-m "ADBC Libraries ${VERSION} RC 0"
ci/scripts/source_build.sh \
apache-arrow-adbc-${VERSION} \
apache-arrow-adbc-${VERSION}-rc0
- name: Create fake GPG key
run: |
gpg \
--quick-gen-key \
--batch \
--passphrase '' \
user@localhost
gpg \
--list-sigs >> KEYS
gpg \
--armor \
--export >> KEYS
- name: Create sum/signature
run: |
gpg \
--armor \
--detach-sign \
--output apache-arrow-adbc-${VERSION}.tar.gz.asc \
apache-arrow-adbc-${VERSION}.tar.gz
shasum --algorithm 512 \
apache-arrow-adbc-${VERSION}.tar.gz > apache-arrow-adbc-${VERSION}.tar.gz.sha512
- uses: actions/upload-artifact@v6
with:
name: source
retention-days: 7
path: |
KEYS
apache-arrow-adbc-${{ env.VERSION }}.tar.gz
apache-arrow-adbc-${{ env.VERSION }}.tar.gz.asc
apache-arrow-adbc-${{ env.VERSION }}.tar.gz.sha512
source-conda:
name: "Verify Source (Conda)/${{ matrix.os }}"
runs-on: ${{ matrix.os }}
needs:
- source
strategy:
fail-fast: false
matrix:
os: ["macos-15-intel", "macos-latest", "ubuntu-latest", "windows-latest"]
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
path: arrow-adbc
persist-credentials: false
- name: Prepare version
run: |
VERSION=$(grep 'set(ADBC_VERSION' arrow-adbc/c/cmake_modules/AdbcVersion.cmake | \
grep -E -o '[0-9]+\.[0-9]+\.[0-9]+')
echo "VERSION=${VERSION}" >> $GITHUB_ENV
- uses: actions/download-artifact@v7
with:
name: source
path: ${{ github.workspace }}/apache-arrow-adbc-${{ env.VERSION }}-rc0/
- name: Setup directory structure
run: |
mv apache-arrow-adbc-${{ env.VERSION }}-rc0/KEYS .
- uses: conda-incubator/setup-miniconda@835234971496cad1653abb28a638a281cf32541f # v3.2.0
# The Unix script will set up conda itself
if: matrix.os == 'windows-latest'
with:
miniforge-version: latest
use-mamba: true
- name: Work around ASAN issue (GH-1617)
if: matrix.os == 'ubuntu-latest'
run: |
sudo sysctl vm.mmap_rnd_bits=28
- name: Clean up disk space
if: runner.os == 'Linux'
run: |
# These tools use a lot of disk space, free up some space
# https://github.com/actions/runner-images/issues/2840
sudo rm -rf \
"$AGENT_TOOLSDIRECTORY" \
/opt/google/chrome \
/opt/microsoft/msedge \
/opt/microsoft/powershell \
/opt/pipx \
/usr/local/julia* \
/usr/local/lib/android \
/usr/local/lib/node_modules \
/usr/local/share/chromium \
/usr/local/share/powershell \
/usr/share/swift
df -h /
- name: Verify
if: matrix.os != 'windows-latest'
env:
CI: "false"
REPOSITORY: ${{ github.repository }}
TEST_DEFAULT: "0"
TEST_SOURCE: "1"
USE_CONDA: "1"
VERBOSE: "1"
VERIFICATION_MOCK_DIST_DIR: ${{ github.workspace }}
run: |
# Required for macOS
export CXXFLAGS="${CXXFLAGS} -D_LIBCPP_DISABLE_AVAILABILITY"
echo "CXXFLAGS=${CXXFLAGS}"
./arrow-adbc/dev/release/verify-release-candidate.sh $VERSION 0
- name: Verify
if: matrix.os == 'windows-latest'
shell: pwsh
env:
CI: "false"
REPOSITORY: ${{ github.repository }}
TEST_DEFAULT: "0"
TEST_SOURCE: "1"
USE_CONDA: "1"
VERBOSE: "1"
VERIFICATION_MOCK_DIST_DIR: ${{ github.workspace }}\apache-arrow-adbc-${{ env.VERSION }}-rc0
run: |
.\arrow-adbc\dev\release\verify-release-candidate.ps1 $env:VERSION 0
source-docker:
name: "Run Docker Tests"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
path: arrow-adbc
persist-credentials: false
- name: cpp-clang-latest
run: |
pushd arrow-adbc
docker compose run --rm cpp-clang-latest
- name: cpp-gcc-latest
run: |
pushd arrow-adbc
docker compose run --rm cpp-gcc-latest
- name: cpp-shared-no-common-entrypoints-test
run: |
pushd arrow-adbc
docker compose run --rm cpp-shared-no-common-entrypoints-test
- name: cpp-static-test
run: |
pushd arrow-adbc
docker compose run --rm cpp-static-test
- name: cpp-musl
run: |
pushd arrow-adbc
docker compose run --rm cpp-musl
- name: python-debug
run: |
# Need to set this or ASAN inside the container gets stuck
# printing a loop of DEADLYSIGNAL
sudo sysctl vm.mmap_rnd_bits=28
pushd arrow-adbc
docker compose run -e PYTHON=3.13 --rm python-debug
source-verify-docker:
name: "Verify Source (OS)/${{ matrix.os }} ${{ matrix.version }}"
runs-on: ubuntu-latest
strategy:
max-parallel: 2
matrix:
include:
- os: ubuntu
version: "22.04"
- os: ubuntu
version: "24.04"
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
path: arrow-adbc
persist-credentials: false
submodules: recursive
- name: Clean up disk space
run: |
# These tools use a lot of disk space, free up some space
# https://github.com/actions/runner-images/issues/2840
sudo rm -rf \
"$AGENT_TOOLSDIRECTORY" \
/opt/google/chrome \
/opt/microsoft/msedge \
/opt/microsoft/powershell \
/opt/pipx \
/usr/lib/mono \
/usr/local/julia* \
/usr/local/lib/android \
/usr/local/lib/node_modules \
/usr/local/share/chromium \
/usr/local/share/powershell \
/usr/share/dotnet \
/usr/share/swift
df -h /
- name: Verify
env:
OS: ${{ matrix.os }}
OS_VERSION: ${{ matrix.version }}
run: |
pushd arrow-adbc
env ${OS@U}=${OS_VERSION} docker compose run --rm verify-all-${OS}