This is an automated email from the ASF dual-hosted git repository.

lzljs3620320 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/paimon.git


The following commit(s) were added to refs/heads/master by this push:
     new d5546ba5e9 [test] Reduce the number of tests triggered by each CI
d5546ba5e9 is described below

commit d5546ba5e9bc489095b89a521a85ae688c464b4c
Author: JingsongLi <[email protected]>
AuthorDate: Wed Jan 7 17:44:24 2026 +0800

    [test] Reduce the number of tests triggered by each CI
---
 .github/workflows/e2e-tests-flink-1.x-jdk11.yml    | 71 ----------------------
 .github/workflows/e2e-tests-flink-1.x.yml          |  4 +-
 .github/workflows/e2e-tests-flink-2.x-jdk11.yml    |  4 +-
 ...flink-1.x.yml => utitcase-flink-1.x-common.yml} | 10 +--
 ...1.x-jdk11.yml => utitcase-flink-1.x-others.yml} | 42 +++++++------
 5 files changed, 31 insertions(+), 100 deletions(-)

diff --git a/.github/workflows/e2e-tests-flink-1.x-jdk11.yml 
b/.github/workflows/e2e-tests-flink-1.x-jdk11.yml
deleted file mode 100644
index 59ca97eea1..0000000000
--- a/.github/workflows/e2e-tests-flink-1.x-jdk11.yml
+++ /dev/null
@@ -1,71 +0,0 @@
-################################################################################
-#  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: End to End Tests Flink 1.x on JDK 11
-
-on:
-  issue_comment:
-    types: [created, edited, deleted]
-
-  # daily run
-  schedule:
-    - cron: "0 0 * * *"
-
-env:
-  JDK_VERSION: 11
-  MAVEN_OPTS: -Dmaven.wagon.httpconnectionManager.ttlSeconds=30 
-Dmaven.wagon.http.retryHandler.requestSentEnabled=true
-
-jobs:
-  build_test:
-    if: |
-      github.event_name == 'schedule' ||
-      (contains(github.event.comment.html_url, '/pull/') && 
contains(github.event.comment.body, '/jdk11'))
-    runs-on: ubuntu-latest
-    timeout-minutes: 60
-    strategy:
-      fail-fast: true
-      matrix:
-        # Last element should be the current default flink version
-        flink_version: [ '1.16', '1.17', '1.18', '1.19', '1.20' ]
-    steps:
-      - name: Checkout code
-        uses: actions/checkout@v4
-
-      - name: Set up JDK ${{ env.JDK_VERSION }}
-        uses: actions/setup-java@v4
-        with:
-          java-version: ${{ env.JDK_VERSION }}
-          distribution: 'temurin'
-
-      - name: Build Flink
-        run:  mvn -T 1C -B clean install -DskipTests -Pflink1,spark3 -pl 
paimon-e2e-tests -am -Pflink-${{ matrix.flink_version }},java11
-
-      - name: Test Flink
-        run: |
-          # run tests with random timezone to find out timezone related bugs
-          . .github/workflows/utils.sh
-          jvm_timezone=$(random_timezone)
-          echo "JVM timezone is set to $jvm_timezone"
-          profile="flink-${{ matrix.flink_version }}"
-          if [ "${{ matrix.flink_version }}" = "${{ matrix.flink_version[-1] 
}}" ]; then
-            mvn -T 1C -B test -Pflink1,spark3 -pl paimon-e2e-tests 
-Duser.timezone=$jvm_timezone -Pjava11
-          else
-            mvn -T 1C -B test -Pflink1,spark3 -pl paimon-e2e-tests 
-Duser.timezone=$jvm_timezone -P${profile},java11
-          fi
-        env:
-          MAVEN_OPTS: -Xmx4096m
\ No newline at end of file
diff --git a/.github/workflows/e2e-tests-flink-1.x.yml 
b/.github/workflows/e2e-tests-flink-1.x.yml
index 419cb72d0d..45e39d91db 100644
--- a/.github/workflows/e2e-tests-flink-1.x.yml
+++ b/.github/workflows/e2e-tests-flink-1.x.yml
@@ -43,8 +43,8 @@ jobs:
     strategy:
       fail-fast: true
       matrix:
-        # Last element should be the current default flink version
-        flink_version: [ '1.16', '1.17', '1.18', '1.19', '1.20' ]
+        # Only Test Latest Version
+        flink_version: [ '1.20' ]
     steps:
       - name: Checkout code
         uses: actions/checkout@v4
diff --git a/.github/workflows/e2e-tests-flink-2.x-jdk11.yml 
b/.github/workflows/e2e-tests-flink-2.x-jdk11.yml
index 7eb3f4e965..537ccf15f5 100644
--- a/.github/workflows/e2e-tests-flink-2.x-jdk11.yml
+++ b/.github/workflows/e2e-tests-flink-2.x-jdk11.yml
@@ -39,8 +39,8 @@ jobs:
     strategy:
       fail-fast: true
       matrix:
-        # Last element should be the current default flink version
-        flink_version: [ '2.0', '2.1', '2.2' ]
+        # Only Test Latest Version
+        flink_version: [ '2.2' ]
     steps:
       - name: Checkout code
         uses: actions/checkout@v4
