From e0e078a8ac8597c31761c0bb6e58e6c466a29177 Mon Sep 17 00:00:00 2001 From: Hongshun Wang Date: Wed, 25 Jun 2025 14:37:47 +0800 Subject: [PATCH 1/7] Fluss support jdk 11 --- .github/workflows/ci.yaml | 25 ++++++++++++++++++++++++- pom.xml | 24 ++++++++++++++++++++++++ 2 files changed, 48 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index f706a2552d..38485ee016 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -31,7 +31,7 @@ concurrency: cancel-in-progress: true jobs: - build: + compile-on-jdk8: runs-on: self-hosted strategy: fail-fast: false @@ -40,9 +40,32 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v2 + - name: Set up JDK 8 + uses: actions/setup-java@v4 + with: + java-version: '8' + distribution: 'temurin' - name: Build run: | mvn -T 1C -B clean install -DskipTests + + build-on-jdk11: + runs-on: self-hosted + strategy: + fail-fast: false + matrix: + module: [ core, flink ] + steps: + - name: Checkout code + uses: actions/checkout@v2 + - name: Set up JDK 11 + uses: actions/setup-java@v4 + with: + java-version: '11' + distribution: 'temurin' + - name: Build + run: | + mvn -T 1C -B clean install -DskipTests -Pjava11-target - name: Test timeout-minutes: 60 run: | diff --git a/pom.xml b/pom.xml index 8441ee50f3..9796276b98 100644 --- a/pom.xml +++ b/pom.xml @@ -425,6 +425,29 @@ + + java11-target + + + + org.apache.maven.plugins + maven-compiler-plugin + + 11 + 11 + + --add-exports=java.base/sun.net.util=ALL-UNNAMED + --add-exports=java.management/sun.management=ALL-UNNAMED + --add-exports=java.rmi/sun.rmi.registry=ALL-UNNAMED + --add-exports=java.security.jgss/sun.security.krb5=ALL-UNNAMED + --add-exports=java.base/sun.nio.ch=ALL-UNNAMED + + + + + + + test-coverage @@ -879,6 +902,7 @@ maven-compiler-plugin 3.8.0 + ${target.java.version} ${target.java.version} From f541c72e2fcbd2eb7753bd981eaf781d0dd5c7f6 Mon Sep 17 00:00:00 2001 From: Hongshun Wang Date: Fri, 27 Jun 2025 10:25:58 +0800 Subject: [PATCH 2/7] support java 11 as default compile version. --- .github/workflows/ci.yaml | 4 +- .github/workflows/daily.yaml | 72 +++++++++++++++++++++++++++++ .github/workflows/license-check.yml | 2 +- pom.xml | 37 ++++++++++----- 4 files changed, 100 insertions(+), 15 deletions(-) create mode 100644 .github/workflows/daily.yaml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 38485ee016..68451a62bd 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -47,7 +47,7 @@ jobs: distribution: 'temurin' - name: Build run: | - mvn -T 1C -B clean install -DskipTests + mvn -T 1C -B clean install -DskipTests -Pjava8-target build-on-jdk11: runs-on: self-hosted @@ -65,7 +65,7 @@ jobs: distribution: 'temurin' - name: Build run: | - mvn -T 1C -B clean install -DskipTests -Pjava11-target + mvn -T 1C -B clean install -DskipTests - name: Test timeout-minutes: 60 run: | diff --git a/.github/workflows/daily.yaml b/.github/workflows/daily.yaml new file mode 100644 index 0000000000..f2cfea38e1 --- /dev/null +++ b/.github/workflows/daily.yaml @@ -0,0 +1,72 @@ +################################################################################ +# 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: Daily CI ON JDK 8 +on: + schedule: + # Run at 12:00 daily. + - cron: "0 12 * * *" +concurrency: + group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.event.number || github.run_id }} + cancel-in-progress: true + +jobs: + build-on-jdk8: + runs-on: self-hosted + strategy: + fail-fast: false + matrix: + module: [ core, flink ] + steps: + - name: Checkout code + uses: actions/checkout@v2 + - name: Set up JDK 8 + uses: actions/setup-java@v4 + with: + java-version: '8' + distribution: 'temurin' + - name: Build + run: | + mvn -T 1C -B clean install -DskipTests -Pjava8-target + - name: Test + timeout-minutes: 60 + run: | + TEST_MODULES=$(./.github/workflows/stage.sh ${{ matrix.module }}) + echo "github ref: ${{ github.ref }}" + echo "Start testing modules: $TEST_MODULES" + mvn -B verify $TEST_MODULES -Ptest-coverage -Ptest-${{ matrix.module }} -Dlog.dir=${{ runner.temp }}/fluss-logs -Dlog4j.configurationFile=${{ github.workspace }}/tools/ci/log4j.properties -Pjava8-target + env: + MAVEN_OPTS: -Xmx4096m + ARTIFACTS_OSS_ENDPOINT: ${{ secrets.ARTIFACTS_OSS_ENDPOINT }} + ARTIFACTS_OSS_REGION: ${{ secrets.ARTIFACTS_OSS_REGION }} + ARTIFACTS_OSS_BUCKET: ${{ secrets.ARTIFACTS_OSS_BUCKET }} + ARTIFACTS_OSS_ACCESS_KEY: ${{ secrets.ARTIFACTS_OSS_ACCESS_KEY }} + ARTIFACTS_OSS_SECRET_KEY: ${{ secrets.ARTIFACTS_OSS_SECRET_KEY }} + ARTIFACTS_OSS_STS_ENDPOINT: ${{ secrets.ARTIFACTS_OSS_STS_ENDPOINT }} + ARTIFACTS_OSS_ROLE_ARN: ${{ secrets.ARTIFACTS_OSS_ROLE_ARN }} + - name: Upload build logs + uses: actions/upload-artifact@v4 + if: ${{ failure() }} + with: + name: logs-test-${{ matrix.module }}-${{ github.run_number}}#${{ github.run_attempt }} + path: ${{ runner.temp }}/fluss-logs/* + - name: Upload JaCoCo coverage report + uses: actions/upload-artifact@v4 + if: ${{ success() && github.ref == 'refs/heads/main' }} + with: + name: jacoco-report-${{ matrix.module }}-${{ github.run_number}}#${{ github.run_attempt }} + path: ${{ github.workspace }}/fluss-test-coverage/target/site/jacoco-aggregate/* \ No newline at end of file diff --git a/.github/workflows/license-check.yml b/.github/workflows/license-check.yml index a830abaee0..a54175d17a 100644 --- a/.github/workflows/license-check.yml +++ b/.github/workflows/license-check.yml @@ -37,7 +37,7 @@ jobs: - name: Set JDK uses: actions/setup-java@v4 with: - java-version: 8 + java-version: 11 distribution: 'temurin' - name: Build diff --git a/pom.xml b/pom.xml index 9796276b98..48d00d0f2d 100644 --- a/pom.xml +++ b/pom.xml @@ -82,7 +82,7 @@ UTF-8 UTF-8 - 1.8 + 11 ${target.java.version} ${target.java.version} **/*Test.* @@ -426,28 +426,25 @@ - java11-target + java8-target org.apache.maven.plugins maven-compiler-plugin - 11 - 11 - - --add-exports=java.base/sun.net.util=ALL-UNNAMED - --add-exports=java.management/sun.management=ALL-UNNAMED - --add-exports=java.rmi/sun.rmi.registry=ALL-UNNAMED - --add-exports=java.security.jgss/sun.security.krb5=ALL-UNNAMED - --add-exports=java.base/sun.nio.ch=ALL-UNNAMED + 8 + 8 + false + + + -Xpkginfo:always - test-coverage @@ -533,6 +530,22 @@ org.apache.maven.plugins maven-compiler-plugin + 3.8.0 + + ${target.java.version} + ${target.java.version} + + false + + --add-exports=java.base/sun.net.util=ALL-UNNAMED + --add-exports=java.management/sun.management=ALL-UNNAMED + --add-exports=java.rmi/sun.rmi.registry=ALL-UNNAMED + --add-exports=java.security.jgss/sun.security.krb5=ALL-UNNAMED + --add-exports=java.base/sun.nio.ch=ALL-UNNAMED + + -Xpkginfo:always + + @@ -719,7 +732,7 @@ [3.1.1,) - ${target.java.version} + [1.8,) From ca0cdefac8e07f929bd92f373f66384e2ad4f292 Mon Sep 17 00:00:00 2001 From: Hongshun Wang Date: Mon, 30 Jun 2025 11:52:43 +0800 Subject: [PATCH 3/7] modified based on cr --- .../{daily.yaml => ci-template.yaml} | 52 +++++++----------- .github/workflows/ci.yaml | 53 +++---------------- .github/workflows/nightly.yaml | 37 +++++++++++++ 3 files changed, 62 insertions(+), 80 deletions(-) rename .github/workflows/{daily.yaml => ci-template.yaml} (56%) create mode 100644 .github/workflows/nightly.yaml diff --git a/.github/workflows/daily.yaml b/.github/workflows/ci-template.yaml similarity index 56% rename from .github/workflows/daily.yaml rename to .github/workflows/ci-template.yaml index f2cfea38e1..b166d51a10 100644 --- a/.github/workflows/daily.yaml +++ b/.github/workflows/ci-template.yaml @@ -1,54 +1,38 @@ -################################################################################ -# 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: Daily CI ON JDK 8 -on: - schedule: - # Run at 12:00 daily. - - cron: "0 12 * * *" -concurrency: - group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.event.number || github.run_id }} - cancel-in-progress: true +# .github/workflows/ci-template.yaml +name: CI Template +on: + workflow_call: + inputs: + java-version: + required: true + type: string + maven-parameters: + description: "Any parameters of the Maven command." + required: false + type: string + default: "" jobs: - build-on-jdk8: + build-and-test: runs-on: self-hosted - strategy: - fail-fast: false - matrix: - module: [ core, flink ] steps: - name: Checkout code uses: actions/checkout@v2 - - name: Set up JDK 8 + - name: Set up JDK uses: actions/setup-java@v4 with: - java-version: '8' + java-version: ${{ inputs.java-version }} distribution: 'temurin' - name: Build run: | - mvn -T 1C -B clean install -DskipTests -Pjava8-target + mvn -T 1C -B clean install -DskipTests ${{ steps.profile.outputs.maven_profile }} - name: Test timeout-minutes: 60 run: | TEST_MODULES=$(./.github/workflows/stage.sh ${{ matrix.module }}) echo "github ref: ${{ github.ref }}" echo "Start testing modules: $TEST_MODULES" - mvn -B verify $TEST_MODULES -Ptest-coverage -Ptest-${{ matrix.module }} -Dlog.dir=${{ runner.temp }}/fluss-logs -Dlog4j.configurationFile=${{ github.workspace }}/tools/ci/log4j.properties -Pjava8-target + mvn -B verify $TEST_MODULES -Ptest-coverage -Ptest-${{ matrix.module }} -Dlog.dir=${{ runner.temp }}/fluss-logs -Dlog4j.configurationFile=${{ github.workspace }}/tools/ci/log4j.properties ${{ inputs.maven-parameters }} env: MAVEN_OPTS: -Xmx4096m ARTIFACTS_OSS_ENDPOINT: ${{ secrets.ARTIFACTS_OSS_ENDPOINT }} diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 68451a62bd..91428a3d95 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -32,11 +32,8 @@ concurrency: jobs: compile-on-jdk8: - runs-on: self-hosted - strategy: - fail-fast: false - matrix: - module: [ core, flink ] + name: "Compile Java 8" + runs-on: ubuntu-latest steps: - name: Checkout code uses: actions/checkout@v2 @@ -50,47 +47,11 @@ jobs: mvn -T 1C -B clean install -DskipTests -Pjava8-target build-on-jdk11: - runs-on: self-hosted + name: "Build Java 11" + uses: ./.github/workflows/ci-template.yaml + with: + java-version: "11" strategy: fail-fast: false matrix: - module: [ core, flink ] - steps: - - name: Checkout code - uses: actions/checkout@v2 - - name: Set up JDK 11 - uses: actions/setup-java@v4 - with: - java-version: '11' - distribution: 'temurin' - - name: Build - run: | - mvn -T 1C -B clean install -DskipTests - - name: Test - timeout-minutes: 60 - run: | - TEST_MODULES=$(./.github/workflows/stage.sh ${{ matrix.module }}) - echo "github ref: ${{ github.ref }}" - echo "Start testing modules: $TEST_MODULES" - mvn -B verify $TEST_MODULES -Ptest-coverage -Ptest-${{ matrix.module }} -Dlog.dir=${{ runner.temp }}/fluss-logs -Dlog4j.configurationFile=${{ github.workspace }}/tools/ci/log4j.properties - env: - MAVEN_OPTS: -Xmx4096m - ARTIFACTS_OSS_ENDPOINT: ${{ secrets.ARTIFACTS_OSS_ENDPOINT }} - ARTIFACTS_OSS_REGION: ${{ secrets.ARTIFACTS_OSS_REGION }} - ARTIFACTS_OSS_BUCKET: ${{ secrets.ARTIFACTS_OSS_BUCKET }} - ARTIFACTS_OSS_ACCESS_KEY: ${{ secrets.ARTIFACTS_OSS_ACCESS_KEY }} - ARTIFACTS_OSS_SECRET_KEY: ${{ secrets.ARTIFACTS_OSS_SECRET_KEY }} - ARTIFACTS_OSS_STS_ENDPOINT: ${{ secrets.ARTIFACTS_OSS_STS_ENDPOINT }} - ARTIFACTS_OSS_ROLE_ARN: ${{ secrets.ARTIFACTS_OSS_ROLE_ARN }} - - name: Upload build logs - uses: actions/upload-artifact@v4 - if: ${{ failure() }} - with: - name: logs-test-${{ matrix.module }}-${{ github.run_number}}#${{ github.run_attempt }} - path: ${{ runner.temp }}/fluss-logs/* - - name: Upload JaCoCo coverage report - uses: actions/upload-artifact@v4 - if: ${{ success() && github.ref == 'refs/heads/main' }} - with: - name: jacoco-report-${{ matrix.module }}-${{ github.run_number}}#${{ github.run_attempt }} - path: ${{ github.workspace }}/fluss-test-coverage/target/site/jacoco-aggregate/* \ No newline at end of file + module: [ core, flink ] \ No newline at end of file diff --git a/.github/workflows/nightly.yaml b/.github/workflows/nightly.yaml new file mode 100644 index 0000000000..ffb5e08d42 --- /dev/null +++ b/.github/workflows/nightly.yaml @@ -0,0 +1,37 @@ +################################################################################ +# 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: Nightly +on: + schedule: + # Run at 2:00 daily. + - cron: "0 2 * * *" +concurrency: + group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.event.number || github.run_id }} + cancel-in-progress: true + +jobs: + build-on-jdk8: + name: "Java 8" + uses: ./.github/workflows/ci-template.yaml + with: + java-version: "8" + maven-parameters: "-Pjava8-target" + strategy: + fail-fast: false + matrix: + module: [ core, flink ] \ No newline at end of file From da9fd58b538ae3d7969c6591ad04cd8b16aa685c Mon Sep 17 00:00:00 2001 From: Jark Wu Date: Sun, 10 Aug 2025 15:45:44 +0800 Subject: [PATCH 4/7] Jark's update --- .github/workflows/ci-template.yaml | 20 +++++++++++++++++++- .github/workflows/ci.yaml | 6 +++++- .github/workflows/nightly.yaml | 7 ++++--- pom.xml | 11 +++++++---- 4 files changed, 35 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci-template.yaml b/.github/workflows/ci-template.yaml index b166d51a10..471f837ca1 100644 --- a/.github/workflows/ci-template.yaml +++ b/.github/workflows/ci-template.yaml @@ -1,3 +1,21 @@ +################################################################################ +# 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. +################################################################################ + # .github/workflows/ci-template.yaml name: CI Template @@ -25,7 +43,7 @@ jobs: distribution: 'temurin' - name: Build run: | - mvn -T 1C -B clean install -DskipTests ${{ steps.profile.outputs.maven_profile }} + mvn -T 1C -B clean install -DskipTests - name: Test timeout-minutes: 60 run: | diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 91428a3d95..7e091adb60 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -22,10 +22,14 @@ on: - main - release-** - ci-** + paths-ignore: + - 'website/**' + - '**/*.md' pull_request: paths-ignore: - 'website/**' - '**/*.md' + concurrency: group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.event.number || github.run_id }} cancel-in-progress: true @@ -44,7 +48,7 @@ jobs: distribution: 'temurin' - name: Build run: | - mvn -T 1C -B clean install -DskipTests -Pjava8-target + mvn -T 1C -B clean install -DskipTests -Pjava8 build-on-jdk11: name: "Build Java 11" diff --git a/.github/workflows/nightly.yaml b/.github/workflows/nightly.yaml index ffb5e08d42..49052679b6 100644 --- a/.github/workflows/nightly.yaml +++ b/.github/workflows/nightly.yaml @@ -18,8 +18,9 @@ name: Nightly on: schedule: - # Run at 2:00 daily. - - cron: "0 2 * * *" + # Run at 20:00 UTC daily which is the lowest traffic time for Fluss project. + - cron: "0 20 * * *" + concurrency: group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.event.number || github.run_id }} cancel-in-progress: true @@ -30,7 +31,7 @@ jobs: uses: ./.github/workflows/ci-template.yaml with: java-version: "8" - maven-parameters: "-Pjava8-target" + maven-parameters: "-Pjava8" strategy: fail-fast: false matrix: diff --git a/pom.xml b/pom.xml index 48d00d0f2d..e7febb1927 100644 --- a/pom.xml +++ b/pom.xml @@ -426,7 +426,10 @@ - java8-target + java8 + + 8 + @@ -728,11 +731,11 @@ - - [3.1.1,) + + [3.8.6,) - [1.8,) + ${target.java.version} From 90de08f0ba48da1c4ab933632448eace77b92c39 Mon Sep 17 00:00:00 2001 From: Jark Wu Date: Sun, 10 Aug 2025 16:48:00 +0800 Subject: [PATCH 5/7] fix java8 --- .github/workflows/ci-template.yaml | 2 +- .github/workflows/ci.yaml | 2 +- pom.xml | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci-template.yaml b/.github/workflows/ci-template.yaml index 471f837ca1..87a06d8e35 100644 --- a/.github/workflows/ci-template.yaml +++ b/.github/workflows/ci-template.yaml @@ -31,7 +31,7 @@ on: type: string default: "" jobs: - build-and-test: + test: runs-on: self-hosted steps: - name: Checkout code diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 7e091adb60..30c9dd9610 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -51,7 +51,7 @@ jobs: mvn -T 1C -B clean install -DskipTests -Pjava8 build-on-jdk11: - name: "Build Java 11" + name: "Java 11" uses: ./.github/workflows/ci-template.yaml with: java-version: "11" diff --git a/pom.xml b/pom.xml index e7febb1927..6fe3bbabf2 100644 --- a/pom.xml +++ b/pom.xml @@ -428,7 +428,7 @@ java8 - 8 + 1.8 @@ -436,8 +436,8 @@ org.apache.maven.plugins maven-compiler-plugin - 8 - 8 + ${target.java.version} + ${target.java.version} false From be1fe26e06a429ff9da38e7a9f2fb3c85d7d0870 Mon Sep 17 00:00:00 2001 From: Jark Wu Date: Sun, 10 Aug 2025 17:13:57 +0800 Subject: [PATCH 6/7] fix matrix --- .github/workflows/ci-template.yaml | 7 ++++++- .github/workflows/ci.yaml | 6 +----- .github/workflows/nightly.yaml | 6 +----- 3 files changed, 8 insertions(+), 11 deletions(-) diff --git a/.github/workflows/ci-template.yaml b/.github/workflows/ci-template.yaml index 87a06d8e35..f6676aa5fc 100644 --- a/.github/workflows/ci-template.yaml +++ b/.github/workflows/ci-template.yaml @@ -31,8 +31,13 @@ on: type: string default: "" jobs: - test: + build: runs-on: self-hosted + strategy: + fail-fast: false + matrix: + module: [ core, flink ] + name: "${{ matrix.module }}" steps: - name: Checkout code uses: actions/checkout@v2 diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 30c9dd9610..54ce0d0775 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -54,8 +54,4 @@ jobs: name: "Java 11" uses: ./.github/workflows/ci-template.yaml with: - java-version: "11" - strategy: - fail-fast: false - matrix: - module: [ core, flink ] \ No newline at end of file + java-version: "11" \ No newline at end of file diff --git a/.github/workflows/nightly.yaml b/.github/workflows/nightly.yaml index 49052679b6..4836e10f5a 100644 --- a/.github/workflows/nightly.yaml +++ b/.github/workflows/nightly.yaml @@ -31,8 +31,4 @@ jobs: uses: ./.github/workflows/ci-template.yaml with: java-version: "8" - maven-parameters: "-Pjava8" - strategy: - fail-fast: false - matrix: - module: [ core, flink ] \ No newline at end of file + maven-parameters: "-Pjava8" \ No newline at end of file From 002a2202af99189128a2b8e39fc15c734f500330 Mon Sep 17 00:00:00 2001 From: Jark Wu Date: Sun, 10 Aug 2025 17:30:34 +0800 Subject: [PATCH 7/7] add --add-opens for tests --- pom.xml | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 6fe3bbabf2..c033ea79b8 100644 --- a/pom.xml +++ b/pom.xml @@ -143,6 +143,25 @@ plugin executes before, the property is undefined and makes the tests fail. Thus we define an empty property here to make sure it doesn't fail. See also https://issues.apache.org/jira/browse/SUREFIRE-1431 --> + + -XX:+IgnoreUnrecognizedVMOptions + --add-opens=java.base/java.lang=ALL-UNNAMED + --add-opens=java.base/java.lang.invoke=ALL-UNNAMED + --add-opens=java.base/java.lang.reflect=ALL-UNNAMED + --add-opens=java.base/java.io=ALL-UNNAMED + --add-opens=java.base/java.net=ALL-UNNAMED + --add-opens=java.base/java.nio=ALL-UNNAMED + --add-opens=java.base/java.util=ALL-UNNAMED + --add-opens=java.base/java.util.concurrent=ALL-UNNAMED + --add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED + --add-opens=java.base/jdk.internal.ref=ALL-UNNAMED + --add-opens=java.base/sun.nio.ch=ALL-UNNAMED + --add-opens=java.base/sun.nio.cs=ALL-UNNAMED + --add-opens=java.base/sun.security.action=ALL-UNNAMED + --add-opens=java.base/sun.util.calendar=ALL-UNNAMED + -Djdk.reflect.useDirectMethodHandle=false + -Dio.netty.tryReflectionSetAccessible=true + @@ -678,7 +697,7 @@ dynamic - @{argLine} -Xms256m -Xmx2048m -XX:+UseG1GC + @{argLine} -Xms256m -Xmx2048m -XX:+UseG1GC ${extraJavaTestArgs}