Skip to content

Commit bfab53c

Browse files
committed
java17
scala test apache 34 revert apache 34 java8 compatiblity compatible jdk11 java version 11 opens <iceberg.version>1.10.0</iceberg.version> revert iceberg 1.10.0 debug Revert "debug" This reverts commit 03e4cb0. macos
1 parent 622234d commit bfab53c

3 files changed

Lines changed: 98 additions & 1 deletion

File tree

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
3+
4+
name: Core/Java17 CI with Maven
5+
6+
concurrency:
7+
group: ${{ github.workflow }}-${{ github.ref }}-java17
8+
cancel-in-progress: true
9+
10+
on:
11+
push:
12+
branches:
13+
- "master"
14+
- "0.**"
15+
16+
pull_request:
17+
branches:
18+
- "master"
19+
- "0.**"
20+
paths:
21+
- ".github/workflows/**"
22+
- "amoro-ams/**"
23+
- "amoro-common/**"
24+
- "amoro-metrics/**"
25+
- "amoro-optimizer/**"
26+
- "amoro-format-iceberg/**"
27+
- "amoro-format-paimon/**"
28+
- "amoro-format-hudi/**"
29+
- "amoro-format-mixed/amoro-mixed-flink/**"
30+
- "amoro-format-mixed/amoro-mixed-hive/**"
31+
- "amoro-format-mixed/amoro-mixed-spark/**"
32+
- "pom.xml"
33+
- "tools/maven/**"
34+
35+
jobs:
36+
build:
37+
runs-on: macos-latest
38+
strategy:
39+
matrix:
40+
jdk: [ 17 ]
41+
spark: [ '3.5' ]
42+
name: Build Amoro with JDK ${{ matrix.jdk }} Spark-${{ matrix.spark }}
43+
steps:
44+
- uses: actions/checkout@v3
45+
46+
- name: Set up JDK ${{ matrix.jdk }}
47+
uses: actions/setup-java@v3
48+
with:
49+
java-version: ${{ matrix.jdk }}
50+
distribution: 'temurin'
51+
cache: maven
52+
53+
- name: Validate checkstyle first
54+
run: mvn validate
55+
56+
- name: Build all modules with Maven
57+
run: mvn clean install -Djacoco.flink.skip=true -B -ntp -Pjava${{ matrix.jdk }} -Pspark-${{ matrix.spark }}
58+
59+
- name: Code coverage
60+
uses: codecov/codecov-action@v3
61+
with:
62+
verbose: true
63+
flags: core

amoro-format-mixed/amoro-mixed-flink/amoro-mixed-flink-common/pom.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,6 @@
426426
<value>org.apache.amoro.listener.AmoroRunListener</value>
427427
</property>
428428
</properties>
429-
<argLine>-verbose:class</argLine>
430429
</configuration>
431430
</plugin>
432431
<plugin>

pom.xml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,27 @@
159159
<rocksdb-dependency-scope>compile</rocksdb-dependency-scope>
160160
<lucene-dependency-scope>compile</lucene-dependency-scope>
161161
<aliyun-sdk-dependency-scope>provided</aliyun-sdk-dependency-scope>
162+
163+
<!-- for JDK-17 test-->
164+
<extraJavaTestArgs>-XX:+IgnoreUnrecognizedVMOptions
165+
--add-opens=java.base/java.lang=ALL-UNNAMED
166+
--add-opens=java.base/java.lang.invoke=ALL-UNNAMED
167+
--add-opens=java.base/java.lang.reflect=ALL-UNNAMED
168+
--add-opens=java.base/java.io=ALL-UNNAMED
169+
--add-opens=java.base/java.net=ALL-UNNAMED
170+
--add-opens=java.base/java.nio=ALL-UNNAMED
171+
--add-opens=java.base/java.util=ALL-UNNAMED
172+
--add-opens=java.base/java.util.concurrent=ALL-UNNAMED
173+
--add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED
174+
--add-opens=java.base/jdk.internal.ref=ALL-UNNAMED
175+
--add-opens=java.base/sun.nio.ch=ALL-UNNAMED
176+
--add-opens=java.base/sun.nio.cs=ALL-UNNAMED
177+
--add-opens=java.base/sun.security.action=ALL-UNNAMED
178+
--add-opens=java.base/sun.security.tools.keytool=ALL-UNNAMED
179+
--add-opens=java.base/sun.security.x509=ALL-UNNAMED
180+
--add-opens=java.base/sun.util.calendar=ALL-UNNAMED
181+
-Djdk.reflect.useDirectMethodHandle=false
182+
-Dio.netty.tryReflectionSetAccessible=true</extraJavaTestArgs>
162183
</properties>
163184

164185
<dependencies>
@@ -1076,6 +1097,9 @@
10761097
<groupId>org.apache.maven.plugins</groupId>
10771098
<artifactId>maven-surefire-plugin</artifactId>
10781099
<version>${maven-surefire-plugin.version}</version>
1100+
<configuration>
1101+
<argLine>${argLine} -ea -Xmx4g -Xss4m -XX:MaxMetaspaceSize=2g -XX:ReservedCodeCacheSize=128m ${extraJavaTestArgs} -verbose:class</argLine>
1102+
</configuration>
10791103
</plugin>
10801104
<plugin>
10811105
<groupId>org.apache.maven.plugins</groupId>
@@ -1449,9 +1473,20 @@
14491473
<jdk>[11,)</jdk>
14501474
</activation>
14511475
<properties>
1476+
<java.source.version>11</java.source.version>
14521477
<java.target.version>11</java.target.version>
14531478
</properties>
14541479
</profile>
1480+
<profile>
1481+
<id>java17</id>
1482+
<activation>
1483+
<jdk>17</jdk>
1484+
</activation>
1485+
<properties>
1486+
<java.source.version>17</java.source.version>
1487+
<java.target.version>17</java.target.version>
1488+
</properties>
1489+
</profile>
14551490
<profile>
14561491
<id>spark-3.3</id>
14571492
<properties>

0 commit comments

Comments
 (0)