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

chesnay pushed a commit to branch exp_github_actions
in repository https://gitbox.apache.org/repos/asf/flink.git

commit 7eafe4300bd1130ba699b695e40de37daf6adef1
Author: Chesnay Schepler <ches...@apache.org>
AuthorDate: Fri Apr 1 21:42:07 2022 +0200

    Separate packaging/licensing test job
---
 .github/workflows/flink-ci-template.yml | 43 ++++++++++++++++++++++++++++++++-
 tools/ci/compile.sh                     |  2 +-
 2 files changed, 43 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/flink-ci-template.yml 
b/.github/workflows/flink-ci-template.yml
index 077858cfd07..1040e2947c9 100644
--- a/.github/workflows/flink-ci-template.yml
+++ b/.github/workflows/flink-ci-template.yml
@@ -106,7 +106,7 @@ jobs:
       - name: "Compile Flink"
         working-directory: ${{ env.CHECKOUT_DIR }}
         run: |
-          ${{ inputs.environment }} ./tools/ci/compile.sh || exit $?
+          ${{ inputs.environment }} ./tools/ci/validate.sh "test-compile -T2 
-Dfast" || exit $?
 
       - name: "Collect build artifacts"
         working-directory: ${{ env.CHECKOUT_DIR }}
@@ -119,6 +119,47 @@ jobs:
           path: ${{ env.FLINK_ARTIFACT_DIR }}${{ env.FLINK_ARTIFACT_FILENAME }}
           if-no-files-found: error
 
+  packaging:
+    name: "Test packaging/licensing"
+    needs: compile
+    runs-on: ubuntu-latest
+    container:
+      image: chesnay/flink-ci:java_8_11_xenial
+      options: --init
+
+    steps:
+      - name: "Set JDK version"
+        run: |
+          echo "JAVA_HOME=$JAVA_HOME_${{inputs.jdk-version}}_X64" >> 
${GITHUB_ENV}
+          echo "PATH=$JAVA_HOME_${{inputs.jdk-version}}_X64/bin:$PATH" >> 
${GITHUB_ENV}
+
+      - name: "Flink Checkout"
+        uses: actions/checkout@v2
+        with:
+          path: ${{ env.CHECKOUT_MOUNT_DIR }}
+
+      - name: "Copy"
+        working-directory: ${{ env.CHECKOUT_MOUNT_DIR }}
+        run: |
+          mkdir -p ${{ env.CHECKOUT_DIR }}
+          mv ./* ${{ env.CHECKOUT_DIR }}/
+
+      - name: "Download build artifacts from compile job"
+        uses: actions/download-artifact@v2
+        with:
+          name: build-artifacts-${{ 
needs.compile.outputs.stringified-workflow-name }}-${{ github.run_number }}
+          path: ${{ env.FLINK_ARTIFACT_DIR }}
+
+      - name: "Unpack build artifact"
+        working-directory: ${{ env.CHECKOUT_DIR }}
+        run: |
+          ./tools/azure-pipelines/unpack_build_artifact.sh -f ${{ 
env.FLINK_ARTIFACT_DIR }}${{ env.FLINK_ARTIFACT_FILENAME }} -t .
+
+      - name: "Test"
+        working-directory: ${{ env.CHECKOUT_DIR }}
+        run: |
+          ${{ inputs.environment }} ./tools/ci/compile.sh || exit $?
+
   test:
     name: "Test (module: ${{ matrix.module }})"
     needs: compile
diff --git a/tools/ci/compile.sh b/tools/ci/compile.sh
index 043755b5a0b..4df20256d61 100755
--- a/tools/ci/compile.sh
+++ b/tools/ci/compile.sh
@@ -47,7 +47,7 @@ echo 
"==========================================================================
 
 EXIT_CODE=0
 
-run_mvn clean deploy 
-DaltDeploymentRepository=validation_repository::default::file:$MVN_VALIDATION_DIR
 -Dflink.convergence.phase=install -Pcheck-convergence -Dflink.forkCount=2 \
+run_mvn deploy 
-DaltDeploymentRepository=validation_repository::default::file:$MVN_VALIDATION_DIR
 -Dflink.convergence.phase=install -Pcheck-convergence -Dflink.forkCount=2 \
     -Dflink.forkCountTestPackage=2 -Dmaven.javadoc.skip=true -U -DskipTests 
-Dcheckstyle.skip=true -Drat.skip=true -Dspotless.skip=true | tee 
$MVN_CLEAN_COMPILE_OUT
 
 EXIT_CODE=${PIPESTATUS[0]}

Reply via email to