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

haonan pushed a commit to branch reduce_workflow_ymls
in repository https://gitbox.apache.org/repos/asf/iotdb.git

commit b876a6a487bbf07e5ad17c2858173f1b5e04375f
Author: HTHou <[email protected]>
AuthorDate: Fri May 24 17:58:18 2024 +0800

    Merge multi-language client CI workflow ymls to one
---
 .github/workflows/client-go.yml                    | 53 -------------------
 .github/workflows/client-python.yml                | 58 ---------------------
 .../{client-cpp.yml => multi-language-client.yml}  | 60 +++++++++++++++++++---
 3 files changed, 52 insertions(+), 119 deletions(-)

diff --git a/.github/workflows/client-go.yml b/.github/workflows/client-go.yml
deleted file mode 100644
index e84014dc97a..00000000000
--- a/.github/workflows/client-go.yml
+++ /dev/null
@@ -1,53 +0,0 @@
-# This workflow is just for checking whether modifications works for the Go 
client.
-
-name: Go Client
-
-on:
-  push:
-    branches:
-      - master
-      - 'rel/*'
-      - "new_*"
-    paths-ignore:
-      - 'docs/**'
-      - 'site/**'
-  pull_request:
-    branches:
-      - master
-      - 'rel/*'
-      - "new_*"
-    paths-ignore:
-      - 'docs/**'
-      - 'site/**'
-  # allow manually run the action:
-  workflow_dispatch:
-
-concurrency:
-  group: ${{ github.workflow }}-${{ github.ref }}
-  cancel-in-progress: true
-
-env:
-  MAVEN_OPTS: -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false 
-Dmaven.wagon.http.retryHandler.class=standard 
-Dmaven.wagon.http.retryHandler.count=3
-  GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }}
-
-jobs:
-  Test:
-    runs-on: ubuntu-latest
-
-    steps:
-      - uses: actions/checkout@v4
-        with:
-          token: ${{secrets.GITHUB_TOKEN}}
-          submodules: recursive
-      - name: Cache Maven packages
-        uses: actions/cache@v4
-        with:
-          path: ~/.m2
-          key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
-          restore-keys: ${{ runner.os }}-m2-
-      - name: Compile IoTDB Server
-        run: mvn clean package -pl distribution -am -DskipTests
-      - name: Integration test
-        shell: bash
-        run: |
-          cd iotdb-client/client-go/ && make e2e_test_for_parent_git_repo 
e2e_test_clean_for_parent_git_repo
diff --git a/.github/workflows/client-python.yml 
b/.github/workflows/client-python.yml
deleted file mode 100644
index 6f95496236f..00000000000
--- a/.github/workflows/client-python.yml
+++ /dev/null
@@ -1,58 +0,0 @@
-# This workflow is just for checking whether modifications works for the 
Python client.
-
-name: Python Client
-
-on:
-  push:
-    branches:
-      - master
-      - 'rel/*'
-    paths-ignore:
-      - 'docs/**'
-      - 'site/**'
-  pull_request:
-    branches:
-      - master
-      - 'rel/*'
-      - "new_*"
-    paths-ignore:
-      - 'docs/**'
-      - 'site/**'
-  # allow manually run the action:
-  workflow_dispatch:
-
-concurrency:
-  group: ${{ github.workflow }}-${{ github.ref }}
-  cancel-in-progress: true
-
-env:
-  MAVEN_OPTS: -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false 
-Dmaven.wagon.http.retryHandler.class=standard 
-Dmaven.wagon.http.retryHandler.count=3
-  GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }}
-
-jobs:
-  Test:
-    runs-on: ubuntu-latest
-
-    steps:
-      - uses: actions/checkout@v4
-      - name: Cache Maven packages
-        uses: actions/cache@v4
-        with:
-          path: ~/.m2
-          key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
-          restore-keys: ${{ runner.os }}-m2-
-      - name: Build IoTDB server distribution zip and python client
-        run: mvn -B clean install -pl distribution,iotdb-client/client-py -am 
-DskipTests
-      - name: Build IoTDB server docker image
-        run: |
-          docker build . -f docker/src/main/Dockerfile-1c1d -t "iotdb:dev"
-          docker images
-      - name: Install IoTDB python client requirements
-        run: pip3 install -r iotdb-client/client-py/requirements_dev.txt
-      - name: Check code style
-        shell: bash
-        run: black iotdb-client/client-py/ --check --diff
-      - name: Integration test
-        shell: bash
-        run: |
-          cd iotdb-client/client-py/ && pytest .
diff --git a/.github/workflows/client-cpp.yml 
b/.github/workflows/multi-language-client.yml
similarity index 61%
rename from .github/workflows/client-cpp.yml
rename to .github/workflows/multi-language-client.yml
index 39dddba8bb7..3f3f16c045d 100644
--- a/.github/workflows/client-cpp.yml
+++ b/.github/workflows/multi-language-client.yml
@@ -1,10 +1,4 @@
-# This workflow will build a Java project with Maven
-# For more information see: 
https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
-
-# CPP compiling is too slow, so let's do it in parallel with testing other 
modules.
-# As there is no Java client, we just use one JDK.
-name: C++ Client
-
+name: multi-language-client.yml
 on:
   push:
     branches:
@@ -23,6 +17,7 @@ on:
   # allow manually run the action:
   workflow_dispatch:
 
+
 concurrency:
   group: ${{ github.workflow }}-${{ github.ref }}
   cancel-in-progress: true
@@ -31,7 +26,7 @@ env:
   MAVEN_OPTS: -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false 
-Dmaven.wagon.http.retryHandler.class=standard 
-Dmaven.wagon.http.retryHandler.count=3
 
 jobs:
-  Test:
+  client-cpp:
     strategy:
       fail-fast: false
       max-parallel: 20
@@ -83,3 +78,52 @@ jobs:
           path: iotdb-client/client-cpp/target/build/test/Testing
           retention-days: 1
 
+  client-go:
+    runs-on: ubuntu-latest
+
+    steps:
+      - uses: actions/checkout@v4
+        with:
+          token: ${{secrets.GITHUB_TOKEN}}
+          submodules: recursive
+      - name: Cache Maven packages
+        uses: actions/cache@v4
+        with:
+          path: ~/.m2
+          key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
+          restore-keys: ${{ runner.os }}-m2-
+      - name: Compile IoTDB Server
+        run: mvn clean package -pl distribution -am -DskipTests
+      - name: Integration test
+        shell: bash
+        run: |
+          cd iotdb-client/client-go/ && make e2e_test_for_parent_git_repo 
e2e_test_clean_for_parent_git_repo
+
+  client-py:
+    runs-on: ubuntu-latest
+
+    steps:
+      - uses: actions/checkout@v4
+      - name: Cache Maven packages
+        uses: actions/cache@v4
+        with:
+          path: ~/.m2
+          key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
+          restore-keys: ${{ runner.os }}-m2-
+      - name: Build IoTDB server distribution zip and python client
+        run: mvn -B clean install -pl distribution,iotdb-client/client-py -am 
-DskipTests
+      - name: Build IoTDB server docker image
+        run: |
+          docker build . -f docker/src/main/Dockerfile-1c1d -t "iotdb:dev"
+          docker images
+      - name: Install IoTDB python client requirements
+        run: pip3 install -r iotdb-client/client-py/requirements_dev.txt
+      - name: Check code style
+        shell: bash
+        run: black iotdb-client/client-py/ --check --diff
+      - name: Integration test
+        shell: bash
+        run: |
+          cd iotdb-client/client-py/ && pytest .
+
+

Reply via email to