diff --git a/.github/workflows/push_pr.yml b/.github/workflows/push_pr.yml index 89ea3fba..9d349c00 100644 --- a/.github/workflows/push_pr.yml +++ b/.github/workflows/push_pr.yml @@ -16,13 +16,23 @@ # limitations under the License. ################################################################################ -name: Build flink-connector-elasticsearch +name: CI on: [push, pull_request] concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true jobs: compile_and_test: + strategy: + matrix: + flink: [ 1.16-SNAPSHOT, 1.17-SNAPSHOT ] + jdk: [ '8, 11' ] + include: + - flink: 1.18-SNAPSHOT + jdk: '8, 11, 17' + - flink: 1.19-SNAPSHOT + jdk: '8, 11, 17, 21' uses: apache/flink-connector-shared-utils/.github/workflows/ci.yml@ci_utils with: - flink_version: 1.16.2 + flink_version: ${{ matrix.flink }} + jdk_version: ${{ matrix.jdk }} diff --git a/.github/workflows/weekly.yml b/.github/workflows/weekly.yml index 9d34bc1b..19904b22 100644 --- a/.github/workflows/weekly.yml +++ b/.github/workflows/weekly.yml @@ -26,8 +26,34 @@ jobs: if: github.repository_owner == 'apache' strategy: matrix: - flink: [1.16-SNAPSHOT, 1.17-SNAPSHOT] + flink_branches: [{ + flink: 1.16-SNAPSHOT, + branch: main + }, { + flink: 1.17-SNAPSHOT, + branch: main + }, { + flink: 1.18-SNAPSHOT, + jdk: '8, 11, 17', + branch: main + }, { + flink: 1.19-SNAPSHOT, + jdk: '8, 11, 17, 21', + branch: main + }, { + flink: 1.16.2, + branch: v3.0 + }, { + flink: 1.17.1, + branch: v3.0 + }, { + flink: 1.18.0, + jdk: '8, 11, 17', + branch: v3.0 + }] uses: apache/flink-connector-shared-utils/.github/workflows/ci.yml@ci_utils with: - flink_version: ${{ matrix.flink }} + flink_version: ${{ matrix.flink_branches.flink }} + connector_branch: ${{ matrix.flink_branches.branch }} + jdk_version: ${{ matrix.flink_branches.jdk || '8, 11' }} run_dependency_convergence: false diff --git a/flink-connector-elasticsearch-e2e-tests/flink-connector-elasticsearch6-e2e-tests/pom.xml b/flink-connector-elasticsearch-e2e-tests/flink-connector-elasticsearch6-e2e-tests/pom.xml index 6b3a6961..fa101589 100644 --- a/flink-connector-elasticsearch-e2e-tests/flink-connector-elasticsearch6-e2e-tests/pom.xml +++ b/flink-connector-elasticsearch-e2e-tests/flink-connector-elasticsearch6-e2e-tests/pom.xml @@ -35,6 +35,8 @@ under the License. 6.8.20 + --add-opens=java.base/java.util=ALL-UNNAMED diff --git a/flink-connector-elasticsearch-e2e-tests/flink-connector-elasticsearch7-e2e-tests/pom.xml b/flink-connector-elasticsearch-e2e-tests/flink-connector-elasticsearch7-e2e-tests/pom.xml index bd19be8b..a67b02ad 100644 --- a/flink-connector-elasticsearch-e2e-tests/flink-connector-elasticsearch7-e2e-tests/pom.xml +++ b/flink-connector-elasticsearch-e2e-tests/flink-connector-elasticsearch7-e2e-tests/pom.xml @@ -35,6 +35,8 @@ under the License. 7.10.2 + --add-opens=java.base/java.util=ALL-UNNAMED diff --git a/flink-connector-elasticsearch-e2e-tests/pom.xml b/flink-connector-elasticsearch-e2e-tests/pom.xml index 87756e1e..124821cc 100644 --- a/flink-connector-elasticsearch-e2e-tests/pom.xml +++ b/flink-connector-elasticsearch-e2e-tests/pom.xml @@ -39,6 +39,11 @@ under the License. flink-connector-elasticsearch7-e2e-tests + + --add-opens=java.base/java.util=ALL-UNNAMED + + run-end-to-end-tests @@ -63,6 +68,7 @@ under the License. ${project.basedir} + ${flink.surefire.baseArgLine} -Xmx${flink.XmxUnitTest} diff --git a/flink-connector-elasticsearch6/pom.xml b/flink-connector-elasticsearch6/pom.xml index b5335ca4..6950456c 100644 --- a/flink-connector-elasticsearch6/pom.xml +++ b/flink-connector-elasticsearch6/pom.xml @@ -37,6 +37,8 @@ under the License. 6.8.20 + --add-opens=java.base/java.util=ALL-UNNAMED diff --git a/flink-connector-elasticsearch7/pom.xml b/flink-connector-elasticsearch7/pom.xml index 3511bf3c..50c93a43 100644 --- a/flink-connector-elasticsearch7/pom.xml +++ b/flink-connector-elasticsearch7/pom.xml @@ -37,6 +37,8 @@ under the License. 7.10.2 + --add-opens=java.base/java.util=ALL-UNNAMED diff --git a/pom.xml b/pom.xml index c6ecfa79..dbca2b46 100644 --- a/pom.xml +++ b/pom.xml @@ -69,6 +69,9 @@ under the License. flink-connector-elasticsearch-parent + + -XX:+UseG1GC -Xms256m -XX:+IgnoreUnrecognizedVMOptions ${surefire.module.config} +