Skip to content

Commit

Permalink
[core] Paimon supports JDK 11 version(apache#714)
Browse files Browse the repository at this point in the history
  • Loading branch information
legendtkl authored Mar 31, 2023
1 parent 224a1ab commit 0425728
Show file tree
Hide file tree
Showing 28 changed files with 403 additions and 28 deletions.
53 changes: 53 additions & 0 deletions .github/workflows/e2e-tests-1.14-jdk11.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
################################################################################
# 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.14 on JDK 11

on:
issue_comment:
types: [created, edited, deleted]

# daily run
schedule:
- cron: "0 0 * * *"

env:
JDK_VERSION: 11

jobs:
build:
if: contains(github.event.comment.html_url, '/pull/') && contains(github.event.comment.body, '/jdk11')
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up JDK ${{ env.JDK_VERSION }}
uses: actions/setup-java@v2
with:
java-version: ${{ env.JDK_VERSION }}
distribution: 'adopt'
- name: Build Flink 1.14
run: ./mvnw clean install -Dmaven.test.skip=true -Pflink-1.14
- name: Test Flink 1.14
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"
./mvnw test -pl paimon-e2e-tests -Duser.timezone=$jvm_timezone -Pflink-1.14
10 changes: 7 additions & 3 deletions .github/workflows/e2e-tests-1.14.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,21 @@ on:
- 'docs/**'
- '**/*.md'

env:
JDK_VERSION: 8

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
- name: Set up JDK ${{ env.JDK_VERSION }}
uses: actions/setup-java@v2
with:
java-version: 1.8
java-version: ${{ env.JDK_VERSION }}
distribution: 'adopt'
- name: Build Flink 1.14
run: ./mvnw clean install -Dmaven.test.skip=true -Pflink-1.14
- name: Test Flink 1.14
Expand Down
53 changes: 53 additions & 0 deletions .github/workflows/e2e-tests-1.15-jdk11.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
################################################################################
# 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.15 on JDK 11

on:
issue_comment:
types: [created, edited, deleted]

# daily run
schedule:
- cron: "0 0 * * *"

env:
JDK_VERSION: 11

jobs:
build:
if: contains(github.event.comment.html_url, '/pull/') && contains(github.event.comment.body, '/jdk11')
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up JDK ${{ env.JDK_VERSION }}
uses: actions/setup-java@v2
with:
java-version: ${{ env.JDK_VERSION }}
distribution: 'adopt'
- name: Build Flink 1.15
run: ./mvnw clean install -Dmaven.test.skip=true -Pflink-1.15
- name: Test Flink 1.15
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"
./mvnw test -pl paimon-e2e-tests -Duser.timezone=$jvm_timezone -Pflink-1.15
10 changes: 7 additions & 3 deletions .github/workflows/e2e-tests-1.15.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,21 @@ on:
- 'docs/**'
- '**/*.md'

env:
JDK_VERSION: 8

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
- name: Set up JDK ${{ env.JDK_VERSION }}
uses: actions/setup-java@v2
with:
java-version: 1.8
java-version: ${{ env.JDK_VERSION }}
distribution: 'adopt'
- name: Build Flink 1.15
run: ./mvnw clean install -Dmaven.test.skip=true -Pflink-1.15
- name: Test Flink 1.15
Expand Down
53 changes: 53 additions & 0 deletions .github/workflows/e2e-tests-1.16-jdk11.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
################################################################################
# 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.16 on JDK 11

on:
issue_comment:
types: [created, edited, deleted]

# daily run
schedule:
- cron: "0 0 * * *"

env:
JDK_VERSION: 11

jobs:
build:
if: contains(github.event.comment.html_url, '/pull/') && contains(github.event.comment.body, '/jdk11')
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up JDK ${{ env.JDK_VERSION }}
uses: actions/setup-java@v2
with:
java-version: ${{ env.JDK_VERSION }}
distribution: 'adopt'
- name: Build Flink 1.16
run: ./mvnw clean install -DskipTests
- name: Test Flink 1.16
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"
./mvnw test -pl paimon-e2e-tests -Duser.timezone=$jvm_timezone
10 changes: 7 additions & 3 deletions .github/workflows/e2e-tests-1.16.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,21 @@ on:
- 'docs/**'
- '**/*.md'

env:
JDK_VERSION: 8

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
- name: Set up JDK ${{ env.JDK_VERSION }}
uses: actions/setup-java@v2
with:
java-version: 1.8
java-version: ${{ env.JDK_VERSION }}
distribution: 'adopt'
- name: Build Flink 1.16
run: ./mvnw clean install -DskipTests
- name: Test Flink 1.16
Expand Down
13 changes: 10 additions & 3 deletions .github/workflows/publish_snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,24 @@ on:
# At the end of every day
- cron: '0 0 * * *'
workflow_dispatch:

env:
JDK_VERSION: 8

jobs:
publish-snapshot:
if: github.repository == 'apache/incubator-paimon'
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
# temporarily publish the jdk8 version to maven
# lately when jdk is deprecated, we need update it to jdk11
- name: Set up JDK ${{ env.JDK_VERSION }}
uses: actions/setup-java@v2
with:
java-version: 1.8
java-version: ${{ env.JDK_VERSION }}
distribution: 'adopt'
- name: Cache local Maven repository
uses: actions/cache@v3
with:
Expand Down
53 changes: 53 additions & 0 deletions .github/workflows/unitcase-flink-jdk11.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
################################################################################
# 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: UTCase and ITCase Flink on JDK 11

on:
issue_comment:
types: [created, edited, deleted]

# daily run
schedule:
- cron: "0 0 * * *"

env:
JDK_VERSION: 11

jobs:
build:
if: contains(github.event.comment.html_url, '/pull/') && contains(github.event.comment.body, '/jdk11')
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up JDK ${{ env.JDK_VERSION }}
uses: actions/setup-java@v2
with:
java-version: ${{ env.JDK_VERSION }}
distribution: 'adopt'
- name: Build
run: ./mvnw clean install -DskipTests
- name: Test
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"
./mvnw clean install -pl 'org.apache.paimon:paimon-flink-common' -Duser.timezone=$jvm_timezone
53 changes: 53 additions & 0 deletions .github/workflows/unitcase-jdk11.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
################################################################################
# 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: UTCase and ITCase Non Flink on JDK 11

on:
issue_comment:
types: [created, edited, deleted]

# daily run
schedule:
- cron: "0 0 * * *"

env:
JDK_VERSION: 11

jobs:
build:
if: contains(github.event.comment.html_url, '/pull/') && contains(github.event.comment.body, '/jdk11')
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up JDK ${{ env.JDK_VERSION }}
uses: actions/setup-java@v2
with:
java-version: ${{ env.JDK_VERSION }}
distribution: 'adopt'
- name: Build
run: ./mvnw clean install -DskipTests
- name: Test
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"
./mvnw clean install -pl '!paimon-e2e-tests,!org.apache.paimon:paimon-flink-common' -Duser.timezone=$jvm_timezone
10 changes: 7 additions & 3 deletions .github/workflows/utitcase-flink.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,21 @@ on:
- 'docs/**'
- '**/*.md'

env:
JDK_VERSION: 8

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
- name: Set up JDK ${{ env.JDK_VERSION }}
uses: actions/setup-java@v2
with:
java-version: 1.8
java-version: ${{ env.JDK_VERSION }}
distribution: 'adopt'
- name: Build
run: ./mvnw clean install -DskipTests
- name: Test
Expand Down
Loading

0 comments on commit 0425728

Please sign in to comment.