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

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


The following commit(s) were added to refs/heads/master by this push:
     new aa6517a5fca Refactor : make agent test as a standalone workflow 
(#23414)
aa6517a5fca is described below

commit aa6517a5fca00bbdfde213d92bf2253445f3ca16
Author: 孙念君 Nianjun Sun <[email protected]>
AuthorDate: Mon Jan 9 00:04:36 2023 +0800

    Refactor : make agent test as a standalone workflow (#23414)
    
    * Refactor : make agent test as a standalone workflow
    
    * Refactor : update the agent trigger path
---
 .github/workflows/e2e-agent.yml | 84 +++++++++++++++++++++++++++++++++++++++++
 .github/workflows/e2e.yml       | 25 ------------
 2 files changed, 84 insertions(+), 25 deletions(-)

diff --git a/.github/workflows/e2e-agent.yml b/.github/workflows/e2e-agent.yml
new file mode 100644
index 00000000000..e229d6be85d
--- /dev/null
+++ b/.github/workflows/e2e-agent.yml
@@ -0,0 +1,84 @@
+#
+# 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: E2E - Agent
+
+on:
+  push:
+    branches: [ master, dev ]
+    paths:
+      - '.github/workflows/e2e-agent.yml'
+      - '**/pom.xml'
+      - '**/src/main/**'
+      - 'distribution/proxy/**'
+      - 'test/pom.xml'
+      - 'test/e2e/agent/**'
+      - '!examples/**'
+      - '!distribution/**'
+      - '!distribution/proxy/src/main/release-docs/**'
+      - '!kernel/data-pipeline/**'
+      - '!test/**'
+      - '!*.md'
+  pull_request:
+    branches: [ master ]
+    paths:
+      - '.github/workflows/e2e-agent.yml'
+      - '**/pom.xml'
+      - '**/src/main/**'
+      - 'distribution/proxy/**'
+      - '!test/**'
+      - 'test/pom.xml'
+      - 'test/e2e/agent/**'
+      - '!examples/**'
+      - '!distribution/**'
+      - '!distribution/proxy/src/main/release-docs/**'
+      - '!kernel/data-pipeline/**'
+      - '!*.md'
+  workflow_dispatch:
+
+concurrency:
+  group: it-${{ 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 -Dmaven.javadoc.skip=true 
-Dcheckstyle.skip=true -Djacoco.skip=true -Dspotless.apply.skip=true 
-Drat.skip=true
+  REPOSITORY_NAME: shardingsphere
+
+jobs:
+  mysql-proxy-agent:
+    name: Agent with MySQL
+    runs-on: ubuntu-latest
+    strategy:
+      matrix:
+        plugin: [ metrics, opentelemetry, zipkin ]
+    steps:
+      - uses: actions/checkout@v3
+      - uses: actions/setup-java@v3
+        with:
+          distribution: 'temurin'
+          java-version: '8'
+      - uses: actions/cache@v3
+        with:
+          path: ~/.m2/repository
+          key: ${{ env.REPOSITORY_NAME }}-maven-third-party-${{ 
hashFiles('**/pom.xml') }}
+          restore-keys: |
+            ${{ env.REPOSITORY_NAME }}-maven-third-party-
+      - name: Build Project
+        run: ./mvnw -B clean install -DskipITs -DskipTests
+      - name: Run Integration Test
+        run: |
+          ./mvnw -B clean install -f test/e2e/agent/plugins/${{ matrix.plugin 
}}/pom.xml -Dspotless.apply.skip=true -Pit.env.${{ matrix.plugin }}
diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml
index 0677de504cc..3500e21b5c9 100644
--- a/.github/workflows/e2e.yml
+++ b/.github/workflows/e2e.yml
@@ -194,28 +194,3 @@ jobs:
         run: docker load -i /tmp/${{ env.REPOSITORY_NAME }}-proxy-test.tar
       - name: Run Integration Test
         run: ./mvnw -nsu -B install -f test/e2e/suite/pom.xml 
-Dspotless.apply.skip=true -Dit.cluster.env.type=DOCKER 
-Dit.cluster.adapters=${{ matrix.adapter }} -Dit.run.modes=${{ matrix.mode }} 
-Dit.cluster.databases=${{ matrix.database }} -Dit.scenarios=${{ 
matrix.scenario }}
-
-  mysql-proxy-agent:
-    name: Agent with MySQL
-    runs-on: ubuntu-latest
-    strategy:
-      matrix:
-        plugin: [ metrics, opentelemetry, zipkin ]
-    steps:
-      - uses: actions/checkout@v3
-      - uses: actions/setup-java@v3
-        with:
-          distribution: 'temurin'
-          java-version: '8'
-      - uses: actions/cache@v3
-        with:
-          path: ~/.m2/repository
-          key: ${{ env.REPOSITORY_NAME }}-maven-third-party-${{ 
hashFiles('**/pom.xml') }}
-          restore-keys: |
-            ${{ env.REPOSITORY_NAME }}-maven-third-party-
-      - name: Build Project
-        run: ./mvnw -B clean install -DskipITs -DskipTests
-      - name: Run Integration Test
-        run: |
-          ./mvnw -B clean install -f test/e2e/agent/plugins/${{ matrix.plugin 
}}/pom.xml -Dspotless.apply.skip=true -Pit.env.${{ matrix.plugin }}
-

Reply via email to