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

xtsong pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/flink-agents.git


The following commit(s) were added to refs/heads/main by this push:
     new 37a0b91  [ci] Add java 17 pipeline for java ut and it. (#380)
37a0b91 is described below

commit 37a0b9138fb4aa969679449010254d61cd7209f4
Author: Wenjin Xie <[email protected]>
AuthorDate: Thu Dec 11 16:13:15 2025 +0800

    [ci] Add java 17 pipeline for java ut and it. (#380)
---
 .github/workflows/ci.yml | 29 ++++++++++++++++-------------
 pom.xml                  |  8 +++++++-
 2 files changed, 23 insertions(+), 14 deletions(-)

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index e41b989..b60288a 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -35,7 +35,7 @@ jobs:
       - name: Set up JDK
         uses: actions/setup-java@v4
         with:
-          java-version: '11'
+          java-version: '17'
           distribution: 'adopt'
       - name: Set up Python
         uses: actions/setup-python@v4
@@ -49,24 +49,25 @@ jobs:
         run: ./tools/lint.sh -c
 
   java_tests:
-    name: ut-java [${{ matrix.os }}]
+    name: ut-java [${{ matrix.os }}] [java-${{ matrix.java-version}}]
     runs-on: ${{ matrix.os }}
     strategy:
       fail-fast: false
       matrix:
         os: [ 'macos-latest', 'ubuntu-latest' ]
+        java-version: ["11", "17"]
     steps:
       - uses: actions/checkout@v4
       - name: Install java
         uses: actions/setup-java@v4
         with:
-          java-version: '11'
+          java-version: ${{ matrix.java-version }}
           distribution: 'adopt'
       - name: Run Java Tests
         run: tools/ut.sh -j
 
   python_tests:
-    name: ut-python [${{ matrix.os }}] [${{ matrix.python-version}}]
+    name: ut-python [${{ matrix.os }}] [python-${{ matrix.python-version}}]
     runs-on: ${{ matrix.os }}
     strategy:
       fail-fast: false
@@ -78,7 +79,7 @@ jobs:
       - name: Install java
         uses: actions/setup-java@v4
         with:
-          java-version: '11'
+          java-version: '17'
           distribution: 'adopt'
       - name: Install python
         uses: actions/setup-python@v4
@@ -92,7 +93,7 @@ jobs:
         run: tools/ut.sh -p
 
   python_it_tests:
-    name: it-python [${{ matrix.os }}] [${{ matrix.python-version}}]
+    name: it-python [${{ matrix.os }}] [python-${{ matrix.python-version}}]
     runs-on: ${{ matrix.os }}
     strategy:
       fail-fast: false
@@ -104,7 +105,7 @@ jobs:
       - name: Install java
         uses: actions/setup-java@v4
         with:
-          java-version: '11'
+          java-version: '17'
           distribution: 'adopt'
       - name: Install python
         uses: actions/setup-python@v4
@@ -122,18 +123,19 @@ jobs:
         run: tools/ut.sh -p -e
 
   java_it_tests:
-    name: it-java [${{ matrix.os }}]
+    name: it-java [${{ matrix.os }}] [java-${{ matrix.java-version}}]
     runs-on: ${{ matrix.os }}
     strategy:
       fail-fast: false
       matrix:
         os: [ 'ubuntu-latest' ]
+        java-version: [ "17" ]
     steps:
       - uses: actions/checkout@v4
       - name: Install java
         uses: actions/setup-java@v4
         with:
-          java-version: '11'
+          java-version: ${{ matrix.java-version }}
           distribution: 'adopt'
       - name: Install flink-agents Java
         run: bash tools/build.sh -j
@@ -143,19 +145,20 @@ jobs:
         run: tools/ut.sh -j -e
 
   cross_language_tests:
-    name: cross-language [${{ matrix.os }}] [${{ matrix.python-version}}]
+    name: cross-language [${{ matrix.os }}] [python-${{ 
matrix.python-version}}] [java-${{ matrix.java-version}}]
     runs-on: ${{ matrix.os }}
     strategy:
       fail-fast: false
       matrix:
-        os: [ 'macos-latest', 'ubuntu-latest' ]
-        python-version: [ '3.10', '3.11' ]
+        os: [ 'ubuntu-latest' ]
+        python-version: [ '3.11' ]
+        java-version: [ '17' ]
     steps:
       - uses: actions/checkout@v4
       - name: Install java
         uses: actions/setup-java@v4
         with:
-          java-version: '11'
+          java-version: ${{ matrix.java-version }}
           distribution: 'adopt'
       - name: Install python
         uses: actions/setup-python@v4
diff --git a/pom.xml b/pom.xml
index 2690d45..baa903d 100644
--- a/pom.xml
+++ b/pom.xml
@@ -51,7 +51,6 @@ under the License.
         <slf4j.version>1.7.36</slf4j.version>
         <assertj.version>3.23.1</assertj.version>
         <mockito.version>5.8.0</mockito.version>
-
         <gpg.useagent>true</gpg.useagent>
         <arguments />
     </properties>
@@ -261,6 +260,13 @@ under the License.
                     </execution>
                 </executions>
             </plugin>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-surefire-plugin</artifactId>
+                <configuration>
+                    
<argLine>--add-opens=java.base/java.util=ALL-UNNAMED</argLine>
+                </configuration>
+            </plugin>
         </plugins>
     </build>
 

Reply via email to