-
Notifications
You must be signed in to change notification settings - Fork 6
320 lines (271 loc) · 11.1 KB
/
main.yml
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
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
# Copyright (C) 2021 The Authors of projectnessie
#
# Licensed 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: Nessie / Iceberg
on:
push:
branches: [ main ]
pull_request:
schedule:
# Run every 12 hours on week days
- cron: '0 4/12 * * 1-5'
jobs:
latest:
name: Nessie main/Iceberg main
runs-on: ubuntu-latest
env:
GIT_FETCH_DEPTH: 0
GIT_FETCH_OPTION: ''
NESSIE_DIR: included-builds/nessie
NESSIE_MAIN_REPOSITORY: projectnessie/nessie
NESSIE_MAIN_BRANCH: main
NESSIE_PATCH_REPOSITORY: ''
NESSIE_PATCH_BRANCH: ''
ICEBERG_DIR: included-builds/iceberg
ICEBERG_MAIN_REPOSITORY: apache/iceberg
ICEBERG_MAIN_BRANCH: main
ICEBERG_PATCH_REPOSITORY: snazy/iceberg
ICEBERG_PATCH_BRANCH: iceberg-nesqueit
SPARK_LOCAL_IP: localhost
steps:
- name: Prepare Git
run: |
git config --global user.email "[email protected]"
git config --global user.name "Integrations Testing [Bot]"
- name: Checkout Integrations Testing repo
uses: actions/checkout@v4
- name: Free disk space
uses: ./.github/actions/free-disk-space
- name: Setup runner
uses: ./.github/actions/setup-runner
with:
more-memory: 'true'
- name: Checkout and patch Nessie
uses: ./.github/actions/patch-git
with:
name: Nessie
local-dir: ${{env.NESSIE_DIR}}
main-repository: ${{env.NESSIE_MAIN_REPOSITORY}}
main-branch: ${{env.NESSIE_MAIN_BRANCH}}
patch-repository: ${{env.NESSIE_PATCH_REPOSITORY}}
patch-branch: ${{env.NESSIE_PATCH_BRANCH}}
work-branch: nessie_integtest
- name: Checkout and patch Iceberg
uses: ./.github/actions/patch-git
with:
name: Iceberg
local-dir: ${{env.ICEBERG_DIR}}
main-repository: ${{env.ICEBERG_MAIN_REPOSITORY}}
main-branch: ${{env.ICEBERG_MAIN_BRANCH}}
patch-repository: ${{env.ICEBERG_PATCH_REPOSITORY}}
patch-branch: ${{env.ICEBERG_PATCH_BRANCH}}
work-branch: iceberg_integtest
# Setup Gradle properties, heap requirements are for the "Integration test w/ Nessie".
- name: Setup gradle.properties
run: |
mkdir -p ~/.gradle
echo "org.gradle.jvmargs=-Xms2g -Xmx4g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8" >> ~/.gradle/gradle.properties
echo "org.gradle.vfs.watch=false" >> ~/.gradle/gradle.properties
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: 'temurin'
# Java 17 required for Nessie build, Java 11 required for Flink & Presto
java-version: |
11
17
- name: Spotless
uses: gradle/gradle-build-action@v2
with:
arguments: spotlessCheck --scan
- name: Checkstyle
uses: gradle/gradle-build-action@v2
with:
arguments: checkstyleMain checkstyleTest --scan
- name: Iceberg Nessie test
uses: gradle/gradle-build-action@v2
with:
arguments: :iceberg:iceberg-nessie:test --scan
- name: Nessie Spark 3.2 / 2.12 Extensions test
uses: gradle/gradle-build-action@v2
with:
arguments: :nessie:nessie-iceberg:nessie-spark-extensions-3.2_2.12:test :nessie:nessie-iceberg:nessie-spark-extensions-3.2_2.12:intTest --scan
- name: Nessie Spark 3.3 / 2.12 Extensions test
uses: gradle/gradle-build-action@v2
with:
arguments: :nessie:nessie-iceberg:nessie-spark-extensions-3.3_2.12:test :nessie:nessie-iceberg:nessie-spark-extensions-3.3_2.12:intTest --scan
- name: Nessie Spark 3.4 / 2.12 Extensions test
uses: gradle/gradle-build-action@v2
with:
arguments: :nessie:nessie-iceberg:nessie-spark-extensions-3.4_2.12:test :nessie:nessie-iceberg:nessie-spark-extensions-3.4_2.12:intTest --scan
- name: Nessie Spark 3.5 / 2.13 Extensions test
uses: gradle/gradle-build-action@v2
with:
arguments: :nessie:nessie-iceberg:nessie-spark-extensions-3.5_2.13:test :nessie:nessie-iceberg:nessie-spark-extensions-3.5_2.13:intTest --scan
- name: Build before publish
uses: gradle/gradle-build-action@v2
with:
arguments: jar testClasses javadoc --scan
# TODO re-enable once Iceberg/main references a Nessie release w/ Nessie PR #6197,
# Gradle's Maven publishing fails with the group-ID relocation.
#
#- name: Publish Nessie + Iceberg to local Maven repo
# uses: gradle/gradle-build-action@v2
# with:
# arguments: publishLocal --scan
- name: Gather locally published versions
run: |
NESSIE_VERSION="$(cat included-builds/nessie/version.txt)"
ICEBERG_VERSION="$(cat included-builds/iceberg/build/iceberg-build.properties | grep '^git.build.version=' | cut -d= -f2)"
echo "NESSIE_VERSION=${NESSIE_VERSION}" >> ${GITHUB_ENV}
echo "ICEBERG_VERSION=${ICEBERG_VERSION}" >> ${GITHUB_ENV}
cat <<! >> $GITHUB_STEP_SUMMARY
## Published versions
| Published Nessie version | Published Iceberg version |
| ------------------------ | ------------------------- |
| ${NESSIE_VERSION} | ${ICEBERG_VERSION} |
!
# Iceberg does not support builds with more than one Scala versions, so we have to explicitly
# Specify the Scala version here - and run `intTest` for each Scala version.
# But note: Flink does not provide any Scala 2.13 artifacts at the moment, so when selecting
# Scala 2.13 with a build using Iceberg from source, all Flink related code will be skipped.
- name: Show Gradle projects for Scala 2.12
uses: gradle/gradle-build-action@v2
with:
arguments: projects -DscalaVersion=2.12
- name: Tools & Integrations tests / Scala 2.12
uses: gradle/gradle-build-action@v2
with:
arguments: intTest -DscalaVersion=2.12 --scan
- name: Show Gradle projects for Scala 2.13
uses: gradle/gradle-build-action@v2
with:
arguments: projects -DscalaVersion=2.13
- name: Tools & Integrations tests / Scala 2.13
uses: gradle/gradle-build-action@v2
with:
arguments: intTest -DscalaVersion=2.13 --scan
#- name: Checkout Presto repo
# uses: actions/checkout@v3
# with:
# repository: ${{env.PRESTO_MAIN_REPOSITORY}}
# ref: ${{env.PRESTO_MAIN_BRANCH}}
# path: ${{env.PRESTO_DIR}}
#
#- name: Cache local Maven repository
# uses: actions/cache@v3
# with:
# path: |
# ~/.m2/repository
# !~/.m2/repository/org/projectnessie
# !~/.m2/repository/org/apache/iceberg
# ~/.m2/wrapper
# key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml', '**/maven-wrapper.properties') }}
# restore-keys: |
# ${{ runner.os }}-maven-
#
#- name: Build Presto w/ latest Nessie+Iceberg
# working-directory: included-builds/presto
# run: |
# ./mvnw \
# --no-transfer-progress \
# install -DskipTests \
# -Ddep.iceberg.version=${ICEBERG_VERSION} \
# -Ddep.nessie.version=${NESSIE_VERSION}
iceberg140_nessie0710:
name: Nessie 0.71.0 / Iceberg 1.4.0
runs-on: ubuntu-latest
env:
SPARK_LOCAL_IP: localhost
steps:
- name: Checkout Integrations Testing repo
uses: actions/checkout@v4
- name: Free disk space
uses: ./.github/actions/free-disk-space
- name: Setup gradle.properties
run: |
mkdir -p ~/.gradle
echo "org.gradle.jvmargs=-Xmx1024m -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8" >> ~/.gradle/gradle.properties
echo "org.gradle.vfs.watch=false" >> ~/.gradle/gradle.properties
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 11
- name: Show Gradle projects
uses: gradle/gradle-build-action@v2
with:
cache-read-only: true
arguments: projects -Dnessie.versionNessie=0.71.0 -Dnessie.versionIceberg=1.4.0
- name: Tools & Integrations tests
uses: gradle/gradle-build-action@v2
with:
arguments: intTest -Dnessie.versionNessie=0.71.0 -Dnessie.versionIceberg=1.4.0 --scan
iceberg131_nessie0651:
name: Nessie 0.65.1 / Iceberg 1.3.1
runs-on: ubuntu-latest
env:
SPARK_LOCAL_IP: localhost
steps:
- name: Checkout Integrations Testing repo
uses: actions/checkout@v4
- name: Free disk space
uses: ./.github/actions/free-disk-space
- name: Setup gradle.properties
run: |
mkdir -p ~/.gradle
echo "org.gradle.jvmargs=-Xmx1024m -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8" >> ~/.gradle/gradle.properties
echo "org.gradle.vfs.watch=false" >> ~/.gradle/gradle.properties
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 11
- name: Show Gradle projects
uses: gradle/gradle-build-action@v2
with:
cache-read-only: true
arguments: projects -Dnessie.versionNessie=0.65.1 -Dnessie.versionIceberg=1.3.1
- name: Tools & Integrations tests
uses: gradle/gradle-build-action@v2
with:
arguments: intTest -Dnessie.versionNessie=0.65.1 -Dnessie.versionIceberg=1.3.1 --scan
iceberg131_nessie0601:
name: Nessie 0.60.1 / Iceberg 1.3.1
runs-on: ubuntu-latest
env:
SPARK_LOCAL_IP: localhost
steps:
- name: Checkout Integrations Testing repo
uses: actions/checkout@v4
- name: Free disk space
uses: ./.github/actions/free-disk-space
- name: Setup gradle.properties
run: |
mkdir -p ~/.gradle
echo "org.gradle.jvmargs=-Xmx1024m -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8" >> ~/.gradle/gradle.properties
echo "org.gradle.vfs.watch=false" >> ~/.gradle/gradle.properties
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 11
- name: Show Gradle projects
uses: gradle/gradle-build-action@v2
with:
cache-read-only: true
arguments: projects -Dnessie.versionNessie=0.60.1 -Dnessie.versionIceberg=1.3.1
- name: Tools & Integrations tests
uses: gradle/gradle-build-action@v2
with:
arguments: intTest -Dnessie.versionNessie=0.60.1 -Dnessie.versionIceberg=1.3.1 --scan