diff --git a/.github/workflows/utitcase-flink-1.x.yml 
b/.github/workflows/utitcase-flink-1.x-common.yml
similarity index 87%
rename from .github/workflows/utitcase-flink-1.x.yml
rename to .github/workflows/utitcase-flink-1.x-common.yml
index 50a65ad37d..94dc5337e8 100644
--- a/.github/workflows/utitcase-flink-1.x.yml
+++ b/.github/workflows/utitcase-flink-1.x-common.yml
@@ -15,7 +15,7 @@
 #  See the License for the specific language governing permissions and
 # limitations under the License.
 
################################################################################
-name: UTCase and ITCase Flink 1.x
+name: UTCase and ITCase Flink 1.x Common
 
 on:
   push:
@@ -39,10 +39,6 @@ jobs:
   build_test:
     runs-on: ubuntu-latest
     timeout-minutes: 60
-    strategy:
-      fail-fast: true
-      matrix:
-        flink_version: ['common', 'cdc', '1.16', '1.17', '1.18', '1.19', 
'1.20']
 
     steps:
       - name: Checkout code
@@ -56,7 +52,7 @@ jobs:
 
       - name: Build Flink
         run: |
-          COMPILE_MODULE="org.apache.paimon:paimon-flink-${{ 
matrix.flink_version }}"
+          COMPILE_MODULE="org.apache.paimon:paimon-flink-common"
           echo "Start compiling modules: $COMPILE_MODULE"
           mvn -T 2C -B clean install -DskipTests -Pflink1,spark3 -pl 
"${COMPILE_MODULE}" -am
 
@@ -65,7 +61,7 @@ jobs:
           . .github/workflows/utils.sh
           jvm_timezone=$(random_timezone)
           echo "JVM timezone is set to $jvm_timezone"
-          TEST_MODULE="org.apache.paimon:paimon-flink-${{ matrix.flink_version 
}}" 
+          TEST_MODULE="org.apache.paimon:paimon-flink-common" 
           echo "Start testing module: $TEST_MODULE"
           mvn -T 2C -B test verify -Pflink1,spark3 -pl "${TEST_MODULE}" 
-Duser.timezone=$jvm_timezone
           echo "All modules tested"
diff --git a/.github/workflows/utitcase-flink-1.x-jdk11.yml 
b/.github/workflows/utitcase-flink-1.x-others.yml
similarity index 72%
rename from .github/workflows/utitcase-flink-1.x-jdk11.yml
rename to .github/workflows/utitcase-flink-1.x-others.yml
index bfbad354e2..5cdac81313 100644
--- a/.github/workflows/utitcase-flink-1.x-jdk11.yml
+++ b/.github/workflows/utitcase-flink-1.x-others.yml
@@ -15,49 +15,55 @@
 #  See the License for the specific language governing permissions and
 # limitations under the License.
 
################################################################################
-
-name: UTCase and ITCase Flink 1.x on JDK 11
+name: UTCase and ITCase Flink 1.x Others
 
 on:
-  issue_comment:
-    types: [created, edited, deleted]
-
-  # daily run
-  schedule:
-    - cron: "0 0 * * *"
+  push:
+  pull_request:
+    paths-ignore:
+      - 'docs/**'
+      - '**/*.md'
+      - 'paimon-python/**'
+      - '.github/workflows/paimon-python-checks.yml'
+      - 'paimon-lucene/**'
 
 env:
-  JDK_VERSION: 11
+  JDK_VERSION: 8
   MAVEN_OPTS: -Dmaven.wagon.httpconnectionManager.ttlSeconds=30 
-Dmaven.wagon.http.retryHandler.requestSentEnabled=true
 
+concurrency:
+  group: ${{ github.workflow }}-${{ github.event_name }}-${{ 
github.event.number || github.run_id }}
+  cancel-in-progress: true
+
 jobs:
-  build:
-    if: |
-      github.event_name == 'schedule' ||
-      (contains(github.event.comment.html_url, '/pull/') && 
contains(github.event.comment.body, '/jdk11'))
+  build_test:
     runs-on: ubuntu-latest
+    timeout-minutes: 60
 
     steps:
       - name: Checkout code
         uses: actions/checkout@v4
+
       - name: Set up JDK ${{ env.JDK_VERSION }}
         uses: actions/setup-java@v4
         with:
           java-version: ${{ env.JDK_VERSION }}
           distribution: 'temurin'
+
       - name: Build Flink
-        run:  mvn -T 1C -B clean install -DskipTests -Pflink1,spark3
+        run: |
+          mvn -T 2C -B clean install -DskipTests -Pflink1,spark3
+
       - name: Test Flink
         run: |
-          # run tests with random timezone to find out timezone related bugs
           . .github/workflows/utils.sh
           jvm_timezone=$(random_timezone)
           echo "JVM timezone is set to $jvm_timezone"
           test_modules=""
-          for suffix in 1.16 1.17 1.18 1.19 1.20 common; do
+          for suffix in cdc 1.16 1.17 1.18 1.19 1.20; do
           test_modules+="org.apache.paimon:paimon-flink-${suffix},"
           done
           test_modules="${test_modules%,}"
-          mvn -T 1C -B test verify -Pflink1,spark3 -pl "${test_modules}" 
-Duser.timezone=$jvm_timezone
+          mvn -T 2C -B test verify -Pflink1,spark3 -pl "${test_modules}" 
-Duser.timezone=$jvm_timezone
         env:
-          MAVEN_OPTS: -Xmx4096m
\ No newline at end of file
+          MAVEN_OPTS: -Xmx4096m -XX:+UseG1GC -XX:CICompilerCount=2
\ No newline at end of file

Reply via email to