Skip to content

Commit 8c7a634

Browse files
committed
add test script
1 parent b6eafb6 commit 8c7a634

File tree

2 files changed

+65
-1
lines changed

2 files changed

+65
-1
lines changed
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
################################################################################
2+
# Licensed to the Apache Software Foundation (ASF) under one
3+
# or more contributor license agreements. See the NOTICE file
4+
# distributed with this work for additional information
5+
# regarding copyright ownership. The ASF licenses this file
6+
# to you under the Apache License, Version 2.0 (the
7+
# "License"); you may not use this file except in compliance
8+
# with the License. You may obtain a copy of the License at
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
# Unless required by applicable law or agreed to in writing, software
13+
# distributed under the License is distributed on an "AS IS" BASIS,
14+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
# See the License for the specific language governing permissions and
16+
# limitations under the License.
17+
################################################################################
18+
19+
name: UTCase and ITCase Spark 4.x
20+
21+
on:
22+
push:
23+
pull_request:
24+
paths-ignore:
25+
- 'docs/**'
26+
- '**/*.md'
27+
- 'paimon-python/**'
28+
- '.github/workflows/paimon-python-checks.yml'
29+
30+
env:
31+
JDK_VERSION: 11
32+
MAVEN_OPTS: -Dmaven.wagon.httpconnectionManager.ttlSeconds=30 -Dmaven.wagon.http.retryHandler.requestSentEnabled=true
33+
34+
concurrency:
35+
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.event.number || github.run_id }}
36+
cancel-in-progress: true
37+
38+
jobs:
39+
build_test:
40+
runs-on: ubuntu-latest
41+
42+
steps:
43+
- name: Checkout code
44+
uses: actions/checkout@v4
45+
46+
- name: Set up JDK ${{ env.JDK_VERSION }}
47+
uses: actions/setup-java@v4
48+
with:
49+
java-version: ${{ env.JDK_VERSION }}
50+
distribution: 'temurin'
51+
52+
- name: Build Paimon Vector
53+
run: mvn -T 2C -B clean install -DskipTests -Ppaimon-vector
54+
55+
- name: Test Paimon Vector
56+
run: |
57+
. .github/workflows/utils.sh
58+
jvm_timezone=$(random_timezone)
59+
echo "JVM timezone is set to $jvm_timezone"
60+
TEST_MODULE="org.apache.paimon:paimon-vector"
61+
echo "Start testing module: $TEST_MODULE"
62+
mvn -T 2C -B test verify -Ppaimon-vector -pl "${TEST_MODULE}" -Duser.timezone=$jvm_timezone
63+
echo "All modules tested"
64+
env:
65+
MAVEN_OPTS: -Xmx4096m -XX:+UseG1GC -XX:CICompilerCount=2

pom.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ under the License.
7373
<module>tools/ci/paimon-ci-tools</module>
7474
<module>paimon-hudi</module>
7575
<module>paimon-api</module>
76-
<module>paimon-vector</module>
7776
</modules>
7877

7978
<properties>

0 commit comments

Comments
 (0)