You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iceberg.apache.org by op...@apache.org on 2022/03/15 04:11:34 UTC

[iceberg] branch master updated: Build: Test flink modules for both scala 2.11 and 2.12 (#4179)

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

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


The following commit(s) were added to refs/heads/master by this push:
     new f6c575f  Build: Test flink modules for both scala 2.11 and 2.12 (#4179)
f6c575f is described below

commit f6c575fbc8726eec4df5b09fcf3b84e4f3aa94f2
Author: openinx <op...@gmail.com>
AuthorDate: Tue Mar 15 12:08:24 2022 +0800

    Build: Test flink modules for both scala 2.11 and 2.12 (#4179)
---
 .github/workflows/flink-ci.yml | 32 +++++++++++++++++++++++++++++++-
 1 file changed, 31 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/flink-ci.yml b/.github/workflows/flink-ci.yml
index 903581d..9f2e1a6 100644
--- a/.github/workflows/flink-ci.yml
+++ b/.github/workflows/flink-ci.yml
@@ -52,7 +52,37 @@ concurrency:
   cancel-in-progress: ${{ github.event_name == 'pull_request' }}
 
 jobs:
-  flink-tests:
+
+  # Only test the latest flink version with scala 2.11 for saving testing time.
+  flink-scala-2-11-tests:
+    runs-on: ubuntu-latest
+    strategy:
+      matrix:
+        jvm: [ 8, 11 ]
+        flink: [ '1.14' ]
+    env:
+      SPARK_LOCAL_IP: localhost
+    steps:
+      - uses: actions/checkout@v2
+      - uses: actions/setup-java@v1
+        with:
+          java-version: ${{ matrix.jvm }}
+      - uses: actions/cache@v2
+        with:
+          path: ~/.gradle/caches
+          key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
+          restore-keys: ${{ runner.os }}-gradle
+      - run: echo -e "$(ip addr show eth0 | grep "inet\b" | awk '{print $2}' | cut -d/ -f1)\t$(hostname -f) $(hostname -s)" | sudo tee -a /etc/hosts
+      - run: ./gradlew -DsparkVersions= -DhiveVersions= -DflinkVersions=${{ matrix.flink }} :iceberg-flink:iceberg-flink-${{ matrix.flink }}:check :iceberg-flink:iceberg-flink-runtime-${{ matrix.flink }}:check -DscalaVersion=2.11 -DknownScalaVersions=2.11 -Pquick=true -x javadoc
+      - uses: actions/upload-artifact@v2
+        if: failure()
+        with:
+          name: test logs
+          path: |
+            **/build/testlogs
+
+  # Test all flink versions with scala 2.12 for general validation.
+  flink-scala-2-12-tests:
     runs-on: ubuntu-latest
     strategy:
       matrix: